From 2d4cf5a0adabe48d8de2d345e77902686e4986fa Mon Sep 17 00:00:00 2001 From: Weilong Chen Date: Thu, 30 Sep 2021 16:19:09 +0800 Subject: [PATCH] ACPI / APEI: Notify all ras err to driver ascend inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4CMAR CVE: NA ------------------------------------------------- Customization deliver all types error to driver. As the driver need to process the errors in process context. Signed-off-by: Weilong Chen Reviewed-by: Xie XiuQi Signed-off-by: Yang Yingliang --- drivers/acpi/apei/ghes.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 08658c433b1f..73a04c0b19eb 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -580,11 +580,13 @@ static void ghes_do_proc(struct ghes *ghes, } else { void *err = acpi_hest_get_payload(gdata); - ghes_defer_non_standard_event(gdata, sev); log_non_standard_event(sec_type, fru_id, fru_text, sec_sev, err, gdata->error_data_length); } + + /* Customization deliver all types error to driver. */ + ghes_defer_non_standard_event(gdata, sev); } } -- GitLab