tools/testing/cxl: Mock the Clear Poison mailbox command
authorAlison Schofield <alison.schofield@intel.com>
Wed, 19 Apr 2023 03:26:31 +0000 (20:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 23 Apr 2023 19:08:39 +0000 (12:08 -0700)
commit6ec4b6d23e3a5b653cc8b6a7b09c20c30190cfce
tree5efa470cb5a58de7ccbffe0213a7d76b75f4c31b
parent371c16101ee8a076cbe93ab95bbefdb43927003e
tools/testing/cxl: Mock the Clear Poison mailbox command

Mock the clear of poison by deleting the device:address entry from
the mock_poison_list[]. Behave like a real CXL device and do not fail
if the address is not in the poison list, but offer a dev_dbg()
message.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/ecf19743c6572e60971bbd078f67d520cf5bca5d.1681874357.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/cxl/test/mem.c