Skip to content

Switch GHES ioremap_page_range() to use fixmap

James Morse linux-acpi linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm64: fixmap: Add GHES fixmap entriesarch/arm64/include/asm/fixmap.h+5 -00 replies
2/6x86/mm/fixmap: Add GHES fixmap entriesarch/x86/include/asm/fixmap.h+4 -02 replies
3/6ACPI / APEI: Replace ioremap_page_range() with fixmapdrivers/acpi/apei/ghes.c+15 -305 replies
4/6ACPI / APEI: Remove ghes_ioremap_areadrivers/acpi/apei/ghes.c+2 -371 reply
5/6arm64: mm: Remove arch_apei_flush_tlb_one()arch/arm64/include/asm/acpi.h arch/arm64/mm/mmu.c+4 -120 replies
6/6ACPI / APEI: Remove arch_apei_flush_tlb_one()arch/x86/kernel/acpi/apei.c include/acpi/apei.h+0 -61 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTyler BaicarIngo MolnarBorislav PetkovToshi KaniWill DeaconQiang Zheng
SeriesT-b T-b A-b T-b
1/6
2/6A-b
3/6R-b T-b
4/6R-b
5/6
6/6R-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 6 reviewers.

Read the v1 thread

Cover letter [RFC/RFT PATCH 0/6] 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.

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(-)
Signature · 1 line
2.15.0.rc2