summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2024-04-30 23:45:43 +0300
committerDave Jiang <dave.jiang@intel.com>2024-04-30 23:45:43 +0300
commit660c0a8679e57e9147c27962605e8f94bd520b5e (patch)
tree068cdf6ada9ae4a2bea4431b01c2276617ec8265 /include/linux
parentc26a55e513f7f1a2e77d6a76fc8b76d1fde9e8e1 (diff)
parent6aec00139d3a83e2394d4bcb0084e872b4036e8f (diff)
downloadlinux-660c0a8679e57e9147c27962605e8f94bd520b5e.tar.xz
Merge remote-tracking branch 'cxl/for-6.10/dpa-to-hpa' into cxl-for-next
Support for HPA to DPA translation for CXL events cxl_dram and cxl_general_media.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cxl-event.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/cxl-event.h b/include/linux/cxl-event.h
index 812ed16ffc2f..0f1987fe98bb 100644
--- a/include/linux/cxl-event.h
+++ b/include/linux/cxl-event.h
@@ -94,11 +94,21 @@ struct cxl_event_mem_module {
u8 reserved[0x3d];
} __packed;
+/*
+ * General Media or DRAM Event Common Fields
+ * - provides common access to phys_addr
+ */
+struct cxl_event_common {
+ struct cxl_event_record_hdr hdr;
+ __le64 phys_addr;
+} __packed;
+
union cxl_event {
struct cxl_event_generic generic;
struct cxl_event_gen_media gen_media;
struct cxl_event_dram dram;
struct cxl_event_mem_module mem_module;
+ struct cxl_event_common common;
} __packed;
/*