All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme: submit nvme_admin_activate_fw to admin queue
@ 2017-06-13 21:36 David Milburn
  2017-06-14  6:27 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: David Milburn @ 2017-06-13 21:36 UTC (permalink / raw)


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.

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>
---
 drivers/nvme/host/scsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/nvme/host/scsi.c b/drivers/nvme/host/scsi.c
index 1f7671e..f4395e6 100644
--- a/drivers/nvme/host/scsi.c
+++ b/drivers/nvme/host/scsi.c
@@ -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);
 }
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] nvme: submit nvme_admin_activate_fw to admin queue
  2017-06-13 21:36 [PATCH] nvme: submit nvme_admin_activate_fw to admin queue David Milburn
@ 2017-06-14  6:27 ` Christoph Hellwig
  2017-06-15  9:15   ` Sagi Grimberg
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2017-06-14  6:27 UTC (permalink / raw)


On Tue, Jun 13, 2017@04:36:50PM -0500, David Milburn wrote:
> 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.
> 
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] nvme: submit nvme_admin_activate_fw to admin queue
  2017-06-14  6:27 ` Christoph Hellwig
@ 2017-06-15  9:15   ` Sagi Grimberg
  0 siblings, 0 replies; 3+ messages in thread
From: Sagi Grimberg @ 2017-06-15  9:15 UTC (permalink / raw)




On 14/06/17 09:27, Christoph Hellwig wrote:
> On Tue, Jun 13, 2017@04:36:50PM -0500, David Milburn wrote:
>> 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.
>>
>> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-15  9:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13 21:36 [PATCH] nvme: submit nvme_admin_activate_fw to admin queue David Milburn
2017-06-14  6:27 ` Christoph Hellwig
2017-06-15  9:15   ` Sagi Grimberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.