Re: [PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-17 Thread Zhang, Jonathan Zhixiong
On 8/17/2015 6:05 AM, Matt Fleming wrote: On Fri, 14 Aug, at 03:37:29PM, 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

Re: [PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-17 Thread Matt Fleming
On Fri, 14 Aug, at 03:37:29PM, 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 > memmap

Re: [PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-17 Thread Matt Fleming
On Fri, 14 Aug, at 03:37:29PM, Jonathan (Zhixiong) Zhang wrote: From: Jonathan (Zhixiong) Zhang zjzh...@codeaurora.org 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

Re: [PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-17 Thread Zhang, Jonathan Zhixiong
On 8/17/2015 6:05 AM, Matt Fleming wrote: On Fri, 14 Aug, at 03:37:29PM, Jonathan (Zhixiong) Zhang wrote: From: Jonathan (Zhixiong) Zhang zjzh...@codeaurora.org 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

[PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-14 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 according to

[PATCH V2 1/2] arm64: apei: implement arch_apei_get_mem_attributes()

2015-08-14 Thread Jonathan (Zhixiong) Zhang
From: Jonathan (Zhixiong) Zhang zjzh...@codeaurora.org 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