Commit 49898d14 authored by Weilong Chen's avatar Weilong Chen Committed by Yuan Can
Browse files

ACPI / APEI: Notify all ras err to driver

ascend inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8OX4A


CVE: NA

-------------------------------------------------

Customization deliver all types error to driver. As the driver
need to process the errors in process context.

Signed-off-by: default avatarWeilong Chen <chenweilong@huawei.com>
parent 80971b57
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -33,6 +33,13 @@ config ACPI_APEI_GHES
	  by firmware to produce more valuable hardware error
	  information for Linux.

config ACPI_APEI_GHES_NOTIFY_ALL_RAS_ERR
	bool "Notify all ras err to driver"
	depends on ARM64 && ACPI_APEI_GHES
	default n
	help
	  Deliver all types of error to driver.

config ACPI_APEI_PCIEAER
	bool "APEI PCIe AER logging/recovering support"
	depends on ACPI_APEI && PCIEAER
+7 −1
Original line number Diff line number Diff line
@@ -692,12 +692,18 @@ static bool ghes_do_proc(struct ghes *ghes,
			queued = ghes_handle_arm_hw_error(gdata, sev);
		} else {
			void *err = acpi_hest_get_payload(gdata);

#ifndef CONFIG_ACPI_APEI_GHES_NOTIFY_ALL_RAS_ERR
			ghes_defer_non_standard_event(gdata, sev);
#endif
			log_non_standard_event(sec_type, fru_id, fru_text,
					       sec_sev, err,
					       gdata->error_data_length);
		}

#ifdef CONFIG_ACPI_APEI_GHES_NOTIFY_ALL_RAS_ERR
		/* Customization deliver all types error to driver. */
		ghes_defer_non_standard_event(gdata, sev);
#endif
	}

	return queued;