Skip to contentSkip to conversation

nvme: Fix command timeouts

PATCH In review Alexey Charkov 3 participants 11 messages Nov 13 – Nov 20

lore
Share & tools
lore
#0 lore raw

cover nvme: Fix command timeouts

A Rock 5B with a Kingston NV-series disk does not boot from it, because the disk takes up to 3.2s to complete its first read after power-on.

The driver means to wait 30s for I/O commands, as Linux does, but scales the timeout by tenths of a second, so it gives up after 3s and the GPT probe fails. The completion then posted for the timed-out read is mistaken for the completion of the next command, the DOS probe of the same sector, which then sees the protective MBR and records the disk as a single DOS partition of type 0xee. From then on, every command gets the completion of the one before it.

The first patch makes the timeouts the seconds they were meant to be. The second moves consuming a completion queue entry into a helper, which the third then uses to discard a late completion instead of handing it to the next command, so a command that does time out no longer desynchronises the queue.

Tested on a Rock 5B: with this series applied, the disk is detected as GPT and the EFI bootflow boots from it.

CI for this series: https://git.u-boot-project.org/u-boot/contributors/alchark/u-boot/-/pipelines/2016

---
Alexey Charkov (3):
nvme: Wait for commands in seconds, not tenths of seconds
nvme: Consume completion queue entries in one place
nvme: Drop late completions of commands that timed out

 drivers/nvme/nvme.c | 59 +++++++++++++++++++++++++++++++----------------------
 1 file changed, 35 insertions(+), 24 deletions(-)

---
base-commit: ff8a9bc41e4e5bdd3406932af5abb4c18064e539
change-id: 20261113-nvme-fixes-920d0fdfe289

Best regards,

Signature · 1 line
Alexey Charkov <[email protected]>
#1 lore raw

PATCH 1/3 nvme: Wait for commands in seconds, not tenths of seconds

ADMIN_TIMEOUT and IO_TIMEOUT match the admin and I/O command timeouts of the Linux driver, 60 and 30 seconds, but nvme_submit_sync_cmd() scales them by 100000us, so commands time out after 6 and 3 seconds instead.

That is too short for some drives. A Kingston NV-series disk on a Rock 5B takes 3.1-3.2s to complete its first read after power-on, so the GPT probe of LBA 0 times out, and the disk is never seen as GPT and offers nothing to boot from.

Scale the timeouts by USEC_PER_SEC, so they are the seconds their values intend.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
 drivers/nvme/nvme.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/nvme/nvme.c +4 -3
index c815a9671374..2063c73f9d85 100644
@@ -15,6 +15,7 @@
 #include <time.h>
 #include <dm/device-internal.h>
 #include <linux/compat.h>
+#include <linux/time.h>
 #include "nvme.h"
 
 #define NVME_Q_DEPTH		2
@@ -23,8 +24,8 @@
 #define NVME_CQ_SIZE(depth)	(depth * sizeof(struct nvme_completion))
 #define NVME_CQ_ALLOCATION	ALIGN(NVME_CQ_SIZE(NVME_Q_DEPTH), \
 				      ARCH_DMA_MINALIGN)
