--- zzzz-none-000/linux-4.9.279/arch/x86/platform/efi/efi.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/arch/x86/platform/efi/efi.c 2023-02-08 11:43:42.000000000 +0000 @@ -28,6 +28,11 @@ * Skip non-WB memory and ignore empty memory ranges. */ + /* + * Includes Intel Corporation's changes/modifications dated: 2017. + * Changed/modified portions - Copyright (c) 2017, Intel Corporation. + */ + #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include @@ -754,8 +759,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; /*