Commit 5db851cf authored by Matthias Lange's avatar Matthias Lange Committed by Greg Kroah-Hartman

xhci: remove GFP_DMA flag from allocation

There is no reason to restrict allocations to the first 16MB ISA DMA
addresses.

It is causing problems in a virtualization setup with enabled IOMMU
(x86_64). The result is that USB is not working in the VM.

CC: <stable@vger.kernel.org>
Signed-off-by: default avatarMatthias Lange <matthias.lange@kernkonzept.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 63aea0db
...@@ -56,7 +56,7 @@ static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, ...@@ -56,7 +56,7 @@ static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci,
} }
if (max_packet) { if (max_packet) {
seg->bounce_buf = kzalloc(max_packet, flags | GFP_DMA); seg->bounce_buf = kzalloc(max_packet, flags);
if (!seg->bounce_buf) { if (!seg->bounce_buf) {
dma_pool_free(xhci->segment_pool, seg->trbs, dma); dma_pool_free(xhci->segment_pool, seg->trbs, dma);
kfree(seg); kfree(seg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment