View previous topic :: View next topic |
Author |
Message |
AECFXI n00b
Joined: 28 Nov 2018 Posts: 34
|
Posted: Mon Dec 30, 2024 10:42 pm Post subject: Real-time kernel preemption and building nvidia-drivers |
|
|
With little noticeable fanfare, after 20 odd years of Linux kernel development, we now have real-time kernel preemption as an available build option in linux-6.12.6-gentoo.
x11-drivers/nvidia-drivers is not built with support for real-time preemption at this time, however that doesn't mean that there are necessarily issues - just that it is not formally supported and I will not cry or file bug reports if I do run into problems on an Nvidia-drivers platform.
To test how the system performs regardless of support, an error while attempting to emerge nvidia-drivers explains the requirements for such a test drive:
Quote: | * CONFIG_PREEMPT_RT: is set but is unsupported by NVIDIA upstream and
* will fail to build unless the env var IGNORE_PREEMPT_RT_PRESENCE=1 is
* set. Please do not report issues if run into e.g. kernel panics while
* ignoring this. |
I have made some very earnest attempts to work this environment variable into portage's configuration files, but I am just not figuring out how to inject such an environment variable into building nvidia-drivers.
Does it go in MAKEOPTS= ? As in, MAKEOPTS="${MAKEOPTS} --IGNORE_PREEMPT_RT_PRESENCE=1"? Because that breaks portage when the flag is directly put into make.conf's MAKEOPTS field and doesn't have an effect when I make a bespoke /etc/portage/env/* configuration file with that line and then call for nvidia-drivers to build with that env config in package.env |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1968
|
Posted: Mon Dec 30, 2024 11:25 pm Post subject: |
|
|
Not MAKEOPTS but its own line in a /etc/portage/env file.
E.g. /etc/portage/env/preempt-rt.conf: Code: | IGNORE_PREEMPT_RT_PRESENCE=1 |
If this is too late for detection, then consider a new file in /etc/env.d instead |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|