cxl/mem: Add debugfs attributes for poison inject and clear
authorAlison Schofield <alison.schofield@intel.com>
Wed, 19 Apr 2023 03:26:29 +0000 (20:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 23 Apr 2023 19:08:39 +0000 (12:08 -0700)
commit50d527f52cbf0680c87d11a254383ca730c5c19f
tree92c1294e15f4d6be88027b97a9d22c6b9f9c9fe7
parent98b6926562d9ccdbca69de9a0e0bf4f90d7f1326
cxl/mem: Add debugfs attributes for poison inject and clear

Inject and Clear Poison commands are optionally supported by CXL
memdev devices and are intended for use in debug environments only.
Add debugfs attributes for user access.

Documentation/ABI/testing/debugfs-cxl describes the usage.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/0c9ea8e671b8e58465d18722788b60d325c675c7.1681874357.git.alison.schofield@intel.com
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/debugfs-cxl [new file with mode: 0644]
drivers/cxl/mem.c