Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 950370

Summary: sys-kernel/gentoo-sources >= 6.11 DRM_TTM_HELPER explicit configuration (for x11-drivers/nvidia-drivers)
Product: Gentoo Linux Reporter: CyberGuerro <cyberguerro>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: UNCONFIRMED ---    
Severity: normal CC: cyberguerro, floppym, ionen, soap
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description CyberGuerro 2025-02-28 14:41:26 UTC
x11-drivers/nvidia-drivers needs DRM_TTM_HELPER enabled into the kernel, but since 6.11 it is enabled only if another one of specific DRM drivers is enabled even though unused (as told in the nvidia-drivers package).
My request is:
Is it possible to make DRM_TTM_HELPER config option explicit, so it can be enabled without any other unnecessary option?

Reproducible: Always

Actual Results:  
I have to enable other unused DRM to enable DRM_TTM_HELPER

Expected Results:  
DRM_TTM_HELPER could be enabled explicitly.
Comment 1 Mike Gilbert gentoo-dev 2025-02-28 16:27:41 UTC
I think this request would be better directed to the upstream kernel developers? Patching this in just for Gentoo feels weird.
Comment 2 Ionen Wolkens gentoo-dev 2025-02-28 16:38:42 UTC
fwiw this isn't new, DRM_KMS_HELPER also had the same problem for years.

From nvidia-drivers side, how to enable these has always been explained and some like DRM_QXL are pretty small to enable and can be made a module leading to just 1 tiny unused module.
Comment 3 CyberGuerro 2025-02-28 16:46:35 UTC
(In reply to Ionen Wolkens from comment #2)
> fwiw this isn't new, DRM_KMS_HELPER also had the same problem for years.
> 
> From nvidia-drivers side, how to enable these has always been explained and
> some like DRM_QXL are pretty small to enable and can be made a module
> leading to just 1 tiny unused module.

In kernel 6.6.x there's no this problem and I haven't to follow your solution, enabling tiny fake modules
Comment 4 Ionen Wolkens gentoo-dev 2025-02-28 16:57:43 UTC
(In reply to CyberGuerro from comment #3)
> (In reply to Ionen Wolkens from comment #2)
> > fwiw this isn't new, DRM_KMS_HELPER also had the same problem for years.
> > 
> > From nvidia-drivers side, how to enable these has always been explained and
> > some like DRM_QXL are pretty small to enable and can be made a module
> > leading to just 1 tiny unused module.
> 
> In kernel 6.6.x there's no this problem and I haven't to follow your
> solution, enabling tiny fake modules
It may have been provided by something else that you just happen to have enabled, nvidia-drivers also requests DRM_KMS_HELPER and would complain about it if missing (this been in the ebuild for like 4 years now I forget), but if you look for the option you can't enable it directly and may need to enable something you don't need for it.

And then DRM_QXL enables both.
Comment 5 Ionen Wolkens gentoo-dev 2025-02-28 17:00:30 UTC
Either way, I agree with comment #1 and I think this should be closed.