diff options
author | Bernhard Schmidt <bschmidt@FreeBSD.org> | 2010-12-18 15:45:10 +0000 |
---|---|---|
committer | Bernhard Schmidt <bschmidt@FreeBSD.org> | 2010-12-18 15:45:10 +0000 |
commit | f015cb7882f8c2236ba0d77fa7a464690c3ccf3d (patch) | |
tree | e9bc9dc15df3e5aa91d897bfb2665f6cd90748c0 /sys/dev/wpi | |
parent | 9624106633f86f066c3a77095807566685641999 (diff) | |
download | src-f015cb7882f8c2236ba0d77fa7a464690c3ccf3d.tar.gz src-f015cb7882f8c2236ba0d77fa7a464690c3ccf3d.zip |
Add 2 missing bus_dmamap_sync() calls. Those fix random 'scan timeout',
'could not set power mode', 'device config failed' and other errors due
reading invalid memory.
Obtained from: OpenBSD
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=216523
Diffstat (limited to 'sys/dev/wpi')
-rw-r--r-- | sys/dev/wpi/if_wpi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index a2fb1517f09a..50c045c95e6f 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -1645,9 +1645,15 @@ wpi_notif_intr(struct wpi_softc *sc) struct wpi_rx_data *data; uint32_t hw; + bus_dmamap_sync(sc->shared_dma.tag, sc->shared_dma.map, + BUS_DMASYNC_POSTREAD); + hw = le32toh(sc->shared->next); while (sc->rxq.cur != hw) { data = &sc->rxq.data[sc->rxq.cur]; + + bus_dmamap_sync(sc->rxq.data_dmat, data->map, + BUS_DMASYNC_POSTREAD); desc = (void *)data->m->m_ext.ext_buf; DPRINTFN(WPI_DEBUG_NOTIFY, |