Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1205328pxu; Mon, 23 Nov 2020 14:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIailw1B1BripieFhwK/ogD4w2jroMIRVNd/f4uih4TO0C+iNteILhW6tvtlcGnmlptxXS X-Received: by 2002:a17:906:f18f:: with SMTP id gs15mr1689711ejb.474.1606170959964; Mon, 23 Nov 2020 14:35:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606170959; cv=none; d=google.com; s=arc-20160816; b=AQ0QrFLd9tz7hlsmV5G1SmFxu4KdQkSU/ddk51jHpH2sNeeZ4D+Ol0AFf1Yt/Fd5wI CMp+jos78EAcGTDStFKald8BaJH6KqCkFPBuQSkxCUyokwWjhxnx3lwtAsB7EIij4Iqb 1uXjBvJt3DctlbqgBu6kEzYJJ1rKrbYyQkVb2QIti7i9JSBPSSNVs/xcZoRFd6w5dPgC k+2CztYDx7Va/2UHm1LCuXRP8zImQTXK8O5LNF962k7TrKyQ12e2ppvERI/XuCmB64BR BES0BwEcG9sbStVUYC5TRnpfub0DgCnqL0TKdeqZ0Atu8nLKhqTyVKvhkvHW1rteXRlO 6e9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fn6PyF4ZrV3JWjIbQLCpz0+AWWBqSduCUwKrCHBgcrI=; b=pAgyq/+xcg2k3XK+b/fy7IHmdmi2AZSYAShIFD1vIjRuqO3wbc1Kw22yzuyRz75qOW 6SSrE2zqDhmKAATwtC/XEu4ZcvBZ0GHonU0i4krfFqhz3HJl1hixHwqN7rDov993ENEA HsESawEATYf56fdHxTSX4zI1sKWeAYetG5R30VOfc7peoyqM3GhMrVCEcG7VXi1/Wmz9 tIOxLS8VzK8OCc0j6Jmp54zKNxDEUaowlEJ6sXhw8/YLN/ZFKmLG74c9OycF08D64K2e IciYQ1KFYC/FFyULpaypXgguZ4zlPMYosPXAZiqB9XVDiglnmgmWUBtf7yJh0dow3KjA +yFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l8w9dZ7t; 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 e18si7284901ejq.261.2020.11.23.14.35.37; Mon, 23 Nov 2020 14:35:59 -0800 (PST) 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=l8w9dZ7t; 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 S1732465AbgKWWeE (ORCPT + 99 others); Mon, 23 Nov 2020 17:34:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:47006 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730198AbgKWWeD (ORCPT ); Mon, 23 Nov 2020 17:34:03 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 2ED11206B7; Mon, 23 Nov 2020 22:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606170842; bh=EfAu8mvkAKJtvXGIKHOfxbFORCHbR6lzt8aMQ7RnXjc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l8w9dZ7t3FWKznc9S49rhn6NIXGz/p8IffABwKwfF5DIVGHepFHkRsjILerUwnVIw 7A19bC/zDe/oZI2iD7jpUSOXivrfRImr/95RG1uEdmCD06Y8c1w77fJo14EJvcDwnd 1REafM5KBMc7EBEBzmURh2A3U7dV0omHi5n2ALxI= Date: Mon, 23 Nov 2020 22:33:56 +0000 From: Will Deacon To: "Deucher, Alexander" Cc: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "iommu@lists.linux-foundation.org" , Bjorn Helgaas , Edgar Merger , Joerg Roedel , "Kuehling, Felix" Subject: Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken Message-ID: <20201123223356.GC12069@willie-the-truck> References: <20201123134410.10648-1-will@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 09:04:14PM +0000, Deucher, Alexander wrote: > [AMD Public Use] > > > -----Original Message----- > > From: Will Deacon > > Sent: Monday, November 23, 2020 8:44 AM > > To: linux-kernel@vger.kernel.org > > Cc: linux-pci@vger.kernel.org; iommu@lists.linux-foundation.org; Will > > Deacon ; Bjorn Helgaas ; > > Deucher, Alexander ; Edgar Merger > > ; Joerg Roedel > > Subject: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken > > > > Edgar Merger reports that the AMD Raven GPU does not work reliably on his > > system when the IOMMU is enabled: > > > > | [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, > > signaled seq=1, emitted seq=3 > > | [...] > > | amdgpu 0000:0b:00.0: GPU reset begin! > > | AMD-Vi: Completion-Wait loop timed out > > | iommu ivhd0: AMD-Vi: Event logged [IOTLB_INV_TIMEOUT > > device=0b:00.0 address=0x38edc0970] > > > > This is indicative of a hardware/platform configuration issue so, since > > disabling ATS has been shown to resolve the problem, add a quirk to match > > this particular device while Edgar follows-up with AMD for more information. > > > > Cc: Bjorn Helgaas > > Cc: Alex Deucher > > Reported-by: Edgar Merger > > Suggested-by: Joerg Roedel > > Link: > > https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore. > > kernel.org%2Flinux- > > iommu%2FMWHPR10MB1310F042A30661D4158520B589FC0%40MWHPR10M > > B1310.namprd10.prod.outlook.com&data=04%7C01%7Calexander.deuc > > her%40amd.com%7C1a883fe14d0c408e7d9508d88fb5df4e%7C3dd8961fe488 > > 4e608e11a82d994e183d%7C0%7C0%7C637417358593629699%7CUnknown%7 > > CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwi > > LCJXVCI6Mn0%3D%7C1000&sdata=TMgKldWzsX8XZ0l7q3%2BszDWXQJJ > > LOUfX5oGaoLN8n%2B8%3D&reserved=0 > > Signed-off-by: Will Deacon > > --- > > > > Hi all, > > > > Since Joerg is away at the moment, I'm posting this to try to make some > > progress with the thread in the Link: tag. > > + Felix > > What system is this? Can you provide more details? Does a sbios update > fix this? Disabling ATS for all Ravens will break GPU compute for a lot > of people. I'd prefer to just black list this particular system (e.g., > just SSIDs or revision) if possible. Cheers, Alex. I'll have to defer to Edgar for the details, as my understanding from the original thread over at: https://lore.kernel.org/linux-iommu/MWHPR10MB1310CDB6829DDCF5EA84A14689150@MWHPR10MB1310.namprd10.prod.outlook.com/ is that this is a board developed by his company. Edgar -- please can you answer Alex's questions? Will