Date: Thu, 6 Jul 2006 23:01:31 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100813 for review Message-ID: <200607062301.k66N1Vgf056208@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100813 Change 100813 by imp@imp_lighthouse on 2006/07/06 23:00:51 Even when there's a timeout (especially?) you need to flush the cache properly. Why I didn't see this before now, I don't know. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#34 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/uart_dev_at91usart.c#34 (text+ko) ==== @@ -568,6 +568,8 @@ // Not sure if there's a race here at fast baud rates // we need to worry about. WR4(&sc->sc_bas, PDC_PTCR, PDC_PTCR_RXTDIS); + bus_dmamap_sync(atsc->dmatag, atsc->ping->map, + BUS_DMASYNC_POSTREAD); len = sc->sc_rxfifosz - RD4(&sc->sc_bas, PDC_RCR); for (i = 0; i < len; i++) uart_rx_put(sc, atsc->ping->buffer[i]);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607062301.k66N1Vgf056208>