OSDN Git Service

cxl/pmem: Introduce nvdimm_security_ops with ->get_flags() operation
authorDave Jiang <dave.jiang@intel.com>
Wed, 30 Nov 2022 19:21:36 +0000 (12:21 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 1 Dec 2022 00:30:47 +0000 (16:30 -0800)
commit328281155539b44539e12d62803e09310d86d11f
tree3b66920878ef4e9f65c1f26e600e034a02f9b50f
parent3b39fd6cf12ceda2a2582dcb9b9ee9f4d197b857
cxl/pmem: Introduce nvdimm_security_ops with ->get_flags() operation

Add nvdimm_security_ops support for CXL memory device with the introduction
of the ->get_flags() callback function. This is part of the "Persistent
Memory Data-at-rest Security" command set for CXL memory device support.
The ->get_flags() function provides the security state of the persistent
memory device defined by the CXL 3.0 spec section 8.2.9.8.6.1.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/166983609611.2734609.13231854299523325319.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/Makefile
drivers/cxl/core/mbox.c
drivers/cxl/cxlmem.h
drivers/cxl/pmem.c
drivers/cxl/security.c [new file with mode: 0644]
include/uapi/linux/cxl_mem.h
tools/testing/cxl/Kbuild