[PATCH RFC 3/6] efi: Add EFI_MEMORY_ISA_{MASK,VALID}
Sven Peter <[email protected]> Wed, 08 Jul 2026 09:15:39 +0200
| Newsgroups | org.kernel.vger.linux-efi,dev.linux.lists.asahi,org.infradead.lists.linux-arm-kernel,org.kernel.feeds.b4-sent,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
As defined in UEFI 2.10, Section 7.2.3 [1], if EFI_MEMORY_ISA_VALID is set the memory region is to be mapped using ISA-specific cacheability attributes found in EFI_MEMORY_ISA_MASK. On AArch64, these bits are e.g. defined as the attributes stored in MAIR [2]. [1] https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html#efi-boot-services-getmemorymap [2] https://uefi.org/specs/UEFI/2.10/02_Overview.html#memory-types Signed-off-by: Sven Peter <[email protected]> --- include/linux/efi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/efi.h b/include/linux/efi.h index f3db3a18b540..882148114068 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -128,6 +128,8 @@ typedef struct { #define EFI_MEMORY_SP BIT_ULL(18) /* soft reserved */ #define EFI_MEMORY_CPU_CRYPTO BIT_ULL(19) /* supports encryption */ #define EFI_MEMORY_HOT_PLUGGABLE BIT_ULL(20) /* supports unplugging at runtime */ +#define EFI_MEMORY_ISA_MASK GENMASK_ULL(59, 44) /* ISA-specific attributes */ +#define EFI_MEMORY_ISA_VALID BIT_ULL(62) /* EFI_MEMORY_ISA_MASK bits are valid */ #define EFI_MEMORY_RUNTIME BIT_ULL(63) /* range requires runtime mapping */ #define EFI_MEMORY_DESCRIPTOR_VERSION 1 -- 2.55.0