[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] x86/AMD: also print TOM2 when printing MTRR state
... to have a complete picture of cachability settings. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/arch/x86/cpu/mtrr/generic.c +++ b/xen/arch/x86/cpu/mtrr/generic.c @@ -182,6 +182,18 @@ static void __init print_mtrr_state(cons else printk("%s %u disabled\n", level, i); } + + if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD + && boot_cpu_data.x86 >= 0xf) { + uint64_t syscfg, tom2; + + rdmsrl(MSR_K8_SYSCFG, syscfg); + if (syscfg & (1 << 21)) { + rdmsrl(MSR_K8_TOP_MEM2, tom2); + printk("TOM2: %012"PRIx64"%s\n", tom2, + syscfg & (1 << 22) ? " (WB)" : ""); + } + } } /* Some BIOS's are fucked and don't set all MTRRs the same! */ Attachment:
x86-AMD-print-TOM2.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |