Public bug reported:

When using the on-demand mode on my GTX1060 Max-Q, the game CS:GO causes
a system hang after few minutes of playing (around 5min). Nothing
responds and the screen freezes, forcing a hard reboot. When going back
to the mode NVIDIA (performance mode), the game runs fine.

I am using gamemode to boost performances. It can also enable the GPU
while in the on-demand mode by setting the GAMEMODERUNEXEC environment
variable. To enable it, I added the following lines in my .profile:

if [ $(prime-select query) == "on-demand" ] ; then 
    export GAMEMODERUNEXEC="env __NV_PRIME_RENDER_OFFLOAD=1 env 
__GLX_VENDOR_LIBRARY_NAME=nvidia env __VK_LAYER_NV_optimus=NVIDIA_only"
fi

Disabling gamemode doesn’t change anything, the system still freezes.

CS:GO is the only game doing this. I asked on the NVIDIA forums and they
told me it might be a kernel bug linked with async flip being enabled in
the Intel driver. In the attached nvidia log, you can see a lot of the
following errors when the freeze happens:

[ 327.526] (WW) modeset(0): flip queue failed: Invalid argument
[ 327.526] (WW) modeset(0): Page flip failed: Invalid argument
[ 327.526] (EE) modeset(0): present flip failed


The bug happens both on 470 and 495 drivers, and on kernel 5.11 and 5.13 (from 
linux-image-generic-hwe-20.04 and linux-image-generic-hwe-20.04-edge). When 
going back to the 5.4 kernel (from linux-image-generic), the bug disappears.

Specs:
Operating System: KDE neon 5.23 (based on Ubuntu LTS 20.04)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit) (bug also happens with 
5.13.0-21-generic (64-bit))
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-7300HQ CPU @ 2.50GHz
Memory: 7,7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
GPU: NVIDIA GeForce GTX 1060 with Max-Q Design

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Nvidia bug report log"
   
https://bugs.launchpad.net/bugs/1951153/+attachment/5541260/+files/nvidia-bug-report.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1951153

Title:
  System freeze with nvidia on-demand driver on kernel 5.11 and 5.13

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1951153/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to