summaryrefslogtreecommitdiff
path: root/include/linux/cxl_err.h
diff options
context:
space:
mode:
authorSmita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>2022-10-28 23:09:50 +0300
committerArd Biesheuvel <ardb@kernel.org>2022-11-18 11:14:10 +0300
commit2fb6999dd06f3718dcca2cf9b11ea6c9ea9da833 (patch)
tree7dc97826d1806a9128e04c59b344508344f0b455 /include/linux/cxl_err.h
parentabdbf1a25daf42983a7becb6f6532ac7917951b0 (diff)
downloadlinux-2fb6999dd06f3718dcca2cf9b11ea6c9ea9da833.tar.xz
efi/cper, cxl: Decode CXL Error Log
Print the CXL Error Log field as found in CXL Protocol Error Section. The CXL RAS Capability structure will be reused by OS First Handling and the duplication/appropriate placement will be addressed eventually. Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'include/linux/cxl_err.h')
-rw-r--r--include/linux/cxl_err.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/cxl_err.h b/include/linux/cxl_err.h
new file mode 100644
index 000000000000..629e1bdeda44
--- /dev/null
+++ b/include/linux/cxl_err.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2022 Advanced Micro Devices, Inc.
+ *
+ * Author: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
+ */
+
+#ifndef LINUX_CXL_ERR_H
+#define LINUX_CXL_ERR_H
+
+/* CXL RAS Capability Structure, CXL v3.1 sec 8.2.4.16 */
+struct cxl_ras_capability_regs {
+ u32 uncor_status;
+ u32 uncor_mask;
+ u32 uncor_severity;
+ u32 cor_status;
+ u32 cor_mask;
+ u32 cap_control;
+ u32 header_log[16];
+};
+
+#endif //__CXL_ERR_