Skip to content

Commit 940325a

Browse files
Srinivasulu Thanneerudavejiang
authored andcommitted
cxl/mbox: Add Get Log Capabilities and Get Supported Logs Sub-List commands
Adding UAPI support for 1. CXL r3.1 8.2.9.5.3 Get Log Capabilities. 2. CXL r3.1 8.2.9.5.6 Get Supported Logs Sub-List. Signed-off-by: Srinivasulu Thanneeru <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dave Jiang <[email protected]>
1 parent e67572c commit 940325a

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

drivers/cxl/core/mbox.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ static struct cxl_mem_command cxl_mem_commands[CXL_MEM_COMMAND_ID_MAX] = {
5656
CXL_CMD(GET_LSA, 0x8, CXL_VARIABLE_PAYLOAD, 0),
5757
CXL_CMD(GET_HEALTH_INFO, 0, 0x12, 0),
5858
CXL_CMD(GET_LOG, 0x18, CXL_VARIABLE_PAYLOAD, CXL_CMD_FLAG_FORCE_ENABLE),
59+
CXL_CMD(GET_LOG_CAPS, 0x10, 0x4, 0),
60+
CXL_CMD(GET_SUP_LOG_SUBLIST, 0x2, CXL_VARIABLE_PAYLOAD, 0),
5961
CXL_CMD(SET_PARTITION_INFO, 0x0a, 0, 0),
6062
CXL_CMD(SET_LSA, CXL_VARIABLE_PAYLOAD, 0, 0),
6163
CXL_CMD(GET_ALERT_CONFIG, 0, 0x10, 0),

drivers/cxl/cxlmem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ enum cxl_opcode {
527527
CXL_MBOX_OP_SET_TIMESTAMP = 0x0301,
528528
CXL_MBOX_OP_GET_SUPPORTED_LOGS = 0x0400,
529529
CXL_MBOX_OP_GET_LOG = 0x0401,
530+
CXL_MBOX_OP_GET_LOG_CAPS = 0x0402,
531+
CXL_MBOX_OP_GET_SUP_LOG_SUBLIST = 0x0405,
530532
CXL_MBOX_OP_IDENTIFY = 0x4000,
531533
CXL_MBOX_OP_GET_PARTITION_INFO = 0x4100,
532534
CXL_MBOX_OP_SET_PARTITION_INFO = 0x4101,

include/uapi/linux/cxl_mem.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
___DEPRECATED(SCAN_MEDIA, "Scan Media"), \
4848
___DEPRECATED(GET_SCAN_MEDIA, "Get Scan Media Results"), \
4949
___C(GET_TIMESTAMP, "Get Timestamp"), \
50+
___C(GET_LOG_CAPS, "Get Log Capabilities"), \
51+
___C(GET_SUP_LOG_SUBLIST, "Get Supported Logs Sub-List"), \
5052
___C(MAX, "invalid / last command")
5153

5254
#define ___C(a, b) CXL_MEM_COMMAND_ID_##a

0 commit comments

Comments
 (0)