Skip to contentSkip to conversation

cxl/mbox: Update sanitize opcode support

RFC PATCH In review Jeongtae Park 1 participant 1 message Sep 22, 2023 1 message not in the archive CXL

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20230922130311epcas2p1ef59a510027060360e98e5c6a31a1198@epcas2p1.samsung.com

#1 lore raw

RFC PATCH 2/3 cxl/mbox: Update sanitize opcode support

This patch adds bgmode to the existing sanitize command. By adding it, the sanitize operation will work the same as before.

---
 drivers/cxl/core/mbox.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/cxl/core/mbox.c +4 -1
index d6d067fbee97..2a7c12950a1e 100644
@@ -1106,7 +1106,10 @@ int cxl_mem_sanitize(struct cxl_memdev_state *mds, u16 cmd)
 		.payload_out = &out,
 		.size_out = sizeof(out),
 	};
-	struct cxl_mbox_cmd mbox_cmd = { .opcode = cmd };
+	struct cxl_mbox_cmd mbox_cmd = {
+		.opcode = cmd,
+		.bg_mode = CXL_BG_CMD_ASYNC_INT,
+	};
 	struct cxl_dev_state *cxlds = &mds->cxlds;
 
 	if (cmd != CXL_MBOX_OP_SANITIZE && cmd != CXL_MBOX_OP_SECURE_ERASE)
Signature · 1 line
2.34.1