tools/testing/cxl: Use injected poison for get poison list
authorAlison Schofield <alison.schofield@intel.com>
Wed, 19 Apr 2023 03:26:32 +0000 (20:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 23 Apr 2023 19:08:39 +0000 (12:08 -0700)
commit8eac7ea72593010726713c5359a4b6aedf29b6fe
tree8c1bcf2671f681340958ad2cc3281269efe085c5
parent6ec4b6d23e3a5b653cc8b6a7b09c20c30190cfce
tools/testing/cxl: Use injected poison for get poison list

Prior to poison inject support, the mock of 'Get Poison List'
returned a poison list containing a single mocked error record.

Following the addition of poison inject and clear support to the
mock driver, use the mock_poison_list[], rather than faking an
error record. Mock_poison_list[] list tracks the actual poison
inject and clear requests issued by userspace.

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