Skip to content

Switch GHES ioremap_page_range() to use fixmap

James Morse linux-acpi linux-arm-kernel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Changes since RFC from the cover letter

* Added #ifdefs around the entries in fixmap.h
* Added a paragraph about HAVE_ACPI_APEI to the commit message
* Merged the first three patches for improved history

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI / APEI: Replace ioremap_page_range() with fixmaparch/arm64/include/asm/fixmap.h arch/x86/include/asm/fixmap.h drivers/acpi/apei/ghes.c+28 -300 replies
2/4ACPI / APEI: Remove ghes_ioremap_areadrivers/acpi/apei/ghes.c+2 -370 replies
3/4arm64: mm: Remove arch_apei_flush_tlb_one()arch/arm64/include/asm/acpi.h arch/arm64/mm/mmu.c+4 -120 replies
4/4ACPI / APEI: Remove arch_apei_flush_tlb_one()arch/x86/kernel/acpi/apei.c include/acpi/apei.h+0 -60 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBorislav PetkovTyler BaicarToshi KaniWill DeaconIngo Molnar
1/4R-b T-b T-b A-b A-b
2/4R-b T-b
3/4T-b A-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/4] Switch GHES ioremap_page_range() to use fixmap

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.

This hasn't been tested on a system with x86's NOTIFY_NMI. Any more more testing would be welcome. These patches are (still) based on rc7.

Changes since RFC:
* Added #ifdefs around the entries in fixmap.h
* Added a paragraph about HAVE_ACPI_APEI to the commit message
* Merged the first three patches for improved history

I've tried to be clear with who-acked-what when merging the patches. For reference, the arch-acks are here:
https://lkml.org/lkml/2017/11/2/254
https://lkml.org/lkml/2017/10/31/780

Thanks,

James Morse (4):
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 |  7 ++++
 arch/arm64/mm/mmu.c             |  4 ++
 arch/x86/include/asm/fixmap.h   |  6 +++
 arch/x86/kernel/acpi/apei.c     |  5 ---
 drivers/acpi/apei/ghes.c        | 84 +++++++++--------------------------------
 include/acpi/apei.h             |  1 -
 7 files changed, 34 insertions(+), 85 deletions(-)
Signature · 1 line
2.15.0.rc2