patch "xhci: remove GFP_DMA flag from allocation" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xhci: remove GFP_DMA flag from allocation
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
5db851cf20857c5504b146046e97cb7781f2a743Mon Sep 17 00:00:00 2001
From: Matthias Lange <[email protected]>
Date: Wed, 17 May 2017 18:32:04 +0300
Subject: 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.
--- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/xhci-mem.c +1 -1
@@ -56,7 +56,7 @@ static struct xhci_segment *xhci_segment_alloc(struct xhci_hcd *xhci, }if (max_packet) { - seg->bounce_buf =kzalloc (max_packet, flags |GFP_DMA ); + seg->bounce_buf =kzalloc (max_packet, flags);if (!seg->bounce_buf) {dma_pool_free (xhci->segment_pool, seg->trbs, dma);kfree (seg);
Signature · 1 line
2.13.0