PERFORCE change 165387 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Jun 29 11:11:25 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=165387
Change 165387 by hselasky at 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,
More information about the p4-projects
mailing list