You are not logged in.

#1 2024-02-19 05:16:27

grimhike
Member
Registered: 2024-02-19
Posts: 7

[SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

update:  It was DP compression (DSC mode) & amdgpu (mis-)combination. Similar problems reported at https://gitlab.freedesktop.org/drm/amd/-/issues/3113 and a patch is submitted https://lore.kernel.org/linux-kernel/20 … lix.com/T/. Forcing a low-res, low-freq mode to console (comment #7) can mitigate the problem.

---


I have a Ryzen 7735u laptop and an external monitor with a built-in USB-C hub. (The monitor provides display, power, and 2-port USB via USB-C cable and I hooked up some USB peripherals to the monitor, if that's relevant)

When I shut down (or reboot) the laptop while the monitor is plugged in, it seems that display manager successfully terminates the DE, then laptop goes to tty-like black screen with a flat cursor blinking at the top line, leaving hard shutdown (hold power button) as the only option.

A few things I tried,

  1. I kept waiting for about 30 minutes on the black screen, and nothing happened.

  2. Tried taking off USB peripherals one by one but experienced the same system halts with every combinations.

  3. When I started the laptop from cold with the monitor plugged in, the laptop shuts down normally, with or without the monitor plugged at the shutdown time.

+-------------+-----------+---------------+-----------+
| "docked" at | boot-time | shutdown-time | shutdown? |
+-------------+-----------+---------------+-----------+
| case1       | no        | yes           | no        |
| case2       | no        | no            | yes       |
| case3       | yes       | yes           | yes       |
| case4       | yes       | no            | yes       |
+-------------+-----------+---------------+-----------+

I don't know where to start to look for to figure out the cause. Any help will be appreciated.

Last edited by grimhike (2024-04-19 16:21:25)

Offline

#2 2024-02-19 09:02:50

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

Is this evdi or a DP hybrid and in the latter case what GPU is it wired to and how many are there?
Can you replicate case1 when only booting the multi-user.target (2nd link below)?
Can you reboot out of case1 using the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) and REISUB?

Please post your Xorg log, https://wiki.archlinux.org/title/Xorg#General and your complete system journal for the case1 boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Online

#3 2024-02-19 18:07:26

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

Thank seth for your quick response.

grimhike wrote:

laptop goes to tty-like black screen with a flat cursor blinking at the top line

I'd like to start first by correcting myself. The cursor wan't blinking, it was just frozen.

seth wrote:

Can you replicate case1 when only booting the multi-user.target (2nd link below)?

Good point. I tried to boot "undocked" to non-DE tty (multiuser target), and guess what? As soon as I plugged in the USB-C cable after the boot, the computer went completely frozen, with the empty shell prompt on screen. So at this point, I guessed the issue probably had nothing to do with X.
Next think I tried was to start the computer to graphical target (KDE+SDDM, if that's relevant), then dock, then switch to non-graphical tty. Again, I found the computer froze, and I wasn't able to go back to graphical DE tty (Ctrl+Alt+F2)

So at this point, the actual problem is that Laptop go unresponsive while shutting down exiting DE with USB-C mon/hub plugged.
My speculation is that, the monitor/dock HW information is somehow "loaded" into the kernel space when linux starts as docked. Under such a condition, it is safe to remove and re-attach the monitor/dock with or without a display manager. If the linux started "undocked", docking only work under a graphical display manager, and not on any text-only tty. This is my "conceptual" understanding of the situation and probably very wrong technically.
But I haven't figured out how I can configure the kernel to cope with "post-docking" situation.

seth wrote:

Can you reboot out of case1 using the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) and REISUB?

Unfortunately, I don't have a full-sized (with a SysRq key) keyboard, and I'm not sure the fn combination for SysRq key on the laptop built-in keyboard is properly working with normal Alt modifier. When I tried some magic keys (including REISUB), they didn't work even when the laptop is not frozen.

Here some additional logs.

xrandr only with build-in monitor https://0x0.st/Hn0u.txt
xrandr when docked https://0x0.st/Hn0S.txt
  (there are two usb-c ports, and when the cabled in plugged into the other port, DP-2 is connected)
journal from a boot with 1) graphical target 2) post-docking 3) `shutdown -h now` 4) freeze http://0x0.st/Hn09.txt
journal from a boot with 1) graphical target 2) pre-docking 3) `shutdown -h now` 4) clean shutdown http://0x0.st/Hn0p.txt 
  (you'll see some lines about LG monitor pretty early in this journal)
journal from a boot with 1) multiuser target 2) cable insertion 3) freeze http://0x0.st/Hn0f.txt

