Skip to content

Commit 833e78b

Browse files
Yinghai LuKAGA-KOKO
authored andcommitted
x86: process fam 10h like k8 with fixed mtrr setting
otherwise fixed MTRR for family 10h may not be changed. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 12031a6 commit 833e78b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/kernel/cpu/mtrr/generic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static void set_fixed_range(int msr, bool *changed, unsigned int *msrwords)
342342

343343
if (lo != msrwords[0] || hi != msrwords[1]) {
344344
if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
345-
boot_cpu_data.x86 == 15 &&
345+
(boot_cpu_data.x86 >= 0x0f && boot_cpu_data.x86 <= 0x11) &&
346346
((msrwords[0] | msrwords[1]) & K8_MTRR_RDMEM_WRMEM_MASK))
347347
k8_enable_fixed_iorrs();
348348
mtrr_wrmsr(msr, msrwords[0], msrwords[1]);

0 commit comments

Comments
 (0)