Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754198AbbHHIjb (ORCPT ); Sat, 8 Aug 2015 04:39:31 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:36433 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753945AbbHHIj1 (ORCPT ); Sat, 8 Aug 2015 04:39:27 -0400 Date: Sat, 8 Aug 2015 10:39:22 +0200 From: Ingo Molnar To: Matt Fleming Cc: Thomas Gleixner , "H. Peter Anvin" , "Jonathan (Zhixiong) Zhang" , Matt Fleming , linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, Ard Biesheuvel Subject: Re: [PATCH 7/8] arm64: apei: implement arch_apei_get_mem_attributes() Message-ID: <20150808083922.GB13912@gmail.com> References: <20150806203232.GH4332@codeblueprint.co.uk> <1438936621-5215-7-git-send-email-matt@codeblueprint.co.uk> <20150807095009.GC2625@codeblueprint.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150807095009.GC2625@codeblueprint.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1961 Lines: 47 * Matt Fleming wrote: > On Fri, 07 Aug, at 09:37:00AM, Matt Fleming 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 as EFI_MEMORY_[UC|WC|WT], return approprate page protection > > type according to the UEFI spec. Otherwise, return PAGE_KERNEL. > > > > Reviewed-by: Catalin Marinas > > Acked-by: Hanjun Guo > > Signed-off-by: Jonathan (Zhixiong) Zhang > > Signed-off-by: Matt Fleming > > --- > > 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@mail.gmail.com Ok, I applied the patches up to this point, to tip:core/efi, to get the ball rolling - and will push them out after testing: 8d446c8647c9 arm64/mm: Add PROT_DEVICE_nGnRnE and PROT_NORMAL_WT b40227fbfb1f acpi, x86: Implement arch_apei_get_mem_attributes() 7bf793115dd9 efi, x86: Rearrange efi_mem_attributes() fa5c35011a8d Revert "x86/efi: Request desired alignment via the PE/COFF headers" 248fbcd5aee0 x86/efi-bgrt: Switch pr_err() to pr_debug() for invalid BGRT 87db73aebf55 efi: Add support for EFI_MEMORY_RO attribute introduced by UEFIv2.5 Let me know when the concerns are resolved or there are other patches to add. Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/