diff options
author | Dave Jiang <dave.jiang@intel.com> | 2022-11-30 12:22:10 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-12-01 12:42:35 -0800 |
commit | a072f7b7972fd85bdefefa1d6febec483438d420 (patch) | |
tree | 2b703ed3bd7b49e167ded7aeeaeb2548099429ba /include/uapi | |
parent | abf0c8380a487d050da58e344635f4e96dd3c467 (diff) | |
download | linux-a072f7b7972fd85bdefefa1d6febec483438d420.tar.bz2 |
cxl/pmem: Add "Freeze Security State" security command support
Create callback function to support the nvdimm_security_ops() ->freeze()
callback. Translate the operation to send "Freeze Security State" security
command for CXL memory device.
See CXL rev3.0 spec section 8.2.9.8.6.5 for reference.
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/166983613019.2734609.10645754779802492122.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/cxl_mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/cxl_mem.h b/include/uapi/linux/cxl_mem.h index f6d383a80f22..7c0adcd68f4c 100644 --- a/include/uapi/linux/cxl_mem.h +++ b/include/uapi/linux/cxl_mem.h @@ -44,6 +44,7 @@ ___C(GET_SECURITY_STATE, "Get Security State"), \ ___C(SET_PASSPHRASE, "Set Passphrase"), \ ___C(DISABLE_PASSPHRASE, "Disable Passphrase"), \ + ___C(FREEZE_SECURITY, "Freeze Security"), \ ___C(MAX, "invalid / last command") #define ___C(a, b) CXL_MEM_COMMAND_ID_##a |