EDAC: Add support for EDAC device features control
authorShiju Jose <shiju.jose@huawei.com>
Wed, 12 Feb 2025 14:36:39 +0000 (14:36 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 25 Feb 2025 14:33:27 +0000 (15:33 +0100)
commitdb99ea5f2c0361c8fc2878792e97c7b67c811bd0
tree2596704155ce407c6aa019be83d9c74304978f50
parent0ad2507d5d93f39619fc42372c347d6006b64319
EDAC: Add support for EDAC device features control

Add generic EDAC device feature controls supporting the registration of RAS
features available in the system. The driver exposes control attributes for
these features to userspace in

  /sys/bus/edac/devices/<dev-name>/<ras-feature>

  [ bp: Touch-up documentation, simplify, make edac_dev_type static,
    fixup edac_dev_register() retvals. ]

Co-developed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Tested-by: Daniel Ferguson <danielf@os.amperecomputing.com>
Tested-by: Fan Ni <fan.ni@samsung.com>
Link: https://lore.kernel.org/r/20250212143654.1893-2-shiju.jose@huawei.com
Documentation/edac/features.rst [new file with mode: 0644]
Documentation/edac/index.rst [new file with mode: 0644]
drivers/edac/edac_device.c
include/linux/edac.h