cxl: Restore opcode order in enum cxl_opcode
[email protected]
maintainerPATCH 1/1 cxl: Restore opcode order in enum cxl_opcode
From: Alison Schofield <[email protected]>
The opcodes recently drifted out of order. Restore for readability.
Signed-off-by Alison Schofield <[email protected]>
---
This just went out of order in cxl/next w FEATURES. I only noticed while reviewing Shiju's PERFORM_MAINTENANCE patch, where 0x0600 is being inserting in the middle. Let's keep this orderly.
drivers/cxl/cxlmem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/cxl/cxlmem.h +3 -3
@@ -524,9 +524,6 @@ enum cxl_opcode {CXL_MBOX_OP_GET_LOG_CAPS =0x0402 ,CXL_MBOX_OP_CLEAR_LOG =0x0403 ,CXL_MBOX_OP_GET_SUP_LOG_SUBLIST =0x0405 , -CXL_MBOX_OP_GET_SUPPORTED_FEATURES =0x0500 , -CXL_MBOX_OP_GET_FEATURE =0x0501 , -CXL_MBOX_OP_SET_FEATURE =0x0502 ,CXL_MBOX_OP_IDENTIFY =0x4000 ,CXL_MBOX_OP_GET_PARTITION_INFO =0x4100 , CXL_MBOX_OP_SET_PARTITION_INFO = 0x4101,
@@ -551,6 +548,9 @@ enum cxl_opcode {CXL_MBOX_OP_UNLOCK =0x4503 ,CXL_MBOX_OP_FREEZE_SECURITY =0x4504 ,CXL_MBOX_OP_PASSPHRASE_SECURE_ERASE =0x4505 , +CXL_MBOX_OP_GET_SUPPORTED_FEATURES =0x0500 , +CXL_MBOX_OP_GET_FEATURE =0x0501 , +CXL_MBOX_OP_SET_FEATURE =0x0502 , CXL_MBOX_OP_MAX = 0x10000 };
base-commit: 0a14566be090ca51a32ebdd8a8e21678062dac08
Signature · 1 line
2.37.3
Quoted 10 lines · On Fri, Mar 07, 2025 at 10:12:10AM -0800, [email protected] wrote:
drivers/cxl/cxlmem.h +0
-3CXL_MBOX_OP_GET_LOG_CAPS =0x0402 ,CXL_MBOX_OP_CLEAR_LOG =0x0403 ,CXL_MBOX_OP_GET_SUP_LOG_SUBLIST =0x0405 , -CXL_MBOX_OP_GET_SUPPORTED_FEATURES =0x0500 , -CXL_MBOX_OP_GET_FEATURE =0x0501 , -CXL_MBOX_OP_SET_FEATURE =0x0502 ,CXL_MBOX_OP_IDENTIFY =0x4000 ,CXL_MBOX_OP_GET_PARTITION_INFO =0x4100 , CXL_MBOX_OP_SET_PARTITION_INFO = 0x4101,
drivers/cxl/cxlmem.h enum cxl_opcode { · line 556
Quoted 9 lines
drivers/cxl/cxlmem.h +3
-0@@ -551,6 +548,9 @@ enum cxl_opcode {CXL_MBOX_OP_UNLOCK =0x4503 ,CXL_MBOX_OP_FREEZE_SECURITY =0x4504 ,CXL_MBOX_OP_PASSPHRASE_SECURE_ERASE =0x4505 , +CXL_MBOX_OP_GET_SUPPORTED_FEATURES =0x0500 , +CXL_MBOX_OP_GET_FEATURE =0x0501 , +CXL_MBOX_OP_SET_FEATURE =0x0502 , CXL_MBOX_OP_MAX = 0x10000 };
[04, 05, 45] seems like the right ordering for an enum, is this based on spec ordering?
~Gregory
Alison Schofield
maintainerQuoted 15 lines · Gregory Price
Quoted 14 lines · On Fri, Mar 07, 2025 at 10:12:10AM -0800, [email protected] wrote:
drivers/cxl/cxlmem.h +1
-3CXL_MBOX_OP_GET_LOG_CAPS =0x0402 ,CXL_MBOX_OP_CLEAR_LOG =0x0403 ,CXL_MBOX_OP_GET_SUP_LOG_SUBLIST =0x0405 , -CXL_MBOX_OP_GET_SUPPORTED_FEATURES =0x0500 , -CXL_MBOX_OP_GET_FEATURE =0x0501 , -CXL_MBOX_OP_SET_FEATURE =0x0502 ,CXL_MBOX_OP_IDENTIFY =0x4000 ,CXL_MBOX_OP_GET_PARTITION_INFO =0x4100 , CXL_MBOX_OP_SET_PARTITION_INFO = 0x4101,@@ -551,6 +548,9 @@ enum cxl_opcode {CXL_MBOX_OP_UNLOCK =0x4503 ,CXL_MBOX_OP_FREEZE_SECURITY =0x4504 ,CXL_MBOX_OP_PASSPHRASE_SECURE_ERASE =0x4505 , + CXL_MBOX_OP_GET_SUPPORTED_FEATURES = 0x0500,
Quoted 8 lines
drivers/cxl/cxlmem.h enum cxl_opcode { · line 556
Quoted 5 lines
drivers/cxl/cxlmem.h +2
-0+CXL_MBOX_OP_GET_FEATURE =0x0501 , +CXL_MBOX_OP_SET_FEATURE =0x0502 , CXL_MBOX_OP_MAX = 0x10000 };[04, 05, 45] seems like the right ordering for an enum, is this based on spec ordering?
No - just ignore this. Adjusting my eyeglasses.
Quoted 2 lines
~Gregory