Bug 1214848 - Thunderbolt 3 dock with nvidia laptop causes freeze, forcing to shutdown
Summary: Thunderbolt 3 dock with nvidia laptop causes freeze, forcing to shutdown
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X11 3rd Party Driver (show other bugs)
Version: Current
Hardware: PC openSUSE Tumbleweed
: P3 - Medium : Critical (vote)
Target Milestone: ---
Assignee: Stefan Dirsch
QA Contact: Stefan Dirsch
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-31 21:08 UTC by Joao Carvalho
Modified: 2023-09-07 19:16 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Xorg.0.log (90.03 KB, text/plain)
2023-09-02 08:53 UTC, Stefan Dirsch
Details
Xorg.0.log.old (60.84 KB, text/plain)
2023-09-02 08:54 UTC, Stefan Dirsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joao Carvalho 2023-08-31 21:08:50 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0
Build Identifier: 

When I connect a USB-C/Thunderbolt 3 dock (currently using an Asus SimPro Dock 2), if it has external monitors connected to it and if I'm using Nvidia GPU (it's an Optimus laptop), the laptop freezes and only recovers after being "hardware-ly" shutdown.

Reproducible: Always

Steps to Reproduce:
1.Connect external monitors to USB-C/Thunderbolt 3 dock
2.Turn on laptop
3.Connect dock to laptop
Actual Results:  
Laptop freezes
Comment 1 Stefan Dirsch 2023-09-01 07:41:43 UTC
Have you installted proprietary driver or are you still using OpenSource "nouveau" driver?
Comment 2 Joao Carvalho 2023-09-01 10:28:15 UTC
(In reply to Stefan Dirsch from comment #1)
> Have you installted proprietary driver or are you still using OpenSource
> "nouveau" driver?

I'm using the proprietary drivers (gl-G06) with "nouveau" blacklisted.

I was able to reproduce and capture the stacktrace of the issue: https://paste.opensuse.org/pastes/689af8e2da7f

Sometimes, the computer also freezes while loading tumbleweed, which might be related with the same issue: https://paste.opensuse.org/pastes/41d99ec080b5
Comment 3 Stefan Dirsch 2023-09-01 12:31:51 UTC
This looks like KDE desktop running on X. Please add output of 'inxi -aG' and Xorg Logfile. Not sure where to find this though when using sddm. :-(
Comment 4 Stefan Dirsch 2023-09-01 12:33:26 UTC
Probably it's in /var/log/Xorg.0.log or ~/.local/share/xorg/Xorg.0.log
Comment 5 Stefan Dirsch 2023-09-01 12:34:38 UTC
Possibly I need the .old variant of the logfile after reboot.
Comment 6 Joao Carvalho 2023-09-01 16:24:23 UTC
(In reply to Stefan Dirsch from comment #3)
> This looks like KDE desktop running on X. Please add output of 'inxi -aG'
> and Xorg Logfile. Not sure where to find this though when using sddm. :-(

Yes, you are right - I'm running KDE on X. I can also provide some more information, that I gathered in the mean time:
- The issue can be replicated using a live image of Pop!_OS, so, it might be more general than openSUSE Tumbleweed;
- If I switch from the NVIDIA card to the intel one, the issue doesn't happen (but I need the NVIDIA card to have 60 FPS on both monitors).
 

This is the output of 'inxi -aG':
https://paste.opensuse.org/pastes/924e20527178
Comment 7 Joao Carvalho 2023-09-01 16:34:14 UTC
(In reply to Stefan Dirsch from comment #5)
> Possibly I need the .old variant of the logfile after reboot.

I'm still a bit unfamiliar with several things about Linux. To do what you ask, is still any way to retrieve that information, or you want me to create a new freeze/crash? (I'm avoiding it, as I don't know what's happening on hardware level)

If it's still possible, here are my Xorg logs, but they might not include the freeze (I really don't know):

- Xorg.0.log: https://paste.opensuse.org/pastes/9981fe65d96d
- Xorg.0.log.old: https://paste.opensuse.org/pastes/fde395cd3349

If you need me to replicate the issue again and send you something, please let me know.

Thanks for trying to help! :)
Comment 8 Stefan Dirsch 2023-09-02 08:51:36 UTC
(In reply to Joao Carvalho from comment #6)
> (In reply to Stefan Dirsch from comment #3)
> > This looks like KDE desktop running on X. Please add output of 'inxi -aG'
> > and Xorg Logfile. Not sure where to find this though when using sddm. :-(
> 
> Yes, you are right - I'm running KDE on X. I can also provide some more
> information, that I gathered in the mean time:
> - The issue can be replicated using a live image of Pop!_OS, so, it might be
> more general than openSUSE Tumbleweed;
> - If I switch from the NVIDIA card to the intel one, the issue doesn't
> happen (but I need the NVIDIA card to have 60 FPS on both monitors).
>  
> 
> This is the output of 'inxi -aG':
> https://paste.opensuse.org/pastes/924e20527178

Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Micro-Star MSI driver: i915 v: kernel
    arch: Gen-13 process: Intel 7 (10nm) built: 2022+ ports: active: eDP-1 empty: DP-1,DP-2
    bus-ID: 0000:00:02.0 chip-ID: 8086:a7a0 class-ID: 0300
  Device-2: NVIDIA AD107M [GeForce RTX 4050 Max-Q / Mobile] vendor: Micro-Star MSI
    driver: nvidia v: 535.86.05 alternate: nouveau,nvidia_drm non-free: 530.xx+
    status: current (as of 2023-05) arch: Lovelace code: AD1xx process: TSMC n4 (5nm)
    built: 2022-23+ ports: active: none off: DP-4,DP-5 empty: DP-3,HDMI-A-1,eDP-2
    bus-ID: 0000:01:00.0 chip-ID: 10de:28a1 class-ID: 0300
  Device-3: Bison HD Camera driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1
    mode: 2.0 bus-ID: 3-4:2 chip-ID: 5986:116f class-ID: fe01 serial: 0001
  Device-4: Logitech C922 Pro Stream Webcam driver: snd-usb-audio,uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-8.3.1.4:12 chip-ID: 046d:085c class-ID: 0102
    serial: E6D27CDF
  Display: server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.2 compositor: kwin_x11 driver: X:
    loaded: modesetting,nvidia alternate: intel dri: iris gpu: i915,nvidia,nvidia-nvswitch
    tty: 171x93
  Monitor-1: DP-4 model: BenQ EL2870U serial: BBM05147SL0 built: 2021 res: 3840x2160 dpi: 157
    gamma: 1.2 size: 621x341mm (24.45x13.43") diag: 708mm (27.9") ratio: 16:9 modes: max: 3840x2160
    min: 640x480
  Monitor-2: DP-5 model: BenQ EL2870U serial: E5L03955SL0 built: 2020 res: 3840x2160 dpi: 157
    gamma: 1.2 size: 621x341mm (24.45x13.43") diag: 708mm (27.9") ratio: 16:9 modes: max: 3840x2160
    min: 640x480
  Monitor-3: eDP-1 model: AU Optronics 0x0fa7 built: 2022 res: 2560x1600 dpi: 216 gamma: 1.2
    size: 301x188mm (11.85x7.4") diag: 355mm (14") ratio: 16:10 modes: 2560x1600
  API: OpenGL Message: GL data unavailable in console for root.
Comment 9 Stefan Dirsch 2023-09-02 08:53:40 UTC
Created attachment 869219 [details]
Xorg.0.log
Comment 10 Stefan Dirsch 2023-09-02 08:54:08 UTC
Created attachment 869220 [details]
Xorg.0.log.old
Comment 11 Stefan Dirsch 2023-09-02 09:03:11 UTC
Indeed the logs don't include the freeze. You would need to reproduce it, then reboot and then please *attach* [1] your Xorg.0.log.old file. This would be the log, where I can see the crash then.

In the kernel logs I see, that the freeze happens in nvidia_modeset driver. You're using the latest driver we provide. 535.104.05 is in preparation though.


I'm assuming you have suse-prime package installed and are using it, i.e. you ran

  prime-select nvidia

to enable 3D-accelerated rendering. Is this correct?

[1] Bugzilla interface provides the possibility to attach files, please don't
use past.opensuse.org for Bugzilla tickets. It makes things for us much more complicated.
Comment 12 Joao Carvalho 2023-09-07 18:40:53 UTC
(In reply to Stefan Dirsch from comment #11)
> Indeed the logs don't include the freeze. You would need to reproduce it,
> then reboot and then please *attach* [1] your Xorg.0.log.old file. This
> would be the log, where I can see the crash then.
> 
> In the kernel logs I see, that the freeze happens in nvidia_modeset driver.
> You're using the latest driver we provide. 535.104.05 is in preparation
> though.
> 
> 
> I'm assuming you have suse-prime package installed and are using it, i.e.
> you ran
> 
>   prime-select nvidia
> 
> to enable 3D-accelerated rendering. Is this correct?
> 
> [1] Bugzilla interface provides the possibility to attach files, please don't
> use past.opensuse.org for Bugzilla tickets. It makes things for us much more
> complicated.

Sorry for the late reply. I had been trying to debug this situation ever since I reported it, to no success (up until today). I wasn't too familiar with some of the stuff you had mentioned, so I did have to read quite a bit under the openSUSE documentation.

I now can say with almost certainty that the issue was the NVIDIA driver version. Yesterday I updated the gl-G06, since it received an update from the NVIDIA driver, and the issue is magically gone!

Thanks for the help! I think it's safe to close this bug, as it wasn't openSUSE related.
Comment 13 Stefan Dirsch 2023-09-07 19:16:24 UTC
Ok. Thanks for the feedback. Good to see it's fixed now with the latest driver.