NVIDIA / NVIDIA/open-gpu-kernel-modules

PRIME rendering not functional

Open
#258 0 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Pending
Dominant language
C
Stars
17.4k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

NVIDIA Open GPU Kernel Modules Version

af26e1ea89a9a1b9d5e120786291094616ab995f

Does this happen with the proprietary driver (of the same version) as well?

No

Operating System and Version

Description: Arch Linux

Kernel Release

Linux legion5p 5.17.9-258-tkg-pds #1 TKG SMP PREEMPT Tue, 24 May 2022 16:47:06 +0000 x86_64 GNU/Linux (Self-built)

Hardware: GPU

"No devices were found" (NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1))

Describe the bug

Running prime-run glxgears produces the following:

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  26
  Current serial number in output stream:  27

Other applications also fails to bind to the nvidia gpu (this is a hybrid gpu system).

To Reproduce
  • install nvidia-prime
  • run prime-run glxgears
    • Alternative way: __GLX_VENDOR_LIBRARY_NAME=nvidia __NV_PRIME_RENDER_OFFLOAD=1 glxgears
Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

System: Lenovo Legion 5 Pro Gen 6 (Legion 5 Pro-16ACH6H, Machine Type 82JQ00FAUS)

This is a laptop with Radeon/NVIDIA hybrid graphics.
Support for the feature appears to be missing in the driver at the moment.

Related to: #98

I have created this issue to track the support for PRIME rendering explicitly. I have Acknowledged that the driver does not contain all the features at the moment.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with prime-run glxgears or the documented PRIME environment variables on the reported hybrid Radeon/NVIDIA system, then inspect the attached nvidia-bug-report.log.gz and related issue #98. Done would mean PRIME render offload applications bind to the NVIDIA GPU without the reported GLX BadValue error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
computer-graphics, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.