diff options
author | 2014-11-04 12:41:34 +0000 | |
---|---|---|
committer | 2014-11-04 12:41:34 +0000 | |
commit | 20386a6c94ade95f06ce32e7548dc2f650a717a1 (patch) | |
tree | ef0f91ed48d85e2c7ba3c9c4072fff3cb7c1e913 | |
parent | Add rgephy(4) for the RTL8211E phy in the LeMaker Banana Pi and Banana Pro. (diff) | |
download | wireguard-openbsd-20386a6c94ade95f06ce32e7548dc2f650a717a1.tar.xz wireguard-openbsd-20386a6c94ade95f06ce32e7548dc2f650a717a1.zip |
when reading the completion queue, it helps to write where we've read up
to to the completion queue head doorbell instead of the submission queue
tail doorbell.
this lets us submit more than one command to the chip.
-rw-r--r-- | sys/dev/ic/nvme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 352b5a12879..995703513b2 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.8 2014/09/12 06:54:38 dlg Exp $ */ +/* $OpenBSD: nvme.c,v 1.9 2014/11/04 12:41:34 dlg Exp $ */ /* * Copyright (c) 2014 David Gwynne <dlg@openbsd.org> @@ -438,7 +438,7 @@ nvme_q_complete(struct nvme_softc *sc, struct nvme_queue *q) } if (rv) - nvme_write4(sc, q->q_sqtdbl, q->q_cq_head = head); + nvme_write4(sc, q->q_cqhdbl, q->q_cq_head = head); mtx_leave(&q->q_cq_mtx); return (rv); |