mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
MFp4:
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. Approved by: re (kensmith) Obtained from: HPS
This commit is contained in:
parent
77822acff7
commit
58f6d27320
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195639
@ -359,7 +359,8 @@ usb_dma_tag_create(struct usb_dma_tag *udt,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user