From: james.morse@arm.com (James Morse)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/4] Switch GHES ioremap_page_range() to use fixmap
Date: Mon, 6 Nov 2017 18:44:23 +0000 [thread overview]
Message-ID: <20171106184427.31905-1-james.morse@arm.com> (raw)
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(-)
--
2.15.0.rc2
next reply other threads:[~2017-11-06 18:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-06 18:44 James Morse [this message]
2017-11-06 18:44 ` [PATCH 1/4] ACPI / APEI: Replace ioremap_page_range() with fixmap James Morse
2017-11-06 18:44 ` [PATCH 2/4] ACPI / APEI: Remove ghes_ioremap_area James Morse
2017-11-06 18:44 ` [PATCH 3/4] arm64: mm: Remove arch_apei_flush_tlb_one() James Morse
2017-11-06 18:44 ` [PATCH 4/4] ACPI / APEI: " James Morse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171106184427.31905-1-james.morse@arm.com \
--to=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).