Skip to contentSkip to conversation

drm/amdgpu: drop drm_firmware_drivers_only()

PATCH In review Alex Deucher 2 participants 2 messages Mar 13, 2025

Subsystems (2)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

PATCH 1/1 drm/amdgpu: drop drm_firmware_drivers_only()

There are a number of systems and cloud providers out there that have nomodeset hardcoded in their kernel parameters to block nouveau for the nvidia driver. This prevents the amdgpu driver from loading. Unfortunately the end user cannot easily change this. The preferred way to block modules from loading is to use modprobe.blacklist=<driver>. That is what providers should be using to block specific drivers.

Drop the check to allow the driver to load even when nomodeset is specified on the kernel command line.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -3
index 3b34fdd105937..dd86661153582 100644
@@ -3022,9 +3022,6 @@ static int __init amdgpu_init(void)
 {
 	int r;
 
-	if (drm_firmware_drivers_only())
-		return -EINVAL;
-
 	r = amdgpu_sync_init();
 	if (r)
 		goto error_sync;
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 41 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, March 13, 2025 5:05 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu: drop drm_firmware_drivers_only()

There are a number of systems and cloud providers out there that have nomodeset hardcoded in their kernel parameters to block nouveau for the nvidia driver. This prevents the amdgpu driver from loading. Unfortunately the end user cannot easily change this. The preferred way to block modules from loading is to use modprobe.blacklist=<driver>. That is what providers should be using to block specific drivers.

Drop the check to allow the driver to load even when nomodeset is specified on the kernel command line.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +0 -4
index 3b34fdd105937..dd86661153582 100644
@@ -3022,9 +3022,6 @@ static int __init amdgpu_init(void)
 {
      int r;
 
-     if (drm_firmware_drivers_only())
-             return -EINVAL;
-
      r = amdgpu_sync_init();
      if (r)
              goto error_sync;
--

2.48.1