coreboot-kgpe-d16/util/msrtool
Anton Kochkov dd678a2e16 msrtool: Decoding for most of Intel Core 2 MSRs
Added bits/bitfields descriptions and decoding values
into intel_core2_later.c file, which describe
MSRs for Intel processors, based on later Core 2
architecture.

Change-Id: If577c8ed944afe34f86944cc03a780fba6b3dbba
Signed-off-by: Anton Kochkov <anton.kochkov@gmail.com>
Reviewed-on: http://review.coreboot.org/1171
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2013-01-28 18:36:33 +01:00
..
COPYING
Makefile.in msrtool: Add Intel Nehalem CPUs support 2012-07-10 00:57:35 +02:00
README Add Geode GX2 memmory descriptors. 2011-01-19 06:56:33 +00:00
TODO msrtool: Use libpci to let system and target probes find PCI devices. 2008-11-25 02:03:16 +00:00
configure msrtool: Update to use DirectHW on Mac OS X 2011-03-14 09:08:27 +00:00
cs5536.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
darwin.c msrtool: Update to use DirectHW on Mac OS X 2011-03-14 09:08:27 +00:00
freebsd.c msrtool: Add FreeBSD support using /dev/cpuctl ioctl interface 2009-11-28 05:21:42 +00:00
geodegx2.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
geodelx.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_core1.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_core2_early.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_core2_later.c msrtool: Decoding for most of Intel Core 2 MSRs 2013-01-28 18:36:33 +01:00
intel_nehalem.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_pentium3.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_pentium3_early.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_pentium4_early.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
intel_pentium4_later.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
k8.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
linux.c msrtool: Linux /dev/cpu/*/msr returns the low 32 bits before the high 32 bits. 2009-01-26 17:03:05 +00:00
msrtool.c msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
msrtool.h msrtool: Factor out cpuid() from target probe functions into main() 2012-07-21 17:35:46 +02:00
msrutils.c msrtool: Print hex values using only as many digits as the field needs 2010-05-17 07:40:20 +00:00
sys.c msrtool: Fix Intel CPUs detection 2012-07-10 00:56:49 +02:00

README

 
You need to be ROOT or use SUDO to execute MSRTOOL.

Note that you need /dev/cpu/*/msr available to run msrtool in Linux.


syntax: msrtool [-hvqrkl] [-c cpu] [-m system] [-t target ...]
         [-i addr=hi[:]lo] | [-s file] | [-d [:]file] | addr...
  -h     show this help text                                                                                                                  
  -v     be verbose                                                                                                                           
  -q     be quiet (overrides -v)
  -r     include [Reserved] values
  -k     list all known systems and targets
  -l     list MSRs and bit fields for current target(s) (-kl for ALL targets!)
  -c     access MSRs on the specified CPU, default=0
  -m     force a system, e.g: -m linux
  -t     force a target, can be used multiple times, e.g: -t geodelx -t cs5536
  -i     immediate mode
         decode hex addr=hi:lo for the target without reading hw value
         e.g: -i 4c00000f=f2f100ff56960004
  -s     stream mode
         read one MSR address per line and append current hw value to the line
         use the filename - for stdin/stdout
         using -l -s ignores input and will output all MSRs with values
  -d     diff mode
         read one address and value per line and compare with current hw value,
         printing differences to stdout. use the filename - to read from stdin
         use :file or :- to reverse diff, normally hw values are considered new
  addr.. direct mode, read and decode values for the given MSR address(es)


Examples:

msrtool 0x20000018

./msrtool 0x200000{18,19,1a,1b,1c,1d} 0x4c0000{0f,14}