Tested both on `linux` and `linux-lts` and got the same results.

Last edited by grimhike (2024-02-19 18:08:50)

Offline

#4 2024-02-19 22:14:03

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

I don't have a full-sized (with a SysRq key) keyboard

It's probably just the print key, but nb. that you have to actively enable the  sysrq (being a direct shortcut into the kernel, it's a security nightmare)

There's no evdi.
Add "initcall_blacklist=simpledrm_platform_driver_init" to the https://wiki.archlinux.org/title/Kernel_parameters to get the simpledrm device out of the equation for this.

5120x1440    143.98*+  85.00 + 120.02    96.01    72.01    60.01    50.00    48.00   100.00    71.98

Do you have access to a cheap-ish FullHD@60Hz monitor?

Online

#5 2024-02-20 12:29:56

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

Unfortunately, I learned the device had an independent hardware issue (one of the cooling fan blades was chipped and was making loud noise and vibration), so I had to return it.
I instead got another machine from the same manufacture, the same line of brand, similar price range, but intel-based. With the new machine, I can no longer observe this issue with the same monitor/dock.

I guess I "solved" the original issue simply by avoiding it, and not sure I should mark the post as solved. Should this be kept open for someone from the future having a similar problem?

(seth, thanks for your help though!)

Offline

#6 2024-02-20 14:50:19

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

You could mark it as "abandoned" in case someone runs into a similar problem.

FTR:

