usb-storage: stop using block layer bounce buffers
Quoted 23 lines · Alan Stern
Quoted 15 lines · Christoph Hellwig
Quoted 9 lines · Alan Stern
Quoted 2 lines · Christoph Hellwig
USB host controllers now must handle highmem, so we can get rid of bounce buffering highmem pages in the block layer.
Sorry, I don't quite understand what you are saying. Do you mean that all USB host controllers now magically _do_ handle highmem? Or do you mean that if they _don't_ handle highmem, we will not support them any more?
USB controller themselves never cared about highmem, drivers did. For PIO based controllers they'd have to kmap any address no in the kernel drirect mapping.
Quoted 5 lines
Nothing in
drivers/usb/hostor the other diretories related to host drivers callspage_address(only used in a single gadget) orsg_virt(only used in a few upper level drivers), which makes me assume semi-confidently that no USB host driver is not highmem aware these days.
Quoted 3 lines
sg_virtis called indrivers/usb/core/message.c. (Maybe that's what you meant by "upper level drivers".) I'm not sure just how important that usage is.
I don't really know either. I'll need some guidance from the usb maintainers on:
- when drivers can submit urbs with a scatterlist
- if there are any drivers that do not want to take highmem
Unfortunately the way dma mapping works in usb is just so deeply convoluted that I have a hard time following it, and often wonder what is intentional and what is accidental in it.
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html