From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752989AbcHOMnD (ORCPT ); Mon, 15 Aug 2016 08:43:03 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:38714 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbcHOMnB (ORCPT ); Mon, 15 Aug 2016 08:43:01 -0400 Date: Mon, 15 Aug 2016 13:42:58 +0100 From: Matt Fleming To: Alex Thorlton Cc: linux-kernel@vger.kernel.org, Russ Anderson , Dimitri Sivanich , Mike Travis , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-efi@vger.kernel.org, Dave Young , Borislav Petkov Subject: Re: [PATCH] Map in physical addresses in efi_map_region_fixed Message-ID: <20160815124258.GF30909@codeblueprint.co.uk> References: <1470441575-96065-1-git-send-email-athorlton@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470441575-96065-1-git-send-email-athorlton@sgi.com> User-Agent: Mutt/1.5.24+41 (02bc14ed1569) (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Cc'ing Boris and Dave) On Fri, 05 Aug, at 06:59:35PM, Alex Thorlton wrote: > This is a simple change to add in the physical mappings as well as the > virtual mappings in efi_map_region_fixed. The motivation here is to > get access to EFI runtime code that is only available via the 1:1 > mappings on a kexec'd kernel. > > The added call is essentially the kexec analog of the first __map_region > that Boris put in efi_map_region in commit d2f7cbe7b26a ("x86/efi: > Runtime services virtual mapping"). > > Signed-off-by: Alex Thorlton > Cc: Russ Anderson > Cc: Dimitri Sivanich > Cc: Mike Travis > Cc: Matt Fleming > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: linux-efi@vger.kernel.org > --- > arch/x86/platform/efi/efi_64.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c > index 459bcbb..b206126 100644 > --- a/arch/x86/platform/efi/efi_64.c > +++ b/arch/x86/platform/efi/efi_64.c > @@ -363,6 +363,7 @@ void __init efi_map_region(efi_memory_desc_t *md) > */ > void __init efi_map_region_fixed(efi_memory_desc_t *md) > { > + __map_region(md, md->phys_addr); > __map_region(md, md->virt_addr); > } > This looks fine to me. I'm going to run it through my tests and unless anyone complains, apply it for v4.9.