1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-30 23:05:48 +00:00
Commit graph

85 commits

Author SHA1 Message Date
The Tumultuous Unicorn Of Darkness
543c3ac17d
Fix scanf() format for 'logical_cpu' in cpuid_deserialize_raw_data_internal()
logical_cpu is an uint16_t, so SCNu16 is the correct format. It was providing strange values with SCNi16, like with the Intel® Xeon® Platinum 8280 dump.
2024-07-31 15:12:30 +02:00
The Tumultuous Unicorn Of Darkness
959edc34e7
Add cpu_feature_level_t enumerated values for x86 CPUs
I had to fix run_tests.py to update all test files properly.
Fix #177
2024-06-29 17:01:50 +02:00
The Tumultuous Unicorn Of Darkness
9de7f85c80
Test: remove ice-lake-i3.test
Duplicate of tests/intel/x86-64/skylake/cannon-lake-core-i3-u.test
2024-06-24 16:36:45 +02:00
The Tumultuous Unicorn Of Darkness
13baa0d94e Tests: add results for Intel Meteor Lake-H 2024-04-14 17:19:12 +02:00
The Tumultuous Unicorn Of Darkness
587f2597d7 Tests: fix Bay Trail results
Since 7ad0a494a5, it shows that core count for Intel® Celeron® Processor J1900 and Intel Atom® Processor Z3740 was wrong.
According to Intel, new values are correct:
- https://www.intel.com/content/www/us/en/products/sku/78867/intel-celeron-processor-j1900-2m-cache-up-to-2-42-ghz/specifications.html?wapkw=J1900 ==> 4c/4t
- https://www.intel.com/content/www/us/en/products/sku/76759/intel-atom-processor-z3740-2m-cache-up-to-1-86-ghz/specifications.html ==> 4c/4t
2024-04-14 17:19:12 +02:00
The Tumultuous Unicorn Of Darkness
e0cf171cd8
DB: add Intel Raport lake Refresh
Related to InstLatx64/InstLatx64@2a34937e15
2024-02-25 11:18:30 +01:00
The Tumultuous Unicorn Of Darkness
f483697764
DB: add Intel Bay Trail-D
Dump found on instlatx64: http://users.atw.hu/instlatx64/GenuineIntel/GenuineIntel0030673_Silvermont3_CPUID.txt
2023-10-29 13:27:24 +01:00
The Tumultuous Unicorn Of Darkness
bd22219133
DB: add Intel Bay Trail-T
Dumps found on instlatx64:
- http://users.atw.hu/instlatx64/GenuineIntel/GenuineIntel0030673_Silvermont_CPUID.txt
- http://users.atw.hu/instlatx64/GenuineIntel/GenuineIntel0030679_Silvermont_CPUID.txt
2023-10-29 13:27:24 +01:00
The Tumultuous Unicorn Of Darkness
95a5c1db3e
DB: add Intel Bay Trail-M
Related to TheTumultuousUnicornOfDarkness/CPU-X#309
2023-10-29 13:27:19 +01:00
The Tumultuous Unicorn Of Darkness
f1c96e1372
DB: add Intel Apollo Lake
Related to InstLatx64/InstLatx64@33c980db26
2023-09-23 10:14:30 +02:00
The Tumultuous Unicorn Of Darkness
af6bbc5e78
Tests: add Intel Alder Lake-U (Pentium)
Related to InstLatx64/InstLatx64@abb8eb8950
2023-07-26 14:26:00 +02:00
The Tumultuous Unicorn Of Darkness
a9925a4c19
Tests: add Intel Sapphire Rapids-WS (Xeon w9)
Related to InstLatx64/InstLatx64@fbda7ba291
2023-07-01 18:01:37 +02:00
The Tumultuous Unicorn Of Darkness
16fc6d5efa
DB: add Intel Raptor Lake-H/HX 2023-05-14 19:34:12 +02:00
The Tumultuous Unicorn Of Darkness
3dd6974b52
DB: fix entry for Intel Sandy Bridge-E (Core i7) 2023-05-08 22:24:02 +02:00
The Tumultuous Unicorn Of Darkness
55c7d9a22a
DB: fixes for Intel Conroe and Allendale
Source: https://en.wikipedia.org/wiki/Conroe_(microprocessor)#Variants
2023-05-08 22:24:02 +02:00
The Tumultuous Unicorn Of Darkness
1cac5b3eb0
DB: minor update for Intel Arrandale 2023-05-08 22:24:02 +02:00
The Tumultuous Unicorn Of Darkness
e0f02b8d4f
Tests: arranges Intel tests by micro-architecture 2023-05-08 22:24:02 +02:00
The Tumultuous Unicorn Of Darkness
d43fb11b47
DB: add Intel Sapphire Rapids-SP 2023-05-08 22:23:48 +02:00
The Tumultuous Unicorn Of Darkness
3411fe6fe5
DB: add Intel Ice-Lake (server) 2023-05-08 17:56:44 +02:00
The Tumultuous Unicorn Of Darkness
01ec8df7cb
DB: add Intel Cascade Lake 2023-05-08 17:42:30 +02:00
The Tumultuous Unicorn Of Darkness
0df7232da8
DB: add Intel Skylake (server) 2023-05-08 17:42:19 +02:00
The Tumultuous Unicorn Of Darkness
2317f40b36
DB: add Intel Sapphire Rapids-WS
Related to InstLatx64/InstLatx64@954a632d8a
2023-05-02 21:04:10 +02:00
The Tumultuous Unicorn Of Darkness
3bcb6fb72b
DB: add Intel Alder Lake-N
Related to InstLatx64/InstLatx64@2f348215fb
Wikipedia page: https://en.wikipedia.org/wiki/Alder_Lake#Alder_Lake-N
2023-04-01 17:51:20 +02:00
The Tumultuous Unicorn Of Darkness
52f6cb3506
DB: add Intel Rocket Lake-E
Related to InstLatx64/InstLatx64@72b95c2260
Wikipedia page: https://en.wikipedia.org/wiki/Rocket_Lake#Server_processors
2023-04-01 17:30:07 +02:00
The Tumultuous Unicorn Of Darkness
69dc881103
DB: add Intel Raptor Lake-U
Related to InstLatx64/InstLatx64@c63a23ffe8
Wikipedia page: https://en.wikipedia.org/wiki/Raptor_Lake#Raptor_Lake-U
2023-04-01 17:24:24 +02:00
The Tumultuous Unicorn Of Darkness
ba80796d3c
DB: add Intel Raptor Lake-P
Related to InstLatx64/InstLatx64@d4a4849a90
Wikipedia page: https://en.wikipedia.org/wiki/Raptor_Lake#Raptor_Lake-P
2023-04-01 17:20:55 +02:00
The Tumultuous Unicorn Of Darkness
3071037db4
DB: add more Intel Raptor Lake-S
Related to InstLatx64/InstLatx64@d4a4849a90
According to [Wikipedia](https://en.wikipedia.org/wiki/Raptor_Lake#Desktop_processors_(Raptor_Lake-S)):
> These are likely Alder Lake processors since they do not include increased L2 caches
Source: https://www.techpowerup.com/302937/intel-launches-lower-priced-13th-gen-core-desktop-processors-with-65w
2023-04-01 17:02:40 +02:00
The Tumultuous Unicorn Of Darkness
10bebe5d44
DB: fix extended model number for Intel Core i5 Lynnfield
Reported in https://github.com/TheTumultuousUnicornOfDarkness/CPU-X/issues/276#issuecomment-1487740922
According to https://en.wikipedia.org/wiki/List_of_Intel_Core_i5_processors#%22Lynnfield%22_(45_nm), there are only 3 Lynnfield CPUs, but all of them are part of extended family 30 (0x1E), not 37.
Extended family 37 is Arrandale and Clarkdale.
2023-03-30 20:54:39 +02:00
The Tumultuous Unicorn Of Darkness
e8d31149a8
DB: add Intel Alder Lake-H, fix Alder Lake-P
According to Wikipedia (https://en.wikipedia.org/wiki/Alder_Lake#Alder_Lake-H), CPU names ending with 'H' or 'HK' are part of 'Alder Lake-H'.
Only CPU names ending with 'P' are part of 'Alder Lake-P'
2022-12-31 12:14:42 +01:00
The Tumultuous Unicorn Of Darkness
44bde9877a
DB: add Intel Alder Lake-HX
Refer to https://en.wikipedia.org/wiki/Alder_Lake#Alder_Lake-HX
2022-12-31 12:04:12 +01:00
The Tumultuous Unicorn Of Darkness
d984d4389f
DB: add Intel Pentium+Celeron for Alder Lake-S 2022-12-31 11:59:41 +01:00
The Tumultuous Unicorn Of Darkness
1977fb7131
DB: add Intel Ice Lake (Xeon-D)
Refer to InstLatx64/InstLatx64@936e7e1c80
2022-11-11 16:32:37 +01:00
Xorg
e0dce2b0ef
DB: add Intel Tremont
Fix X0rg/CPU-X#253
2022-10-29 15:41:59 +02:00
Xorg
6c9798c3b0
DB: add Intel Penryn L
Related to #176
https://www.intel.com/content/www/us/en/products/sku/41498/intel-celeron-processor-900-1m-cache-2-20-ghz-800-mhz-fsb/specifications.html
2022-10-25 22:53:16 +02:00
Xorg
008983930b
DB: add Intel Raptor Lake-S 2022-10-23 12:11:49 +02:00
Xorg
5b8d89a37d
Tests: replace converted RAW dumps from instlatx64 to AIDA64 format
Since 2b8023f733 and 6b742be8cb, it makes sense to update these tests to add:
- RAW CPUID for all CPU cores
- Number of caches instances
2022-09-22 19:36:48 +02:00
Xorg
6b742be8cb Add cache instances field in cpu_id_t and system_id_t 2022-09-22 17:49:38 +02:00
Xorg
b1732e4785
Tests: minor fixes
Since ff5aafb5f4, xeon-scalable-4114.test and qemu.test are failling because RAW came from a VM.
Since 2b8023f733, godavari-x4.test is failling due to the merge after 9710e7c0ba
2022-09-20 06:58:32 +02:00
Xorg
2b8023f733
Support for hybrid CPU (#166)
* Set CMAKE_C_FLAGS_DEBUG to display warnings during build

CI workflows are reporting warnings. Adding more C flags here help to avoid that.

* Add new types

* Add set_cpu_affinity function

* Add cpu_identify_all function

* Add cpu_request_core_type function

* Add cpuid_get_all_raw_data, cpuid_serialize_all_raw_data and cpuid_deserialize_all_raw_data functions

* Detect hybrid architecture for Intel CPUs

* Update cpuid_tool to detect all CPU logical cores

* Rename tests subdirectories for Intel Core

* Update all tests

Since e4309a6c4bc3ad875711a1599cba01a205b3103e, new fields are reported by cpuid_tool

* Add Intel Alder Lake

Fix #157

* Remove convert_instlatx64.c

This tool is not useful anymore because the cpuid_deserialize_raw_data_internal() function can natively parse them since 5667e1401c

* Fix affinity_mask computation

* Define _GNU_SOURCE in configure.ac

Forgotten in 4f80964db5

* Use dynamic raw array in cpu_raw_data_array_t

* Add cpu_affinity_mask_t type

* Improve set_cpu_affinity function

- Print a warning if logical CPU number is not supported on operating system
- Return a boolean value in case of success instead of an integer

* Improve cpu_identify_all and cpu_request_core_type functions

* Use dynamic array for cpu_types in system_id_t

This commit also adds cleanups, fixes and consistency

* Tests: update Ryzen 5 Matisse with all CPU cores

* Add affinity_mask_str_r function and address other comments

- Fixed cpuid_grow_raw_data_array and cpu_raw_data_array_t.logical_cpu_t with the correct type
- Added a note about hard limit of cpu_raw_data_array_t
- Fixed a typo in cpuid_deserialize_raw_data_internal

* Fix build on Windows
2022-09-15 18:37:08 +02:00
Xorg
0f1ad69145
DB: add Tiger Lake
https://en.wikipedia.org/wiki/Tiger_Lake
Related to X0rg/CPU-X#198
2021-05-26 06:57:04 +02:00
Xorg
167d059a6b
DB: add Rocket Lake
https://en.wikichip.org/wiki/intel/microarchitectures/rocket_lake
InstLatx64/InstLatx64@1bbddafe7b
2021-03-20 17:24:58 +01:00
Xorg
4382796761
DB: add Xeon E3 1275
Score for entry 'Bloomfield (Xeon)' is 10 with this CPU
So it does not match with entry 'Sandy Bridge (Xeon)' (also score 10)
Adding this new entry increase score to 12, and fixing this issue

Close X0rg/CPU-X#182
2021-01-28 20:24:06 +01:00
Xorg
9468598740
Tests: add Core i5 8265U (Whiskey Lake-U)
See f61e3f80db
2021-01-12 19:48:38 +01:00
Xorg
98c9b6ff53
DB: add Gemini Lake
https://en.wikichip.org/wiki/intel/cores/gemini_lake
Reported in X0rg/CPU-X#164
2020-11-14 13:45:15 +01:00
Xorg
672720c501
DB: add Comet Lake-U
https://en.wikipedia.org/wiki/Comet_Lake_(microprocessor)#U-series_(Medium_power)
Reported in X0rg/CPU-X#162
2020-11-14 13:45:14 +01:00
Xorg
4846161cfc
DB: add Kaby Lake-G
https://en.wikichip.org/wiki/intel/cores/kaby_lake_g
Test file converted from http://users.atw.hu/instlatx64/GenuineIntel/GenuineIntel00906E9_KabylakeG_CPUID.txt
2020-11-14 13:45:14 +01:00
Xorg
77dfe98a4c
DB: add Kaby Lake Refresh
https://en.wikichip.org/wiki/intel/cores/kaby_lake_r
Core i5 8250U was detected as Coffee Lake wrongly.
Reported in X0rg/CPU-X#161
2020-11-14 13:45:14 +01:00
Xorg
9abab57bdc
Fix code consistency
Result before this patch:

Checking enum `cpu_feature_t': 113 elements; max size (CPU_FLAGS_MAX=128)... OK
Checking enum `cpu_hint_t': 1 elements; max size (CPU_HINTS_MAX=16)... OK
Checking enum `cpu_sgx_feature_t': 2 elements; max size (SGX_FLAGS_MAX=14)... OK
Finding features:
..Mismatch - cpuid_main.c:688 - `AVX512VNNI' vs `avx512_vnni'
..Mismatch - cpuid_main.c:689 - `AVX512VBMI' vs `avx512_vbmi'
..Mismatch - cpuid_main.c:690 - `AVX512VBMI2' vs `avx512_vbmi2'
  cpuid_main.c: 113 features described
Found 113 total features and 113 named features
Checking whether all features have detection code... FAILED:
..No detection code for CPU_FEATURE_SSE5
2020-05-23 18:24:30 +02:00
Xorg
180154f03d
Detect AVX512VBMI and AVX512VBMI2 features on Intel CPUs
More information: https://en.wikichip.org/wiki/x86/avx-512
Resolve #134
2020-05-18 22:05:01 +02:00
Xorg
4b06a9a23e
Detect ABM feature on Intel CPUs
Resolve #144
2020-05-18 21:11:01 +02:00