From 5aef03d117e750cba5317d0013a1bb4a9640861c Mon Sep 17 00:00:00 2001 From: dlg Date: Thu, 8 Jul 2021 22:43:59 +0000 Subject: [PATCH] fix the hibernate io path. a botched merge meant i was posting the previously used slot to the chip to process before posting the current slot. ok deraadt@ --- sys/dev/ic/nvme.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index dc220002549..61861014ecc 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nvme.c,v 1.100 2021/06/02 19:11:02 patrick Exp $ */ +/* $OpenBSD: nvme.c,v 1.101 2021/07/08 22:43:59 dlg Exp $ */ /* * Copyright (c) 2014 David Gwynne @@ -1503,7 +1503,6 @@ nvme_hibernate_admin_cmd(struct nvme_softc *sc, struct nvme_sqe *sqe, bus_dmamap_sync(sc->sc_dmat, NVME_DMA_MAP(q->q_sq_dmamem), sizeof(*sqe) * tail, sizeof(*sqe), BUS_DMASYNC_PREWRITE); - nvme_write4(sc, q->q_sqtdbl, tail); sc->sc_ops->op_sq_leave_locked(sc, q, /* XXX ccb */ NULL); /* wait for completion */ -- 2.20.1