You are not logged in.

#1 2020-06-27 17:16:25

johnjohnlys
Member
From: Taiwan
Registered: 2020-04-28
Posts: 11

5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

I update almost everyday recently since I have a newer hardware, and I just updated from 5.7.5 to 5.7.6, but there are a few problems in this version.

One of that might be related to https://bbs.archlinux.org/viewtopic.php?id=256911 , and my problem is that when I plug my headphone, I only have sound in left ear while the notebook speaker still makes sound.

Besides, after 5.7.6, playing Youtube or other online video content using Firefox, and the screen freezes after ~5 mins (this happens twice). Just like other bugs of amdgpu driver, I cpature the kernel error log:

kernel: ------------[ cut here ]------------
kernel: WARNING: CPU: 0 PID: 24343 at drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_rq_dlg_calc_21.c:1165 dml21_rq_dlg_get_dlg_reg+0x2886/0x2980 [amdgpu]
kernel: Modules linked in: ccm btusb btrtl uvcvideo btbcm videobuf2_vmalloc btintel videobuf2_memops videobuf2_v4l2 bluetooth videobuf2_common videodev mc ecdh_generic ecc joydev mousedev hid_multitouch hid_generic acer_wmi wmi_bmof sparse_keymap edac_mce_amd kvm_amd kvm irqbypass amdgpu crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper iwlmvm snd_hda_codec_realtek mac80211 snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg gpu_sched libarc4 snd_hda_codec i2c_algo_bit ttm snd_hda_core snd_hwdep input_leds pcspkr drm_kms_helper iwlwifi snd_pcm snd_timer sp5100_tco cec ucsi_acpi cfg80211 i2c_piix4 ccp snd k10temp rc_core typec_ucsi snd_pci_acp3x syscopyarea sysfillrect sysimgblt rng_core fb_sys_fops soundcore rfkill typec evdev ac battery i2c_hid mac_hid hid wmi acpi_cpufreq pinctrl_amd acer_wireless nf_log_ipv6 ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt nf_log_ipv4 nf_log_common ipt_REJECT nf_reject_ipv4 xt_LOG
kernel:  xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) drm crypto_user agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci crc32c_intel xhci_hcd i8042 serio
kernel: CPU: 0 PID: 24343 Comm: kworker/u32:1 Tainted: G        W  OE     5.7.6-arch1-1 #1
kernel: Hardware name: Acer Swift SF314-42/Kona_RN, BIOS V1.03 04/07/2020
kernel: Workqueue: events_unbound commit_work [drm_kms_helper]
kernel: RIP: 0010:dml21_rq_dlg_get_dlg_reg+0x2886/0x2980 [amdgpu]
kernel: Code: 7d f6 ff f3 0f 5a c0 f2 0f 5c 05 1d 2f 23 00 f2 48 0f 2c c0 89 43 64 e9 5b fb ff ff 0f 0b e9 a4 e5 ff ff 0f 0b e9 76 e5 ff ff <0f> 0b e9 46 e2 ff ff 0f 0b e9 29 e2 ff ff 0f 0b e9 0f df ff ff 0f
kernel: RSP: 0018:ffffbb3a48f67690 EFLAGS: 00010203
kernel: RAX: 0000000000000000 RBX: ffff9b8de0361270 RCX: 0000000000000000
kernel: RDX: 0000000000000000 RSI: 0000000000000420 RDI: ffff9b8de1390000
kernel: RBP: ffffbb3a48f67950 R08: ffff9b8de0363b18 R09: ffff9b8de0362580
kernel: R10: 0000000000000000 R11: ffffbb3a48f673d0 R12: ffff9b8de0361f68
kernel: R13: ffff9b8de1390000 R14: 0000000000000002 R15: ffff9b8de1390210
kernel: FS:  0000000000000000(0000) GS:ffff9b8edf400000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007f378b0c2020 CR3: 000000041bf82000 CR4: 0000000000340ef0
kernel: Call Trace:
kernel:  ? dcn20_calculate_dlg_params+0x3fe/0x550 [amdgpu]
kernel:  dcn20_calculate_dlg_params+0x3fe/0x550 [amdgpu]
kernel:  dcn21_validate_bandwidth+0x1b2/0x2a0 [amdgpu]
kernel:  dc_commit_updates_for_stream+0xa2f/0x1910 [amdgpu]
kernel:  ? _raw_spin_lock+0x13/0x30
kernel:  amdgpu_dm_atomic_commit_tail+0x13db/0x2310 [amdgpu]
kernel:  commit_tail+0x94/0x130 [drm_kms_helper]
kernel:  process_one_work+0x1da/0x3d0
kernel:  worker_thread+0x4d/0x3e0
kernel:  ? rescuer_thread+0x3f0/0x3f0
kernel:  kthread+0x13e/0x160
kernel:  ? __kthread_bind_mask+0x60/0x60
kernel:  ret_from_fork+0x22/0x40
kernel: ---[ end trace 711dcd9c852cd632 ]---
kernel: [UFW BLOCK] IN=wlp1s0 OUT= MAC=01:00:5e:00:00:01:1c:3b:f3:df:64:1a:08:00 SRC=192.168.0.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=0 DF PROTO=2 
kernel: divide error: 0000 [#1] PREEMPT SMP NOPTI
kernel: CPU: 3 PID: 25036 Comm: kworker/u32:2 Tainted: G        W  OE     5.7.6-arch1-1 #1
kernel: Hardware name: Acer Swift SF314-42/Kona_RN, BIOS V1.03 04/07/2020
kernel: Workqueue: events_unbound commit_work [drm_kms_helper]
kernel: RIP: 0010:CalculateVMAndRowBytes.constprop.0+0x438/0xbd0 [amdgpu]
kernel: Code: 00 00 00 00 48 8b 84 24 c8 00 00 00 c7 00 00 00 00 00 84 d2 0f 84 15 03 00 00 41 89 f0 31 c9 41 be 00 01 00 00 44 89 f0 31 d2 <f7> f3 31 d2 41 f7 f0 48 8b 94 24 c0 00 00 00 89 02 40 84 ed 0f 84
kernel: RSP: 0018:ffffbb3a497c7450 EFLAGS: 00010246
kernel: RAX: 0000000000010000 RBX: 0000000000000000 RCX: 0000000000000400
kernel: RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff9b8de0361f68
kernel: RBP: 0000000000000001 R08: 0000000000000080 R09: 0000000000000000
kernel: R10: 0000000000000000 R11: ffff9b8de036a680 R12: 0000000000000001
kernel: R13: 0000000000000008 R14: 0000000000010000 R15: 0000000000000019
kernel: FS:  0000000000000000(0000) GS:ffff9b8edf4c0000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007f3793a82820 CR3: 00000003da642000 CR4: 0000000000340ee0
kernel: Call Trace:
kernel:  ? __schedule+0x2ad/0x8c0
kernel:  dml21_ModeSupportAndSystemConfigurationFull+0x3845/0x5cf0 [amdgpu]
kernel:  dml_get_voltage_level+0x116/0x1e0 [amdgpu]
kernel:  dcn20_fast_validate_bw+0x34f/0x650 [amdgpu]
kernel:  ? dm_read_reg_func+0x39/0xc0 [amdgpu]
kernel:  dcn21_validate_bandwidth+0xcd/0x2a0 [amdgpu]
kernel:  ? dc_check_update_surfaces_for_stream+0x22e/0x8f0 [amdgpu]
kernel:  dc_commit_updates_for_stream+0xa2f/0x1910 [amdgpu]
kernel:  ? _raw_spin_lock+0x13/0x30
kernel:  amdgpu_dm_atomic_commit_tail+0x13db/0x2310 [amdgpu]
kernel:  ? rescuer_thread+0x3f0/0x3f0
kernel:  commit_tail+0x94/0x130 [drm_kms_helper]
kernel:  process_one_work+0x1da/0x3d0
kernel:  ? rescuer_thread+0x3f0/0x3f0
kernel:  worker_thread+0x4d/0x3e0
kernel:  ? rescuer_thread+0x3f0/0x3f0
kernel:  kthread+0x13e/0x160
kernel:  ? __kthread_bind_mask+0x60/0x60
kernel:  ret_from_fork+0x22/0x40
kernel: Modules linked in: ccm btusb btrtl uvcvideo btbcm videobuf2_vmalloc btintel videobuf2_memops videobuf2_v4l2 bluetooth videobuf2_common videodev mc ecdh_generic ecc joydev mousedev hid_multitouch hid_generic acer_wmi wmi_bmof sparse_keymap edac_mce_amd kvm_amd kvm irqbypass amdgpu crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd glue_helper iwlmvm snd_hda_codec_realtek mac80211 snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg gpu_sched libarc4 snd_hda_codec i2c_algo_bit ttm snd_hda_core snd_hwdep input_leds pcspkr drm_kms_helper iwlwifi snd_pcm snd_timer sp5100_tco cec ucsi_acpi cfg80211 i2c_piix4 ccp snd k10temp rc_core typec_ucsi snd_pci_acp3x syscopyarea sysfillrect sysimgblt rng_core fb_sys_fops soundcore rfkill typec evdev ac battery i2c_hid mac_hid hid wmi acpi_cpufreq pinctrl_amd acer_wireless nf_log_ipv6 ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt nf_log_ipv4 nf_log_common ipt_REJECT nf_reject_ipv4 xt_LOG
kernel:  xt_limit xt_addrtype xt_tcpudp xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter vboxnetflt(OE) vboxnetadp(OE) vboxdrv(OE) drm crypto_user agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 serio_raw atkbd libps2 xhci_pci crc32c_intel xhci_hcd i8042 serio
kernel: ---[ end trace 711dcd9c852cd633 ]---
kernel: RIP: 0010:CalculateVMAndRowBytes.constprop.0+0x438/0xbd0 [amdgpu]
kernel: Code: 00 00 00 00 48 8b 84 24 c8 00 00 00 c7 00 00 00 00 00 84 d2 0f 84 15 03 00 00 41 89 f0 31 c9 41 be 00 01 00 00 44 89 f0 31 d2 <f7> f3 31 d2 41 f7 f0 48 8b 94 24 c0 00 00 00 89 02 40 84 ed 0f 84
kernel: RSP: 0018:ffffbb3a497c7450 EFLAGS: 00010246
kernel: RAX: 0000000000010000 RBX: 0000000000000000 RCX: 0000000000000400
kernel: RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff9b8de0361f68
kernel: RBP: 0000000000000001 R08: 0000000000000080 R09: 0000000000000000
kernel: R10: 0000000000000000 R11: ffff9b8de036a680 R12: 0000000000000001
kernel: R13: 0000000000000008 R14: 0000000000010000 R15: 0000000000000019
kernel: FS:  0000000000000000(0000) GS:ffff9b8edf4c0000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007f3793a82820 CR3: 00000003da642000 CR4: 0000000000340ee0

Switching back to 5.7.5, I have no such two problems when playing a 30 mins video.

By the way, started from 5.7.5, sensors can report Renoir CPU with k10temp, thanks to the efforts from kernel developer!

Offline

#2 2020-06-27 17:33:49

loqs
Member
Registered: 2014-03-06
Posts: 18,113

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

For the admgpu issue you could try bisecting between 5.7.5 and 5.7.6 or reverting:
https://git.kernel.org/pub/scm/linux/ke … 00a050fd0a
https://git.kernel.org/pub/scm/linux/ke … e8a5eb489c

Offline

#3 2020-06-27 18:32:26

danielrparks
Member
Registered: 2020-06-27
Posts: 4

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

loqs wrote:

For the admgpu issue you could try bisecting between 5.7.5 and 5.7.6 or reverting:
https://git.kernel.org/pub/scm/linux/ke … 00a050fd0a
https://git.kernel.org/pub/scm/linux/ke … e8a5eb489c

I also have this issue, and I'm wondering why you suggested reverting these commits. Were they the only ones that changed something relevant?

Edit: I am currently building the kernel to test this.

Last edited by danielrparks (2020-06-27 18:44:41)

Offline

#4 2020-06-27 19:13:35

loqs
Member
Registered: 2014-03-06
Posts: 18,113

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

ChangeLog-5.7.6
There were other amdgpu related commits but they seemed less likely to me.
https://git.kernel.org/pub/scm/linux/ke … 10e7d43755
https://git.kernel.org/pub/scm/linux/ke … 024fd61e10
https://git.kernel.org/pub/scm/linux/ke … 2ae50e32ae

I missed this one on my  first read through if the first two are not the cause would try it next
https://git.kernel.org/pub/scm/linux/ke … 9921e5d51d

There were some other drm changes as well.  git bisection is the certain approach to locating the bad commit,  if you can guess the bad commit it can be quicker.

Last edited by loqs (2020-06-27 19:14:15)

Offline

#5 2020-06-27 19:31:22

danielrparks
Member
Registered: 2020-06-27
Posts: 4

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

loqs wrote:

I missed this one on my  first read through if the first two are not the cause would try it next
https://git.kernel.org/pub/scm/linux/ke … 9921e5d51d

Will do. I'm having some random problems (including network instability and a divide-by-zero in amdgpu) while trying to build so it might be a little while before I can get any meaningful results. sad

Offline

#6 2020-06-27 19:33:52

MimiLuna
Member
Registered: 2020-06-27
Posts: 2

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

I have the same issue on the 4700U, reproducible when playing Youtube in Firefox for a few minutes. Reverted the first two patches, that seemed to work so far. I'll try again with just one of them.
EDIT: didn't test long enough, still crashed a few minutes later

Last edited by MimiLuna (2020-06-27 19:39:02)

Offline

#7 2020-06-27 20:23:55

MimiLuna
Member
Registered: 2020-06-27
Posts: 2

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

Reverting this one (the one you suggested to try next after the first 2)
https://git.kernel.org/pub/scm/linux/ke … 9921e5d51d
seems to work well now for over 30 minutes.

Thanks a lot loqs!
Where should this be reported?

Offline

#8 2020-06-27 20:39:57

loqs
Member
Registered: 2014-03-06
Posts: 18,113

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

Three options on where to report:
https://gitlab.freedesktop.org/drm/amd/-/issues could be https://gitlab.freedesktop.org/drm/amd/-/issues/1191
https://bugzilla.kernel.org/ Product: Drivers,  Component: Video(DRI - non Intel)
See the reply to instructions in https://lore.kernel.org/stable/20200623 … ation.org/

Last edited by loqs (2020-06-27 20:41:58)

Offline

#9 2020-06-27 20:57:00

danielrparks
Member
Registered: 2020-06-27
Posts: 4

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

I can confirm MimiLuna's finding that the error is still present with the first two commits reverted, but oddly the graphics continued to function even after the kernel oops for me.

Offline

#10 2020-06-29 22:01:58

loqs
Member
Registered: 2014-03-06
Posts: 18,113

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

Offline

#11 2020-06-29 22:03:46

danielrparks
Member
Registered: 2020-06-27
Posts: 4

Re: 5.7.6 breaks audio and fullscreen video playback (AMD 4700U)

Thanks for the update! I will test that out as well.

Offline

Board footer

Powered by FluxBB