| #
f90b7381 |
| 12-Feb-2025 |
Shiju Jose <[email protected]> |
EDAC: Add scrub control feature
Add a scrub control to manage memory scrubbers in the system.
Devices with a scrub feature register with the EDAC device driver which retrieves the scrub descriptor
EDAC: Add scrub control feature
Add a scrub control to manage memory scrubbers in the system.
Devices with a scrub feature register with the EDAC device driver which retrieves the scrub descriptor from the scrub driver and exposes the control attributes for a instance to userspace at
/sys/bus/edac/devices/<dev-name>/scrubX/.
The common sysfs scrub control interface abstracts the control of arbitrary scrubbing functionality into a common set of functions. The attribute nodes are only present if the client driver has implemented the corresponding attribute callback function and passed the operations to the device driver during registration.
[ bp: Massage commit message, docs and code, simplify text a bit. Integrate fixup for: https://lore.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> ]
Co-developed-by: Jonathan Cameron <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]> Signed-off-by: Shiju Jose <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Tested-by: Daniel Ferguson <[email protected]> Tested-by: Fan Ni <[email protected]> Link: https://lore.kernel.org/r/[email protected]
show more ...
|