diff options
author | Shiju Jose <shiju.jose@huawei.com> | 2025-02-24 14:13:40 +0300 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2025-02-26 13:14:40 +0300 |
commit | 81e42fc1d3036efd45f66c03a79654fef00ef380 (patch) | |
tree | 82225c7efa2341f3aa4f339f7f6c82eea24ab6e2 /lib/string_helpers.c | |
parent | 699ea5219c4b1d9d8819eb2d99e51a3fdb7b1d7b (diff) | |
download | linux-81e42fc1d3036efd45f66c03a79654fef00ef380.tar.xz |
EDAC: Update memory repair control interface for memory sparing feature
Update memory repair control interface for memory sparing feature.
CXL memory devices can support soft and hard memory sparing at cacheline,
row, bank and rank granularities. Memory sparing is defined as a repair
function that replaces a portion of memory with a portion of functional
memory at that same granularity.
When a CXL device detects an error in memory, it will report to the host
that there's need for a repair maintenance operation by using an event
record where the "maintenance needed" flag is set.
The event records contain the device physical address (DPA) and other
attributes of the memory to repair such as bank group, bank, rank, row,
column, channel etc.
The kernel will report the corresponding CXL general media or DRAM trace
event to userspace, and userspace tools (e.g. rasdaemon) will initiate
a repair operation in response to the device request via the sysfs
repair control.
[ bp: Massage. ]
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250212143654.1893-15-shiju.jose@huawei.com
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions