aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2017-02-23 23:27:54 -0700
committerKevin O'Connor <kevin@koconnor.net>2017-03-02 09:45:45 -0500
commit21de72ffe8dcddf126c136918951c441edf85929 (patch)
tree821261b20426dfc8ce3fa820fdda91d2dfb3a7cd
parentf21e3044a6b8c2195fb243aeb20b3511569e120a (diff)
downloadseabios-21de72ffe8dcddf126c136918951c441edf85929.tar.gz
nvme: extend command timeout to 5 seconds
500 ms is not sufficient for the admin commands used during initialization on some real hardware. Signed-off-by: Daniel Verkamp <daniel@drv.nu>
-rw-r--r--src/hw/nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/nvme.c b/src/hw/nvme.c
index c709a3ae..c194f9f9 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();