Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8654309rwb; Thu, 24 Nov 2022 02:29:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/LoD5l6KTQdZ8Y91BMMg6rRcb5V6U1DrHkWoU49nKtP12Fs9OKaSwVs9sYf5SscjCldOt X-Received: by 2002:a17:906:a889:b0:7ad:bd02:f491 with SMTP id ha9-20020a170906a88900b007adbd02f491mr28236718ejb.703.1669285799317; Thu, 24 Nov 2022 02:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669285799; cv=none; d=google.com; s=arc-20160816; b=KMJ073nJ0QqMYU2g2k/9s5bnZ0VGIEIsY2DwfmrUV6uMydy8O+ZiA/1HskqbeHrg1X nuTch/onn0drCxC5gl+C2XgmG/8QKt03WOl8Jdhuv4ELYWiZQLKVzfrklvga9fdVaZl+ PfZJj8bT0Lw6m5mVk0wSJ8pp4wGoUXWN6jiiqtAW49eElNQ21RIkC5MMzKLxf09Iv9BO FRCbcQudDjSBRY4YKlLhY1ZsqgAX2F5dMfxDomzgn93xtlA9YH0Du0ddeMS0IDNxDI4d PmM1QI9hGEuYvVKewA33pGTskfeaMbrTU/1O4p8vKl9gbr7ubXln2zGLwWn7mYChgqVB YbTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=grg1WkorBBI5i++s0cNc3EAJO6tnj2pMI+gCkQrn5+o=; b=R9qs3t1rtgun7vUt7hIe1Fz1OlhBt2chdRPc7bc6c51kLMf9pXo9fV9glptZuDTs/M 7W5WJYZXWD6KwNH6D+Dd4v3J1YKzgrCBzwZEdCoDFCDIOanoW47RcuONkwwCUJBgbq2N Q4S0MJcUFW1umhaqCbcqp1HXav27Y+nPCobBXXuuGaD+rvGZ5WaCojLul+pe+ULdu7Y6 DSaJ3AuEDBGJGe7/nd1mCgoT/EuFVDwrEDwIP6pTcCOBJnwrBNLOkxNF+KiZs9O3OTh4 +oRN3qbluwKI+mKE20HhcOl4E+NGECjsFK5xZ5731EsIDnbSuEFQPC4k93fFoCnRyAww e6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DAglP0Q1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a170906340d00b007ac9a51342asi427036ejb.188.2022.11.24.02.29.37; Thu, 24 Nov 2022 02:29:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DAglP0Q1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229786AbiKXKG2 (ORCPT + 88 others); Thu, 24 Nov 2022 05:06:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbiKXKGZ (ORCPT ); Thu, 24 Nov 2022 05:06:25 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58EAE86A4F for ; Thu, 24 Nov 2022 02:06:24 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id i10so3044982ejg.6 for ; Thu, 24 Nov 2022 02:06:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=grg1WkorBBI5i++s0cNc3EAJO6tnj2pMI+gCkQrn5+o=; b=DAglP0Q1TxZviwF+1OIbZJpTWrwiHeIvDNcWQUii2/BXS+2rEi52nLomWwJCXe0zir 4nmTpj+MJAlfPGtYlFfuIKHZwRiL/pv5ZLTbFAE8tPDRzefOjb9JRBI6A7WEKfuMq4Yy kSNsC2KizrKAUtUQF6vpsmhrv9mxAPVIkLZQGviqEWCI6yV8ttF0zb65beekBjZnchcR ZJdanQJgaiGDIlUQlsVhZ/GXmGnfumRCtZkSwu5lNVBigd2nMhE1w59sLtYt1cmt2Hwp 85z3gMzbUB1UGGUxXHYglJW30b5FHdw2JOY8hswgGNP0fSAel3iNahS/TqRBnleYQG8U JzXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=grg1WkorBBI5i++s0cNc3EAJO6tnj2pMI+gCkQrn5+o=; b=WL6OHgVSx8ZyQOy4DNqLS1/F/lXiYDcZ6h3TQLftBRNA6X0VvGeN6cXdGFRxbX7yfv BZ0OfH7tMzRueW9WwT5ElwhdxFo2rgMD1S46bbeWWO/OZUGHM+FCiOglqGB6r/8biZLZ IJS1FcZa5pCUIFRJWnfUoe9tTbHIVrCDmOmWKbIfUBR9e4uk9pFv9JDlKuaOm4/C587x szYw8WWRK56i0pujBO10ccDySC1FKWKuiasAZkTzryOKNac5r9l1usb+SdoVllmiWXol /wY2hRIXe7k0IpEMtDBTgGZOAN95xWE4flz+y2kPqK6gqJxyPXjYWcFDZKLsp9m2uRiO 6v5A== X-Gm-Message-State: ANoB5plzwTAnULbnRfoAoVcR8pFl7FbeU92BrmWX9a/kdKqUxdg80x7E uo61NuaWFggP+kZhQEbOzM4= X-Received: by 2002:a17:907:11cb:b0:7a6:598f:1fb1 with SMTP id va11-20020a17090711cb00b007a6598f1fb1mr27280535ejb.606.1669284382937; Thu, 24 Nov 2022 02:06:22 -0800 (PST) Received: from [192.168.178.21] (p5b0ea229.dip0.t-ipconnect.de. [91.14.162.41]) by smtp.gmail.com with ESMTPSA id k26-20020a17090632da00b0073022b796a7sm258321ejk.93.2022.11.24.02.06.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Nov 2022 02:06:22 -0800 (PST) Message-ID: Date: Thu, 24 Nov 2022 11:06:20 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] drm/amdgpu: add mb for si Content-Language: en-US To: "Quan, Evan" , =?UTF-8?B?5p2O55yf6IO9?= , =?UTF-8?Q?Michel_D=c3=a4nzer?= , "Koenig, Christian" , "Deucher, Alexander" Cc: "dri-devel@lists.freedesktop.org" , "Pan, Xinhui" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" References: <20221118074810.380368-1-lizhenneng@kylinos.cn> <800a1207-8ff6-4cfa-60f3-6ff456874890@mailbox.org> <4adc40d1-e775-c480-bb35-23fe9c63e05e@kylinos.cn> From: =?UTF-8?Q?Christian_K=c3=b6nig?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org That's not a patch but some binary file? Christian. Am 24.11.22 um 11:04 schrieb Quan, Evan: > [AMD Official Use Only - General] > > Could the attached patch help? > > Evan >> -----Original Message----- >> From: amd-gfx On Behalf Of ??? >> Sent: Friday, November 18, 2022 5:25 PM >> To: Michel Dänzer ; Koenig, Christian >> ; Deucher, Alexander >> >> Cc: amd-gfx@lists.freedesktop.org; Pan, Xinhui ; >> linux-kernel@vger.kernel.org; dri-devel@lists.freedesktop.org >> Subject: Re: [PATCH] drm/amdgpu: add mb for si >> >> >> 在 2022/11/18 17:18, Michel Dänzer 写道: >>> On 11/18/22 09:01, Christian König wrote: >>>> Am 18.11.22 um 08:48 schrieb Zhenneng Li: >>>>> During reboot test on arm64 platform, it may failure on boot, so add >>>>> this mb in smc. >>>>> >>>>> The error message are as follows: >>>>> [    6.996395][ 7] [  T295] [drm:amdgpu_device_ip_late_init >>>>> [amdgpu]] *ERROR* >>>>>                 late_init of IP block failed -22 [ >>>>> 7.006919][ 7] [  T295] amdgpu 0000:04:00.0: >>>>> amdgpu_device_ip_late_init failed [    7.014224][ 7] [  T295] amdgpu >>>>> 0000:04:00.0: Fatal error during GPU init >>>> Memory barries are not supposed to be sprinkled around like this, you >> need to give a detailed explanation why this is necessary. >>>> Regards, >>>> Christian. >>>> >>>>> Signed-off-by: Zhenneng Li >>>>> --- >>>>>   drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c | 2 ++ >>>>>   1 file changed, 2 insertions(+) >>>>> >>>>> diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c >>>>> b/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c >>>>> index 8f994ffa9cd1..c7656f22278d 100644 >>>>> --- a/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c >>>>> +++ b/drivers/gpu/drm/amd/pm/legacy-dpm/si_smc.c >>>>> @@ -155,6 +155,8 @@ bool amdgpu_si_is_smc_running(struct >>>>> amdgpu_device *adev) >>>>>       u32 rst = RREG32_SMC(SMC_SYSCON_RESET_CNTL); >>>>>       u32 clk = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); >>>>>   +    mb(); >>>>> + >>>>>       if (!(rst & RST_REG) && !(clk & CK_DISABLE)) >>>>>           return true; >>> In particular, it makes no sense in this specific place, since it cannot directly >> affect the values of rst & clk. >> >> I thinks so too. >> >> But when I do reboot test using nine desktop machines,  there maybe report >> this error on one or two machines after Hundreds of times or Thousands of >> times reboot test, at the beginning, I use msleep() instead of mb(), these >> two methods are all works, but I don't know what is the root case. >> >> I use this method on other verdor's oland card, this error message are >> reported again. >> >> What could be the root reason? >> >> test environmen: >> >> graphics card: OLAND 0x1002:0x6611 0x1642:0x1869 0x87 >> >> driver: amdgpu >> >> os: ubuntu 2004 >> >> platform: arm64 >> >> kernel: 5.4.18 >>