summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-04-13 13:17:24 +0000
committerdlg <dlg@openbsd.org>2016-04-13 13:17:24 +0000
commitffeaebd168a704a5a13a42542b7b510ad7404fae (patch)
tree7738f364faf84d82738cabee666a650bcdd33e6e
parentallocate a queue for io commands and tell the chip about it. (diff)
downloadwireguard-openbsd-ffeaebd168a704a5a13a42542b7b510ad7404fae.tar.xz
wireguard-openbsd-ffeaebd168a704a5a13a42542b7b510ad7404fae.zip
enable interrupts before attaching the scsibus
-rw-r--r--sys/dev/ic/nvme.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index e078afdeb87..a5e631ac8d7 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.31 2016/04/13 13:16:32 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.32 2016/04/13 13:17:24 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -344,6 +344,8 @@ nvme_attach(struct nvme_softc *sc)
goto free_q;
}
+ nvme_write4(sc, NVME_INTMC, 1);
+
sc->sc_namespaces = mallocarray(sc->sc_nn, sizeof(*sc->sc_namespaces),
M_DEVBUF, M_WAITOK|M_ZERO);