Skip to content

Commit 3fc808a

Browse files
committed
x86 power: define RAPL MSRs
The Run Time Average Power Limiting interface is currently model specific, present on Sandy Bridge and Ivy Bridge processors. These #defines correspond to documentation in the latest "Intel® 64 and IA-32 Architectures Software Developer Manual", plus some typos in that document corrected. Signed-off-by: Len Brown <len.brown@intel.com> Cc: x86@kernel.org
1 parent 9c63a65 commit 3fc808a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

arch/x86/include/asm/msr-index.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,29 @@
117117
#define MSR_CORE_C7_RESIDENCY 0x000003fe
118118
#define MSR_PKG_C2_RESIDENCY 0x0000060d
119119

120+
/* Run Time Average Power Limiting (RAPL) Interface */
121+
122+
#define MSR_RAPL_POWER_UNIT 0x00000606
123+
124+
#define MSR_PKG_POWER_LIMIT 0x00000610
125+
#define MSR_PKG_ENERGY_STATUS 0x00000611
126+
#define MSR_PKG_PERF_STATUS 0x00000613
127+
#define MSR_PKG_POWER_INFO 0x00000614
128+
129+
#define MSR_DRAM_POWER_LIMIT 0x00000618
130+
#define MSR_DRAM_ENERGY_STATUS 0x00000619
131+
#define MSR_DRAM_PERF_STATUS 0x0000061b
132+
#define MSR_DRAM_POWER_INFO 0x0000061c
133+
134+
#define MSR_PP0_POWER_LIMIT 0x00000638
135+
#define MSR_PP0_ENERGY_STATUS 0x00000639
136+
#define MSR_PP0_POLICY 0x0000063a
137+
#define MSR_PP0_PERF_STATUS 0x0000063b
138+
139+
#define MSR_PP1_POWER_LIMIT 0x00000640
140+
#define MSR_PP1_ENERGY_STATUS 0x00000641
141+
#define MSR_PP1_POLICY 0x00000642
142+
120143
#define MSR_AMD64_MC0_MASK 0xc0010044
121144

122145
#define MSR_IA32_MCx_CTL(x) (MSR_IA32_MC0_CTL + 4*(x))

0 commit comments

Comments
 (0)