]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commitdiff
nvme: extend command timeout to 5 seconds
authorDaniel Verkamp <daniel@drv.nu>
Fri, 24 Feb 2017 06:27:54 +0000 (23:27 -0700)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 2 Mar 2017 14:45:45 +0000 (09:45 -0500)
500 ms is not sufficient for the admin commands used during
initialization on some real hardware.

Signed-off-by: Daniel Verkamp <daniel@drv.nu>
src/hw/nvme.c

index c709a3ae1b26611c5a70ab60848da76fc5fa1c2e..c194f9f9745063a4ff23705cdc95e809ada38db1 100644 (file)
@@ -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();