login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
8
Re: USB transfer_buffer allocations on 64bit systems
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Pedro Ribeiro
Subject:
Re: USB transfer_buffer allocations on 64bit systems
Date: Thursday, April 8, 2010 - 10:17 am
On 8 April 2010 17:57, Alan Stern <stern@rowland.harvard.edu> wrote:
quoted text
> On Thu, 8 Apr 2010, Daniel Mack wrote: > >> > > AFAIK, the driver shouldn't have to worry about this at all. When the >> > > buffer gets DMA-mapped for the controller, the DMA mapping code should >> > > see that the device has a 32-bit DMA mask and either bounce or IOMMU-map >> > > the memory so that it appears below 4GB. >> > >> > That's true. It would of course be more efficient for the buffer to be >> > allocated below 4 GB, but it should work okay either way. Daniel, do >> > you have any idea why it fails? >> >> No, and I can't do real tests as I lack a 64bit machine. I'll do some >> more investigation later today, but for now the only explanation I have >> is that not the remapped DMA buffer is used eventually by the EHCI code >> but the physical address of the original buffer. >> >> It would of course be best to fix the whole problem at this level, if >> possible. > > It definitely needs to be fixed at this level. But I still think it's > appropriate to have new USB core functions for allocating and > deallocating I/O memory. The additional price is small compared to > constantly bouncing the buffers. > > Pedro, in the hope of tracking down the problem, can you apply this > patch and see what output it produces in the system log when the > "interference" happens? (Warning: It will produce quite a lot of > output whenever you send data to the audio device -- between 500 and > 1000 lines per second.) > > Alan Stern > > > > Index: 2.6.33/drivers/usb/core/hcd.c > =================================================================== > --- 2.6.33.orig/drivers/usb/core/hcd.c > +++ 2.6.33/drivers/usb/core/hcd.c > @@ -1395,6 +1395,10 @@ int usb_hcd_submit_urb (struct urb *urb, > usbmon_urb_submit_error(&hcd->self, urb, status); > goto error; > } > + if (usb_endpoint_is_isoc_out(&urb->ep->desc)) > + dev_info(&urb->dev->dev, "Iso xfer %p dma %llx\n", > + urb->transfer_buffer, > + (unsigned long long) urb->transfer_dma); > > if (is_root_hub(urb->dev)) > status = rh_urb_enqueue(hcd, urb); > >
I'll do it tonight and send you the results tomorrow morning. Do you want CONFIG_USB_DEBUG enabled or disabled? Pedro --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Re: USB transfer_buffer allocations on 64bit systems
, Alan Stern
, (Thu Apr 8, 9:57 am)
Re: USB transfer_buffer allocations on 64bit systems
, Pedro Ribeiro
, (Thu Apr 8, 10:17 am)
Re: USB transfer_buffer allocations on 64bit systems
, Pedro Ribeiro
, (Thu Apr 8, 4:13 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rusty Russell
Re: 2.6.22-rc3-mm1
Eric Sandeen
Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages
Bill Fink
Re: [PATCH] net: add ability to clear stats via ethtool - e1000/pcnet32
David Miller
Re: NO_HZ: timer interrupt stuck
Jeffrey V. Merkey
Re: Versioning file system
git
:
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Junio C Hamano
Re: [PATCH] http-push: making HTTP push more robust and more user-friendly
Oliver Kullmann
Re: how to move with history?
Junio C Hamano
Re: [PATCH 2/3] git-add--interactive: remove hunk coalescing
Shawn O. Pearce
Re: Bugs in Gitosis
linux-netdev
:
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
webmaster Maintenance
&#32852;&#31995;&#31995;&#32479;&#31649;&#29702;&#21592;
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
Paul Gortmaker
[PATCH net-next 09/16] tipc: Relocate trivial link status functions to header file
David Miller
Re: [2.6.30-rc3] powerpc: compilation error of mace module
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB: tm6000: add special usb request to quit i2c tuner transfer
Linux Kernel Mailing List
OMAP: DSS2: SDI driver
Linux Kernel Mailing List
PCI: introduce pci_pcie_cap()
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
Staging: et131x: prune all the debug code
openbsd-misc
:
Ted Bullock
Re: Proliant DL380 G3 cannot get on network
Úlfar M. E. Johnson
installing openbsd in xen
Eric Furman
Re: Defending OpenBSD Performance
Damien Miller
Re: Patching a SSH 'Weakness'
Brian
CARP multicast and ADSL bridge
Colocation donated by:
Syndicate