Re: [PATCH v3 09/17] x86/efi: Intersect ranges_to_free with MEMBLOCK_RSRV_KERN regions

Mike Rapoport
2026-04-28T08:40:55Z

On Thu, Apr 23, 2026 at 05:20:34PM +0200, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@kernel.org>
>
> efi_mem_reserve() will mark reservations in memblock with the
> MEMBLOCK_RSRV_KERN attribute, so take this into account when building
> the ranges_to_free array. This removes the need to split EFI memory map
> entries and tag them with the EFI_MEMORY_RUNTIME attribute.
>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

> ---
> arch/x86/platform/efi/quirks.c | 44 +++++++++++++++-----
> 1 file changed, 33 insertions(+), 11 deletions(-)

--
Sincerely yours,
Mike.