[AMD Official Use Only - General] > -----Original Message----- > From: Thomas Backlund <tmb@xxxxxx> > Sent: Friday, June 23, 2023 1:47 AM > To: Limonciello, Mario <Mario.Limonciello@xxxxxxx>; stable@xxxxxxxxxxxxxxx > Subject: Re: [6.3.y 6.1.y 5.15.y] drm/amd/display: fix the system hang while > disable PSR > > Den 2023-06-20 kl. 00:16, skrev Limonciello, Mario: > > Hi, > > > > ea2062dd1f03 ("drm/amd/display: fix the system hang while disable PSR") > > was tagged for stable, but failed to apply to 6.3.y, 6.1.y and 5.15.y. > > > > I've looked into the missing dependencies, and here are the dependencies > > needed for the stable backport: > > > > 5.15.y: > > ------- > > 97ca308925a5 ("drm/amd/display: Add minimal pipe split transition state") > > f7511289821f ("drm/amd/display: Use dc_update_planes_and_stream") > > 81f743a08f3b ("drm/amd/display: Add wrapper to call planes and stream > > update") > > ea2062dd1f03 ("drm/amd/display: fix the system hang while disable PSR") > > > > 6.1.y / 6.3.y > > ------------- > > ea2062dd1f03 ("drm/amd/display: fix the system hang while disable PSR") > > f7511289821f ("drm/amd/display: Use dc_update_planes_and_stream") > > 81f743a08f3b ("drm/amd/display: Add wrapper to call planes and stream > > update") > > ea2062dd1f03 ("drm/amd/display: fix the system hang while disable PSR") > > > > Is there something missing in that series ? > > We get a report of those patches on top of 6.3.9 failing on AMD STONEY > (0x1002:0x98E4 0x1043:0x1FE0 0xEA) with: > > ------------[ cut here ]------------ > WARNING: CPU: 1 PID: 1248 at > drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:393 > dce_aux_transfer_raw+0x731/0x760 [amdgpu] > Modules linked in: rfcomm ip6t_REJECT nf_reject_ipv6 xt_comment > ip6table_mangle ip6table_nat ip6table_raw ip6table_filter ip6_tables > xt_recent ipt_IFWLOG ipt_psd xt_set ip_set_hash_ip ip_set ipt_REJECT > nf_reject_ipv4 xt_conntrack xt_hashlimit xt_addrtype xt_mark > iptable_mangle iptable_nat xt_CT xt_tcpudp iptable_raw xt_NFLOG > nfnetlink_log xt_LOG nf_log_syslog nf_nat_tftp nf_nat_snmp_basic > nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 > nf_nat_ftp nf_nat_amanda ts_kmp nf_conntrack_amanda nf_nat > nf_conntrack_sane nf_conntrack_tftp nf_conntrack_sip nf_conntrack_pptp > nf_conntrack_netlink nfnetlink nf_conntrack_netbios_ns > nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 > nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 > iptable_filter ccm af_packet qrtr cmac algif_hash algif_skcipher af_alg > bnep nls_iso8859_1 nls_cp437 vfat fat dm_mirror dm_region_hash dm_log > rtl8723be btcoexist rtl8723_common rtl_pci rtlwifi mac80211 uvcvideo uvc > cfg80211 videobuf2_vmalloc videobuf2_memops > videobuf2_v4l2 kvm_amd btusb btmtk btrtl btbcm btintel ccp kvm > videodev bluetooth snd_hda_codec_realtek snd_hda_codec_generic > snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi > videobuf2_common asus_nb_wmi mc ecdh_generic ecc snd_hda_codec > asus_wmi > ledtrig_audio sparse_keymap platform_profile irqbypass wmi_bmof > sha1_generic r8169 rfkill libarc4 realtek i2c_piix4 mdio_devres > snd_hda_core tpm_crb snd_hwdep libphy snd_pcm snd_timer snd > fam15h_power > k10temp soundcore tpm_tis tpm_tis_core tpm asus_wireless acpi_cpufreq > input_leds joydev evdev sch_fq_codel fuse dm_mod loop configfs efivarfs > dmi_sysfs ip_tables x_tables ipv6 crc_ccitt autofs4 sdhci_pci > crc32_pclmul crc32c_intel polyval_clmulni cqhci sdhci polyval_generic > gf128mul mmc_core xhci_pci xhci_pci_renesas xhci_hcd atkbd > ghash_clmulni_intel vivaldi_fmap sha512_ssse3 aesni_intel crypto_simd > cryptd serio_raw ehci_pci ehci_hcd sp5100_tco amdgpu i2c_algo_bit > drm_ttm_helper ttm iommu_v2 drm_buddy gpu_sched drm_display_helper > drm_kms_helper > video hid_multitouch drm wmi i2c_hid_acpi i2c_hid 8250_dw cec > CPU: 1 PID: 1248 Comm: Xorg Not tainted 6.3.9-desktop-1.mga9 #1 > Hardware name: ASUSTeK COMPUTER INC. X441BA/X441BA, BIOS > X441BA.310 > 02/25/2020 > RIP: 0010:dce_aux_transfer_raw+0x731/0x760 [amdgpu] > Code: 4c 10 00 8b 54 24 0c 89 e8 83 c5 01 41 88 14 04 3b 6c 24 04 72 > c9 e9 3e fd ff ff 3c 01 19 c0 83 e0 c0 83 c0 50 e9 72 f9 ff ff <0f> 0b > b8 03 00 00 00 e9 77 ff ff ff b8 03 00 00 00 e9 6d ff ff ff > RSP: 0018:ffffa52801b8ba48 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: ffff934801cdec80 RCX: > 0000000000000000 > RDX: 0000000000000000 RSI: 00000000000098e4 RDI: ffff93480c700000 > RBP: ffffa52801b8bac0 R08: 0000000000000000 R09: 000000000000000a > R10: 0000000000000001 R11: ffff93480c700010 R12: ffffa52801b8babc > R13: 0000000000000000 R14: 0000000000000000 R15: > ffff934803816a30 > FS: 00007f0dd47f82c0(0000) GS:ffff93480dc80000(0000) > knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: 00007f298f3620d0 CR3: 0000000104d00000 CR4: > 00000000001506e0 > Call Trace: > <TASK> > ? dce_aux_transfer_raw+0x731/0x760 [amdgpu] > ? __warn+0x7d/0x130 > ? dce_aux_transfer_raw+0x731/0x760 [amdgpu] > ? report_bug+0x16d/0x1a0 > ? handle_bug+0x41/0x70 > ? exc_invalid_op+0x13/0x60 > ? asm_exc_invalid_op+0x16/0x20 > ? dce_aux_transfer_raw+0x731/0x760 [amdgpu] > dm_dp_aux_transfer+0xa1/0x160 [amdgpu] > drm_dp_dpcd_access+0xad/0x130 [drm_display_helper] > drm_dp_dpcd_probe+0x3a/0xf0 [drm_display_helper] > drm_dp_dpcd_read+0xbf/0x100 [drm_display_helper] > dm_helpers_dp_read_dpcd+0x28/0x50 [amdgpu] > amdgpu_dm_update_freesync_caps+0x17b/0x360 [amdgpu] > amdgpu_dm_connector_get_modes+0x242/0x4f0 [amdgpu] > drm_helper_probe_single_connector_modes+0x18c/0x520 > [drm_kms_helper] > drm_mode_getconnector+0x390/0x4a0 [drm] > ? ____sys_recvmsg+0xdd/0x1a0 > ? __pfx_drm_mode_getconnector+0x10/0x10 [drm] > drm_ioctl_kernel+0xc1/0x160 [drm] > drm_ioctl+0x24c/0x490 [drm] > ? __pfx_drm_mode_getconnector+0x10/0x10 [drm] > amdgpu_drm_ioctl+0x4a/0x80 [amdgpu] > __x64_sys_ioctl+0x90/0xd0 > do_syscall_64+0x3a/0x90 > entry_SYSCALL_64_after_hwframe+0x72/0xdc > RIP: 0033:0x7f0dd3f68e68 > Code: 00 00 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 > d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <89> c2 > 3d 00 f0 ff ff 77 07 89 d0 c3 0f 1f 40 00 48 8b 15 71 ef 0c > RSP: 002b:00007ffe6fb5b398 EFLAGS: 00000246 ORIG_RAX: > 0000000000000010 > RAX: ffffffffffffffda RBX: 00000000009a5ce0 RCX: 00007f0dd3f68e68 > RDX: 00007ffe6fb5b3e0 RSI: 00000000c05064a7 RDI: 0000000000000010 > RBP: 00007ffe6fb5b3e0 R08: 0000000000000007 R09: > 0000000000bea1c0 > R10: 0000000000000003 R11: 0000000000000246 R12: > 00000000c05064a7 > R13: 0000000000000010 R14: 00000000c05064a7 R15: > 00007ffe6fb5b3e0 > </TASK> > ---[ end trace 0000000000000000 ]--- > > > reverting them from the 6.3.9 build is confirmed to fix the issue. > Is it just the warning, or is there also a functional issue? > > here is full boot journals with working 6.3.8 and failing 6.3.9 with > those patches applied: > https://bugs.mageia.org/attachment.cgi?id=13888 > > -- > Thomas > Interesting; the patches are mostly for fixing PSR which is only enabled on Rembrandt and later. If possible can you confirm which patch caused it for a better hint of which other dependencies are missing for this APU? I'm guessing it's specifically " drm/amd/display: Use dc_update_planes_and_stream". Also; does 6.4-rc7 work properly? Thanks!