summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-10-06Add support for decoding cache information in cpuid.4HEADmasterSøren Sandmann Pedersen1-0/+59
When cpuid.2 reports a cache descriptor of 0xff, that means cpuid.2 doesn't contain any information about caches and that instead you are supposed to find this information in cpuid.4. This patch adds support for decoding that information.
2013-05-23Add support for cache descriptor 0x76Søren Sandmann Pedersen1-0/+1
This corresponds to an ITLB for 2M/4M pages with 8 entries.
2013-04-01Make the l2l3/l3l2 tables only contain the common values.Dave Jones1-9/+9
Should solve https://bugzilla.redhat.com/show_bug.cgi?id=928889
2013-03-28fix clang unassigned variable warningDave Jones1-1/+1
2012-04-13lsmsr: Changes required for AMD Family 15h models 10h-1Fh processorsAndreas Herrmann1-1/+2
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2012-04-13x86info: Add support for AMD family 15h models 10h-1fh processorsAndreas Herrmann5-4/+26
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-12-28Fix logic bug spotted by coverityDave Jones1-3/+3
2011-12-09centralise version number to the makefile.Dave Jones5-5/+8
having to change it in several places is a recipe for failure.
2011-12-09I always miss this part. Call the $VERSION 1.30 tooDave Jones1-1/+1
2011-12-091.30Dave Jones2-2/+2
2011-11-29lsmsr: Add support for AMD cpu family 15hAndreas Herrmann4-1/+2173
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-11-29x86info: Add support for AMD CPU family 15hAndreas Herrmann4-9/+33
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-11-01mptable todoDave Jones1-0/+1
2011-10-05some more debug stuff.Dave Jones1-1/+5
2011-10-05print debug info when mptable parsing fails.Dave Jones1-15/+65
2011-09-08support old asEric Dumazet1-1/+1
/tmp/ccBWbFEv.s: Assembler messages: /tmp/ccBWbFEv.s:447: Error: suffix or operands invalid for `nop' make: *** [features.o] Error 1 # as --version GNU assembler 2.15.92.0.2 20040927 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `i386-redhat-linux'. So maybe you could hardcode "nopl (%eax)" ?
2011-08-02Make createheader.py work with python3Michael1-18/+18
As noted on the Gentoo bugzilla (https://bugs.gentoo.org/show_bug.cgi?id=367823) x86info fails to compile with python-3.
2011-08-02Add sandybridge identDave Jones1-0/+4
2011-07-28lsmsr: Add support for AMD CPU family 12hAndreas Herrmann4-1/+1700
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-07-28x86info: Add support for AMD CPU family 12hAndreas Herrmann5-0/+72
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-06-29make Git ignore new header file AMD/fam14h.hJike Song1-0/+1
Signed-off-by: Jike Song <albcamus@gmail.com>
2011-05-31lsmsr: Add support to show MSRs for which no description is providedAndreas Herrmann1-2/+6
Of course no verbose information but only the plain value of the register (if it's a valid MSR address) can be provided. Example: # lsmsr -r 0xdeadbeef -l warning: unknown MSR deadbeef unknown: 0xdeadbeef; (at your own risk) # lsmsr -r 0xdeadbeef warning: unknown MSR deadbeef could not read MSR 0xdeadbeef ((null)): Input/output error unknown = 0x0000000000000000 Artificial example (forcing use of family 0xf register description and showing PstateControl MSR on a family 0x10 CPU): # ./lsmsr -r 0xc0010062 -f 0xf warning: unknown MSR c0010062 unknown = 0x0000000000000003 Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-05-31lsmsr: Show usage if no arguments providedAndreas Herrmann1-1/+6
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-05-31lsmsr: Add AMD family 14h MSRsAndreas Herrmann3-1/+1619
Also fix dependency for lsmsr.o to force recompilation in case that a header file has changed. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-05-31x86info: Add support for AMD CPU family 14hAndreas Herrmann5-32/+116
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-05-29Only parse EBLCR if the MSR read succeededDave Jones1-2/+2
2011-05-27x86info: Fix buggy pointer arithmeticAndreas Herrmann1-6/+5
Patch 208fb9613c8c151b2885e89066a3eb22a977df6f introduced breakage on x86_64. Fix this and also replace usage of post by pre-increment to avoid potential issues with operator priority. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-29family 0x10 and 0x11 use eax too, so hoist this out of the "if fam 0xf" case.Dave Jones1-1/+1
2011-04-29fix a small leak.Dave Jones1-0/+2
2011-04-21Add Westmere-EX identDave Jones1-0/+4
2011-04-051.29Dave Jones1-1/+1
2011-04-05Revert "turn this back on now that we're back in beta"Dave Jones1-1/+1
This reverts commit 13601fa772f8525f208eb81914893d8204495a05. Turn it back off again. Need to do a release to fix lsmsr.
2011-04-05x86info, AMD: Update CPU revisionsAndreas Herrmann2-29/+16
Provide just a general model description for all family 10h CPUs. It's not possible to derive from model/family/stepping whether its an Phenom or Turion II etc. This information is provided in the processor name string. (It could be decoded from other CPUID information and with help of CPU revision guides but that's not yet implemented.) Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05x86info, AMD: powernow: Display boosted Pstate informationAndreas Herrmann2-14/+87
Fix output on systems with boosted Pstates. Indicate whether CPB is enabled. Display all Pstates (including the boosted ones). Example: Boosting enabled Number of boost states: 1 Pstate-Pb0: 3600MHz (boost state) Pstate-P0: 3200MHz (current) Pstate-P1: 2400MHz Pstate-P2: 1600MHz Pstate-P3: 800MHz In addition get rid of fid and vid information for HW Pstates. It's too CPU family specific. (Use lsmsr instead for this kind of information.) Note: this patch adds a new requirement to link x86info against libpci which usually is installed with pciutils (http://mj.ucw.cz/pciutils.html). Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05x86info, AMD: Update feature flagsAndreas Herrmann3-7/+30
See CPUID Specification, Rev. 2.34, Sept. 2010. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05x86info, AMD: Update socket type informationAndreas Herrmann3-4/+25
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05lsmsr: Update register definition for AMD family 10hAndreas Herrmann1-15/+47
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05x86info, AMD: Fix L3 cache reporting if no L3 is availableAndreas Herrmann1-7/+11
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-04-05cpuid: Fix pointer arithmeticAndreas Herrmann1-4/+4
Commit 208fb9613c8c151b2885e89066a3eb22a977df6f (Fix up aliasing warnings.) changed pointer arithmetic in one part of cpuid function from - if (eax!=0) *eax = (*(unsigned *)(buffer )); - if (ebx!=0) *ebx = (*(unsigned *)(buffer+ 4)); - if (ecx!=0) *ecx = (*(unsigned *)(buffer+ 8)); - if (edx!=0) *edx = (*(unsigned *)(buffer+12)); + if (eax!=0) *eax = *(ptr)++; + if (ebx!=0) *ebx = *(ptr)++; + if (ecx!=0) *ecx = *(ptr)++; + if (edx!=0) *edx = *(ptr); The post-increment is not equal to what was used before. This causes generation of wrong cpuid information, e.g. lsmsr fails: $ ./lsmsr -a -l CPU not (yet) supported (vendor="(unknown)", family=16, model=10) Fix this by pre-incrementing the pointer before it is dereferenced. Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
2011-03-15ignoreDave Jones1-0/+1
2011-03-15turn this back on now that we're back in betaDave Jones1-1/+1
2011-03-14Fix up aliasing warnings.Dave Jones5-11/+12
gcc has started complaining about these even if passed -fno-strict-aliasing
2011-03-141.28Dave Jones1-1/+1
2011-03-14disable this for 1.28, it's not ready.Dave Jones1-1/+1
2011-03-12Fix up the 32bit build.Dave Jones1-2/+2
Reported-by: Andre Nogueira <andre.neo.net@gmail.com>
2011-03-11Some more IDA decodingDave Jones2-2/+18
2011-03-11Remove verbosity checkDave Jones1-4/+0
we want this to print out with --msr for eg, without needing to pass --verbose too.
2011-03-08macro ideaDave Jones1-0/+1
2011-03-08Remove all the dependancy generation stuff.Dave Jones1-17/+4
The .P files really bothered me for a long time, cluttering up the directory while hacking. Things seem to build just fine without any of this stuff.
2011-03-08spacingDave Jones1-49/+49