Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932187Ab2JCM7c (ORCPT ); Wed, 3 Oct 2012 08:59:32 -0400 Received: from arkanian.console-pimps.org ([212.110.184.194]:41514 "EHLO arkanian.console-pimps.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753154Ab2JCM7b (ORCPT ); Wed, 3 Oct 2012 08:59:31 -0400 From: Matt Fleming To: linux-kernel@vger.kernel.org Cc: linux-efi@vger.kernel.org, "H. Peter Anvin" , Matthew Garrett , Jan Beulich , x86@kernel.org, Ingo Molnar , Matt Fleming Subject: [PATCH 0/3] x86/efi: Identity mapping pagetable Date: Wed, 3 Oct 2012 13:59:14 +0100 Message-Id: <1349269157-25956-1-git-send-email-matt@console-pimps.org> X-Mailer: git-send-email 1.7.11.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1961 Lines: 48 From: Matt Fleming This series upgrades real_mode_header->trampoline_pgd to a proper kernel pagetable instead of just mapping the kernel text and module space. It also inserts the physical mappings for anything we ioremap(), so I/O regions are always accessible via their physical addresses whenever this pagetable is loaded, making it a true identity mapping. These changes make it suitable for loading when calling virtual EFI runtime functions on x86-64. The main benefit of this change is to fix the ASUS firmware bug documented here, https://lkml.org/lkml/2012/8/7/108 but having our own EFI pagetable makes sense anyway. The memory map code is easily the most complicatd part of the EFI infrastructure, and it's likely that there will be other funky stuff we have to do with our memory map as more and more machines ship with various implementations of EFI firmware. Note that we only switch to the identity pagetable for x86-64. I'm unaware of any bugs like the above on 32-bit EFI platforms, but we can easily adopt the 64-bit scheme if one is discovered. Matt Fleming (2): x86, mm: Include the entire kernel memory map in trampoline_pgd x86, efi: 1:1 pagetable mapping for virtual EFI calls Xiaoyan Zhang (1): x86/kernel: remove tboot 1:1 page table creation code arch/x86/include/asm/efi.h | 28 +++++++++--- arch/x86/kernel/tboot.c | 78 +++------------------------------ arch/x86/mm/init_64.c | 9 +++- arch/x86/mm/ioremap.c | 99 ++++++++++++++++++++++++++++++++++++++++++ arch/x86/platform/efi/efi_64.c | 15 +++++++ arch/x86/realmode/init.c | 17 +++++++- 6 files changed, 163 insertions(+), 83 deletions(-) -- 1.7.11.4 -- 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/