Re: [PATCH] x86/mm/ident_map: Use full gbpages in identity maps except on UV platform.

From: Dave Hansen
Date: Fri Mar 22 2024 - 12:28:05 EST


On 3/22/24 09:21, Steve Wahl wrote:
> Some systems have ACPI tables that don't include everything that needs
> to be mapped for a successful kexec. These systems rely on identity
> maps that include the full gigabyte surrounding any smaller region
> requested for kexec success. Without this, they fail to kexec and end
> up doing a full firmware reboot.
>
> So, reduce the use of GB pages only on systems where this is known to
> be necessary (specifically, UV systems).

Isn't this called "buggy firmware"?

I'd much rather add synthetic entries to the memory maps that have this
information than hack around it by assuming that things are within a
gigabyte.