xref: /linux/drivers/acpi/apei/Kconfig (revision 7edda0886bc3d1e5418951558a2555af1bc73b0a)
144a69f61STomasz Nowickiconfig HAVE_ACPI_APEI
244a69f61STomasz Nowicki	bool
344a69f61STomasz Nowicki
444a69f61STomasz Nowickiconfig HAVE_ACPI_APEI_NMI
544a69f61STomasz Nowicki	bool
644a69f61STomasz Nowicki
7a643ce20SHuang Yingconfig ACPI_APEI
8a643ce20SHuang Ying	bool "ACPI Platform Error Interface (APEI)"
95d2a8342SLuck, Tony	select MISC_FILESYSTEMS
100bb77c46STony Luck	select PSTORE
117ea6c6c1SLuck, Tony	select UEFI_CPER
1244a69f61STomasz Nowicki	depends on HAVE_ACPI_APEI
13a643ce20SHuang Ying	help
14a643ce20SHuang Ying	  APEI allows to report errors (for example from the chipset)
15a643ce20SHuang Ying	  to the operating system. This improves NMI handling
16a643ce20SHuang Ying	  especially. In addition it supports error serialization and
17a643ce20SHuang Ying	  error injection.
18e4021345SHuang Ying
19d334a491SHuang Yingconfig ACPI_APEI_GHES
2086cd4733SHuang Ying	bool "APEI Generic Hardware Error Source"
2151572753STomasz Nowicki	depends on ACPI_APEI
22d334a491SHuang Ying	select ACPI_HED
2303ba176aSChen Gong	select IRQ_WORK
2467eb2e99SHuang Ying	select GENERIC_ALLOCATOR
25d334a491SHuang Ying	help
26d334a491SHuang Ying	  Generic Hardware Error Source provides a way to report
27d334a491SHuang Ying	  platform hardware errors (such as that from chipset). It
28d334a491SHuang Ying	  works in so called "Firmware First" mode, that is, hardware
29d334a491SHuang Ying	  errors are reported to firmware firstly, then reported to
30d334a491SHuang Ying	  Linux by firmware. This way, some non-standard hardware
31d334a491SHuang Ying	  error registers or non-standard hardware link can be checked
32d334a491SHuang Ying	  by firmware to produce more valuable hardware error
33d334a491SHuang Ying	  information for Linux.
34d334a491SHuang Ying
35c413d768SHuang Yingconfig ACPI_APEI_PCIEAER
36c413d768SHuang Ying	bool "APEI PCIe AER logging/recovering support"
37c413d768SHuang Ying	depends on ACPI_APEI && PCIEAER
38c413d768SHuang Ying	help
39c413d768SHuang Ying	  PCIe AER errors may be reported via APEI firmware first mode.
40c413d768SHuang Ying	  Turn on this option to enable the corresponding support.
41c413d768SHuang Ying
42*7edda088STyler Baicarconfig ACPI_APEI_SEA
43*7edda088STyler Baicar	bool "APEI Synchronous External Abort logging/recovering support"
44*7edda088STyler Baicar	depends on ARM64 && ACPI_APEI_GHES
45*7edda088STyler Baicar	default y
46*7edda088STyler Baicar	help
47*7edda088STyler Baicar	  This option should be enabled if the system supports
48*7edda088STyler Baicar	  firmware first handling of SEA (Synchronous External Abort).
49*7edda088STyler Baicar	  SEA happens with certain faults of data abort or instruction
50*7edda088STyler Baicar	  abort synchronous exceptions on ARMv8 systems. If a system
51*7edda088STyler Baicar	  supports firmware first handling of SEA, the platform analyzes
52*7edda088STyler Baicar	  and handles hardware error notifications from SEA, and it may then
53*7edda088STyler Baicar	  form a HW error record for the OS to parse and handle. This
54*7edda088STyler Baicar	  option allows the OS to look for such hardware error record, and
55*7edda088STyler Baicar	  take appropriate action.
56*7edda088STyler Baicar
57ba61ca4aSHuang Yingconfig ACPI_APEI_MEMORY_FAILURE
58ba61ca4aSHuang Ying	bool "APEI memory error recovering support"
59ba61ca4aSHuang Ying	depends on ACPI_APEI && MEMORY_FAILURE
60ba61ca4aSHuang Ying	help
61ba61ca4aSHuang Ying	  Memory errors may be reported via APEI firmware first mode.
62ba61ca4aSHuang Ying	  Turn on this option to enable the memory recovering support.
63ba61ca4aSHuang Ying
64e4021345SHuang Yingconfig ACPI_APEI_EINJ
65e4021345SHuang Ying	tristate "APEI Error INJection (EINJ)"
66e4021345SHuang Ying	depends on ACPI_APEI && DEBUG_FS
67e4021345SHuang Ying	help
68e4021345SHuang Ying	  EINJ provides a hardware error injection mechanism, it is
69e4021345SHuang Ying	  mainly used for debugging and testing the other parts of
70e4021345SHuang Ying	  APEI and some other RAS features.
712ff729d5SHuang Ying
722ff729d5SHuang Yingconfig ACPI_APEI_ERST_DEBUG
732ff729d5SHuang Ying	tristate "APEI Error Record Serialization Table (ERST) Debug Support"
742ff729d5SHuang Ying	depends on ACPI_APEI
752ff729d5SHuang Ying	help
762ff729d5SHuang Ying	  ERST is a way provided by APEI to save and retrieve hardware
7758f87ed0SLucas De Marchi	  error information to and from a persistent store. Enable this
782ff729d5SHuang Ying	  if you want to debugging and testing the ERST kernel support
792ff729d5SHuang Ying	  and firmware implementation.
80