Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci only bus_dmamap_sync(9) once for ICT region.
details: https://anonhg.NetBSD.org/src/rev/0573681deade
branches: trunk
changeset: 350719:0573681deade
user: nonaka <nonaka%NetBSD.org@localhost>
date: Tue Jan 17 08:35:16 2017 +0000
description:
only bus_dmamap_sync(9) once for ICT region.
diffstat:
sys/dev/pci/if_iwm.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r 2b20bf1b7e55 -r 0573681deade sys/dev/pci/if_iwm.c
--- a/sys/dev/pci/if_iwm.c Tue Jan 17 08:10:37 2017 +0000
+++ b/sys/dev/pci/if_iwm.c Tue Jan 17 08:35:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_iwm.c,v 1.61 2017/01/13 11:21:47 nonaka Exp $ */
+/* $NetBSD: if_iwm.c,v 1.62 2017/01/17 08:35:16 nonaka Exp $ */
/* OpenBSD: if_iwm.c,v 1.148 2016/11/19 21:07:08 stsp Exp */
#define IEEE80211_NO_HT
/*
@@ -107,7 +107,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.61 2017/01/13 11:21:47 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.62 2017/01/17 08:35:16 nonaka Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -7221,13 +7221,13 @@
while (tmp) {
r1 |= tmp;
ict[sc->ict_cur] = 0; /* Acknowledge. */
- bus_dmamap_sync(sc->sc_dmat, sc->ict_dma.map,
- &ict[sc->ict_cur] - ict, sizeof(*ict),
- BUS_DMASYNC_PREWRITE);
sc->ict_cur = (sc->ict_cur + 1) % IWM_ICT_COUNT;
tmp = htole32(ict[sc->ict_cur]);
}
+ bus_dmamap_sync(sc->sc_dmat, sc->ict_dma.map,
+ 0, sc->ict_dma.size, BUS_DMASYNC_PREWRITE);
+
/* this is where the fun begins. don't ask */
if (r1 == 0xffffffff)
r1 = 0;
Home |
Main Index |
Thread Index |
Old Index