Reverse PRIME stopped working on 340.108

I have an integrated Intel graphics card and a discrete Nvidia card plugged on a PCI port. I’ve been using a three monitor setup by using the Nvidia card as my main card (two outputs), and using the Intel card (one output) via Reverse PRIME.

My computer was rebooted a few days ago (it had been on for a long period), and suddenly the setup broke. I cannot enable reverse prime again:

$  xrandr --setprovideroutputsource modesetting NVIDIA-0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x249
  Serial number of failed request:  16
  Current serial number in output stream:  17

Maybe some package upgrade broke this setup, but I wonder which one. I have tried several kernel versions (5.4.24, 5.4.63, 4.19.98) and the last two driver versions (340.107, 340.108) without success.

Find attached the nvidia report: nvidia-bug-report.log.gz (78.3 KB).

Package versions (Exherbo Linux):

  • x11-server/xorg-server 1.20.9-r1
  • x11-dri/mesa 20.1.7
  • x11-drivers/xf86-video-intel 2.99.917_p20200515
  • x11-apps/xrandr 1.5.1
  • x11-dri/libdrm 2.4.102

After upgrading some packages the problem got fixed. This is the new package list: