]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: cxl: Fix logging of memory event type of DRAM trace event
authorShiju Jose <shiju.jose@huawei.com>
Fri, 1 Nov 2024 16:38:26 +0000 (16:38 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:22:42 +0000 (11:22 +0100)
commit3936eff7790c9882cd8cb6bdc6f6e3543e25767e
treefa1ce040f6870eca906fca73005b86e75b5d0f0f
parentc4cee52ef7392a259cf76bc24a7aeefaf276cdfb
rasdaemon: cxl: Fix logging of memory event type of DRAM trace event

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

Fix logging of memory event type field of DRAM trace event.
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: 9a2f6186db26 ("rasdaemon: Add support for the CXL dram events")
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-cxl-handler.c