Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3520756pxf; Mon, 15 Mar 2021 11:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtBSKr3wlDAUmlHFcV+L8f2BYtVQcIdlVagwcHzguPfoO+Ep5WBz8ttVUJjTxoycyTpwn9 X-Received: by 2002:a05:6402:17d5:: with SMTP id s21mr31472169edy.65.1615832607481; Mon, 15 Mar 2021 11:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832607; cv=none; d=google.com; s=arc-20160816; b=RC9GMKqZkA3Z3ojQY055HzBWpV5YsHsd8QAgnx8NI3gGJ4B4VhxePYbwy9Uu/GNQbM xqIVS8ybMUVnXdzhP+viiizsfe+9c5LSl65igOi6W1UE9NVQkzSYC7P1tkYcVfr1yP+c 1w1tbzZZJVud0dGgjmQf/uXRROC2C6sre7JvFbYMyum6SLz4fALOoJWGP2JHVwdC9nx/ QmFc2aNS2Xkn4k6OFD3+Wks0TcZJ7I55kpWFb/iWGhg7NkPxsEfRsePc43as2CUAxzup 5P4L+Ov86ajZDthh+/Qral7tkyGHfuXmZb8tqsZOZ7dc7qZqiZNfxygM44uqD4VfdNgA cd2Q== 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=447kAZYLj6phiEVzSa6yHAyIKpFfFw3j0ukx3GOaF7c=; b=J6e3V1j8GEL0lMA9iPz5JZwCkzOghsZ1zhDEpsp5tKSnAZTwh0l2Tm51nkMrJGIFPH ETKLLirAupEKGPq95vlc2RMWUC2NqW8cMAAlKf/fcq77D2RAVcbDtI79OPNFhqtFiGN1 dMW2uYxt354KR2AA28dMt4mZeClO2XiJ9MGpryYdlZNWDk/UgcnaxPHxj8rrtfecGIJJ ngpH70RcwOBGvOisCbFH998p2GishT/2L4RU2Gzj7kwkvKgaW/9QQr4gzCuePnLE0+QY mIK1faeNgJqg5eDt3BD0L4SZ8Q3MMeC8jjdwcCXPq0K+1NcfFPcbbqLqHvTv669nxTrX iyBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uyMFtlU8; 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 t23si11748446ejj.290.2021.03.15.11.23.05; Mon, 15 Mar 2021 11:23:27 -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=uyMFtlU8; 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 S231377AbhCOOUo (ORCPT + 99 others); Mon, 15 Mar 2021 10:20:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:35186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232789AbhCON74 (ORCPT ); Mon, 15 Mar 2021 09:59:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 018E264F13; Mon, 15 Mar 2021 13:59:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816778; bh=Fc0/wGpjCtvfAMceyXDg7vg0fHNv+XZlMIcPLgQ7d2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uyMFtlU8wyCSf9//c7ot2p9TPq8CVwzYs1R4iBpAanKE5Z56oeXQJDwYTK1T6G5TY WP+urNMdj3XvVNplFG7VU2vcsBGThyyJJZUxvMlozZknyQGRLHCVOEGLTD4diVMyit bF2tu114CyzNU8ADURZR+kkgVtWuSx4abmG26lRU= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Forest Crossman , Mathias Nyman Subject: [PATCH 4.14 55/95] usb: xhci: Fix ASMedia ASM1042A and ASM3242 DMA addressing Date: Mon, 15 Mar 2021 14:57:25 +0100 Message-Id: <20210315135742.078972166@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135740.245494252@linuxfoundation.org> References: <20210315135740.245494252@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 @@ -63,6 +63,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"; @@ -236,11 +237,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 &&