diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-11-04 12:41:35 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-11-04 12:41:35 +0000 |
commit | 9bd207ea14b580701e579bad1356ba341eaef262 (patch) | |
tree | 328456e0c6250d30cf567a81da7b79b2fbb394d2 /sys/dev/ic | |
parent | ee2bf5c24876b19a9a52f1ea7fb95d2685a0e618 (diff) |
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.
Diffstat (limited to 'sys/dev/ic')
-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); |