]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: Add page offline support for cxl memory
authorSrinivasulu Thanneeru <sthanneeru.opensrc@micron.com>
Wed, 20 Nov 2024 06:25:28 +0000 (22:25 -0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 10 Mar 2025 10:20:41 +0000 (11:20 +0100)
commit13289956fb79ed1095daa2ab27ed183fb7ee11c2
treeb9d13257e558e93a972e1f82c22692082a5547ae
parent6477ece2be6812dbcf347eea735bc771eba9e1b3
rasdaemon: Add page offline support for cxl memory

CXL Type 3 device implements a threshold for corrected errors as described in
CXL 3.1 specification section 8.2.9.2.1.2 and 8.2.9.9.11.3.
Device can set the threshold field in the DRAM event descriptor when
it detects corrected errors that meet or exceed the threshold value.

This patch is intended to offline pages for corrected memory errors when the
device sets the threshold in the DRAM event descriptor.
This helps prevent corrected errors from becoming uncorrected.

Record the hpa for given dpa, then do pageoffline for hpa when corrected
errors threshold is set.

Signed-off-by: Srinivasulu Thanneeru <sthanneeru.opensrc@micron.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-cxl-handler.c
ras-page-isolation.c
ras-page-isolation.h