Skip to content

RFC x86, boot: Low memory reservation fixes

H. Peter Anvin lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86, boot: Move setup_bios_corruption_check() laterarch/x86/kernel/setup.c+8 -40 replies
2/3x86, boot: Change the default for X86_RESERVE_LOW to 640K, make EXPERTarch/x86/Kconfig+22 -170 replies
3/3x86, boot: Change the BIOS corruption checker to scan 640Karch/x86/Kconfig arch/x86/kernel/check.c+16 -193 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] x86, boot: Low memory reservation fixes

From: "H. Peter Anvin" <[email protected]>

On all but the tiniest of modern systems, losing half a megabyte of RAM is a small price to pay for system stability. Thus, switch the default for low memory reservation to 640K. This has been possible, but has not been the default, since v3.9, specifically checkin:

95c9608478d6 x86, mm: Move reserving low memory later in initialization

The above checkin exposes a problem with our reservation ordering; specifically setup_bios_corruption_check() is called too early, so fix that. This caused the BIOS corruption check to run on memory that would have been reserved anyway.

Finally, change the low memory check scanner to scan 640K rather than 64K by default. The low memory check scanner will be a noop in the common case, as it now will only grab memory that is not otherwise reserved; this makes it purely a diagnostic tool.

H. Peter Anvin (3):
x86, boot: Move setup_bios_corruption_check() later
x86, boot: Change the default for X86_RESERVE_LOW to 640K, make EXPERT x86, boot: Change the BIOS corruption checker to scan 640K