projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c11ca45
)
x86/mtrr: Make message for disabled MTRRs more descriptive
author
Juergen Gross
<jgross@suse.com>
Mon, 5 Dec 2022 08:04:33 +0000
(09:04 +0100)
committer
Borislav Petkov (AMD)
<bp@alien8.de>
Mon, 5 Dec 2022 10:08:25 +0000
(11:08 +0100)
Instead of just saying "Disabled" when MTRRs are disabled for any
reason, tell what is disabled and why.
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link:
https://lore.kernel.org/r/20221205080433.16643-3-jgross@suse.com
arch/x86/kernel/cpu/mtrr/mtrr.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/mtrr/mtrr.c
b/arch/x86/kernel/cpu/mtrr/mtrr.c
index 6432abccbf56d9e3b041824232f69ffc3a7f2463..783f3210d5827ecf68e5a9b97eb0a869539a9de6 100644
(file)
--- a/
arch/x86/kernel/cpu/mtrr/mtrr.c
+++ b/
arch/x86/kernel/cpu/mtrr/mtrr.c
@@
-629,6
+629,7
@@
int __initdata changed_by_mtrr_cleanup;
*/
void __init mtrr_bp_init(void)
{
+ const char *why = "(not available)";
u32 phys_addr;
phys_addr = 32;
@@
-705,12
+706,13
@@
void __init mtrr_bp_init(void)
changed_by_mtrr_cleanup = mtrr_cleanup(phys_addr);
} else {
mtrr_if = NULL;
+ why = "by BIOS";
}
}
}
if (!mtrr_enabled())
- pr_info("
Disabled\n"
);
+ pr_info("
MTRRs disabled %s\n", why
);
}
/**