NVIDIA / NVIDIA/open-gpu-kernel-modules

build fails with PREEMPT_RT

Open
#1,240 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

NVIDIA Open GPU Kernel Modules Version

610.43.03

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.
  • I confirm that this does not happen with the proprietary driver package.
Operating System and Version

Ubuntu 24.04.4 LTS

Kernel Release

Linux 6.8.1-1015-realtime #16-Ubuntu SMP PREEMPT_RT Wed Jan 15 21:03:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
  • I am running on a stable kernel release.
Hardware: GPU

GPU 0: NVIDIA GeForce RTX 4070 Ti (UUID: GPU-9072a022-2ffd-bcd5-8970-bf688f17a1f9)

Describe the bug

The build fails on a PREEMPT_RT kernel (e.g. sudo apt install ubuntu-realtime on Ubuntu):

The kernel you are installing for is a PREEMPT_RT kernel!

The NVIDIA driver does not support real-time kernels. If you 
are using a stock distribution kernel, please install 
a variant of this kernel that does not have the PREEMPT_RT 
patch set applied; if this is a custom kernel, please 
install a standard Linux kernel.  Then try installing the 
NVIDIA kernel module again.

*** Failed PREEMPT_RT sanity check. Bailing out! ***

Please support PREEMPT_RT.

To Reproduce

Install Ubuntu's PREEMPT_RT kernel:

sudo apt install ubuntu-realtime

build the source:

make modules -j$(nproc)
Bug Incidence

Always

nvidia-bug-report.log.gz

Does not apply.

More Info

No response

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 Ubuntu 24.04.4's PREEMPT_RT kernel using make modules -j$(nproc), then trace the build's PREEMPT_RT sanity check that emits the failure. Done means the open GPU kernel modules build successfully on the reported PREEMPT_RT kernel while retaining appropriate behavior for unsupported configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, ubuntu
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.