Dave Airlie
2025-Oct-08 01:48 UTC
[PATCH] nouveau: add option to avoid 535 firmware in initramfs
On Wed, 8 Oct 2025 at 01:20, Petr Vorel <pvorel at suse.cz> wrote:> > Hi all, > > > On Tue, 2025-10-07 at 13:31 +1000, Dave Airlie wrote: > > > We can't do that, because if we moved to 580, and distros have this > > > option on for 570, they would fail unless they had the 580 firmware, > > > so it needs to be versioned. > > > Hmmm then how about making it a choice of which version to support: > > > choice > > prompt "Firmware version supported" > > default DRM_NOUVEAU_ANY > > You probably know it, in case you don't: DRM_NOUVEAU_ANY needs to be also as > config: > > config DRM_NOUVEAU_ANY > bool "Support all firmware versions" > ... > > > config DRM_NOUVEAU_535_ONLY > > ... > > > config DRM_NOUVEAU_535_ONLY > > ... > > > endchoice > > +1 > > > Or something like that. I can't figure out how choices work, but the idea is that the defconfig > > Kind regards, > Petr > > > defaults to allowing all versions, but you can pick a specific one.I think that is getting a bit complicated for distros though. There is no reason to ever want 535 only. We don't want to give people options we don't actually support. The options we have in the current driver, is you get 535 + 570, and we give you the option to say I only need 570. If we add 580, we add another option and fix it then, but I don't see the point in overdesigning this for now. Dave.>
Timur Tabi
2025-Oct-08 03:18 UTC
[PATCH] nouveau: add option to avoid 535 firmware in initramfs
On Wed, 2025-10-08 at 11:48 +1000, Dave Airlie wrote:> I think that is getting a bit complicated for distros though. There is > no reason to ever want 535 only. We don't want to give people options > we don't actually support.My Ubuntu 25.04 system ships with kernel 6.14 but only the r535 firmware. So there systems out there with recent kernels that would select 535-only.> The options we have in the current driver, is you get 535 + 570, and > we give you the option to say I only need 570. If we add 580, we add > another option and fix it then, but I don't see the point in > overdesigning this for now.Well, like you said, if we move to 580, then now we need to decide between 570 and 580. So let's set up a Kconfig system that handles multiple versions in a future-proof way.