diff options
| author | Shiju Jose <[email protected]> | 2025-05-21 12:47:44 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2025-05-23 20:24:38 +0000 |
| commit | 0b5ccb0de1e2cf83f18f012f0e6ba4365be9dd4b (patch) | |
| tree | 21517dff7d6580ada3eaa4f8f9fb36df7e251f2d /rust/helpers | |
| parent | cxl/edac: Add support for PERFORM_MAINTENANCE command (diff) | |
| download | kernel-0b5ccb0de1e2cf83f18f012f0e6ba4365be9dd4b.tar.gz kernel-0b5ccb0de1e2cf83f18f012f0e6ba4365be9dd4b.zip | |
cxl/edac: Support for finding memory operation attributes from the current boot
Certain operations on memory, such as memory repair, are permitted
only when the address and other attributes for the operation are
from the current boot. This is determined by checking whether the
memory attributes for the operation match those in the CXL gen_media
or CXL DRAM memory event records reported during the current boot.
The CXL event records must be backed up because they are cleared
in the hardware after being processed by the kernel.
Support is added for storing CXL gen_media or CXL DRAM memory event
records in xarrays. Old records are deleted when they expire or when
there is an overflow and which depends on platform correctly report
Event Record Timestamp field of CXL spec Table 8-55 Common Event
Record Format.
Additionally, helper functions are implemented to find a matching
record in the xarray storage based on the memory attributes and
repair type.
Add validity check, when matching attributes for sparing, using
the validity flag in the DRAM event record, to ensure that all
required attributes for a requested repair operation are valid and
set.
Reviewed-by: Dave Jiang <[email protected]>
Co-developed-by: Jonathan Cameron <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Signed-off-by: Shiju Jose <[email protected]>
Reviewed-by: Alison Schofield <[email protected]>
Acked-by: Dan Williams <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
