Date: Wed, 4 Feb 2009 01:14:06 +0000 (UTC) From: Olivier Houchard <cognet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188112 - head/sys/arm/arm Message-ID: <200902040114.n141E6mu047838@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cognet Date: Wed Feb 4 01:14:06 2009 New Revision: 188112 URL: http://svn.freebsd.org/changeset/base/188112 Log: Erm... Report the buffer as being bounced even when it's the entire buffer, or we would end up invalidating the cache line for what we just copied... Reported by: thompsa Pointy at to: cognet MFC after: 3 days Modified: head/sys/arm/arm/busdma_machdep.c Modified: head/sys/arm/arm/busdma_machdep.c ============================================================================== --- head/sys/arm/arm/busdma_machdep.c Wed Feb 4 01:11:37 2009 (r188111) +++ head/sys/arm/arm/busdma_machdep.c Wed Feb 4 01:14:06 2009 (r188112) @@ -1168,7 +1168,7 @@ _bus_dma_buf_is_in_bp(bus_dmamap_t map, STAILQ_FOREACH(bpage, &map->bpages, links) { if ((vm_offset_t)buf >= bpage->datavaddr && - (vm_offset_t)buf + len < bpage->datavaddr + + (vm_offset_t)buf + len <= bpage->datavaddr + bpage->datacount) return (1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902040114.n141E6mu047838>