drm/radeon: Do not hold console lock during resume
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 15 Jul 2025 09:50:54 +0000 (11:50 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Jul 2025 20:48:34 +0000 (16:48 -0400)
commit4c1a0fc2aeb8486956f37cad4433e4d18b45821d
tree7e7bb98dcd2668778e6f3f3d42efabbe3160ead9
parent5dd0b96118e09a3725e3f83543e133b1fd02c18c
drm/radeon: Do not hold console lock during resume

The function radeon_resume_kms() acquires the console lock. It is
inconsistent, as it depends on the notify_client argument. That
lock then covers a number of suspend operations that are unrelated
to the console.

Remove the calls to console_lock() and console_unlock() from the
radeon function. The console lock is only required by DRM's fbdev
emulation, which acquires it as necessary.

Also fixes a possible circular dependency between the console lock
and the client-list mutex, where the mutex is supposed to be taken
first.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit fff8e0504499a929f26e2fb7cf7e2c9854e37b91)
drivers/gpu/drm/radeon/radeon_device.c