Xorg
b067c68073
Use unsigned type instead of uint8_t as parameter for cpu_msr_driver_open_core()
2016-05-19 08:46:19 +02:00
Veselin Georgiev
14d6a9d875
Fix cpu_clock_by_ic() for Skylake (it was 1.6 times too high).
...
The reason and fix is similar to what we did previously for Bulldozer.
2016-05-19 01:37:45 +03:00
Veselin Georgiev
7b9fe29cef
Support for Skylake.
...
- Detection of hle, rtm, avx512* and sha-ni instructions
- Detection for Skylake
- Add test with Skylake i5
2016-05-19 01:37:45 +03:00
Veselin Georgiev
3a977a4f99
Add detection support for the AMD TBM instructions. Update Vishera test.
2016-05-19 01:37:45 +03:00
Xorg
c2c32a1a70
Remove unnecessary tests in cpu_rdmsr_range()
2016-05-18 20:51:13 +02:00
Xorg
85bac12db4
Drop get_bits_value()
2016-05-18 20:46:47 +02:00
Xorg
801d4c982a
Fix checking of core_num in cpu_msr_driver_open_core()
2016-05-18 18:42:11 +02:00
X0rg
aaa7e155a9
Fix some warnings
...
rdmsr.c:616:10: warning: comparison of 0 <= unsigned expression is always true [-Wtautological-compare]
if(0 <= val && val <= 7) { // Support 8 P-states
~ ^ ~~~
rdmsr.c:572:8: warning: variable 'val' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if(!multiplier)
^~~~~~~~~~~
rdmsr.c:574:8: note: uninitialized use occurs here
if(val > 0) {
^~~
rdmsr.c:572:5: note: remove the 'if' if its condition is always true
if(!multiplier)
^~~~~~~~~~~~~~~
rdmsr.c:541:14: note: initialize the variable 'val' to silence this warning
uint64_t val;
^
= 0
2 warnings generated.
2016-05-18 18:15:39 +02:00
X0rg
5272d9f060
Add MSR support for FreeBSD
...
Tested on GhostBSD (based on FreeBSD)
It should work on DragonFlyBSD (the cpuctl driver has been ported from FreeBSD)
The situation for OpenBSD and NetBSD is not clear ; not supported
2016-05-18 18:06:23 +02:00
Xorg
6c70d53a18
Do some rearrangements in rdmsr.c file
...
I need to do that to add support for FreeBSD
2016-05-18 17:18:59 +02:00
Xorg
841c975e95
Make get_bits_value() more robust
2016-05-18 16:51:38 +02:00
Xorg
1d5ac6f23f
Set cpu_rdmsr_range() and get_bits_value() as public functions
2016-05-18 16:47:06 +02:00
Xorg
9ce0158b88
Use get_bits_value() inside cpu_rdmsr_range()
2016-05-18 16:32:40 +02:00
Xorg
c9926ab6f7
Imrove cpu_rdmsr_range(), make header similar to cpu_rdmsr()
2016-05-18 14:59:55 +02:00
Xorg
b5e82df407
Add AMD support for INFO_VOLTAGE in cpu_msrinfo()
2016-05-18 14:22:24 +02:00
Veselin Georgiev
1145fdc116
Change signature of cpu_rdmsr: the msr index type changed to uint32.
2016-05-17 17:03:26 +03:00
Veselin Georgiev
f3f92402dc
Remove duplication of data in lists intel_code_t / intel_bcode_str, etc.
2016-05-17 13:28:30 +03:00
wdlkmpx
04c01ad7f9
Show intel detected brand code string
...
So that it's easier to test and debug
2016-05-17 13:08:16 +03:00
wdlkmpx
be254c30ef
Add 2 Intel P4 tests / Rename some tests/codenames
...
Rename some codenames to keep things tidy
2016-05-17 13:08:16 +03:00
Veselin Georgiev
2b5de90fa7
Merge pull request #41 from wdlkmpx/master
...
Ability to display AMD brand code; Add AMD Champlain mobile CPU to the DB.
2016-05-16 03:16:17 +03:00
wdlkmpx
061bd5986c
Ability to display AMD brand code
...
So that it's easier to test and debug
Also added AMD Champlain mobile
Processor: AMD Athlon(tm) II P320 Dual-Core Processor
2016-05-11 21:21:02 +00:00
Veselin Georgiev
756ef8c469
Merge pull request #38 from wdlkmpx/master
...
Add Arrandale mobile
2016-05-08 16:24:02 +03:00
wdlkmpx
7aa3155fc5
Add Arrandale mobile
...
Processor: Intel(R) Pentium(R) CPU P6100 @ 2.00GHz
2016-05-07 19:43:33 +00:00
Veselin Georgiev
f55168b953
Merge pull request #36 from wdlkmpx/master
...
Recognize Dual Core (Penryn) and more Core2 processors
2016-04-28 11:01:51 +03:00
wdlkmpx
4047785e97
Recognize Dual Core (Penryn) and more Core2 processors
...
By adding a new entry to the match table
There's also a new test:
Intel Pentium Dual-Core Mobile T4500
Specs:
http://www.cpu-world.com/CPUs/Pentium_Dual-Core/Intel-Pentium%20Dual-Core%20Mobile%20T4500%20AW80577GG0521MA.html
2016-04-28 00:28:07 +00:00
Veselin Georgiev
1073370613
Related to pull request #35 : Expose intel brand & model codes.
...
The detected intel brand code and model code (arbitrary numbers,
related to the detection algorithm) are printed at verbosiness level
2 or higher. You can see them with `cpuid_tool --all -vv` (if running
on an Intel CPU), or, generally, when decoding Intel CPU data, e.g.
`cpuid_tool --load=tests/intel/nehalem/bloomfield.test --all -vv`.
2016-04-26 16:29:51 +03:00
Veselin Georgiev
db6f3abc9a
Merge pull request #34 from wdlkmpx/master
...
Fix issue with HyperThreading status in old cpus
2016-04-25 01:51:24 +03:00
Veselin Georgiev
b1fb7f0d85
Merge pull request #33 from x64architecture/master
...
Fix AMD Feature Detection And Associativity Table
2016-04-25 01:46:29 +03:00
wdlkmpx
f26c1151f0
Fix issue with HyperThreading status in old cpus
...
Early P4 processors come with the HT flag, but that feature
is not enabled.
This makes it work the way it should.
2016-04-24 17:28:16 +00:00
wdlkmpx
fa9640b3a2
tests: add p4 celeron willamette-128
...
1.8GHz
Specs:
http://www.cpu-world.com/CPUs/Celeron/Intel-Celeron%201800%20-%20RK80531RC033128%20(BX80531P180G128).html
2016-04-24 17:26:44 +00:00
wdlkmpx
75c3c36cbb
tests: add intel p4 prescott with HT enabled
...
This is from a Pentium 4 Prescott 3.20GHz processor
Specs:
http://www.cpu-world.com/CPUs/Pentium_4/Intel-Pentium%204%203.2%20GHz%20-%20RK80546PG0881M%20(BX80546PG3200E).html
2016-04-24 17:26:03 +00:00
Kurt Cancemi
dea8a6006a
Fix tests
2016-04-24 00:27:42 -04:00
Kurt Cancemi
5ca7b2deee
AMD associativity table Dh should contain 96 not 92
2016-04-24 00:26:00 -04:00
Kurt Cancemi
6ea1d4c8e2
Fix PCLMULQDQ, SSE4.1, MOVBE and RDRAND detection on AMD processors
2016-04-24 00:24:31 -04:00
wdlkmpx
eb6f1a2b9a
More precise descriptions for some old processors
...
PII Celeron:
Model 5 = Celeron Covington = PII Deschutes
Model 6 = Celeron Mendocino = PII Dixon
PII Xeon:
Model 3 = Xeon ???? = PII Xeon (Klamath)
Model 5 = Xeon Drake = PII Deschutes
Model 6 = Xeon ???? = PII Xeon (Dixon)
PIII Celeron:
PIII Celeron (XX) = PIII (XX)
PIII Xeon:
Model 7 = Xeon Tanner = PIII Katmai
Model 8,10 = Xeon Cascades = PIII Coppermine
Model 11 = Xeon ??? = PIII Xeon (Tualatin)
Signed-off-by: Veselin Georgiev <anrieff@gmail.com>
2016-04-20 01:36:58 +03:00
Veselin Georgiev
b8fe2a57cf
Update Readme.md with details about testing.
2016-04-19 13:38:41 +03:00
Veselin Georgiev
d46ca6eacd
Merge pull request #30 from wdlkmpx/master
...
Pentium D: more precise descriptions
2016-04-19 13:20:02 +03:00
wdlkmpx
5f420362c6
P4 Celeron: more precise descriptions
...
According to wikipedia, cpu-world and some cpu-z screenshots, these processors
do have a code name and it's willamette, northwood, prescott or cedar mill
Signed-off-by: Veselin Georgiev <anrieff@gmail.com>
2016-04-19 00:57:11 +03:00
wdlkmpx
0dc6edf925
Pentium D: more precise descriptions
...
Basically:
Model = 4 -> Smithfield
Model = 6 -> Presler
Download this 16 cpu-z screenshots to verify (1.5mb):
http://s000.tinyupload.com/index.php?file_id=54246820652929080678
2016-04-18 19:29:09 +00:00
Veselin Georgiev
13f382725b
Fix 'make test' failing without any really wrong tests.
...
The reason was that the invocation of the cpuid_tool through the makefile
was using LD_LIBRARY_PATH=. to force link&use of the latest-build libcpuid
library. This doesn't seem to work, so using LD_PRELOAD to explicitly load
libcpuid.so into cpuid_tool.
The committed approach of course doesn't work on Mac OS X, where
make test-old should be used.
2016-03-10 02:44:17 +02:00
Veselin Georgiev
281d4720d4
Fix issue #28 : Windows Build error
...
msrdriver.c was forgotten from Makefile.am, under the assumption that
autotools are used under *nix only. This is not true, as one could use
MinGW or cygwin.
2016-03-10 01:14:37 +02:00
Veselin Georgiev
d954213667
Speed up "make test" (around 5 times).
...
The reason for the apparent slowness was that the "cpuid_tool" that
was being called from run_tests.py is actually a shell script - a
wrapper, installed by libtool. The script was heavy enough to cause
substantial overhead. Just bypassing it (by using the real
cpuid_tool binary) reduced "make test" running time from 4.1 to 0.7s
on my machine.
It is a bit hacky, though, so "make test-old" is retained, which
uses the old invocation.
2016-01-17 03:49:05 +02:00
Veselin Georgiev
76f461de59
Fix "make test" when the builddir != srcdir.
2016-01-17 03:37:23 +02:00
Veselin Georgiev
870c4b72ae
Merge pull request #27 from x64architecture/master
...
Fix X2APIC, AES, XSAVE and OSXSAVE feature detection on AMD processors
2016-01-17 03:04:05 +02:00
Kurt Cancemi
c5493f8008
Fix tests
2016-01-16 10:55:08 -05:00
Kurt Cancemi
c694397d33
Fix X2APIC, AES, XSAVE and OSXSAVE feature detection on AMD processors
2016-01-16 10:53:28 -05:00
Veselin Georgiev
78fef29bd6
Merge pull request #26 from X0rg/request
...
Recognize more AMD Trinity CPUs
2016-01-03 11:47:13 +02:00
Xorg
c1707401e5
Recognize more AMD Trinity CPUs
2016-01-02 18:45:33 +01:00
Veselin Georgiev
7c52fba506
Fix errors and warnings on Windows (tested using MSVC 2003).
2015-11-30 13:47:40 +02:00
Veselin Georgiev
535ec64dd9
Add ucbench to the users list.
2015-11-04 01:35:06 +02:00