Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1391308ybg; Wed, 29 Jul 2020 12:59:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziaYtzF2Ksh7oQLejtWVEiImw3IH9hRhZq8iRMvWMLNNlutp236yAjdUdhYCCtNaijyYaY X-Received: by 2002:a50:9fc9:: with SMTP id c67mr21965389edf.69.1596052757594; Wed, 29 Jul 2020 12:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596052757; cv=none; d=google.com; s=arc-20160816; b=Lxsn3JxiciWQ+7nqL7oN4w68I9Hri+AWUZnPtktj+OL0UFkj6m/LUjqkCDywz5iE6z mtHf+SATmr1NKM4mLFPGHaXfe0WgLTXYTTtsCV5+A3WV9u5pkMpf52r0rwuJUeeN8zJA nXiezRCLs35FdGg0P5Yw2j+irK1FBpuiTsXsCLuKDcZNNKygDetY5R4GbiNfu1+95rnS KNMvvsGxq+z1iTRVkZc180bkMyvvKfMyIUCSDgIvyt6m/J73rEzLNaBV+BLfdUmyPFHp jMPpCnZzR26Mxi7Gt1M9pHOVta3IMfTvANzyPrgi+Kalsulkxi8hV2LT/BMdsFvy1Ars driA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=WER7lfkTdAEG7kVV1OMB4kOKJGZVea0142jSBtgV7UI=; b=KPd0m7ZMo1iAtOHWHeyqxXyCvzvKKsxlv/7c7VekS3Ktf+D3zBhcfoMwoFM+ehwH/i 3SUz86WFlrtR+OjA3mYYuClgXkmnN0aII6lRKsEtgMsU3vhxA03P9rKxr5euRNCOh+XU JAJc6TmDsnpYHTYcWDuLSFiubank9M0aLiUNxFYZSS/SFkoCK2rnig5sj11FULOsZ0OM LcZhrcgoScNbi470TwQcNJ7MUhpId31RNW93ELSdUPGabdGl7bOtdYaeEd1EnzmCEzTq 6yyTLOxDkirmHr9vhc4hiHk+ZSW1cG2XKLiT1wT2o6KwDI0H6MIJbXT/WLb2bdd3X/Mg BZow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kPLwqdfl; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si1670101ejr.349.2020.07.29.12.58.54; Wed, 29 Jul 2020 12:59:17 -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=@kernel.org header.s=default header.b=kPLwqdfl; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726631AbgG2T6L (ORCPT + 99 others); Wed, 29 Jul 2020 15:58:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:43288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726365AbgG2T6K (ORCPT ); Wed, 29 Jul 2020 15:58:10 -0400 Received: from localhost (mobile-166-175-62-240.mycingular.net [166.175.62.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DFCB920658; Wed, 29 Jul 2020 19:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596052690; bh=iGzz7rQ/5qZp9DO6zE6accMYxJGaMPhuoTKjf6mZI1Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=kPLwqdflDcRM81w2WKbe4c+9PQaukq++cwHLQBZhZ+G5YNVgjKWFfRWAfE5QL3/EM Mq7OtpUo1nK7THDOzpN5jbpHagndqaQbNMfnKF0aony5cZAgS7kML9CPlNMxVdZnkj azil1Rzgxi9SI83ZECbcJR7OEB7iBMv3b84OPQnw= Date: Wed, 29 Jul 2020 14:58:08 -0500 From: Bjorn Helgaas To: Kai-Heng Feng Cc: bhelgaas@google.com, Alex Deucher , "open list:PCI SUBSYSTEM" , open list Subject: Re: [PATCH] PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken Message-ID: <20200729195808.GA1962849@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200728104554.28927-1-kai.heng.feng@canonical.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 06:45:53PM +0800, Kai-Heng Feng wrote: > We are seeing AMD Radeon Pro W5700 doesn't work when IOMMU is enabled: > [ 3.375841] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=63:00.0 address=0x42b5b01a0] > [ 3.375845] iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT device=63:00.0 address=0x42b5b01c0] > > The error also makes graphics driver fail to probe the device. > > It appears to be the same issue as commit 5e89cd303e3a ("PCI: Mark AMD > Navi14 GPU rev 0xc5 ATS as broken") addresses, and indeed the same ATS > quirk can workaround the issue. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=208725 > Cc: Alex Deucher > Signed-off-by: Kai-Heng Feng Applied with Alex's ack to pci/virtualization for v5.9, thanks! I also added a stable tag since we did that for 5e89cd303e3a. Let me know if you *don't* want that. > --- > drivers/pci/quirks.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 812bfc32ecb8..052efeb9f053 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -5192,7 +5192,8 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SERVERWORKS, 0x0422, quirk_no_ext_tags); > */ > static void quirk_amd_harvest_no_ats(struct pci_dev *pdev) > { > - if (pdev->device == 0x7340 && pdev->revision != 0xc5) > + if ((pdev->device == 0x7312 && pdev->revision != 0x00) || > + (pdev->device == 0x7340 && pdev->revision != 0xc5)) > return; > > pci_info(pdev, "disabling ATS\n"); > @@ -5203,6 +5204,8 @@ static void quirk_amd_harvest_no_ats(struct pci_dev *pdev) > DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x98e4, quirk_amd_harvest_no_ats); > /* AMD Iceland dGPU */ > DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x6900, quirk_amd_harvest_no_ats); > +/* AMD Navi10 dGPU */ > +DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7312, quirk_amd_harvest_no_ats); > /* AMD Navi14 dGPU */ > DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7340, quirk_amd_harvest_no_ats); > #endif /* CONFIG_PCI_ATS */ > -- > 2.17.1 >