From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110674] Crashes / Resets From AMDGPU / Radeon VII Date: Mon, 12 Aug 2019 16:32:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2035925096==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id AAB5B6E58E for ; Mon, 12 Aug 2019 16:32:01 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2035925096== Content-Type: multipart/alternative; boundary="15656275216.fcE9.21155" Content-Transfer-Encoding: 7bit --15656275216.fcE9.21155 Date: Mon, 12 Aug 2019 16:32:01 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110674 --- Comment #86 from ReddestDream --- >In addition to that, vega20_set_fclk_to_highest_dpm_level is called severa= l times before the card is initialized and even on 5.2.7 works. Something h= appens during or just before the initialization stage that stops smum_send_= msg_to_smc_with_parameter accepting 1001 as a valid value, as it does until= that point. Could be we've got a race condition between the powerplay setup and amdgpu handing off the card to drm_dev_register to advertise it for normal use. drm_dev_register is responsible for the "[drm] Initialized" message: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_drv.c#L994 And it seems like amdgpu calls it here: https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/am= dgpu_drv.c#L1054 Odd that it's doing this if powerplay still has more work to do. And that m= ight be why vega20_set_uclk_to_highest_dpm_level fails that last time. --=20 You are receiving this mail because: You are the assignee for the bug.= --15656275216.fcE9.21155 Date: Mon, 12 Aug 2019 16:32:01 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 86 on bug 11067= 4 from ReddestDream
>In addition to that, vega20_set_fclk=
_to_highest_dpm_level is called several times before the card is initialize=
d and even on 5.2.7 works. Something happens during or just before the init=
ialization stage that stops smum_send_msg_to_smc_with_parameter accepting 1=
001 as a valid value, as it does until that point.

Could be we've got a race condition between the powerplay setup and amdgpu
handing off the card to drm_dev_register to advertise it for normal use.

drm_dev_register is responsible for the "[drm] Initialized" messa=
ge:

https://github.com/torvalds/linux/blob/master/drivers/gpu/drm=
/drm_drv.c#L994

And it seems like amdgpu calls it here:

https://github.com/torvalds/linux/blob/master/=
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L1054

Odd that it's doing this if powerplay still has more work to do. And that m=
ight
be why vega20_set_uclk_to_highest_dpm_level fails that last time.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15656275216.fcE9.21155-- --===============2035925096== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============2035925096==--