lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 63/86] usb: xhci: Fix ASM2142/ASM3142 DMA addressing
    Date
    From: Forest Crossman <cyrozap@gmail.com>

    commit dbb0897e805f2ab1b8bc358f6c3d878a376b8897 upstream.

    The ASM2142/ASM3142 (same PCI IDs) does not support full 64-bit DMA
    addresses, which can cause silent memory corruption or IOMMU errors on
    platforms that use the upper bits. Add the XHCI_NO_64BIT_SUPPORT quirk
    to fix this issue.

    Signed-off-by: Forest Crossman <cyrozap@gmail.com>
    Cc: stable <stable@vger.kernel.org>
    Link: https://lore.kernel.org/r/20200717112734.328432-1-cyrozap@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/usb/host/xhci-pci.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/drivers/usb/host/xhci-pci.c
    +++ b/drivers/usb/host/xhci-pci.c
    @@ -231,6 +231,9 @@ static void xhci_pci_quirks(struct devic
    if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
    pdev->device == 0x1142)
    xhci->quirks |= XHCI_TRUST_TX_LENGTH;
    + if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
    + pdev->device == 0x2142)
    + xhci->quirks |= XHCI_NO_64BIT_SUPPORT;

    if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&
    pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI)

    \
     
     \ /
      Last update: 2020-07-27 16:38    [W:4.055 / U:0.192 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site