-#define ADMIN_TIMEOUT		60
-#define IO_TIMEOUT		30
+#define ADMIN_TIMEOUT		60	/* seconds */
+#define IO_TIMEOUT		30	/* seconds */
 #define MAX_PRP_POOL		512
 
 /**
@@ -191,7 +192,7 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 	u16 phase = nvmeq->cq_phase;
 	u16 status;
 	ulong start_time;
-	ulong timeout_us = timeout * 100000;
+	ulong timeout_us = timeout * USEC_PER_SEC;
 
 	cmd->common.command_id = nvme_get_cmd_id();
 	nvme_submit_cmd(nvmeq, cmd);
Signature · 1 line
2.56.0
Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] nvme: Wait for commands in seconds, not tenths of seconds

Quoted 43 lines · Alexey Charkov

ADMIN_TIMEOUT and IO_TIMEOUT match the admin and I/O command timeouts of the Linux driver, 60 and 30 seconds, but nvme_submit_sync_cmd() scales them by 100000us, so commands time out after 6 and 3 seconds instead.

That is too short for some drives. A Kingston NV-series disk on a Rock 5B takes 3.1-3.2s to complete its first read after power-on, so the GPT probe of LBA 0 times out, and the disk is never seen as GPT and offers nothing to boot from.

Scale the timeouts by USEC_PER_SEC, so they are the seconds their values intend.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
  drivers/nvme/nvme.c | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
drivers/nvme/nvme.c +3 -2
index c815a9671374..2063c73f9d85 100644
@@ -15,6 +15,7 @@
  #include <time.h>
  #include <dm/device-internal.h>
  #include <linux/compat.h>
+#include <linux/time.h>
  #include "nvme.h"
 
  #define NVME_Q_DEPTH		2
@@ -23,8 +24,8 @@
  #define NVME_CQ_SIZE(depth)	(depth * sizeof(struct nvme_completion))
  #define NVME_CQ_ALLOCATION	ALIGN(NVME_CQ_SIZE(NVME_Q_DEPTH), \
  				      ARCH_DMA_MINALIGN)
-#define ADMIN_TIMEOUT		60
-#define IO_TIMEOUT		30
+#define ADMIN_TIMEOUT		60	/* seconds */
+#define IO_TIMEOUT		30	/* seconds */
  #define MAX_PRP_POOL		512
 
  /**

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 198

Quoted 8 lines
drivers/nvme/nvme.c +1 -1
@@ -191,7 +192,7 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
  	u16 phase = nvmeq->cq_phase;
  	u16 status;
  	ulong start_time;
-	ulong timeout_us = timeout * 100000;
+	ulong timeout_us = timeout * USEC_PER_SEC;
 
  	cmd->common.command_id = nvme_get_cmd_id();
  	nvme_submit_cmd(nvmeq, cmd);

Thanks,
Neil

Reviewed-by on v1 1/3
#3 lore raw

Re: [PATCH 1/3] nvme: Wait for commands in seconds, not tenths of seconds

In reply to Alexey Charkov
Quoted 10 lines · Alexey Charkov

ADMIN_TIMEOUT and IO_TIMEOUT match the admin and I/O command timeouts of the Linux driver, 60 and 30 seconds, but nvme_submit_sync_cmd() scales them by 100000us, so commands time out after 6 and 3 seconds instead.

That is too short for some drives. A Kingston NV-series disk on a Rock 5B takes 3.1-3.2s to complete its first read after power-on, so the GPT probe of LBA 0 times out, and the disk is never seen as GPT and offers nothing to boot from.

Quoted 9 lines

Scale the timeouts by USEC_PER_SEC, so they are the seconds their values intend.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
 drivers/nvme/nvme.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
#4 lore raw

PATCH 2/3 nvme: Consume completion queue entries in one place

In reply to Alexey Charkov

nvme_submit_sync_cmd() advances the completion queue head in two places, after a failed command and after a successful one. Each copy wraps the head, flips the phase, rings the doorbell and stores both back into the queue, so a change to one has to be repeated in the other by hand.

Move that sequence into a helper, and keep the head and phase in the queue only, so there is no local copy left to fall out of step with it.

---
 drivers/nvme/nvme.c | 36 ++++++++++++++++--------------------
 1 file changed, 16 insertions(+), 20 deletions(-)
drivers/nvme/nvme.c +16 -20
index 2063c73f9d85..a7950227abb8 100644
@@ -183,13 +183,21 @@ static void nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd)
 	nvmeq->sq_tail = tail;
 }
 
+/* Hand the completion queue entry at the head back to the controller */
+static void nvme_consume_cqe(struct nvme_queue *nvmeq)
+{
+	if (++nvmeq->cq_head == nvmeq->q_depth) {
+		nvmeq->cq_head = 0;
+		nvmeq->cq_phase = !nvmeq->cq_phase;
+	}
+	writel(nvmeq->cq_head, nvmeq->q_db + nvmeq->dev->db_stride);
+}
+
 static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 				struct nvme_command *cmd,
 				u32 *result, unsigned timeout)
 {
 	struct nvme_ops *ops;
-	u16 head = nvmeq->cq_head;
-	u16 phase = nvmeq->cq_phase;
 	u16 status;
 	ulong start_time;
 	ulong timeout_us = timeout * USEC_PER_SEC;
@@ -200,8 +208,8 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 	start_time = timer_get_us();
 
 	for (;;) {
-		status = nvme_read_completion_status(nvmeq, head);
-		if ((status & 0x01) == phase)
+		status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
+		if ((status & 0x01) == nvmeq->cq_phase)
 			break;
 		if (timeout_us > 0 && (timer_get_us() - start_time)
 		    >= timeout_us) {
@@ -217,29 +225,17 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 	status >>= 1;
 	if (status) {
 		printf("ERROR: status = %x, phase = %d, head = %d\n",
-		       status, phase, head);
+		       status, nvmeq->cq_phase, nvmeq->cq_head);
 		status = 0;
-		if (++head == nvmeq->q_depth) {
-			head = 0;
-			phase = !phase;
-		}
-		writel(head, nvmeq->q_db + nvmeq->dev->db_stride);
-		nvmeq->cq_head = head;
-		nvmeq->cq_phase = phase;
+		nvme_consume_cqe(nvmeq);
 
 		return -EIO;
 	}
 
 	if (result)
-		*result = readl(&(nvmeq->cqes[head].result));
+		*result = readl(&nvmeq->cqes[nvmeq->cq_head].result);
 
-	if (++head == nvmeq->q_depth) {
-		head = 0;
-		phase = !phase;
-	}
-	writel(head, nvmeq->q_db + nvmeq->dev->db_stride);
-	nvmeq->cq_head = head;
-	nvmeq->cq_phase = phase;
+	nvme_consume_cqe(nvmeq);
 
 	return status;
 }
Signature · 1 line
2.56.0
Reviewed-by on v1 2/3
#5 lore raw

Re: [PATCH 2/3] nvme: Consume completion queue entries in one place

Quoted 78 lines · Alexey Charkov

nvme_submit_sync_cmd() advances the completion queue head in two places, after a failed command and after a successful one. Each copy wraps the head, flips the phase, rings the doorbell and stores both back into the queue, so a change to one has to be repeated in the other by hand.

Move that sequence into a helper, and keep the head and phase in the queue only, so there is no local copy left to fall out of step with it.

---
  drivers/nvme/nvme.c | 36 ++++++++++++++++--------------------
  1 file changed, 16 insertions(+), 20 deletions(-)
drivers/nvme/nvme.c +15 -14
index 2063c73f9d85..a7950227abb8 100644
@@ -183,13 +183,21 @@ static void nvme_submit_cmd(struct nvme_queue *nvmeq, struct nvme_command *cmd)
  	nvmeq->sq_tail = tail;
  }
 
