]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: ras-mc-ctl: Fix logging of memory event type in CXL DRAM error table
authorShiju Jose <shiju.jose@huawei.com>
Fri, 8 Nov 2024 14:43:24 +0000 (14:43 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:24:18 +0000 (11:24 +0100)
commit4360f4c424ed50269eccc9a9a512be18344eca24
treee99115c00473b9b852cb5c9558b9633a05fe602a
parent472a0ec808845e93ce1538af9adc4f5f1821b354
rasdaemon: ras-mc-ctl: Fix logging of memory event type in CXL DRAM error table

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

Fix decoding of memory event type in the CXL DRAM error table in RAS
SQLite database.
For e.g. if value is 0x1 it will be logged 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: c38c14afc5d7 ("rasdaemon: ras-mc-ctl: Add support for CXL DRAM trace 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>
util/ras-mc-ctl.in