cxl/mbox: Update sanitize opcode support
A message that is not in the archive (sent off-list or not yet received): CGME20230922130311epcas2p1ef59a510027060360e98e5c6a31a1198@epcas2p1.samsung.com
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.
Signed-off-by Jeongtae Park <[email protected]>
Signed-off-by Hojin Nam <[email protected]>
--- drivers/cxl/core/mbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/cxl/core/mbox.c +4 -1
@@ -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