nvme: submit nvme_admin_activate_fw to admin queue
PATCH 1/1 nvme: submit nvme_admin_activate_fw to admin queue
The nvme_admin_activate_fw command should be submitted to the admin queue; otherwise, mode 0x0F (ACTIVATE_DEFERRED_MICROCODE) and mode 0x05 (DOWNLOAD_SAVE_ACTIVATE) will fail.
--- drivers/nvme/host/scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/host/scsi.c +1 -1
@@ -1231,7 +1231,7 @@ static int nvme_trans_send_activate_fw_cmd(struct nvme_ns *ns, struct sg_io_hdr c.common.opcode = nvme_admin_activate_fw; c.common.cdw10[0 ] =cpu_to_le32 (buffer_id |NVME_FWACT_REPL_ACTV ); - nvme_sc =nvme_submit_sync_cmd (ns->queue, &c,NULL ,0 ); + nvme_sc =nvme_submit_sync_cmd (ns->ctrl->admin_q, &c,NULL ,0 );return nvme_trans_status_code (hdr, nvme_sc); }
Signature · 1 line
1.8.3.1
Christoph Hellwig
maintainerPATCH 1/1 nvme: submit nvme_admin_activate_fw to admin queue
Quoted 8 lines · David Milburn
The
nvme_admin_activate_fwcommand should be submitted to the admin queue; otherwise, mode0x0F(ACTIVATE_DEFERRED_MICROCODE) and mode0x05(DOWNLOAD_SAVE_ACTIVATE) will fail.Fixes b90c48d0c11ef("nvme: split nvme_trans_send_fw_cmd")Reported-by Joseph Szczypek <joseph.szczypek at hpe.com>Tested-by Micah Parrish <micah.parrish at hpe.com>Signed-off-by David Milburn <dmilburn at redhat.com>
If this command has been broken all the time we should just remove it.
Sagi Grimberg
maintainerPATCH 1/1 nvme: submit nvme_admin_activate_fw to admin queue
Quoted 11 lines · Christoph Hellwig
Quoted 8 lines · David Milburn
The
nvme_admin_activate_fwcommand should be submitted to the admin queue; otherwise, mode0x0F(ACTIVATE_DEFERRED_MICROCODE) and mode0x05(DOWNLOAD_SAVE_ACTIVATE) will fail.Fixes b90c48d0c11ef("nvme: split nvme_trans_send_fw_cmd")Reported-by Joseph Szczypek <joseph.szczypek at hpe.com>Tested-by Micah Parrish <micah.parrish at hpe.com>Signed-off-by David Milburn <dmilburn at redhat.com>If this command has been broken all the time we should just remove it.
Agreed.