Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 22:22:09 +0000 (UTC)
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org
Subject:   svn commit: r188421 - stable/6/sys/arm/arm
Message-ID:  <200902092222.n19MM9lA073320@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cognet
Date: Mon Feb  9 22:22:09 2009
New Revision: 188421
URL: http://svn.freebsd.org/changeset/base/188421

Log:
  MFC r188112
  r188112 | cognet | 2009-02-04 02:14:06 +0100 (Wed, 04 Feb 2009) | 8 lines
  
  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...

Modified:
  stable/6/sys/arm/arm/busdma_machdep.c

Modified: stable/6/sys/arm/arm/busdma_machdep.c
==============================================================================
--- stable/6/sys/arm/arm/busdma_machdep.c	Mon Feb  9 22:21:38 2009	(r188420)
+++ stable/6/sys/arm/arm/busdma_machdep.c	Mon Feb  9 22:22:09 2009	(r188421)
@@ -1146,7 +1146,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?200902092222.n19MM9lA073320>