From owner-p4-projects@FreeBSD.ORG Mon Jun 29 11:11:20 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 584CC106567F; Mon, 29 Jun 2009 11:11:16 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DA2F106568C for ; Mon, 29 Jun 2009 11:11:15 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8685C8FC08 for ; Mon, 29 Jun 2009 11:11:15 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n5TBBFPH000555 for ; Mon, 29 Jun 2009 11:11:15 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n5TBBFrR000553 for perforce@freebsd.org; Mon, 29 Jun 2009 11:11:15 GMT (envelope-from hselasky@FreeBSD.org) Date: Mon, 29 Jun 2009 11:11:15 GMT Message-Id: <200906291111.n5TBBFrR000553@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 165387 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 11:11:25 -0000 http://perforce.freebsd.org/chv.cgi?CH=165387 Change 165387 by hselasky@hselasky_laptop001 on 2009/06/29 11:11:10 USB CORE: busdma improvement For single segment allocations the boundary field of the BUSDMA tag should be zero. Currently all single segment allocations are less than or equal to 4096 bytes, so the limit does not kick in. If any single segment USB allocations would be greater than 4K, then it would be a problem. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_busdma.c#13 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_busdma.c#13 (text+ko) ==== @@ -359,7 +359,8 @@ if (bus_dma_tag_create ( /* parent */ udt->tag_parent->tag, /* alignment */ align, - /* boundary */ USB_PAGE_SIZE, + /* boundary */ (align == 1) ? + USB_PAGE_SIZE : 0, /* lowaddr */ (2ULL << (udt->tag_parent->dma_bits - 1)) - 1, /* highaddr */ BUS_SPACE_MAXADDR, /* filter */ NULL,