projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca7f96c
)
x86/AMD: also print TOM2 when printing MTRR state
author
Jan Beulich
<jbeulich@suse.com>
Fri, 26 Jun 2015 13:05:50 +0000
(15:05 +0200)
committer
Jan Beulich
<jbeulich@suse.com>
Fri, 26 Jun 2015 13:05:50 +0000
(15:05 +0200)
... to have a complete picture of cachability settings.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/cpu/mtrr/generic.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/cpu/mtrr/generic.c
b/xen/arch/x86/cpu/mtrr/generic.c
index 493830b58cbaf79cb986bbd6268ad1c11251a491..935f0a0e8a8f403235294cd65c623f12fc6ad4f3 100644
(file)
--- 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(const char *level)
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("%sTOM2: %012"PRIx64"%s\n", level, tom2,
+ syscfg & (1 << 22) ? " (WB)" : "");
+ }
+ }
}
/* Some BIOS's are fucked and don't set all MTRRs the same! */