From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Morse Subject: [RFC/RFT PATCH 0/6] Switch GHES ioremap_page_range() to use fixmap Date: Tue, 31 Oct 2017 15:38:26 +0000 Message-ID: <20171031153832.17746-1-james.morse@arm.com> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, x86@kernel.org, Catalin Marinas , Will Deacon , 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, James Morse List-Id: linux-acpi@vger.kernel.org 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 ++ arch/x86/include/asm/fixmap.h | 4 ++ arch/x86/kernel/acpi/apei.c | 5 --- drivers/acpi/apei/ghes.c | 84 +++++++++-------------------------------- include/acpi/apei.h | 1 - 7 files changed, 30 insertions(+), 85 deletions(-) -- 2.15.0.rc2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: james.morse@arm.com (James Morse) Date: Tue, 31 Oct 2017 15:38:26 +0000 Subject: [RFC/RFT PATCH 0/6] Switch GHES ioremap_page_range() to use fixmap Message-ID: <20171031153832.17746-1-james.morse@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 ++ arch/x86/include/asm/fixmap.h | 4 ++ arch/x86/kernel/acpi/apei.c | 5 --- drivers/acpi/apei/ghes.c | 84 +++++++++-------------------------------- include/acpi/apei.h | 1 - 7 files changed, 30 insertions(+), 85 deletions(-) -- 2.15.0.rc2