1002:1681 113-REMBRANDT-X37
kernel: usb 7-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=4
kernel: usb 7-1.3: Product: LG Monitor Controls
kernel: usb 7-1.3: Manufacturer: LG Electronics Inc.
kernel: usb 7-1.3: SerialNumber: 310NTTQ8D081
kernel: divide error: 0000 [#1] PREEMPT SMP NOPTI
kernel: CPU: 5 PID: 660 Comm: Xorg Not tainted 6.6.17-1-lts #1 6d7e7eb7182159148dc88410036e021e1380bdae
kernel: Hardware name: LENOVO 83BS/LNVNB161216, BIOS LCCN17WW 07/27/2023
kernel: RIP: 0010:setup_dsc_config+0x647/0x950 [amdgpu]
kernel: Code: 16 89 c8 31 d2 41 f7 76 08 85 d2 75 0a 83 ff 04 75 15 f6 c1 01 74 10 83 c1 01 39 ce 75 da 83 ff 04 0f 84 fb 01 00 00 89 f0 99 <f7> f9 8b 4c 24 08 89 43 04 85 c9 0f 8f 65 01 00 00 0f b6 84 24 80
kernel: RSP: 0018:ffffc90002ec7400 EFLAGS: 00010293
kernel: RAX: 0000000000000000 RBX: ffff8881181670c0 RCX: 0000000000000000
kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
kernel: RBP: ffff888118167058 R08: 0000000000000001 R09: 00000000000004b0
kernel: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
kernel: R13: ffffc90002ec75f4 R14: ffffc90002ec758c R15: ffff8881181670f8
kernel: FS:  00007e071c0269c0(0000) GS:ffff888216540000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007e67a639f008 CR3: 0000000105a20000 CR4: 0000000000f50ee0
kernel: PKRU: 55555554
kernel: Call Trace:
kernel:  <TASK>
kernel:  ? die+0x36/0x90
kernel:  ? do_trap+0xda/0x100
kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  ? do_error_trap+0x6a/0x90
kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  ? exc_divide_error+0x38/0x50
kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  ? asm_exc_divide_error+0x1a/0x20
kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  dc_dsc_compute_config+0x85/0xb0 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  create_stream_for_sink+0xa37/0xaf0 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  ? drm_mode_duplicate+0x23/0xa0
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  create_validate_stream_for_sink+0x1e7/0x390 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  amdgpu_dm_connector_mode_valid+0x61/0x1b0 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  ? drm_connector_list_update+0x15b/0x250
kernel:  drm_connector_mode_valid+0x3b/0x60
kernel:  __drm_helper_update_and_validate+0xfe/0x3c0
kernel:  ? amdgpu_dm_connector_get_modes+0x4fc/0x520 [amdgpu d6ba5898a9eef074ad09080c5392f0a26ac9eef2]
kernel:  drm_helper_probe_single_connector_modes+0x2ab/0x540
kernel:  drm_client_modeset_probe+0x24b/0x1520
kernel:  ? drm_atomic_state_default_clear+0x228/0x2e0
kernel:  ? drm_modeset_drop_locks+0x51/0x80
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? drm_client_modeset_commit_atomic+0x1c3/0x250
kernel:  drm_fb_helper_hotplug_event+0xac/0x100
kernel:  __drm_fb_helper_restore_fbdev_mode_unlocked+0xa8/0xd0
kernel:  drm_fb_helper_set_par+0x2f/0x40
kernel:  fb_set_var+0x204/0x420
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? ttwu_queue_wakelist+0xef/0x110
kernel:  fbcon_blank+0x213/0x310
kernel:  do_unblank_screen+0xac/0x160
kernel:  vt_ioctl+0xab1/0x13a0
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  tty_ioctl+0x4ed/0x8b0
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? exit_to_user_mode_prepare+0x123/0x1f0
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? syscall_exit_to_user_mode+0x2b/0x40
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? do_syscall_64+0x6c/0x90
kernel:  ? exit_to_user_mode_prepare+0x123/0x1f0
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  __x64_sys_ioctl+0x97/0xd0
kernel:  do_syscall_64+0x60/0x90
kernel:  ? do_syscall_64+0x6c/0x90
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? do_user_addr_fault+0x30f/0x660
kernel:  ? srso_alias_return_thunk+0x5/0x7f
kernel:  ? exit_to_user_mode_prepare+0x123/0x1f0
kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
kernel: RIP: 0033:0x7e071ca154ff
kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
kernel: RSP: 002b:00007ffd693356b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
kernel: RAX: ffffffffffffffda RBX: 000062b78c684f00 RCX: 00007e071ca154ff
kernel: RDX: 0000000000000000 RSI: 0000000000004b3a RDI: 000000000000000e
kernel: RBP: 000062b78c689de0 R08: 000000062b78caad R09: 0000000000000007
kernel: R10: 00007e071cd78c50 R11: 0000000000000246 R12: 000062b78c684e60
kernel: R13: 00000000ffffffff R14: 0000000000000008 R15: ffffffffffffffff
kernel:  </TASK>
kernel: Modules linked in: uas usb_storage pwc snd_usb_audio snd_usbmidi_lib snd_ump snd_rawmidi rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm tun nf_tables ip6table_nat ip6table_filter ip6_tables iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter cmac algif_hash algif_skcipher af_alg bnep intel_rapl_msr joydev intel_rapl_common mousedev snd_soc_dmic snd_soc_acp6x_mach snd_acp6x_pdm_dma snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir edac_mce_amd snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp kvm_amd mt7921e snd_hda_codec_realtek mt7921_common snd_sof mt792x_lib snd_hda_codec_generic snd_sof_utils kvm ledtrig_audio mt76_connac_lib snd_hda_codec_hdmi snd_soc_core mt76 irqbypass snd_compress snd_hda_intel crct10dif_pclmul ac97_bus crc32_pclmul snd_intel_dspcfg snd_pcm_dmaengine polyval_clmulni snd_intel_sdw_acpi mac80211 hid_sensor_accel_3d polyval_generic snd_pci_ps hid_sensor_trigger gf128mul snd_hda_codec snd_rpl_pci_acp6x btusb ghash_clmulni_intel
kernel:  industrialio_triggered_buffer uvcvideo kfifo_buf snd_acp_pci btrtl sha512_ssse3 snd_hda_core hid_sensor_iio_common videobuf2_vmalloc snd_acp_legacy_common btintel sha256_ssse3 libarc4 uvc industrialio wacom sha1_ssse3 btbcm snd_hwdep snd_pci_acp6x videobuf2_memops btmtk usbhid hid_multitouch hid_sensor_hub snd_pcm aesni_intel videobuf2_v4l2 snd_pci_acp5x cfg80211 bluetooth crypto_simd snd_timer snd_rn_pci_acp3x videodev cryptd ucsi_acpi snd_acp_config vfat sp5100_tco ideapad_laptop snd videobuf2_common typec_ucsi lenovo_ymc snd_soc_acpi fat mc ecdh_generic rapl wmi_bmof typec sparse_keymap pcspkr platform_profile ccp soundcore snd_pci_acp3x amd_sfh i2c_piix4 k10temp roles rfkill i2c_hid_acpi amd_pmc i2c_hid acpi_tad mac_hid pkcs8_key_parser i2c_dev crypto_user fuse loop dm_mod nfnetlink bpf_preload ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 amdgpu i2c_algo_bit drm_ttm_helper ttm drm_exec serio_raw drm_suballoc_helper amdxcp atkbd libps2 sdhci_pci drm_buddy nvme vivaldi_fmap cqhci gpu_sched
kernel:  sdhci crc32c_intel nvme_core drm_display_helper xhci_pci i8042 mmc_core video cec nvme_common xhci_pci_renesas serio wmi
kernel: ---[ end trace 0000000000000000 ]---
kernel: RIP: 0010:setup_dsc_config+0x647/0x950 [amdgpu]
kernel: Code: 16 89 c8 31 d2 41 f7 76 08 85 d2 75 0a 83 ff 04 75 15 f6 c1 01 74 10 83 c1 01 39 ce 75 da 83 ff 04 0f 84 fb 01 00 00 89 f0 99 <f7> f9 8b 4c 24 08 89 43 04 85 c9 0f 8f 65 01 00 00 0f b6 84 24 80
kernel: RSP: 0018:ffffc90002ec7400 EFLAGS: 00010293
kernel: RAX: 0000000000000000 RBX: ffff8881181670c0 RCX: 0000000000000000
kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
kernel: RBP: ffff888118167058 R08: 0000000000000001 R09: 00000000000004b0
kernel: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
kernel: R13: ffffc90002ec75f4 R14: ffffc90002ec758c R15: ffff8881181670f8
kernel: FS:  00007e071c0269c0(0000) GS:ffff888216540000(0000) knlGS:0000000000000000
kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kernel: CR2: 00007e67a639f008 CR3: 0000000105a20000 CR4: 0000000000f50ee0
kernel: PKRU: 55555554

Online

#7 2024-04-16 10:36:06

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

I got a chance to get my hands on another fairly recent (2 yr old, ryzen 6xxx) AMD laptop for a couple of days, so I tested it with my monitor. Not very surprisingly, this laptop also failed to keep up with the monitor when in the console mode. After poking around console configurations, I found that the freeze problem went away when I forced a low-res for the console. For example, using grub;

GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_CMDLINE_LINUX_DEFAULT="<SOME> <LINUX> <OPTIONS> video=800x600@60"

I still couldn't figure out why the same monitor works fine with an intel laptop (out of the box), while failing on AMD ones. Possibly a problem/bug in amdgpu driver.

Offline

#8 2024-04-16 11:43:56

seth
Member
Registered: 2012-09-03
Posts: 51,831

Online

#9 2024-04-16 13:31:09

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

That explains a lot of things! Except that, to my understanding, my monitor's USB C port works as displayport (DP-alt mode). As an evidence, in the monitor OSD settings. I can pick among [1.3, 1.4, 1.4-DSC] modes when input signal is USB-C, while the options are [1.4, 2.1] when input set to HDMI.

In any case, now I understand that this is most likely a kernel or amdgpu side problem, not archlinux-specific. So that's my closure. I'll change the title accordingly. For the future reference, the model of the monitor is LG 49WQ95C-W (https://www.lg.com/us/monitors/lg-49wq9 … de-monitor)

Offline

#10 2024-04-16 15:20:41

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

DP should™ not be affected by this (afaiu it's the way how intel gets around this b/c internally everything is DP and the DP/HDMI conversion is implemented in hardware, so no problem w/ the driver) - but the crucial question isn't what your monitor says - does amdgpu identify the output as DP or HDMI?

Online

#11 2024-04-19 14:53:43

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

Not sure how to check to check that. Here are some syslogs obtained from `journalctl -k` for different scenarios. If someone can help me find the relevant part, that'd be great.

+-------+-----------------+--------------------+---------------------+--------+------------------------+
| boot# | plugged-at-boot | `video=800x600@60` | plugged-after-login | freeze |          log           |
+-------+-----------------+--------------------+---------------------+--------+------------------------+
| case3 | n               | y                  | y                   | N      | http://0x0.st/Xo2X.txt |
| case2 | y               | n                  | n/a                 | N      | http://0x0.st/Xo2H.txt |
| case1 | n               | n                  | y                   | Y      | http://0x0.st/Xo2o.txt |
+-------+-----------------+--------------------+---------------------+--------+------------------------+

For all scenarios,
1. none of peripherals were connected to the USB hub built-in to the monitor
2.  machine booted into `multi-user` target
3. I logged in immediately after reaching the login prompt
4. then waited for a few moments (10-30 seconds), than plugged in the monitor (case 3, 1)

Offline

#12 2024-04-19 15:32:13

seth
Member
Registered: 2012-09-03
Posts: 51,831

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

xorg log or /sys/class/drm should tell what the driver thinks the output is.

for OUT in /sys/class/drm/card*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

Edit:

Apr 19 08:02:53 *** kernel: amdgpu 0000:03:00.0: [drm] Cannot find any crtc or sizes
Apr 19 08:03:09 *** kernel: divide error: 0000 [#1] PREEMPT SMP NOPTI
Apr 19 08:03:09 *** kernel: CPU: 11 PID: 226 Comm: kworker/11:1H Not tainted 6.8.4-arch1-1 #1 7ea0d8fced45b5f098eb034690645970f116c34c
Apr 19 08:03:09 *** kernel: Hardware name: LENOVO 21D4000JUS/21D4000JUS, BIOS N3GET66W (1.66 ) 02/02/2024
Apr 19 08:03:09 *** kernel: Workqueue: events_highpri dm_irq_work_func [amdgpu]
Apr 19 08:03:09 *** kernel: RIP: 0010:setup_dsc_config+0x647/0x950 [amdgpu]
Apr 19 08:03:09 *** kernel: Code: 16 89 c8 31 d2 41 f7 76 08 85 d2 75 0a 83 ff 04 75 15 f6 c1 01 74 10 83 c1 01 39 ce 75 da 83 ff 04 0f 84 fb 01 00 00 89 f0 99 <f7> f9 8b 4c 24 08 89 43 04 85 c9 0f 8f 65 01 00 00 0f b6 84 24 80
Apr 19 08:03:09 *** kernel: RSP: 0018:ffffaf93427eb780 EFLAGS: 00010293
Apr 19 08:03:09 *** kernel: RAX: 0000000000000000 RBX: ffff8ffb9ec2c8c0 RCX: 0000000000000000
Apr 19 08:03:09 *** kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
Apr 19 08:03:09 *** kernel: RBP: ffff8ffb9ec2c858 R08: 0000000000000001 R09: 00000000000004b0
Apr 19 08:03:09 *** kernel: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
Apr 19 08:03:09 *** kernel: R13: ffffaf93427eb984 R14: ffffaf93427eb91c R15: ffff8ffb9ec2c8f8
Apr 19 08:03:09 *** kernel: FS:  0000000000000000(0000) GS:ffff8ffece8c0000(0000) knlGS:0000000000000000
Apr 19 08:03:09 *** kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 19 08:03:09 *** kernel: CR2: 0000752ab6e4bcb0 CR3: 00000003ef420000 CR4: 0000000000f50ef0
Apr 19 08:03:09 *** kernel: PKRU: 55555554
Apr 19 08:03:09 *** kernel: Call Trace:
Apr 19 08:03:09 *** kernel:  <TASK>
Apr 19 08:03:09 *** kernel:  ? die+0x36/0x90
Apr 19 08:03:09 *** kernel:  ? do_trap+0xda/0x100
Apr 19 08:03:09 *** kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  ? do_error_trap+0x6a/0x90
Apr 19 08:03:09 *** kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  ? exc_divide_error+0x38/0x50
Apr 19 08:03:09 *** kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  ? asm_exc_divide_error+0x1a/0x20
Apr 19 08:03:09 *** kernel:  ? setup_dsc_config+0x647/0x950 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  dc_dsc_compute_config+0x85/0xb0 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  create_stream_for_sink+0xab6/0xb70 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Apr 19 08:03:09 *** kernel:  ? dcn30_internal_validate_bw+0x95a/0xa30 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  create_validate_stream_for_sink+0x1eb/0x3a0 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  amdgpu_dm_connector_mode_valid+0x63/0x1d0 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Apr 19 08:03:09 *** kernel:  ? drm_connector_list_update+0x19a/0x250
Apr 19 08:03:09 *** kernel:  drm_connector_mode_valid+0x3b/0x60
Apr 19 08:03:09 *** kernel:  __drm_helper_update_and_validate+0xfe/0x3c0
Apr 19 08:03:09 *** kernel:  drm_helper_probe_single_connector_modes+0x242/0x550
Apr 19 08:03:09 *** kernel:  drm_client_modeset_probe+0x24b/0x1520
Apr 19 08:03:09 *** kernel:  ? kmem_cache_free+0x3b7/0x3e0
Apr 19 08:03:09 *** kernel:  ? srso_alias_return_thunk+0x5/0xfbef5
Apr 19 08:03:09 *** kernel:  drm_fb_helper_hotplug_event+0xac/0x100
Apr 19 08:03:09 *** kernel:  drm_client_dev_hotplug+0xa1/0xf0
Apr 19 08:03:09 *** kernel:  handle_hpd_irq_helper+0x159/0x170 [amdgpu cb98eedf1957fdf683533038735b4f950607f4ae]
Apr 19 08:03:09 *** kernel:  process_one_work+0x17b/0x350
Apr 19 08:03:09 *** kernel:  worker_thread+0x30f/0x450
Apr 19 08:03:09 *** kernel:  ? __pfx_worker_thread+0x10/0x10
Apr 19 08:03:09 *** kernel:  kthread+0xe8/0x120
Apr 19 08:03:09 *** kernel:  ? __pfx_kthread+0x10/0x10
Apr 19 08:03:09 *** kernel:  ret_from_fork+0x34/0x50
Apr 19 08:03:09 *** kernel:  ? __pfx_kthread+0x10/0x10
Apr 19 08:03:09 *** kernel:  ret_from_fork_asm+0x1b/0x30
Apr 19 08:03:09 *** kernel:  </TASK>
Apr 19 08:03:09 *** kernel: Modules linked in: snd_seq_dummy snd_hrtimer rfcomm snd_seq snd_seq_device tun snd_hda_scodec_cs35l41_spi cmac algif_hash algif_skcipher af_alg joydev nf_tables ip6table_nat ip6table_filter ip6_tables iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c iptable_filter bnep intel_rapl_msr intel_rapl_common snd_acp6x_pdm_dma snd_soc_dmic snd_soc_acp6x_mach snd_sof_amd_acp63 snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir snd_sof_amd_acp snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_ctl_led snd_sof_utils kvm_amd snd_hda_codec_realtek snd_soc_core snd_hda_codec_generic snd_hda_codec_hdmi snd_compress ac97_bus kvm btusb snd_pcm_dmaengine snd_hda_intel btrtl snd_pci_ps snd_intel_dspcfg btintel irqbypass uvcvideo snd_intel_sdw_acpi snd_rpl_pci_acp6x crct10dif_pclmul btbcm videobuf2_vmalloc snd_acp_pci crc32_pclmul snd_hda_codec btmtk uvc snd_acp_legacy_common polyval_clmulni videobuf2_memops polyval_generic snd_hda_core snd_hwdep snd_hda_scodec_cs35l41_i2c videobuf2_v4l2 gf128mul
Apr 19 08:03:09 *** kernel:  wacom snd_pci_acp6x bluetooth ghash_clmulni_intel usbhid snd_hda_scodec_cs35l41 hid_multitouch snd_pcm sha512_ssse3 snd_pci_acp5x videodev thinkpad_acpi snd_hda_cs_dsp_ctls snd_rn_pci_acp3x sha256_ssse3 amd_pmf ucsi_acpi cs_dsp snd_acp_config snd_timer videobuf2_common typec_ucsi amdtee mousedev think_lmi sp5100_tco snd_soc_cs35l41_lib sha1_ssse3 snd_soc_acpi ecdh_generic vfat hid_generic ledtrig_audio aesni_intel crypto_simd fat cryptd rapl psmouse mc pcspkr typec rfkill wmi_bmof firmware_attributes_class snd thunderbolt ccp snd_pci_acp3x k10temp roles soundcore i2c_piix4 amd_sfh i2c_hid_acpi platform_profile i2c_hid serial_multi_instantiate tee amd_pmc acpi_tad mac_hid pkcs8_key_parser i2c_dev crypto_user dm_mod fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 amdgpu amdxcp i2c_algo_bit drm_ttm_helper ttm drm_exec gpu_sched serio_raw drm_suballoc_helper sdhci_pci atkbd nvme drm_buddy cqhci libps2 vivaldi_fmap sdhci nvme_core drm_display_helper crc32c_intel xhci_pci video
Apr 19 08:03:09 *** kernel:  mmc_core i8042 nvme_auth xhci_pci_renesas cec serio wmi
Apr 19 08:03:09 *** kernel: ---[ end trace 0000000000000000 ]---
Apr 19 08:03:09 *** kernel: RIP: 0010:setup_dsc_config+0x647/0x950 [amdgpu]
Apr 19 08:03:09 *** kernel: Code: 16 89 c8 31 d2 41 f7 76 08 85 d2 75 0a 83 ff 04 75 15 f6 c1 01 74 10 83 c1 01 39 ce 75 da 83 ff 04 0f 84 fb 01 00 00 89 f0 99 <f7> f9 8b 4c 24 08 89 43 04 85 c9 0f 8f 65 01 00 00 0f b6 84 24 80
Apr 19 08:03:09 *** kernel: RSP: 0018:ffffaf93427eb780 EFLAGS: 00010293
Apr 19 08:03:09 *** kernel: RAX: 0000000000000000 RBX: ffff8ffb9ec2c8c0 RCX: 0000000000000000
Apr 19 08:03:09 *** kernel: RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
Apr 19 08:03:09 *** kernel: RBP: ffff8ffb9ec2c858 R08: 0000000000000001 R09: 00000000000004b0
Apr 19 08:03:09 *** kernel: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
Apr 19 08:03:09 *** kernel: R13: ffffaf93427eb984 R14: ffffaf93427eb91c R15: ffff8ffb9ec2c8f8
Apr 19 08:03:09 *** kernel: FS:  0000000000000000(0000) GS:ffff8ffece8c0000(0000) knlGS:0000000000000000
Apr 19 08:03:09 *** kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Apr 19 08:03:09 *** kernel: CR2: 0000752ab6e4bcb0 CR3: 00000003ef420000 CR4: 0000000000f50ef0
Apr 19 08:03:09 *** kernel: PKRU: 55555554

https://lore.kernel.org/linux-kernel/20 … lix.com/T/

Last edited by seth (2024-04-19 15:35:53)

Online

#13 2024-04-19 16:16:08

grimhike
Member
Registered: 2024-02-19
Posts: 7

Re: [SOLVED] console freezes with USB-C monitor (AMD laptop, LG 49WQ95C-W)

Wow, mystery solved. Thanks for the pointer!

I turned off DP compression (DSC) from the monitor side and the freezing issue indeed went away.

Offline

Board footer

Powered by FluxBB