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 | 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();