From 810f81d685bf2da808f210880817d5c85cb714a0 Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sat, 17 Nov 2007 19:09:17 +0000 Subject: update the physical address of the RX buffer after bus_dmamap_load() in the case where the old buffer is remapped. --- sys/dev/pci/if_ipw.c | 3 ++- sys/dev/pci/if_iwi.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index 1df56e0435f..9af9daec09a 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.69 2007/09/07 19:05:05 damien Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.70 2007/11/17 19:09:16 damien Exp $ */ /*- * Copyright (c) 2004-2006 @@ -860,6 +860,7 @@ ipw_data_intr(struct ipw_softc *sc, struct ipw_status *status, panic("%s: could not load old rx mbuf", sc->sc_dev.dv_xname); } + sbd->bd->physaddr = htole32(sbuf->map->dm_segs[0].ds_addr); ifp->if_ierrors++; return; } diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c index 3ff94e961e2..56923690bdc 100644 --- a/sys/dev/pci/if_iwi.c +++ b/sys/dev/pci/if_iwi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwi.c,v 1.85 2007/09/07 19:05:05 damien Exp $ */ +/* $OpenBSD: if_iwi.c,v 1.86 2007/11/17 19:09:16 damien Exp $ */ /*- * Copyright (c) 2004-2006 @@ -915,6 +915,7 @@ iwi_frame_intr(struct iwi_softc *sc, struct iwi_rx_data *data, panic("%s: could not load old rx mbuf", sc->sc_dev.dv_xname); } + CSR_WRITE_4(sc, data->reg, data->map->dm_segs[0].ds_addr); ifp->if_ierrors++; return; } -- cgit v1.2.3