Re: [PATCH V8 4/5] arm64: apei: implement arch_apei_get_mem_attributes()

2015-07-28 Thread Zhang, Jonathan Zhixiong
On 7/27/2015 3:03 AM, Catalin Marinas wrote: On Sat, Jul 25, 2015 at 12:51:08AM +0100, Jonathan (Zhixiong) Zhang wrote: From: "Jonathan (Zhixiong) Zhang" 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 h

Re: [PATCH V8 4/5] arm64: apei: implement arch_apei_get_mem_attributes()

2015-07-27 Thread Catalin Marinas
On Sat, Jul 25, 2015 at 12:51:08AM +0100, Jonathan (Zhixiong) Zhang wrote: > From: "Jonathan (Zhixiong) Zhang" > > 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

[PATCH V8 4/5] arm64: apei: implement arch_apei_get_mem_attributes()

2015-07-24 Thread Jonathan (Zhixiong) Zhang
From: "Jonathan (Zhixiong) Zhang" 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. Otherwise, ret