From owner-svn-src-all@FreeBSD.ORG Mon Feb 9 22:22:10 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 16D5D1065706; Mon, 9 Feb 2009 22:22:10 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 034868FC31; Mon, 9 Feb 2009 22:22:10 +0000 (UTC) (envelope-from cognet@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n19MM9X8073321; Mon, 9 Feb 2009 22:22:09 GMT (envelope-from cognet@svn.freebsd.org) Received: (from cognet@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n19MM9lA073320; Mon, 9 Feb 2009 22:22:09 GMT (envelope-from cognet@svn.freebsd.org) Message-Id: <200902092222.n19MM9lA073320@svn.freebsd.org> From: Olivier Houchard Date: Mon, 9 Feb 2009 22:22:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188421 - stable/6/sys/arm/arm X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 22:22:11 -0000 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); }