]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd: Pass userq suspend failures up to caller
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 2 Oct 2025 17:42:45 +0000 (12:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:34 +0000 (14:14 -0400)
If a userq failed to suspend the rest of the suspend sequence may
have problems.  Pass the error code up to the caller for a decision
on what to do.

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_device.c

index a734c05cc00e4971e7918bfb0ab691a99773f21e..c7c999ae2a28f637a5e73fb95c6c4a13354c2e30 100644 (file)
@@ -5224,7 +5224,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool notify_clients)
                return r;
 
        amdgpu_amdkfd_suspend(adev, !amdgpu_sriov_vf(adev) && !adev->in_runpm);
-       amdgpu_userq_suspend(adev);
+       r = amdgpu_userq_suspend(adev);
+       if (r)
+               return r;
 
        r = amdgpu_device_evict_resources(adev);
        if (r)