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.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -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_##a | 50 | #define ___C(a, b) CXL_MEM_COMMAND_ID_##a |