- Card: GeForce GTX 970
- Kernel: 5.16.0
- System manager: systemd 250.2
- Greeter: GDM 41
- Desktop Environment: Gnome 41 on Wayland
My computer sometimes fails to suspend, and I see this in dmesg:
Freezing user space processes ...
Freezing of tasks failed after 20.009 seconds (1 tasks refusing to freeze, wq_busy=0):
task:gnome-shell state:D stack: 0 pid: 2080 ppid: 2019 flags:0x00004004
Call Trace:
<TASK>
__schedule+0x265/0x700
schedule+0x49/0xd0
rwsem_down_read_slowpath+0x315/0x360
? __kmalloc+0x1a4/0x2d0
nvkms_ioctl_from_kapi+0x22/0x90 [nvidia_modeset]
_nv002056kms+0x126c/0x2710 [nvidia_modeset]
? nv_drm_internal_framebuffer_create+0x24d/0x8b0 [nvidia_drm]
? nv_drm_exit+0x310/0x370 [nvidia_drm]
? drm_internal_framebuffer_create+0x3a8/0x4e0
? drm_mode_addfb2+0x2c/0xb0
? drm_mode_addfb_ioctl+0x10/0x10
? drm_ioctl_kernel+0xb1/0x140
? rm_ioctl+0x63/0xb0 [nvidia]
? drm_ioctl+0x225/0x410
? drm_mode_addfb_ioctl+0x10/0x10
? __x64_sys_futex+0x6e/0x1d0
? __x64_sys_ioctl+0x8d/0xb0
? do_syscall_64+0x38/0xc0
? entry_SYSCALL_64_after_hwframe+0x44/0xae
</TASK>
The top of the stack is in the SLAB allocator, which is trying to obtain a semaphore. I have zswap enabled. Iâm not a kernel hacker so thatâs all I can tell from this.
I set CONFIG_DRM_I915=m
in order to enable CONFIG_DRM_KMS_HELPER=m
.
Kernel commandline:
BOOT_IMAGE=/vmlinuz-5.16.0-gentoo
loop.max_part=32
rd.lvm=0 rd.md=0 rd.dm=0
nvidia-drm.modeset=1
video=HDMI-1:1920x1080d
nomodeset
quiet
loglevel=0
slab_nomerge
init_on_alloc=1
init_on_free=1
page_alloc.shuffle=1
pti=on
vsyscall=none
mitigations=off
/etc/modprobe.d/nvidia.conf
:
# NVIDIA drivers options
# See /usr/share/doc/nvidia-drivers-*/README.txt* for more information.
# nvidia-drivers and nouveau cannot be used at same time.
# Comment out the following line if you wish to allow nouveau.
blacklist nouveau
# Kernel Mode Setting (notably needed for EGLStream/Wayland)
# Enabling may possibly cause issues with SLI and Reverse PRIME.
options nvidia-drm modeset=1
# Suspend options. Allocations=0 recommended over =1 unless enable nvidia's
# systemd sleep services (nvidia-hibernate, nvidia-resume, nvidia-suspend).
options nvidia \
NVreg_PreserveVideoMemoryAllocations=1 \
NVreg_TemporaryFilePath=/var/tmp
# !!! Security Warning !!!
# Do not change the DeviceFile options unless you know what you are doing.
# Only add trusted users to the 'video' group, these users may be able to
# crash, compromise, or irreparably damage the machine.
options nvidia \
NVreg_DeviceFileGID=27 \
NVreg_DeviceFileMode=432 \
NVreg_DeviceFileUID=0 \
NVreg_ModifyDeviceFiles=1
# Power save options
options nvidia \
NVreg_DynamicPowerManagment=0x01
# Should be no need to touch anything below.
alias char-major-195 nvidia
alias /dev/nvidiactl char-major-195
remove nvidia modprobe -r --ignore-remove nvidia-drm nvidia-modeset nvidia-uvm nvidia
Loaded modules:
Module Size Used by
squashfs 53248 1
vfat 20480 1
fat 81920 1 vfat
rfkill 24576 2
nft_ct 20480 2
nf_conntrack 86016 1 nft_ct
nf_defrag_ipv6 20480 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
nft_objref 16384 1
nft_limit 16384 3
nft_counter 16384 1
nf_tables 237568 96 nft_ct,nft_objref,nft_counter,nft_limit
nfnetlink 20480 1 nf_tables
binfmt_misc 16384 1
snd_hda_codec_generic 81920 1
x86_pkg_temp_thermal 16384 0
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec_hdmi 65536 1
snd_hda_intel 32768 4
snd_intel_dspcfg 16384 1 snd_hda_intel
snd_hda_codec 114688 3 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 16384 1 snd_hda_codec
snd_hda_core 65536 4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_pcm 118784 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
snd_timer 36864 1 snd_pcm
snd 90112 15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm
soundcore 16384 1 snd
video 45056 0
tirdad 16384 0
coretemp 16384 0
fuse 135168 3
r8169 98304 0
realtek 28672 1
mdio_devres 16384 1 r8169
libphy 102400 3 r8169,mdio_devres,realtek
xhci_pci 16384 0
xhci_hcd 163840 1 xhci_pci
nvidia_drm 61440 49
drm_kms_helper 233472 1 nvidia_drm
backlight 16384 2 video,drm_kms_helper
cfbfillrect 16384 1 drm_kms_helper
syscopyarea 16384 1 drm_kms_helper
cfbimgblt 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
fb_sys_fops 16384 1 drm_kms_helper
cfbcopyarea 16384 1 drm_kms_helper
nvidia_uvm 1085440 0
nvidia_modeset 1114112 7 nvidia_drm
nvidia 38453248 612 nvidia_uvm,nvidia_modeset
btrfs 1269760 1
libcrc32c 16384 2 btrfs,nf_tables
xor 24576 1 btrfs
raid6_pq 118784 1 btrfs
cat /proc/driver/nvidia/params
:
ResmanDebugLevel: 4294967295
RmLogonRC: 1
ModifyDeviceFiles: 1
DeviceFileUID: 0
DeviceFileGID: 27
DeviceFileMode: 432
InitializeSystemMemoryAllocations: 1
UsePageAttributeTable: 4294967295
EnableMSI: 1
RegisterForACPIEvents: 1
EnablePCIeGen3: 0
MemoryPoolSize: 0
KMallocHeapMaxSize: 0
VMallocHeapMaxSize: 0
IgnoreMMIOCheck: 0
TCEBypassMode: 0
EnableStreamMemOPs: 0
EnableUserNUMAManagement: 1
NvLinkDisable: 0
RmProfilingAdminOnly: 1
PreserveVideoMemoryAllocations: 1
EnableS0ixPowerManagement: 0
S0ixPowerManagementVideoMemoryThreshold: 256
DynamicPowerManagement: 3
DynamicPowerManagementVideoMemoryThreshold: 200
RegisterPCIDriver: 1
EnablePCIERelaxedOrderingMode: 0
EnableGpuFirmware: 18
EnableDbgBreakpoint: 0
RegistryDwords: ""
RegistryDwordsPerDevice: ""
RmMsg: ""
GpuBlacklist: ""
TemporaryFilePath: "/var/tmp"
ExcludedGpus: ""
I will attach the bug report shortly. This could be something wrong with my configuration, though.
nvidia-bug-report.log.gz (310.3 KB)