summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2012-08-23 05:52:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2012-08-23 05:52:06 +0000
commitb66f74bb17041ff405381b457300f30d75715e35 (patch)
tree67b92835fa038b062d0080078c6e83946556b9fa /sys/dev/pci
parent4d568fadae9b32597eb9bfde55896fda18b23d5e (diff)
stupid code bug.
instead of initting the ccbs sgl dma virtual address, i was assigning it to the sense memories dva. this means we wouldnt be getting sense data where we thought it was, and passing NULL (does NULL mean anything over a pci bus?) to the hardware when we have long sgl chains. hopefully this fixes the NMIs ive been getting.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/mfii.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 6538bd2e738..607433ad061 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.7 2012/08/20 07:38:43 dlg Exp $ */
+/* $OpenBSD: mfii.c,v 1.8 2012/08/23 05:52:05 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -1407,7 +1407,7 @@ mfii_init_ccb(struct mfii_softc *sc)
ccb->ccb_sgl_offset = sizeof(struct mfii_sge) *
sc->sc_max_sgl * i;
ccb->ccb_sgl = (struct mfii_sge *)(sgl + ccb->ccb_sgl_offset);
- ccb->ccb_sense_dva = (MFII_DMA_DVA(sc->sc_sgl) +
+ ccb->ccb_sgl_dva = (MFII_DMA_DVA(sc->sc_sgl) +
ccb->ccb_sgl_offset);
/* add ccb to queue */