--- zzzz-none-000/linux-5.15.111/arch/x86/platform/efi/efi.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/arch/x86/platform/efi/efi.c 2024-02-07 10:22:36.000000000 +0000 @@ -28,7 +28,12 @@ * Goutham Rao: * Skip non-WB memory and ignore empty memory ranges. */ - + /* + * Includes Maxlinear's changes/modifications dated: 2022. + * Changed/modified portions - Copyright (c) 2020-2022 Maxlinear, Inc. + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017-2020, Intel Corporation. + */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include @@ -626,8 +631,13 @@ * 32-bit EFI doesn't suffer from the bug that requires us to * reserve boot services regions, and mixed mode support * doesn't exist for 32-bit kernels. + * + * Intel: + * Skip this logic for Puma7. + * This will allow to free memory regions reserved previously + * by efi_reserve_boot_services(). */ - if (IS_ENABLED(CONFIG_X86_32)) + if (IS_ENABLED(CONFIG_X86_32) && !IS_ENABLED(CONFIG_X86_PUMA7)) return false; /*