tools/testing/cxl: Add "Get Security State" opcode support
authorDave Jiang <dave.jiang@intel.com>
Wed, 30 Nov 2022 19:21:41 +0000 (12:21 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 1 Dec 2022 20:42:35 +0000 (12:42 -0800)
commit1fa99be35ab3591fbee99b652c10ac8af131d6ee
treebec88fcd5835d8386732c4354b2b540cf0bfbd25
parent328281155539b44539e12d62803e09310d86d11f
tools/testing/cxl: Add "Get Security State" opcode support

Add the emulation support for handling "Get Security State" opcode for a
CXL memory device for the cxl_test. The function will copy back device
security state bitmask to the output payload.

The security state data is added as platform_data for the mock mem device.

Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/166983610177.2734609.4953959949148428755.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/cxl/test/mem.c