PRIME offload returns BadValue for opcode 155 (NV-GLX) / 6

I’m trying to setup offload on an XPS 7590 according to Chapter 34. PRIME Render Offload

I’m running on fedora 31 with driver 440.59 with the xorg patches needed for PRIME support backported.

Everything from the early logs seems ok:

  • Both drivers loaded
  • Defaults to intel
  • xrandr lists two providers as expected
  • glamoregl is loaded

Main issue (or the most apparent one) is that glxinfo with offload shows only this:

_NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (NV-GLX)
  Minor opcode of failed request:  6 ()
  Value in failed request:  0x0
  Serial number of failed request:  83
  Current serial number in output stream:  83

Other issues spotted: nvidia-smi works, detects the card, etc, but also shows:

WARNING: infoROM is corrupted at gpu 0000:01:00.0

The only other problem I spotted is that I run into this issue: https://devtalk.nvidia.com/default/topic/1071120/linux/-bug-nvidia-440-64-kernel-5-5-6-stable-boot-trace-was-nvidia-440-59-kernel-5-5-1-stable-boot-trace/ - but it doesn’t seem to stop the card from working.
nvidia-bug-report.log.gz (1.11 MB)

Bumping to jump over the post destroying the forum layout.

In the first line of your code block, there should be two underscores in the first environment variable:

[quote]

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo

1 Like

Yeah, that was it… the classic copy-paste mistake.

I guess this can be a feature request as well - could this situation have a better error report? :)