Re: [PATCH 7/8] arm64: apei: implement arch_apei_get_mem_attributes()
From: Matt Fleming <hidden>
Date: 2015-08-07 09:50:14
Also in:
lkml
From: Matt Fleming <hidden>
Date: 2015-08-07 09:50:14
Also in:
lkml
On Fri, 07 Aug, at 09:37:00AM, Matt Fleming wrote:
From: "Jonathan (Zhixiong) Zhang" <redacted> Table 8 of UEFI 2.5 section 2.3.6.1 defines mappings from EFI memory types to MAIR attribute encodings for arm64. If the physical address has memory attributes defined by EFI memmap as EFI_MEMORY_[UC|WC|WT], return approprate page protection type according to the UEFI spec. Otherwise, return PAGE_KERNEL. Reviewed-by: Catalin Marinas <redacted> Acked-by: Hanjun Guo <redacted> Signed-off-by: Jonathan (Zhixiong) Zhang <redacted> Signed-off-by: Matt Fleming <redacted> --- arch/arm64/include/asm/acpi.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
Ard Biesheuvel has brought up a concern with this patch and it's currently under discussion here, https://lkml.kernel.org/r/CAKv+Gu8+g3dTaNzXjSD=5GxproaHM+Eu1hLmRWp7cVrQimzbHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org -- Matt Fleming, Intel Open Source Technology Center