Soft lockup in nvidia_modeset DisplayPort path during Xorg logout (DGX Spark, kernel 6.17.0-1018-nvidia)

Hit a reproducible soft-lockup on a DGX Spark when logging out from the default GDM/Xorg session. The kernel watchdog reports Xorg and the nvidia-modeset kthread mutually blocked in nvidia_modeset DisplayPort tear-down code; the system never recovers and requires a chassis reset. Filing in case this matches an internal NVIDIA report or helps reproduce.

Hardware / Software

  • Hardware: NVIDIA DGX Spark / GB10 (ASUS GX10, BIOS GX10DGX.0104.2026.0326.1657
    03/26/2026)
  • OS: Ubuntu 24.04.3 LTS
  • Kernel: 6.17.0-1018-nvidia (also observed under -1014)
  • NVIDIA driver: 580.142
  • Modules at fault: nvidia, nvidia_modeset, nvidia_drm, nvidia_uvm

Reproduction

  1. Fresh boot to GDM
  2. Log in to the default GNOME-on-Xorg session (HDMI-attached monitor)
  3. Use desktop briefly
  4. Click Log out from the user menu in the top-right
  5. Result: display freezes; system unresponsive to physical input; SSH eventually drops as the cascade widens; only chassis reset recovers

Stack trace

CPU 18 was running Xorg (PID 3555); watchdog reported it stuck for 391s → 417s → 443s → 469s →
496s → 522s across successive warnings:

watchdog: BUG: soft lockup - CPU#18 stuck for 522s! [Xorg:3555]
Tainted: G           O L      6.17.0-1018-nvidia #18-Ubuntu PREEMPT(none)
pc : _ZN11DisplayPort9GroupImpl11enumDevicesEPNS_6DeviceE+0x60/0x90 [nvidia_modeset]
lr : _ZN11DisplayPort15ConnectorImpl2x17notifyDetachBeginEPNS_5GroupE+0x6c/0x130
[nvidia_modeset]
Call trace:
 _ZN11DisplayPort9GroupImpl11enumDevicesEPNS_6DeviceE+0x60/0x90 [nvidia_modeset] (P)
 __arm64_sys_ioctl+0xd0/0x160
 invoke_syscall+0x74/0x128
 el0_svc_common.constprop.0+0x4c/0x140
 do_el0_svc+0x28/0x58
 el0_svc+0x40/0x198
 el0t_64_sync_handler+0xc0/0x108
 el0t_64_sync+0x1b8/0x1c0

The nvidia-modeset kthread reported blocked on a semaphore held by Xorg:

INFO: task nvidia-modeset/:2590 blocked for more than 368 seconds.
task:nvidia-modeset/ state:D stack:0  pid:2590
INFO: task nvidia-modeset/:2590 blocked on a semaphore likely last held by task Xorg:3555
Call trace:
 nvkms_kthread_q_callback+0xa8/0x1d0 [nvidia_modeset]
 _main_loop+0xa0/0x180 [nvidia_modeset]
 _rmapiRmControl+0x470/0x6a0 [nvidia]
 rmapiControlWithSecInfo+0xa8/0x150 [nvidia]
 rmapiControlWithSecInfoTls+0x84/0xe0 [nvidia]

Userland Xorg and the kernel nvidia-modeset thread are mutually deadlocked in the modeset path; system never recovers.

Workaround in place

Switched the systemd default target to multi-user.target to skip GDM/Xorg entirely. With Xorg never started, the bug cannot trigger. CUDA / NCCL / DCGM / docker --gpus all workloads unaffected — the GPU stack itself is fine, the bug is purely in the display path. Anyone wanting to run a Spark headless can do the same:

sudo systemctl set-default multi-user.target

Logs

nvidia-bug-report.log.gz attached. Relevant excerpts are in dmesg / journal around the timestamps of the soft-lockup messages above.

Notes for triage

  • Xorg PID 3555 is the standard GDM session (uid=1000), no third-party display software involved
  • Bluetooth (btusb/btmtk) and mt7925e Wi-Fi are present in modules-linked but appear only as bystanders; the lockup is purely in nvidia_modeset DisplayPort code
  • Reproducible on both 6.17.0-1014-nvidia and 6.17.0-1018-nvidia — different freeze patterns on each (the -1014 one also wedged the Wi-Fi stack via a cfg80211 mutex; the -1018 one is cleaner in the display path)

Attachment: nvidia-bug-report.log.gz (411.4 KB)

Useful report — the workaround you’ve described (disable GDM, switch to multi-user.target) is exactly what I landed on after a different but related hang on 580.159.03. A few data points worth adding:

In my case the deadlock was in nvidia / nvidia_uvm rather than nvidia_modeset, and it reproduced after disabling GDM as well — triggered by an NV_ERR_NO_MEMORY from _memdescAllocInternal during a heavy vLLM allocation rather than by display tear-down. The blocked consumers I observed across two separate hangs were a vLLM worker (Wednesday, with Xorg as writer) and nvidia-smi (Thursday, with a vLLM worker as writer) — so the consumers and the writers can be any combination of GUI, CUDA, and management-plane processes; it’s not specific to display teardown.

So the architectural class of “long-held NVIDIA driver lock deadlocks consumers” appears to span at least the modeset and RM/UVM paths, and the GDM-disable workaround removes display-path triggers but not allocation-path triggers.

Setup for comparison:

  • 2x DGX Spark
  • Driver: 580.159.03 (open kernel modules)
  • Kernel: 6.17.0-1018-nvidia
  • NCCL: 2.30.6
  • vLLM: 0.19.1rc1.dev1315+g102aaddf8.d20260519 (via eugr/spark-vllm-docker)
  • Workload: DeepSeek-V4-Flash, TP=2 across nodes, --gpu-memory-utilization 0.85, --kv-cache-dtype fp8

Cross-linking my post in the other thread for completeness: Help, team spark! - #6 by j0n

Hi, trying to understand your symptoms to reproduce. Are you saying that when you try to logout, the system freezes which is solvable by a system shutdown?

We have attempted to reproduce this with latest updates and couldn’t see any similar symptoms. I will mark this as a solution unless someone else sees it.