Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843827 - >=x11-drivers/nvidia-drivers-515*[kernel-open] requires kernel config MMU_NOTIFIER
Summary: >=x11-drivers/nvidia-drivers-515*[kernel-open] requires kernel config MMU_NOT...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-12 01:36 UTC by unhappy-ending
Modified: 2022-05-12 02:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
no MMU_NOTIFIER failure build log (nvidia-drivers-515.43.04:20220512-014216.log,255.43 KB, text/x-log)
2022-05-12 01:45 UTC, unhappy-ending
Details
MMU_NOTIFIER successful build log (nvidia-drivers-515.43.04:20220512-014804.log,676.70 KB, text/x-log)
2022-05-12 01:49 UTC, unhappy-ending
Details

Note You need to log in before you can comment on or make changes to this bug.
Description unhappy-ending 2022-05-12 01:36:28 UTC
As summarized, nvidia-drivers-515.43.04[kernel-open] will fail to compile without the kernel having MMU_NOTIFIER configured in. There's several options to enable it, an easy way is to enable virtualization and KVM.

Reproducible: Always

Steps to Reproduce:
1. Don't have MMU_NOTIFIER configured into the kernel
2. Compile nvidia-drivers[kernel-open]

Actual Results:  
Compile phase fails because nvidia_uvm requires mmu_notifier

Expected Results:  
I guess this is expected

Probably need to add a kernel config check for MMU_NOTIFIER. USE="kernel-open" is still new so there's probably more than one way around it, perhaps as the source is more open more flags can be used to flip features on/off.
Comment 1 unhappy-ending 2022-05-12 01:45:54 UTC
Created attachment 778181 [details]
no MMU_NOTIFIER failure build log
Comment 2 unhappy-ending 2022-05-12 01:49:50 UTC
Created attachment 778184 [details]
MMU_NOTIFIER successful build log
Comment 3 Ionen Wolkens gentoo-dev 2022-05-12 02:42:17 UTC
Thanks, I have CONFIG_KVM on all my kernels so I wouldn't have noticed.

As you suggest, I'll go ahead and set a conditional check if USE=kernel-open, and keep an eye on conftest changes to see if I can remove it at some point.

It may be possible to be optional given I see `#if UVM_CAN_USE_MMU_NOTIFIERS()` but I'd rather not do workarounds at this stage and I'll let nvidia polish this (+community now).
Comment 4 Larry the Git Cow gentoo-dev 2022-05-12 02:43:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b2d2274e07fe5f2b92c0e41bdd76211e09b5cb0

commit 7b2d2274e07fe5f2b92c0e41bdd76211e09b5cb0
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-05-12 02:24:39 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-05-12 02:40:39 +0000

    x11-drivers/nvidia-drivers: require MMU_NOTIFIER with kernel-open
    
    Closes: https://bugs.gentoo.org/843827
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-515.43.04.ebuild | 5 +++++
 1 file changed, 5 insertions(+)