Return-Path: Received: from mga02.intel.com ([134.134.136.20]:65073 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754043AbdEQP3y (ORCPT ); Wed, 17 May 2017 11:29:54 -0400 From: Mathias Nyman To: Cc: , Matthias Lange , , Mathias Nyman Subject: [PATCH 6/8] xhci: remove GFP_DMA flag from allocation Date: Wed, 17 May 2017 18:32:04 +0300 Message-Id: <1495035126-29091-7-git-send-email-mathias.nyman@linux.intel.com> In-Reply-To: <1495035126-29091-1-git-send-email-mathias.nyman@linux.intel.com> References: <1495035126-29091-1-git-send-email-mathias.nyman@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: From: Matthias Lange 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: Signed-off-by: Matthias Lange Signed-off-by: Mathias Nyman --- drivers/usb/host/xhci-mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 12b573c..1f1687e 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -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); -- 1.9.1