From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755468AbdKBKTc (ORCPT ); Thu, 2 Nov 2017 06:19:32 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57378 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755230AbdKBKTa (ORCPT ); Thu, 2 Nov 2017 06:19:30 -0400 Date: Thu, 2 Nov 2017 10:19:33 +0000 From: Will Deacon To: James Morse Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Catalin Marinas , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Borislav Petkov , "Rafael J . Wysocki" , Len Brown , Tony Luck , Tyler Baicar , Dongjiu Geng , Xie XiuQi , torvalds@linux-foundation.org Subject: Re: [RFC/RFT PATCH 0/6] Switch GHES ioremap_page_range() to use fixmap Message-ID: <20171102101933.GC11881@arm.com> References: <20171031153832.17746-1-james.morse@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171031153832.17746-1-james.morse@arm.com> 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 On Tue, Oct 31, 2017 at 03:38:26PM +0000, James Morse wrote: > GHES is doing ioremap_page_range() in both NMI and irq context, neither > are safe as it may sleep to allocate intermediate levels of page table. > > Replace the NMI/irq GHES_IOREMAP_PAGES to use a fixmap entry each. > > After this nothing uses ghes_ioremap_area or arch_apei_flush_tlb_one(), > rip them out. > > RFC as I've only build-tested this on x86. For arm64 I've tested it on a > software model. Any more testing would be welcome. These patches are based > on rc7. > > Thanks, > > James Morse (6): > arm64: fixmap: Add GHES fixmap entries > x86/mm/fixmap: Add GHES fixmap entries > ACPI / APEI: Replace ioremap_page_range() with fixmap > ACPI / APEI: Remove ghes_ioremap_area > arm64: mm: Remove arch_apei_flush_tlb_one() > ACPI / APEI: Remove arch_apei_flush_tlb_one() > > arch/arm64/include/asm/acpi.h | 12 ------ > arch/arm64/include/asm/fixmap.h | 5 +++ > arch/arm64/mm/mmu.c | 4 ++ If you need it: Acked-by: Will Deacon for the arm64 bits. Will