firmware: arm_sdei: Add ACPI GHES registration helper
authorJames Morse <james.morse@arm.com>
Tue, 29 Jan 2019 18:49:01 +0000 (18:49 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 11 Feb 2019 10:07:49 +0000 (11:07 +0100)
commitf96935d3bc38a5f4b5188b6470a10e3fb8c3f0cc
treeb497ba059c9fccd471f9176289dbe04907c66452
parentb972d2eaf0c7021579755eec6b2b79e0f5bc7930
firmware: arm_sdei: Add ACPI GHES registration helper

APEI's Generic Hardware Error Source structures do not describe
whether the SDEI event is shared or private, as this information is
discoverable via the API.

GHES needs to know whether an event is normal or critical to avoid
sharing locks or fixmap entries, but GHES shouldn't have to know about
the SDEI API.

Add a helper to register the GHES using the appropriate normal or
critical callback.

Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/arm64/include/asm/fixmap.h
drivers/firmware/arm_sdei.c
include/linux/arm_sdei.h