From owner-cvs-src@FreeBSD.ORG Mon Aug 4 16:40:36 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A587537B401; Mon, 4 Aug 2003 16:40:36 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38E0B43FDF; Mon, 4 Aug 2003 16:40:36 -0700 (PDT) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h74NeZ0U063252; Mon, 4 Aug 2003 16:40:35 -0700 (PDT) (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h74NeZAa063251; Mon, 4 Aug 2003 16:40:35 -0700 (PDT) Message-Id: <200308042340.h74NeZAa063251@repoman.freebsd.org> From: Scott Long Date: Mon, 4 Aug 2003 16:40:35 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/i386/i386 busdma_machdep.c src/sys/amd64/amd64 busdma_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2003 23:40:37 -0000 scottl 2003/08/04 16:40:35 PDT FreeBSD src repository Modified files: sys/i386/i386 busdma_machdep.c sys/amd64/amd64 busdma_machdep.c Log: In _bus_dmamap_load_buffer(), only count the number of bounce pages needed if they haven't been counted before. This test was ommitted when bus_dmamap_load() was merged into this function, and results in the pagesneeded field growing without bounds when multiple deferrals happen. Thanks to Paul Saab for beating his head against this for a few hours =-) Revision Changes Path 1.51 +2 -1 src/sys/amd64/amd64/busdma_machdep.c 1.54 +2 -1 src/sys/i386/i386/busdma_machdep.c