Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp189597pxf; Thu, 11 Mar 2021 01:10:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3J9P+1TQxo5m4WVOZc9CPa8o2a8cpALYvY+sYX3eLE3VNscpsloLi7bJCXJY9jHEQSysL X-Received: by 2002:aa7:c1d5:: with SMTP id d21mr7338160edp.167.1615453857136; Thu, 11 Mar 2021 01:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615453857; cv=none; d=google.com; s=arc-20160816; b=NGsP3PGpXDBNdIT3yubJ+l3ULzApWFY0SopHgpLVIQfGqSH5NWbe3imSMLwB/VKM2k 4e4SWtD+gb3jh0rIUZowcTGYIrDb9L2EjBVZMUbTNMENgVNVj0KXLPNXKdt1lZFkzjbI Qh2MMnbBCeoDnWrPk3zlcpOe1ozSzh+SDWCMO84M/f3JtjrWibiwtDzL7gfO1aaFffnU a+du16dcGstIcdMzwfnxhHbbHxE5dKCw5YiehizSvTmNlU7K/LrVqWZhJeCB+txfY7Ep jc2BIz8dyG8DzV3U4Jp1oWEGu439RB/qWZSBdj60szuwvv7kH/a5pZKUxxvh0o0dRQJ4 dF7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RnT+lPnIHBw/xRDsclmASuOvNjJ9ngFpJSmXHW9gT1s=; b=Azen5eRCSz+8pRhv6f7Vk4gKFR/R4R5TFUD3SFbmd68hXk+fTzfWWlw1aGnO5w+scj CY3fONZqEZAA13Wfoc2omiYzNggUXmYjrGb+QVHlP5bis0RPiLepIgO982chHgBTMOps 0R4BwP4zuVoYbrz0ItRVKFYuZklVIYjrxNMmu0D2KYM6ZDMKBz96r9/JQN8dYxhl7bSl FodJgBNwrvzSzuIlwkiycxMf02ZtY+9TwGDP1j60n8a9qGPlfpM74VBQwX7nWSkWvM1K OZeWFGkC29o4EMaYohhQWdgkTmQf+sMG4lJ9Asa/+IVU6ruWRevFfh62Xll5VeZGo4wT NIUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@qtec.com header.s=google header.b=LH0uuBBo; 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=qtec.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si1442621ejl.444.2021.03.11.01.10.34; Thu, 11 Mar 2021 01:10:57 -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=@qtec.com header.s=google header.b=LH0uuBBo; 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=qtec.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231915AbhCKJJg (ORCPT + 99 others); Thu, 11 Mar 2021 04:09:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231834AbhCKJJW (ORCPT ); Thu, 11 Mar 2021 04:09:22 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 859AAC061574 for ; Thu, 11 Mar 2021 01:09:22 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id u4so1181319ljo.6 for ; Thu, 11 Mar 2021 01:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qtec.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RnT+lPnIHBw/xRDsclmASuOvNjJ9ngFpJSmXHW9gT1s=; b=LH0uuBBonQYeRw5PRypwMx3pqqtIVdxzggC6gcxg+8Fpd8x2nix9/7lRT5+jzm0UPx MCspsVqaFPDjsy+63ETLGmuUlnp6dsGlWNsqApadi7qWKY9cIUGi0AlLwFkAPAT4uz7D qRVolWJtwHagQiLm6gsOJ2xuXkZksMNT3jXwloZYMpmIFOBU8o11f3bK9fUcjGBZttYS 8RcTOHpkCWZm9fYQGw3tQyFTyN3TkDmCCsjUHr+Ydxg4pY7ef7+ThT2p0ZF1pNWO7bln zEpU4WgnpJ4bBHRTlggPNCS/lCxrESMo2Fs5SI3B+6VbwF2mJvg2MXEy3HFEaM3gqc7J 4/RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RnT+lPnIHBw/xRDsclmASuOvNjJ9ngFpJSmXHW9gT1s=; b=EPjo6UjdvftMgQpiZjyb2se+CvQjgam5jYi1uAR4lnE4oroaDD8tZMz8lXon97vGo1 NuMHHZikIPXP/uHl2Thhpl71Gg9kgM4jZSTYJ+YyLtCxfTgbnv7Tis+CnmqoIhyYF1TF xGzBUDbNLmzwxz44Tkx73Nes2weW3ZeuH1Keq0Bu2nXx0psha2zD8RsCJzGB+RCVBHuq RWo5GpAL3gwLCpi1HHXRQnmg3x11udfkNJku9kxku13tF+lkNYZ5P9Zgty7pegfkAaRy 8gCmGHvnHcu1p8xsL6YReY1xIv6U6JqPK24zG5gQVhWud5uGG/ORSWsQTkcAkaq/YCk2 k4Jg== X-Gm-Message-State: AOAM531W+XZV3Brgwuk8+KTIH5HsE7Fc+jUw9sHAkTFrKCGhmVkZ9C0o GfhISIoqRMf96ZyscOQ9eeHjVQLNCtfL5GL31L86JA== X-Received: by 2002:a2e:557:: with SMTP id 84mr4309802ljf.480.1615453760997; Thu, 11 Mar 2021 01:09:20 -0800 (PST) MIME-Version: 1.0 References: <20210310163655.2591893-1-daniel@qtec.com> In-Reply-To: From: Daniel Gomez Date: Thu, 11 Mar 2021 10:09:10 +0100 Message-ID: Subject: Re: [PATCH]] drm/amdgpu/gfx9: add gfxoff quirk To: Alex Deucher Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , David Airlie , Daniel Vetter , Sumit Semwal , Hawking Zhang , Huang Rui , Nirmoy Das , Dennis Li , Monk Liu , Yintian Tao , Guchun Chen , Evan Quan , amd-gfx list , Maling list - DRI developers , LKML , linux-media , "moderated list:DMA BUFFER SHARING FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 10 Mar 2021 at 18:06, Alex Deucher wrote: > > On Wed, Mar 10, 2021 at 11:37 AM Daniel Gomez wrote: > > > > Disabling GFXOFF via the quirk list fixes a hardware lockup in > > Ryzen V1605B, RAVEN 0x1002:0x15DD rev 0x83. > > > > Signed-off-by: Daniel Gomez > > --- > > > > This patch is a continuation of the work here: > > https://lkml.org/lkml/2021/2/3/122 where a hardware lockup was discussed and > > a dma_fence deadlock was provoke as a side effect. To reproduce the issue > > please refer to the above link. > > > > The hardware lockup was introduced in 5.6-rc1 for our particular revision as it > > wasn't part of the new blacklist. Before that, in kernel v5.5, this hardware was > > working fine without any hardware lock because the GFXOFF was actually disabled > > by the if condition for the CHIP_RAVEN case. So this patch, adds the 'Radeon > > Vega Mobile Series [1002:15dd] (rev 83)' to the blacklist to disable the GFXOFF. > > > > But besides the fix, I'd like to ask from where this revision comes from. Is it > > an ASIC revision or is it hardcoded in the VBIOS from our vendor? From what I > > can see, it comes from the ASIC and I wonder if somehow we can get an APU in the > > future, 'not blacklisted', with the same problem. Then, should this table only > > filter for the vendor and device and not the revision? Do you know if there are > > any revisions for the 1002:15dd validated, tested and functional? > > The pci revision id (RID) is used to specify the specific SKU within a > family. GFXOFF is supposed to be working on all raven variants. It > was tested and functional on all reference platforms and any OEM > platforms that launched with Linux support. There are a lot of > dependencies on sbios in the early raven variants (0x15dd), so it's > likely more of a specific platform issue, but there is not a good way > to detect this so we use the DID/SSID/RID as a proxy. The newer raven > variants (0x15d8) have much better GFXOFF support since they all > shipped with newer firmware and sbios. We took one of the first reference platform boards to design our custom board based on the V1605B and I assume it has one of the early 'unstable' raven variants with RID 0x83. Also, as OEM we are in control of the bios (provided by insyde) but I wasn't sure about the RID so, thanks for the clarification. Is there anything we can do with the bios to have the GFXOFF enabled and 'stable' for this particular revision? Otherwise we'd need to add the 0x83 RID to the table. Also, there is an extra ']' in the patch subject. Sorry for that. Would you need a new patch in case you accept it with the ']' removed? Good to hear that the newer raven versions have better GFXOFF support. Daniel > > Alex > > > > > > Logs: > > [ 27.708348] [drm] initializing kernel modesetting (RAVEN > > 0x1002:0x15DD 0x1002:0x15DD 0x83). > > [ 27.789156] amdgpu: ATOM BIOS: 113-RAVEN-115 > > > > Thanks in advance, > > Daniel > > > > drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > > index 65db88bb6cbc..319d4b99aec8 100644 > > --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > > +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c > > @@ -1243,6 +1243,8 @@ static const struct amdgpu_gfxoff_quirk amdgpu_gfxoff_quirk_list[] = { > > { 0x1002, 0x15dd, 0x103c, 0x83e7, 0xd3 }, > > /* GFXOFF is unstable on C6 parts with a VBIOS 113-RAVEN-114 */ > > { 0x1002, 0x15dd, 0x1002, 0x15dd, 0xc6 }, > > + /* GFXOFF provokes a hw lockup on 83 parts with a VBIOS 113-RAVEN-115 */ > > + { 0x1002, 0x15dd, 0x1002, 0x15dd, 0x83 }, > > { 0, 0, 0, 0, 0 }, > > }; > > > > -- > > 2.30.1 > > > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel