Skip to content

Commit 3814bf0

Browse files
committed
x86/boot/e820: Simplify the PPro Erratum #50 workaround
No need to print out the table - users won't really be able to tell much from it anyway and the messages around this erratum are unnecessarily obtuse. Instead clearly inform the user that a 256 kB hole is being punched in their memory map at the 1.75 GB physical address. Not that there are many PPro users left. :-) Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: H . Peter Anvin <hpa@zytor.com> Cc: Andy Shevchenko <andy@kernel.org> Cc: Arnd Bergmann <arnd@kernel.org> Cc: David Woodhouse <dwmw@amazon.co.uk> Cc: Juergen Gross <jgross@suse.com> Cc: Kees Cook <keescook@chromium.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Rapoport <rppt@kernel.org> Cc: Paul Menzel <pmenzel@molgen.mpg.de> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://patch.msgid.link/20250515120549.2820541-4-mingo@kernel.org
1 parent 0bb4a8b commit 3814bf0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

arch/x86/kernel/setup.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,11 +1015,9 @@ void __init setup_arch(char **cmdline_p)
10151015
trim_bios_range();
10161016
#ifdef CONFIG_X86_32
10171017
if (ppro_with_ram_bug()) {
1018-
e820__range_update(0x70000000ULL, 0x40000ULL, E820_TYPE_RAM,
1019-
E820_TYPE_RESERVED);
1018+
pr_info("Applying PPro RAM bug workaround: punching 256 kB hole at 1.75 GB physical.\n");
1019+
e820__range_update(0x70000000ULL, SZ_256K, E820_TYPE_RAM, E820_TYPE_RESERVED);
10201020
e820__update_table(e820_table);
1021-
printk(KERN_INFO "fixed physical RAM map:\n");
1022-
e820__print_table("bad_ppro");
10231021
}
10241022
#else
10251023
early_gart_iommu_check();

0 commit comments

Comments
 (0)