Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3529083pxf; Mon, 15 Mar 2021 11:34:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaz1dlhomE27X0QcjEjm7yqkDpwraBQTkhd4AmBQoqqJo0c9CG7NBd93BOhNDSjcJQ8f3V X-Received: by 2002:a17:906:5d12:: with SMTP id g18mr24787544ejt.246.1615833297168; Mon, 15 Mar 2021 11:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833297; cv=none; d=google.com; s=arc-20160816; b=IITWY8mTZp1mE6v9CKKF8soeaUjhF7o/wfPVFC8Q2KzE/kwJL82bgRwNp2QPJ7coMq AwcUbY3dMRkr/KaVyunFPv7YKiOwpkyOF3DjNLrcuczV4CVPC5Z97kGsPFe9Mfu0VICw LNRZtqZ+X0RKdnmr80+MUyoLpLosUsPcH8EHd3EgzqYlbrFAsz1/Y6LZb96t4HYtdjFB 49qq2kVV8RQLAnq1whWFBn+ktdH7aIpVgNPK8rh0T1OupDL3vq/xqtPRplDaEGnNeIUH 9jxU9VWDR7dvYJ0wRpgxUp10AxsCIozG3lRNQTvIOwVZVv8Vmi/wbJXSHltISqcMmjkD R6Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oabXczLHy5X7nbwWSiW3fHR0sVsHU7W7squanY3fo+s=; b=kU5Oas2IqM6+TP8zMCPFtbyT5iyV6II3M1bvdHlZyKg9cNGhmLCpT5qVr+/aa1InH3 b5lNZ0032xPdak/+8F/XLZbagjO/Oae+trPL246FuOrPS3FIooogtA7oijQ8+lZOctyS VbhaytkLnNBHJ5G81/59/xr+aUOyMD0J9xk8iNX4CVGnL/58p2KraG7Km0UWtkcTL0q4 qqLscTRwjV5xNxr9zzE5g17v8eZy/ln7eeTUhNeIsoMZfvsl4Hpf3bebd8uVuGSzzXHN Ol57zVllg+eYLDVyzwCUy9GaxJ5bG32JBBu8T2a3WAj0xSlmlV79tCfljG8AarMBGUsj MIAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CrIm7fS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo14si12035182ejb.460.2021.03.15.11.34.34; Mon, 15 Mar 2021 11:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CrIm7fS6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240466AbhCOOrs (ORCPT + 99 others); Mon, 15 Mar 2021 10:47:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:49162 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233893AbhCOOCf (ORCPT ); Mon, 15 Mar 2021 10:02:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3281564EF3; Mon, 15 Mar 2021 14:02:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816955; bh=29PgtmEDf0c+uslzpTsM6GpiVJ9WCgJL2+GQIQYDjMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CrIm7fS6i4NhunSV4yOHH2PkykBVZ/7Iz9r4fLd533Nqv5m/OJgi2k7gzmkLIv0V4 YoLWG0F3OEIdPjyyZ4EvvR8e/DI1/2DU9/5SJwwIOqAL7zF1ZHc3WMqoh2axOmDQG2 nYcTnwH3qFeB02N5xZuVstTRWO1BBVR5a0PIx/7U= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Forest Crossman , Mathias Nyman Subject: [PATCH 5.10 210/290] usb: xhci: Fix ASMedia ASM1042A and ASM3242 DMA addressing Date: Mon, 15 Mar 2021 14:55:03 +0100 Message-Id: <20210315135549.033703744@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Forest Crossman commit b71c669ad8390dd1c866298319ff89fe68b45653 upstream. I've confirmed that both the ASMedia ASM1042A and ASM3242 have the same problem as the ASM1142 and ASM2142/ASM3142, where they lose some of the upper bits of 64-bit DMA addresses. As with the other chips, this can cause problems on systems where the upper bits matter, and adding the XHCI_NO_64BIT_SUPPORT quirk completely fixes the issue. Cc: stable@vger.kernel.org Signed-off-by: Forest Crossman Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20210311115353.2137560-4-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/host/xhci-pci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -66,6 +66,7 @@ #define PCI_DEVICE_ID_ASMEDIA_1042A_XHCI 0x1142 #define PCI_DEVICE_ID_ASMEDIA_1142_XHCI 0x1242 #define PCI_DEVICE_ID_ASMEDIA_2142_XHCI 0x2142 +#define PCI_DEVICE_ID_ASMEDIA_3242_XHCI 0x3242 static const char hcd_name[] = "xhci_hcd"; @@ -276,11 +277,14 @@ static void xhci_pci_quirks(struct devic pdev->device == PCI_DEVICE_ID_ASMEDIA_1042_XHCI) xhci->quirks |= XHCI_BROKEN_STREAMS; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && - pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) + pdev->device == PCI_DEVICE_ID_ASMEDIA_1042A_XHCI) { xhci->quirks |= XHCI_TRUST_TX_LENGTH; + xhci->quirks |= XHCI_NO_64BIT_SUPPORT; + } if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA && (pdev->device == PCI_DEVICE_ID_ASMEDIA_1142_XHCI || - pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI)) + pdev->device == PCI_DEVICE_ID_ASMEDIA_2142_XHCI || + pdev->device == PCI_DEVICE_ID_ASMEDIA_3242_XHCI)) xhci->quirks |= XHCI_NO_64BIT_SUPPORT; if (pdev->vendor == PCI_VENDOR_ID_ASMEDIA &&