]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/test: Add Set Feature support to cxl_test
authorDave Jiang <dave.jiang@intel.com>
Fri, 7 Mar 2025 20:55:37 +0000 (13:55 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 17 Mar 2025 17:41:37 +0000 (14:41 -0300)
commit1729808c544a7edf6e8eed83e923d8082fb24512
tree0c881a8cebbbeb69afed96c3aa4a498358538158
parente77e9c1079785b64051460da4c5014481c51164a
cxl/test: Add Set Feature support to cxl_test

Add emulation to support Set Feature mailbox command to cxl_test.
The only feature supported is the device patrol scrub feature. The
set feature allows activation of patrol scrub for the cxl_test
emulated device. The command does not support partial data transfer
even though the spec allows it. This restriction is to reduce complexity
of the emulation given the patrol scrub feature is very minimal.

Link: https://patch.msgid.link/r/20250307205648.1021626-8-dave.jiang@intel.com
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Li Ming <ming.li@zohomail.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
tools/testing/cxl/test/mem.c