From: Xiaofei Tan tanxiaofei@huawei.com
driver inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IAO2AR CVE: NA
--------------------------------
Add ABI document for driver hisi_mem_ras in the place: drivers/soc/hisilicon/hisi_mem_ras.*
Signed-off-by: Xiaofei Tan tanxiaofei@huawei.com Signed-off-by: Junhao He hejunhao3@huawei.com --- .../sysfs-devices-platform-hisi_mem_ras | 41 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 42 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-platform-hisi_mem_ras
diff --git a/Documentation/ABI/testing/sysfs-devices-platform-hisi_mem_ras b/Documentation/ABI/testing/sysfs-devices-platform-hisi_mem_ras new file mode 100644 index 000000000000..4a1a1e40e450 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-devices-platform-hisi_mem_ras @@ -0,0 +1,41 @@ +What: /sys/devices/platform/HISI0521:00/memory_type +What: /sys/devices/platform/HISI0521:00/memory_type_supported +What: /sys/devices/platform/HISI0521:00/acls_query +What: /sys/devices/platform/HISI0521:00/acls_repair +What: /sys/devices/platform/HISI0521:00/sppr_query +What: /sys/devices/platform/HISI0521:00/sppr_repair +Date: July 2024 +KernelVersion: 6.11 +Contact: Xiaofei Tan tanxiaofei@huawei.com +Description: + The /sys/devices/platform/HISI0521:00/ directory contains + some attributes about memory repair capability query and execute. + + There are following attributes in this directory: + + ================= ==== ========================================= + memory_type: (RO) memory type the device managed. + memory_type_supported: (RO) all memory type device the driver supports. + acls_query: (WO) write with physical address to check if the + address support ACLS repair. + fails with -EINVAL if input parsing fails. + fails with -EIO if PCC message excution failed. + fails with -ENXIO if the address doesn't belong this device. + fails with -ENOSPC if no ACLS resource left for this address. + acls_repair: (WO) write with physical address to do ACLS repair. + fails with -EINVAL if input parsing fails. + fails with -EIO if PCC message excution failed. + fails with -ENXIO if the address doesn't belong this device. + fails with -ENOSPC if no ACLS resource left for this address. + sppr_query: (WO) write with physical address to check if the + address support sPPR repair. + fails with -EINVAL if input parsing fails. + fails with -EIO if PCC message excution failed. + fails with -ENXIO if the address doesn't belong this device. + fails with -ENOSPC if no ACLS resource left for this address. + sppr_repair: (WO) write with physical address to do sPPR repair. + fails with -EINVAL if input parsing fails. + fails with -EIO if PCC message excution failed. + fails with -ENXIO if the address doesn't belong this device. + fails with -ENOSPC if no ACLS resource left for this address. + ================= ==== ========================================= diff --git a/MAINTAINERS b/MAINTAINERS index e0d9f78c75d1..e15f6cc90b64 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7955,6 +7955,7 @@ F: drivers/soc/hisilicon/kunpeng_hccs.h HISILICON KUNPENG SOC MEMORY RAS DRIVER M: Xiaofei Tan tanxiaofei@huawei.com S: Maintained +F: Documentation/ABI/testing/sysfs-devices-platform-hisi_mem_ras F: drivers/soc/hisilicon/hisi_mem_ras.c F: drivers/soc/hisilicon/hisi_mem_ras.h