1lsmsr(8)                    System Manager's Manual                   lsmsr(8)
2
3
4

NAME

6       lsmsr - show MSR information for x86 CPUs
7
8

SYNOPSIS

10       lsmsr [-hv] [-a [-c cpu_nr] [-f family] [-l] [-r name|address] [-V ver‐
11       bosity] [MSR]
12
13

DESCRIPTION

15       lsmsr is a tool to display information for machine  specific  registers
16       of  x86  CPUs.  Following CPUs are supported: AMD family 0xf and family
17       0x10. For Intel and other AMD CPUs just a  some  common  MSRs  is  sup‐
18       ported.
19

OPTIONS

21       -a, --all
22              Show  information  for  all  MSRs known to the tool for that CPU
23              family.
24
25       -c cpu_nr, --cpu cpu_nr
26              Select CPU (by number) for which MSR information should be  dis‐
27              played (default: 0).
28
29       -f fam, --family fam
30              Specify  CPU  family.  Normally CPU family is auto-detected. You
31              can use this option to disable auto-detection, e.g.  for  debug‐
32              ging purposes.
33
34       -l, --list
35              Show definition (address, field description) of selected MSR(s).
36
37       -r name|address, --register name|address
38              Specify  MSR  (by name or address in hex) for which MSR informa‐
39              tion should be displayed.
40
41       -V num, --verbosity num
42              Select verbosity of output format (between 0 and 4, default: 0)
43
44       -h, --help
45              Print help message and exit.
46
47       -v, --version
48              Display version info and exit.
49

Examples

51
52       Show all MSRs beginning with 'MTRR' and force CPU family  to 0x10
53
54         # lsmsr -l -f 0x10 MTRR
55          MTRRcap             : 0x000000fe
56          MTRRphysBase0       : 0x00000200
57          MTRRphysMask0       : 0x00000201
58          MTRRphysBase1       : 0x00000202
59          MTRRphysMask1       : 0x00000203
60          MTRRphysBase2       : 0x00000204
61          MTRRphysMask2       : 0x00000205
62          MTRRphysBase3       : 0x00000206
63          MTRRphysMask3       : 0x00000207
64          MTRRphysBase4       : 0x00000208
65          MTRRphysMask4       : 0x00000209
66          MTRRphysBase5       : 0x0000020a
67          MTRRphysMask5       : 0x0000020b
68          MTRRphysBase6       : 0x0000020c
69          MTRRphysMask6       : 0x0000020d
70          MTRRphysBase7       : 0x0000020e
71          MTRRphysMask7       : 0x0000020f
72          MTRRfix64K_00000    : 0x00000250
73          MTRRfix16K_80000    : 0x00000258
74          MTRRfix16K_A0000    : 0x00000259
75          MTRRfix4K_C0000     : 0x00000268
76          MTRRfix4K_C8000     : 0x00000269
77          MTRRfix4K_D0000     : 0x0000026a
78          MTRRfix4K_D8000     : 0x0000026b
79          MTRRfix4K_E0000     : 0x0000026c
80          MTRRfix4K_E8000     : 0x0000026d
81          MTRRfix4K_F0000     : 0x0000026e
82          MTRRfix4K_F8000     : 0x0000026f
83          MTRRdefType         : 0x000002ff
84
85
86       Show 'MTRRcap MSR in verbose one-line mode
87
88         # lsmsr -r MTRRcap -V 1
89          MTRRcap  =  0x0000000000000508  (MtrrCapVCnt=0x8,    MtrrCapFix=0x1,
90         MtrrCapWc=0x1)
91
92
93       Show 'MTRRdefType' in verbose multi-line mode
94
95         # lsmsr -r MTRRdefType -V 3
96          MTRRdefType          = 0x0000000000000c00
97            MtrrDefMemType=0
98            MtrrDefTypeFixEn=0x1
99            MtrrDefTypeEn=0x1
100
101
102       Show  definition  of  MSR  0x200  in verbose multi-line mode (including
103       reserved fields)
104
105         # lsmsr -r 0x200 -V 4 -l
106          MTRRphysBase0: 0x00000200
107            0-7:Type
108            8-11:res
109            12-39:PhyBase
110            40-63:res
111
112
113       List all known MSRs for family 0xf
114
115         # lsmsr  -f 0xf -l -a
116          TSC                 : 0x00000010; time-stamp counter
117          APIC_BASE           : 0x0000001b; APIC base address
118
119          ...
120
121          MTRRphysBase0       : 0x00000200; base of variable MTRR (0)
122          MTRRphysMask0       : 0x00000201; mask of variable MTRR (0)
123          MTRRphysBase1       : 0x00000202; base of variable MTRR (1)
124          MTRRphysMask1       : 0x00000203; mask of variable MTRR (1)
125
126          ...
127
128          MTRRfix4K_F0000     : 0x0000026e
129          MTRRfix4K_F8000     : 0x0000026f
130          PAT                 : 0x00000277; page attribute table
131          MTRRdefType         : 0x000002ff
132
133
134

Author

136       lsmsr  and  this  manual  page  was   written   by   Andreas   Herrmann
137       <andreas.herrman3@amd.com>.
138
139       Permission  is  granted to copy, distribute and/or modify this document
140       under the terms of the GNU General Public License version 2.
141
142

REPORTING BUGS

144       Please send bug reports to <andreas.herrmann3@amd.com>.
145
146
147
148x86utils                           July 2008                          lsmsr(8)
Impressum