From patchwork Tue Oct 31 15:38:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Morse X-Patchwork-Id: 10034811 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C06D60291 for ; Tue, 31 Oct 2017 15:43:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D51028BDC for ; Tue, 31 Oct 2017 15:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11C2D28BED; Tue, 31 Oct 2017 15:43:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7D79E28BDC for ; Tue, 31 Oct 2017 15:43:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=3uInlzOXex17X2m+JvaYmM4D95k2TT4nZCY3XFLAM6k=; b=oGP59cy5DW1oskydFmJkivjmzU Sz+wjT2RJp68lcIORl5K0BhU3xVaDRQxMF/4lI88oFRDzcXnTEyX3JzHb4AB6EbHNl7+Yk6rZ5DDC nvd6hXdT2JJ+44HmoUf6vMFS0YzQ2UwV3LWdIq61gjC+M5Gkr2VHwY/0jE0Il0/C5GfCfgYPLvxYT l9qAJUnf8EVNJFAKb7O1Qo7r/KEUiqrjMV0bHPwF2i0dIa6w+FS6BMmPUGhHw2/0WjH9OqrJLM9tO 6oZ0hO/+apJiFaTzwy7LEhUyawepCYhzTFYPlYCZqYLt8cuReoz5Ya2MMW+KUL3gSikv8vW5KaVgk vVXXcluQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e9Ygt-0006Eh-FK; Tue, 31 Oct 2017 15:42:59 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e9Yeu-0004q9-Ov for linux-arm-kernel@lists.infradead.org; Tue, 31 Oct 2017 15:41:05 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0FF3E15AD; Tue, 31 Oct 2017 08:40:39 -0700 (PDT) Received: from melchizedek.cambridge.arm.com (melchizedek.cambridge.arm.com [10.1.207.55]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 13EE03F24A; Tue, 31 Oct 2017 08:40:35 -0700 (PDT) From: James Morse To: linux-acpi@vger.kernel.org Subject: [RFC/RFT PATCH 2/6] x86/mm/fixmap: Add GHES fixmap entries Date: Tue, 31 Oct 2017 15:38:28 +0000 Message-Id: <20171031153832.17746-3-james.morse@arm.com> X-Mailer: git-send-email 2.15.0.rc2 In-Reply-To: <20171031153832.17746-1-james.morse@arm.com> References: <20171031153832.17746-1-james.morse@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171031_084057_342986_9AA8931D X-CRM114-Status: UNSURE ( 6.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Rafael J . Wysocki" , Tony Luck , Xie XiuQi , Tyler Baicar , Catalin Marinas , x86@kernel.org, Will Deacon , linux-kernel@vger.kernel.org, Dongjiu Geng , Ingo Molnar , James Morse , "H . Peter Anvin" , Thomas Gleixner , Borislav Petkov , torvalds@linux-foundation.org, linux-arm-kernel@lists.infradead.org, Len Brown MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP GHES is switching to use fixmap for its dynamic mapping of CPER records, to avoid using ioremap_page_range() in IRQ/NMI context. Signed-off-by: James Morse Acked-by: Ingo Molnar --- arch/x86/include/asm/fixmap.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/x86/include/asm/fixmap.h b/arch/x86/include/asm/fixmap.h index dcd9fb55e679..be3cc32db7f0 100644 --- a/arch/x86/include/asm/fixmap.h +++ b/arch/x86/include/asm/fixmap.h @@ -104,6 +104,10 @@ enum fixed_addresses { FIX_GDT_REMAP_BEGIN, FIX_GDT_REMAP_END = FIX_GDT_REMAP_BEGIN + NR_CPUS - 1, + /* Used for GHES mapping from assorted contexts */ + FIX_APEI_GHES_IRQ, + FIX_APEI_GHES_NMI, + __end_of_permanent_fixed_addresses, /*