summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/core/usb2_busdma.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-08 22:54:58 +0000
committerimp <imp@FreeBSD.org>2009-02-08 22:54:58 +0000
commit719ba982f29fc81ee8072f46770b8f92f9cde327 (patch)
treecc62825b111ed71a6a25b4cf9e56057dd93d0ae4 /sys/dev/usb2/core/usb2_busdma.c
parent9513bac196b9078727e9e71fe300ad749da75966 (diff)
downloadFreeBSD-src-719ba982f29fc81ee8072f46770b8f92f9cde327.zip
FreeBSD-src-719ba982f29fc81ee8072f46770b8f92f9cde327.tar.gz
When bouncing pages, allow a new option to preserve the intra-page
offset. This is needed for the ehci hardware buffer rings that assume this behavior. This is an interim solution, and a more general one is being worked on. This solution doesn't break anything that doesn't ask for it directly. The mbuf and uio variants with this flag likely don't work and haven't been tested. Universe builds with these changes. I don't have a huge-memory machine to test these changes with, but will be happy to work with folks that do and hps if this changes turns out not to be sufficient. Submitted by: alfred@ from Hans Peter Selasky's original
Diffstat (limited to 'sys/dev/usb2/core/usb2_busdma.c')
-rw-r--r--sys/dev/usb2/core/usb2_busdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb2/core/usb2_busdma.c b/sys/dev/usb2/core/usb2_busdma.c
index 6c1f182e3..8254e6e 100644
--- a/sys/dev/usb2/core/usb2_busdma.c
+++ b/sys/dev/usb2/core/usb2_busdma.c
@@ -351,7 +351,7 @@ usb2_dma_tag_create(struct usb2_dma_tag *udt,
(2 + (size / USB_PAGE_SIZE)) : 1,
/* maxsegsz */ (align == 1) ?
USB_PAGE_SIZE : size,
- /* flags */ 0,
+ /* flags */ BUS_DMA_KEEP_PG_OFFSET,
/* lockfn */ &usb2_dma_lock_cb,
/* lockarg */ NULL,
&tag)) {
OpenPOWER on IntegriCloud