ACPI / APEI: Add a notifier chain for unknown (vendor) CPER records
authorShiju Jose <shiju.jose@huawei.com>
Thu, 3 Sep 2020 12:34:55 +0000 (13:34 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 16 Sep 2020 09:30:42 +0000 (10:30 +0100)
commit9aa9cf3ee9451d08adafc03cef8e44c7ea3898e7
treeb5287f1db7de74fc23ddd7443839cd192f0169b3
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
ACPI / APEI: Add a notifier chain for unknown (vendor) CPER records

CPER records describing a firmware-first error are identified by GUID.
The ghes driver currently logs, but ignores any unknown CPER records.
This prevents describing errors that can't be represented by a standard
entry, that would otherwise allow a driver to recover from an error.
The UEFI spec calls these 'Non-standard Section Body' (N.2.3 of
version 2.8).

Add a notifier chain for these non-standard/vendor-records. Callers
must identify their type of records by GUID.

Record data is copied to memory from the ghes_estatus_pool to allow
us to keep it until after the notifier has run.

Co-developed-by: James Morse <james.morse@arm.com>
Link: https://lore.kernel.org/r/20200903123456.1823-2-shiju.jose@huawei.com
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: "Rafael J. Wysocki" <rjw@rjwysocki.net>
drivers/acpi/apei/ghes.c
include/acpi/ghes.h