NVIDIA driver 615.78.08 preventing system from reaching suspend state

After installing the latest (as of this writing) 615.78.08 nvidia drivers, I noticed that there are a number of occasions where my system is unable to auto-suspend. All screens simply go black and unresponsive. Pressing the power button and attempting to use the keyboard and mouse also serve no change in behaviour. The fans ramp up and stay at an audible level, probably meaning some process is running in a loop.

I looked into it and I noticed something happens when the system is about to suspend, which causes task “nv_queue” to be blocked on a sephamore held by kscreenlocker_g. After a short amount of time, systemd-logind.service experiences a SIGKILL as kscreenlocker_g hangs because nv_queue hangs. systemd_logind.service tries to start again but fails. In one occasion before this, I noticed vulkan apps were unable to start at all. dmesg reported NV_ERR_STATE_IN_USE in that instance.

I attached an NVIDIA bug report which should hopefully help with debugging. I also attached some kernel logs from journalctl relating to the suspend issue. I found a task trace in there which might be valuable.

Thank you for the effort the team and the community have been putting into these drivers over the past few months. I am noticing a lot has improved over time, and quickly too!

NVIDIA bug report:

nvidia-bug-report.log.gz (558.4 KB)

Journalctl log:

journalctl-nvqueue-failure.log (92.7 KB)