summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-12-06 07:22:44 +0300
committerDan Williams <dan.j.williams@intel.com>2022-12-07 01:36:02 +0300
commit7fe898041fb0c8e630504ecc2cb8805651ac85c1 (patch)
tree1155178b662404c422d9e3bb0760c97eb58eb123 /include
parent2aeaf663b85e436dc6287692b7561ffbf0aa4381 (diff)
downloadlinux-7fe898041fb0c8e630504ecc2cb8805651ac85c1.tar.xz
cxl/security: Drop security command ioctl uapi
CXL PMEM security operations are routed through the NVDIMM sysfs interface. For this reason the corresponding commands are marked "exclusive" to preclude collisions between the ioctl ABI and the sysfs ABI. However, a better way to preclude that collision is to simply remove the ioctl ABI (command-id definitions) for those operations. Now that cxl_internal_send_cmd() (formerly cxl_mbox_send_cmd()) no longer needs to talk the cxl_mem_commands array, all of the uapi definitions for the security commands can be dropped. These never appeared in a released kernel, so no regression risk. Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://lore.kernel.org/r/167030056464.4044561.11486507095384253833.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/cxl_mem.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/uapi/linux/cxl_mem.h b/include/uapi/linux/cxl_mem.h
index 82bdad4ce5de..c71021a2a9ed 100644
--- a/include/uapi/linux/cxl_mem.h
+++ b/include/uapi/linux/cxl_mem.h
@@ -41,12 +41,6 @@
___C(GET_SCAN_MEDIA_CAPS, "Get Scan Media Capabilities"), \
___C(SCAN_MEDIA, "Scan Media"), \
___C(GET_SCAN_MEDIA, "Get Scan Media Results"), \
- ___C(GET_SECURITY_STATE, "Get Security State"), \
- ___C(SET_PASSPHRASE, "Set Passphrase"), \
- ___C(DISABLE_PASSPHRASE, "Disable Passphrase"), \
- ___C(FREEZE_SECURITY, "Freeze Security"), \
- ___C(UNLOCK, "Unlock"), \
- ___C(PASSPHRASE_SECURE_ERASE, "Passphrase Secure Erase"), \
___C(MAX, "invalid / last command")
#define ___C(a, b) CXL_MEM_COMMAND_ID_##a