Skip to content

Commit a2995f7

Browse files
fdefrancrafaeljw
authored andcommitted
ACPI: extlog: Trace CPER Non-standard Section Body
ghes_do_proc() has a catch-all for unknown or unhandled CPER formats (UEFI v2.11 Appendix N 2.3), extlog_print() does not. This gap was noticed by a RAS test that injected CXL protocol errors which were notified to extlog_print() via the IOMCA (I/O Machine Check Architecture) mechanism. Bring parity to the extlog_print() path by including a similar log_non_standard_event(). Reviewed-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com> Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com> Signed-off-by: Fabio M. De Francesco <fabio.m.de.francesco@linux.intel.com> Link: https://patch.msgid.link/20260114101543.85926-2-fabio.m.de.francesco@linux.intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent b73cf7e commit a2995f7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/acpi/acpi_extlog.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@ static int extlog_print(struct notifier_block *nb, unsigned long val,
183183
if (gdata->error_data_length >= sizeof(*mem))
184184
trace_extlog_mem_event(mem, err_seq, fru_id, fru_text,
185185
(u8)gdata->error_severity);
186+
} else {
187+
void *err = acpi_hest_get_payload(gdata);
188+
189+
log_non_standard_event(sec_type, fru_id, fru_text,
190+
gdata->error_severity, err,
191+
gdata->error_data_length);
186192
}
187193
}
188194

0 commit comments

Comments
 (0)