]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/radeon: Do not hold console lock while suspending clients
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 15 Jul 2025 09:50:53 +0000 (11:50 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jul 2025 18:07:53 +0000 (14:07 -0400)
commit612ec7c69d04cb58beb1332c2806da9f2f47a3ae
treefb53c7e7cc4ae946f2f2dcbe1f34ad73a3fbac44
parent48ee3d8e5e0eff999e3031524e0b29e1e0f18d51
drm/radeon: Do not hold console lock while suspending clients

The radeon driver holds the console lock while suspending in-kernel
DRM clients. This creates a circular dependency with the client-list
mutex, which is supposed to be acquired first. Reported when combining
radeon with another DRM driver.

Therefore, do not take the console lock in radeon, but let the fbdev
DRM client acquire the lock when needed. This is what all other DRM
drivers so.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Closes: https://lore.kernel.org/dri-devel/0a087cfd-bd4c-48f1-aa2f-4a3b12593935@oss.qualcomm.com/
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_device.c