From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 107296] WARNING: CPU: 0 PID: 370 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1355 dcn_bw_update_from_pplib+0x16b/0x280 [amdgpu] Date: Sat, 25 May 2019 22:02:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1966532570==" 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 0E50B6E17D for ; Sat, 25 May 2019 22:02:37 +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 --===============1966532570== Content-Type: multipart/alternative; boundary="15588217570.aE1aAf.11318" Content-Transfer-Encoding: 7bit --15588217570.aE1aAf.11318 Date: Sat, 25 May 2019 22:02:36 +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=3D107296 --- Comment #13 from John Pathy --- I have the same problem with my 2400G. My kernel is as follows [ 0.000000] Linux version 4.19.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-7)) #1 SMP Debian 4.19.37-3 (2019-05-15) When my system boots I get a RIP with a trace as above [ 1.532390] amdgpu: [powerplay] dpm has been enabled [ 1.532453] [drm] DM_PPLIB: values for Invalid clock [ 1.532454] [drm] DM_PPLIB: 0 in kHz [ 1.532456] [drm] DM_PPLIB: 400000 in kHz [ 1.532457] [drm] DM_PPLIB: 933000 in kHz [ 1.532459] [drm] DM_PPLIB: 1067000 in kHz [ 1.532537] WARNING: CPU: 6 PID: 134 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372 dcn_bw_update_from_pplib+0x171/0x290 [amdgpu] [ 1.532540] Modules linked in: amdkfd amdgpu(+) crc32c_intel mxm_wmi cha= sh gpu_sched ttm aesni_intel ahci drm_kms_helper aes_x86_64 crypto_simd libahci cryptd glue_helper xhci_pci libata drm xhci_hcd igb i2c_piix4 scsi_mod usbc= ore dca i2c_algo_bit usb_common video wmi gpio_amdpt gpio_generic button [ 1.532558] CPU: 6 PID: 134 Comm: systemd-udevd Not tainted 4.19.0-5-amd= 64 #1 Debian 4.19.37-3 [ 1.532561] Hardware name: Gigabyte Technology Co., Ltd. X470 AORUS ULTRA GAMING/X470 AORUS ULTRA GAMING-CF, BIOS F30 04/16/2019 [ 1.532620] RIP: 0010:dcn_bw_update_from_pplib+0x171/0x290 [amdgpu] So I looked into this and the problem I see is that the fclks are not initializing properly is routine res =3D dm_pp_get_clock_levels_by_type_with_voltage( ctx, DM_PP_CLOCK_TYPE_FCLK, &fclks); When the sanity check in=20 res =3D verify_clock_values(&fclks); is completed, it detects the 0 in index [0] and initiated the RIP. This is = the data that initiated the RIP. [ 1.532454] [drm] DM_PPLIB: 0 in kHz The fclks in my log appear to be shifted down. I seems it should look like this, which is what a 2200G reports on boot. This was from somebody else's system. [ 3.774892] [drm] DM_PPLIB: values for F clock [ 3.774894] [drm] DM_PPLIB: 400000 in kHz [ 3.774894] [drm] DM_PPLIB: 933000 in kHz [ 3.774895] [drm] DM_PPLIB: 1067000 in kHz [ 3.774895] [drm] DM_PPLIB: 1200000 in kHz [ 3.774896] [drm] DM_PPLIB: values for DCF clock [ 3.774896] [drm] DM_PPLIB: 300000 in kHz [ 3.774897] [drm] DM_PPLIB: 600000 in kHz [ 3.774897] [drm] DM_PPLIB: 626000 in kHz [ 3.774897] [drm] DM_PPLIB: 654000 in kHz Also to note is that for my kernel (4.19.0-5-amd64) the F and DCF are repor= ted as invalid, but for subsequent kernels 5.1.3 and 5.2-rc1, this appears to be corrected. My whole kern.log is located in the attachment for comment 12. --=20 You are receiving this mail because: You are the assignee for the bug.= --15588217570.aE1aAf.11318 Date: Sat, 25 May 2019 22:02:37 +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 # 13 on bug 10729= 6 from John Pathy
I have the same problem with my 2400G.

My kernel is as follows

[    0.000000] Linux version 4.19.0-5-amd64 (debian-kernel@lists.debian.org)
(gcc version 8.3.0 (Debian 8.3.0-7)) #1 SMP Debian 4.19.37-3 (2019-05-15)

When my system boots I get a RIP with a trace as above

[    1.532390] amdgpu: [powerplay] dpm has been enabled
[    1.532453] [drm] DM_PPLIB: values for Invalid clock
[    1.532454] [drm] DM_PPLIB:   0 in kHz
[    1.532456] [drm] DM_PPLIB:   400000 in kHz
[    1.532457] [drm] DM_PPLIB:   933000 in kHz
[    1.532459] [drm] DM_PPLIB:   1067000 in kHz
[    1.532537] WARNING: CPU: 6 PID: 134 at
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1372
dcn_bw_update_from_pplib+0x171/0x290 [amdgpu]
[    1.532540] Modules linked in: amdkfd amdgpu(+) crc32c_intel mxm_wmi cha=
sh
gpu_sched ttm aesni_intel ahci drm_kms_helper aes_x86_64 crypto_simd libahci
cryptd glue_helper xhci_pci libata drm xhci_hcd igb i2c_piix4 scsi_mod usbc=
ore
dca i2c_algo_bit usb_common video wmi gpio_amdpt gpio_generic button
[    1.532558] CPU: 6 PID: 134 Comm: systemd-udevd Not tainted 4.19.0-5-amd=
64
#1 Debian 4.19.37-3
[    1.532561] Hardware name: Gigabyte Technology Co., Ltd. X470 AORUS ULTRA
GAMING/X470 AORUS ULTRA GAMING-CF, BIOS F30 04/16/2019
[    1.532620] RIP: 0010:dcn_bw_update_from_pplib+0x171/0x290 [amdgpu]

So I looked into this and the problem I see is that the fclks are not
initializing properly is routine

res =3D dm_pp_get_clock_levels_by_type_with_voltage(
                        ctx, DM_PP_CLOCK_TYPE_FCLK, &fclks);

When the sanity check in=20

res =3D verify_clock_values(&fclks);

is completed, it detects the 0 in index [0] and initiated the RIP. This is =
the
data that initiated the RIP.

[    1.532454] [drm] DM_PPLIB:   0 in kHz

The fclks in my log appear to be shifted down. I seems it should look like
this, which is what a 2200G reports on boot. This was from somebody else's
system.

[    3.774892] [drm] DM_PPLIB: values for F clock
[    3.774894] [drm] DM_PPLIB:   400000 in kHz
[    3.774894] [drm] DM_PPLIB:   933000 in kHz
[    3.774895] [drm] DM_PPLIB:   1067000 in kHz
[    3.774895] [drm] DM_PPLIB:   1200000 in kHz
[    3.774896] [drm] DM_PPLIB: values for DCF clock
[    3.774896] [drm] DM_PPLIB:   300000 in kHz
[    3.774897] [drm] DM_PPLIB:   600000 in kHz
[    3.774897] [drm] DM_PPLIB:   626000 in kHz
[    3.774897] [drm] DM_PPLIB:   654000 in kHz

Also to note is that for my kernel (4.19.0-5-amd64) the F and DCF are repor=
ted
as invalid, but for subsequent kernels 5.1.3 and 5.2-rc1, this appears to be
corrected.

My whole kern.log is located in the attachment for comment 12.


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