[SeaBIOS] [PATCH 2/5] nvme: extend command timeout to 5 seconds

Daniel Verkamp daniel at drv.nu
Fri Feb 24 07:27:54 CET 2017


500 ms is not sufficient for the admin commands used during
initialization on some real hardware.

Signed-off-by: Daniel Verkamp <daniel at drv.nu>
---
 src/hw/nvme.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/hw/nvme.c b/src/hw/nvme.c
index c709a3a..c194f9f 100644
--- a/src/hw/nvme.c
+++ b/src/hw/nvme.c
@@ -123,7 +123,7 @@ nvme_consume_cqe(struct nvme_sq *sq)
 static struct nvme_cqe
 nvme_wait(struct nvme_sq *sq)
 {
-    static const unsigned nvme_timeout = 500 /* ms */;
+    static const unsigned nvme_timeout = 5000 /* ms */;
     u32 to = timer_calc(nvme_timeout);
     while (!nvme_poll_cq(sq->cq)) {
         yield();
-- 
2.11.1




More information about the SeaBIOS mailing list