From: bugzilla-daemon@freedesktop.org
Subject: [Bug 110674] Crashes / Resets From AMDGPU / Radeon VII
Date: Tue, 13 Aug 2019 15:20:05 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1327086478=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 83D3C89DD3
for ; Tue, 13 Aug 2019 15:20:05 +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
--===============1327086478==
Content-Type: multipart/alternative; boundary="15657096053.df7B.22309"
Content-Transfer-Encoding: 7bit
--15657096053.df7B.22309
Date: Tue, 13 Aug 2019 15:20:05 +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 #96 from Tom B ---
Created attachment 145047
--> https://bugs.freedesktop.org/attachment.cgi?id=3D145047&action=3Dedit
logging anywhere the number of screens is set
Again, no closer to a fix but another thing to rule out. In addition to
SMU_MSG_NumOfDisplays, PPSMC_MSG_NumOfDisplays is also used.
I put a debug message anywhere PPSMC_MSG_NumOfDisplays or SMU_MSG_NumOfDisp=
lays
is set end put else blocks in places where it may have been set:
if ((data->water_marks_bitmap & WaterMarksExist) &&
data->smu_features[GNLD_DPM_DCEFCLK].supported &&
data->smu_features[GNLD_DPM_SOCCLK].supported) {
pr_err("vega20_display_configuration_changed_task setting
PPSMC_MSG_NumOfDisplays to %d\n", hwmgr->display_config->num_display);
result =3D smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_NumOfDisplays,
hwmgr->display_config->num_display);
}
else {
pr_err("vega20_display_configuration_changed_task not setti=
ng
PPSMC_MSG_NumOfDisplays\n");
}
return result;
}
Here's what I found:
- The functions dealing with screesn in vega20_ppt.c are never used (
vega20_display_config_changed, vega20_pre_display_config_changed) and can be
ignored for our further tests
- The line:=20
result =3D smum_send_msg_to_smc_with_parameter(hwmgr,=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20
PPSMC_MSG_NumOfDisplays, hwmgr->display_config->num_display);
Is never executed, it always triggers the else block so PPSMC_MSG_NumOfDisp=
lays
is never set using num_display.
- The same thing happens in 5.0.13, when I saw the above result I had hoped
that the problem was that smum_send_msg_to_smc_with_parameter(hwmgr,=20=20=
=20=20=20=20=20=20=20=20=20
PPSMC_MSG_NumOfDisplays, hwmgr->display_config->num_display); was never cal=
led
with the correct number of displays. Unfortunately the behaviour is the sam=
e on
5.0.13, PPSMC_MSG_NumOfDisplays is only ever set to zero in both versions of
the kernel.
Unfortunately this doesn't get us any closer.
The instruction is sent a lot more in 5.0.13 though.=20
5.0.13:
[ 3.475471] amdgpu 0000:44:00.0: ring vce1 uses VM inv eng 13 on hub 1
[ 3.475472] amdgpu 0000:44:00.0: ring vce2 uses VM inv eng 14 on hub 1
[ 3.475508] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 3.794037] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 3.800180] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 3.833502] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 3.833647] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 4.153232] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:44:00.0 on
minor 0
[ 4.664044] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
5.2.7
[ 3.711028] amdgpu 0000:44:00.0: ring vce1 uses VM inv eng 13 on hub 1
[ 3.711028] amdgpu 0000:44:00.0: ring vce2 uses VM inv eng 14 on hub 1
[ 4.086310] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 4.385470] [drm] Initialized amdgpu 3.32.0 20150101 for 0000:44:00.0 on
minor 0
[ 4.522398] amdgpu: [powerplay] Failed to send message 0x28, response 0x0
Notice that vega20_pre_display_configuration_changed_task is run 5 times
between the ring lines and initilization line in 5.0.13 and only once in 5.=
2.7.
This might not mean anything, but it could be another clue that initilizati=
on
is happening before the card is really ready.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15657096053.df7B.22309
Date: Tue, 13 Aug 2019 15:20:05 +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 # 96
on bug 11067=
4
from Tom =
B
Created attachment 145047 [details]=
logging anywhere the number of screens is set
Again, no closer to a fix but another thing to rule out. In addition to
SMU_MSG_NumOfDisplays, PPSMC_MSG_NumOfDisplays is also used.
I put a debug message anywhere PPSMC_MSG_NumOfDisplays or SMU_MSG_NumOfDisp=
lays
is set end put else blocks in places where it may have been set:
if ((data->water_marks_bitmap & WaterMarksExist) &&
data->smu_features[GNLD_DPM_DCEFCLK].supported &&
data->smu_features[GNLD_DPM_SOCCLK].supported) {
pr_err("vega20_display_configuration_changed_task sett=
ing
PPSMC_MSG_NumOfDisplays to %d\n", hwmgr->display_config->num_dis=
play);
result =3D smum_send_msg_to_smc_with_parameter(hwmgr,
PPSMC_MSG_NumOfDisplays,
hwmgr->display_config->num_display);
}
else {
pr_err("vega20_display_configuration_changed_task not =
setting
PPSMC_MSG_NumOfDisplays\n");
}
return result;
}
Here's what I found:
- The functions dealing with screesn in vega20_ppt.c are never used (
vega20_display_config_changed, vega20_pre_display_config_changed) and can be
ignored for our further tests
- The line:=20
result =3D smum_send_msg_to_smc_with_parameter(hwmgr,=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20
PPSMC_MSG_NumOfDisplays, hwmgr->display_config->num_display);
Is never executed, it always triggers the else block so PPSMC_MSG_NumOfDisp=
lays
is never set using num_display.
- The same thing happens in 5.0.13, when I saw the above result I had hoped
that the problem was that smum_send_msg_to_smc_with_parameter(hwmgr,=20=20=
=20=20=20=20=20=20=20=20=20
PPSMC_MSG_NumOfDisplays, hwmgr->display_config->num_display); was nev=
er called
with the correct number of displays. Unfortunately the behaviour is the sam=
e on
5.0.13, PPSMC_MSG_NumOfDisplays is only ever set to zero in both versions of
the kernel.
Unfortunately this doesn't get us any closer.
The instruction is sent a lot more in 5.0.13 though.=20
5.0.13:
[ 3.475471] amdgpu 0000:44:00.0: ring vce1 uses VM inv eng 13 on hub 1
[ 3.475472] amdgpu 0000:44:00.0: ring vce2 uses VM inv eng 14 on hub 1
[ 3.475508] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 3.794037] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 3.800180] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 3.833502] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 3.833647] amdgpu: [powerplay] vega20_display_configuration_changed_task
not setting PPSMC_MSG_NumOfDisplays
[ 4.153232] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:44:00.0 on
minor 0
[ 4.664044] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
5.2.7
[ 3.711028] amdgpu 0000:44:00.0: ring vce1 uses VM inv eng 13 on hub 1
[ 3.711028] amdgpu 0000:44:00.0: ring vce2 uses VM inv eng 14 on hub 1
[ 4.086310] amdgpu: [powerplay]
vega20_pre_display_configuration_changed_task setting PPSMC_MSG_NumOfDispla=
ys
to 0
[ 4.385470] [drm] Initialized amdgpu 3.32.0 20150101 for 0000:44:00.0 on
minor 0
[ 4.522398] amdgpu: [powerplay] Failed to send message 0x28, response 0x0
Notice that vega20_pre_display_configuration_changed_task is run 5 times
between the ring lines and initilization line in 5.0.13 and only once in 5.=
2.7.
This might not mean anything, but it could be another clue that initilizati=
on
is happening before the card is really ready.
You are receiving this mail because:
- You are the assignee for the bug.
=
--15657096053.df7B.22309--
--===============1327086478==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs
--===============1327086478==--