From owner-cvs-src@FreeBSD.ORG Tue Nov 27 17:43:50 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B74516A417; Tue, 27 Nov 2007 17:43:50 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5CB2313C465; Tue, 27 Nov 2007 17:43:50 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lARHhoC2079689; Tue, 27 Nov 2007 17:43:50 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lARHhoG4079688; Tue, 27 Nov 2007 17:43:50 GMT (envelope-from jhb) Message-Id: <200711271743.lARHhoG4079688@repoman.freebsd.org> From: John Baldwin Date: Tue, 27 Nov 2007 17:43:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/alpha/alpha busdma_machdep.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 27 Nov 2007 17:43:50 -0000 jhb 2007-11-27 17:43:50 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/alpha/alpha busdma_machdep.c Log: Cleanup the alpha bus dma code a bit and sync it up with i386. Changes include: - Honor alignment and boundary restrictions on DMA tags by using bounce pages for misaligned buffers and not coalescing pages if the resulting segment would cross a boundary. - Teach the _bus_dmamap_load_buffer() helper function to use bounce pages when needed and change bus_dmamap_load() to use the helper function instead of largely duplicating it. As a side effect, this enables bounce page support for the other load routines (load_mbuf(), load_mbuf_sg(), and load_uio()). Honoring the boundary restrictions partially helps with the Alpha ATA DMA problem. More work is needed for that however (and forthcoming). PR: alpha/75317 Tested by: wilko Approved by: re (kensmith) Revision Changes Path 1.51.2.2 +155 -158 src/sys/alpha/alpha/busdma_machdep.c