]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd: Fix error handling with multiple userq IDRs
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 2 Oct 2025 17:42:44 +0000 (12:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:34 +0000 (14:14 -0400)
commit7877934019d729d1e97ca0160f470e4821bfe553
treee6a2e1b0f3f82f83eb318376bf8e6f74b2368883
parent173360fe49c2cd5ec581056985a7a3d4fbd9f1ab
drm/amd: Fix error handling with multiple userq IDRs

If multiple userq IDR are in use and there is an error handling one
at suspend or resume it will be silently discarded.
Switch the suspend/resume() code to use guards and return immediately.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c