]> git.ipfire.org Git - thirdparty/linux.git/commit
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>
Tue, 15 Jul 2025 18:07:53 +0000 (14:07 -0400)
commitfff8e0504499a929f26e2fb7cf7e2c9854e37b91
tree065f9586bf306e001b8efa30e1c667f92718e99b
parent612ec7c69d04cb58beb1332c2806da9f2f47a3ae
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>
drivers/gpu/drm/radeon/radeon_device.c