Subject: Re: bug#57760: [PATCH] system: install: Do not load amdgpu in the installer image.

From: Mathieu Othacehe <[email-masked]>
Date: Thu, 15 Sep 2022 15:43:35 +0200

Hello Josselin,

> Seems good to me.  I'm still pretty uneducated about DRM, the
> framebuffers and whatnot though.  IIUC, we require either DRI or FB for
> kmscon to work (which is better than just FB for the kernel's default fb
> console).

Same here.

> Also, are there other DRM drivers that we could blacklist because they
> may try to load non-free blobs?  Do some specific systems *require*
> non-free blobs in order to display anything?

According to this command:

--8<---------------cut here---------------start------------->8---
mathieu@meije ~/linux/drivers/gpu/drm$ grep FW_LOADER Kconfig  -B 5
source "drivers/gpu/drm/arm/Kconfig"

config DRM_RADEON
	tristate "ATI Radeon"
	depends on DRM && PCI && MMU
	select FW_LOADER
--
source "drivers/gpu/drm/radeon/Kconfig"

config DRM_AMDGPU
	tristate "AMD GPU"
	depends on DRM && PCI && MMU
	select FW_LOADER
--
	  graphics card.  If M is selected, the module will be called tdfx.

config DRM_R128
	tristate "ATI Rage 128"
	depends on DRM && PCI
	select FW_LOADER
--
	  for this driver to work.

config DRM_MGA
	tristate "Matrox g200/g400"
	depends on DRM && PCI
	select FW_LOADER
--8<---------------cut here---------------end--------------->8---

the radeon, amdgpu, r128 and mga DRM drivers are probably relying on
firmware loading. So we should maybe extend this patch and add the
latter two drivers, even though they are supporting really old
hardware.

Thanks,

Mathieu