History

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.

Dave Jiang committed 3 years ago

Commit a072f7b1 parent abf0c834 files · +13 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/cxl_mem.h+1−0
@@ -44,6 +44,7 @@ · 43 unmodified lines
44 ___C(GET_SECURITY_STATE, "Get Security State"), \44 ___C(GET_SECURITY_STATE, "Get Security State"), \
45 ___C(SET_PASSPHRASE, "Set Passphrase"), \45 ___C(SET_PASSPHRASE, "Set Passphrase"), \
46 ___C(DISABLE_PASSPHRASE, "Disable Passphrase"), \46 ___C(DISABLE_PASSPHRASE, "Disable Passphrase"), \
47 ___C(FREEZE_SECURITY, "Freeze Security"), \
47 ___C(MAX, "invalid / last command")48 ___C(MAX, "invalid / last command")
48 49
49#define ___C(a, b) CXL_MEM_COMMAND_ID_##a50#define ___C(a, b) CXL_MEM_COMMAND_ID_##a