]> www.infradead.org Git - users/dwmw2/linux.git/commit
cxl/events: Fix Trace DRAM Event Record
authorShiju Jose <shiju.jose@huawei.com>
Mon, 14 Oct 2024 14:30:03 +0000 (15:30 +0100)
committerIra Weiny <ira.weiny@intel.com>
Fri, 25 Oct 2024 16:23:26 +0000 (11:23 -0500)
commit53ab8678e7180834be29cf56cd52825fc3427c02
tree72f7ee41204d63362520abf5fd9c3091136b8dbc
parentcce3cd647721dc30273f0546852b5c26820eb715
cxl/events: Fix Trace DRAM Event Record

CXL spec rev 3.0 section 8.2.9.2.1.2 defines the DRAM Event Record.

Fix decode memory event type field of DRAM Event Record.
For e.g. if value is 0x1 it will be reported as an Invalid Address
(General Media Event Record - Memory Event Type) instead of Scrub Media
ECC Error (DRAM Event Record - Memory Event Type) and so on.

Fixes: 2d6c1e6d60ba ("cxl/mem: Trace DRAM Event Record")
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Link: https://patch.msgid.link/20241014143003.1170-1-shiju.jose@huawei.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
drivers/cxl/core/trace.h