+/* Hand the completion queue entry at the head back to the controller */
+static void nvme_consume_cqe(struct nvme_queue *nvmeq)
+{
+	if (++nvmeq->cq_head == nvmeq->q_depth) {
+		nvmeq->cq_head = 0;
+		nvmeq->cq_phase = !nvmeq->cq_phase;
+	}
+	writel(nvmeq->cq_head, nvmeq->q_db + nvmeq->dev->db_stride);
+}
+
  static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
  				struct nvme_command *cmd,
  				u32 *result, unsigned timeout)
  {
  	struct nvme_ops *ops;
-	u16 head = nvmeq->cq_head;
-	u16 phase = nvmeq->cq_phase;
  	u16 status;
  	ulong start_time;
  	ulong timeout_us = timeout * USEC_PER_SEC;
@@ -200,8 +208,8 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
  	start_time = timer_get_us();
 
  	for (;;) {
-		status = nvme_read_completion_status(nvmeq, head);
-		if ((status & 0x01) == phase)
+		status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
+		if ((status & 0x01) == nvmeq->cq_phase)
  			break;
  		if (timeout_us > 0 && (timer_get_us() - start_time)
  		    >= timeout_us) {
@@ -217,29 +225,17 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
  	status >>= 1;
  	if (status) {
  		printf("ERROR: status = %x, phase = %d, head = %d\n",
-		       status, phase, head);
+		       status, nvmeq->cq_phase, nvmeq->cq_head);
  		status = 0;
-		if (++head == nvmeq->q_depth) {
-			head = 0;
-			phase = !phase;
-		}
-		writel(head, nvmeq->q_db + nvmeq->dev->db_stride);
-		nvmeq->cq_head = head;
-		nvmeq->cq_phase = phase;
+		nvme_consume_cqe(nvmeq);
 
  		return -EIO;
  	}
 
  	if (result)
-		*result = readl(&(nvmeq->cqes[head].result));
+		*result = readl(&nvmeq->cqes[nvmeq->cq_head].result);
 
-	if (++head == nvmeq->q_depth) {

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 241

Quoted 10 lines
drivers/nvme/nvme.c +1 -6
-		head = 0;
-		phase = !phase;
-	}
-	writel(head, nvmeq->q_db + nvmeq->dev->db_stride);
-	nvmeq->cq_head = head;
-	nvmeq->cq_phase = phase;
+	nvme_consume_cqe(nvmeq);
 
  	return status;
  }

Thanks,
Neil

Reviewed-by on v1 2/3
#6 lore raw

Re: [PATCH 2/3] nvme: Consume completion queue entries in one place

In reply to Alexey Charkov
Quoted 7 lines · Alexey Charkov

nvme_submit_sync_cmd() advances the completion queue head in two places, after a failed command and after a successful one. Each copy wraps the head, flips the phase, rings the doorbell and stores both back into the queue, so a change to one has to be repeated in the other by hand.

Quoted 8 lines

Move that sequence into a helper, and keep the head and phase in the queue only, so there is no local copy left to fall out of step with it.

---
 drivers/nvme/nvme.c | 36 ++++++++++++++++--------------------
 1 file changed, 16 insertions(+), 20 deletions(-)
#7 lore raw

PATCH 3/3 nvme: Drop late completions of commands that timed out

In reply to Alexey Charkov

When a command times out, nvme_submit_sync_cmd() returns without consuming its completion queue entry, so the entry posted when the command does finish is taken as the completion of the next command. That command then returns before its own data has arrived, and every later one stays a completion behind for as long as the queue lives.

On a Rock 5B whose disk is slow to serve its first read, this turns a failed GPT probe of LBA 0 into a successful DOS probe, which consumes the late completion of the GPT read and leaves the disk recorded as having a single whole-disk partition of type 0xee.

Check the command ID of each completion, and consume the entries of other commands instead of returning them, so a timed-out command no longer desynchronises the queue.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
 drivers/nvme/nvme.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
drivers/nvme/nvme.c +16 -2
index a7950227abb8..37f5a3ce4b10 100644
@@ -209,8 +209,22 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 
 	for (;;) {
 		status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
-		if ((status & 0x01) == nvmeq->cq_phase)
-			break;
+		if ((status & 0x01) == nvmeq->cq_phase) {
+			u16 cid = readw(&nvmeq->cqes[nvmeq->cq_head].command_id);
+
+			if (cid == le16_to_cpu(cmd->common.command_id))
+				break;
+
+			/*
+			 * A command which timed out earlier has completed
+			 * after all. Consume its entry, so that it is not
+			 * taken for the completion of this command.
+			 */
+			pr_warn("nvme: dropping late completion of cmd %#x\n",
+				cid);
+			nvme_consume_cqe(nvmeq);
+			continue;
+		}
 		if (timeout_us > 0 && (timer_get_us() - start_time)
 		    >= timeout_us) {
 			pr_warn("nvme: cmd %#x timed out\n", cmd->common.command_id);
Signature · 1 line
2.56.0
Reviewed-by on v1 3/3
#8 lore raw

Re: [PATCH 3/3] nvme: Drop late completions of commands that timed out

Quoted 41 lines · Alexey Charkov

When a command times out, nvme_submit_sync_cmd() returns without consuming its completion queue entry, so the entry posted when the command does finish is taken as the completion of the next command. That command then returns before its own data has arrived, and every later one stays a completion behind for as long as the queue lives.

On a Rock 5B whose disk is slow to serve its first read, this turns a failed GPT probe of LBA 0 into a successful DOS probe, which consumes the late completion of the GPT read and leaves the disk recorded as having a single whole-disk partition of type 0xee.

Check the command ID of each completion, and consume the entries of other commands instead of returning them, so a timed-out command no longer desynchronises the queue.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
  drivers/nvme/nvme.c | 18 ++++++++++++++++--
  1 file changed, 16 insertions(+), 2 deletions(-)
drivers/nvme/nvme.c +9 -2
index a7950227abb8..37f5a3ce4b10 100644
@@ -209,8 +209,22 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 
  	for (;;) {
  		status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
-		if ((status & 0x01) == nvmeq->cq_phase)
-			break;
+		if ((status & 0x01) == nvmeq->cq_phase) {
+			u16 cid = readw(&nvmeq->cqes[nvmeq->cq_head].command_id);
+
+			if (cid == le16_to_cpu(cmd->common.command_id))
+				break;
+
+			/*
+			 * A command which timed out earlier has completed
+			 * after all. Consume its entry, so that it is not

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 230

Quoted 10 lines
drivers/nvme/nvme.c +7 -0
+			 * taken for the completion of this command.
+			 */
+			pr_warn("nvme: dropping late completion of cmd %#x\n",
+				cid);
+			nvme_consume_cqe(nvmeq);
+			continue;
+		}
  		if (timeout_us > 0 && (timer_get_us() - start_time)
  		    >= timeout_us) {
  			pr_warn("nvme: cmd %#x timed out\n", cmd->common.command_id);

Thanks,
Neil

Reviewed-by on v1 3/3
#9 lore raw

Re: [PATCH 3/3] nvme: Drop late completions of commands that timed out

In reply to Alexey Charkov
Quoted 41 lines · Alexey Charkov

When a command times out, nvme_submit_sync_cmd() returns without consuming its completion queue entry, so the entry posted when the command does finish is taken as the completion of the next command. That command then returns before its own data has arrived, and every later one stays a completion behind for as long as the queue lives.

On a Rock 5B whose disk is slow to serve its first read, this turns a failed GPT probe of LBA 0 into a successful DOS probe, which consumes the late completion of the GPT read and leaves the disk recorded as having a single whole-disk partition of type 0xee.

Check the command ID of each completion, and consume the entries of other commands instead of returning them, so a timed-out command no longer desynchronises the queue.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
  drivers/nvme/nvme.c | 18 ++++++++++++++++--
  1 file changed, 16 insertions(+), 2 deletions(-)
drivers/nvme/nvme.c +9 -2
index a7950227abb8..37f5a3ce4b10 100644
@@ -209,8 +209,22 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 
  	for (;;) {
  		status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
-		if ((status & 0x01) == nvmeq->cq_phase)
-			break;
+		if ((status & 0x01) == nvmeq->cq_phase) {
+			u16 cid = readw(&nvmeq->cqes[nvmeq->cq_head].command_id);
+
+			if (cid == le16_to_cpu(cmd->common.command_id))
+				break;
+
+			/*
+			 * A command which timed out earlier has completed
+			 * after all. Consume its entry, so that it is not

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 230

Quoted 10 lines
drivers/nvme/nvme.c +7 -0
+			 * taken for the completion of this command.
+			 */
+			pr_warn("nvme: dropping late completion of cmd %#x\n",
+				cid);
+			nvme_consume_cqe(nvmeq);
+			continue;
+		}
  		if (timeout_us > 0 && (timer_get_us() - start_time)
  		    >= timeout_us) {
  			pr_warn("nvme: cmd %#x timed out\n", cmd->common.command_id);

Thanks,
Neil

#10 lore raw

Re: [PATCH 3/3] nvme: Drop late completions of commands that timed out

In reply to Alexey Charkov
Quoted 27 lines · Alexey Charkov

When a command times out, nvme_submit_sync_cmd() returns without consuming its completion queue entry, so the entry posted when the command does finish is taken as the completion of the next command. That command then returns before its own data has arrived, and every later one stays a completion behind for as long as the queue lives.

On a Rock 5B whose disk is slow to serve its first read, this turns a failed GPT probe of LBA 0 into a successful DOS probe, which consumes the late completion of the GPT read and leaves the disk recorded as having a single whole-disk partition of type 0xee.

Check the command ID of each completion, and consume the entries of other commands instead of returning them, so a timed-out command no longer desynchronises the queue.

Fixes 982388eaa991 ("nvme: Add NVM Express driver support")
---
 drivers/nvme/nvme.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)
drivers/nvme/nvme.c +0 -0
index a7950227abb8..37f5a3ce4b10 100644

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 213

Quoted 7 lines
drivers/nvme/nvme.c +2 -2
@@ -209,8 +209,22 @@ static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,
 
        for (;;) {
                status = nvme_read_completion_status(nvmeq, nvmeq->cq_head);
-               if ((status & 0x01) == nvmeq->cq_phase)
-                       break;
+               if ((status & 0x01) == nvmeq->cq_phase) {
+                       u16 cid = readw(&nvmeq->cqes[nvmeq->cq_head].command_id);

I think this should be using le16_to_cpu()

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq, · line 215

Quoted 2 lines
drivers/nvme/nvme.c +2 -0
+
+                       if (cid == le16_to_cpu(cmd->common.command_id))

Just cid == cmd->common.command_id, because cmd->common.command_id is already host endian by nvme_get_cmd_id()

Quoted 7 lines
drivers/nvme/nvme.c +7 -0
+                               break;
+
+                       /*
+                        * A command which timed out earlier has completed
+                        * after all. Consume its entry, so that it is not
+                        * taken for the completion of this command.
+                        */

drivers/nvme/nvme.c static int nvme_submit_sync_cmd(struct nvme_queue *nvmeq,

Quoted 10 lines
drivers/nvme/nvme.c +5 -1
+                       pr_warn("nvme: dropping late completion of cmd %#x\n",
+                               cid);
+                       nvme_consume_cqe(nvmeq);
+                       continue;
+               }
                if (timeout_us > 0 && (timer_get_us() - start_time)
                    >= timeout_us) {
                        pr_warn("nvme: cmd %#x timed out\n", cmd->common.command_id);
 
--

Regards,
Bin