tools/testing/cxl: Mock support for Get Poison List
authorAlison Schofield <alison.schofield@intel.com>
Tue, 18 Apr 2023 17:39:09 +0000 (10:39 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 23 Apr 2023 18:46:22 +0000 (11:46 -0700)
commitf8d22bf50ca56a334ef58bf59ee299ed62940e42
treef656bdb4a75ca72149817245568930a29c051c15
parent28a3ae4ff66c622448f5dfb7416bbe753e182eb4
tools/testing/cxl: Mock support for Get Poison List

Make mock memdevs support the Get Poison List mailbox command.
Return a fake poison error record when the get poison list command
is issued.

This supports testing the kernel tracing and cxl list capabilities
for media errors.

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