]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPI / APEI: Let the notification helper specify the fixmap slot
authorJames Morse <james.morse@arm.com>
Tue, 29 Jan 2019 18:48:52 +0000 (18:48 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Feb 2019 22:10:45 +0000 (23:10 +0100)
commitb484079b9f520cc9a0797d885f1cd7f64b72b1b2
tree05ed1f1df8add409f6d70a53142197d1d58acf6c
parent3b880cbe4df5dd78a2b2279dbe16db9d193412ca
ACPI / APEI: Let the notification helper specify the fixmap slot

ghes_copy_tofrom_phys() uses a different fixmap slot depending on in_nmi().
This doesn't work when there are multiple NMI-like notifications, that
could interrupt each other.

As with the locking, move the chosen fixmap_idx to the notification helper.
This only matters for NMI-like notifications, anything calling
ghes_proc() can use the IRQ fixmap slot as its already holding an irqsave
spinlock.

This lets us collapse the ghes_ioremap_pfn_*() helpers.

Signed-off-by: James Morse <james.morse@arm.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/apei/ghes.c