]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: make rv770_set_sw_state failures non-fatal
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Nov 2015 21:43:29 +0000 (16:43 -0500)
committerJiri Slaby <jslaby@suse.cz>
Thu, 3 Mar 2016 11:45:55 +0000 (12:45 +0100)
commit 4e7697ed79d0c0d5f869c87a6b3ce3d5cd1a07d6 upstream.

On some cards it takes a relatively long time for the change
to take place.  Make a timeout non-fatal.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=76130

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/radeon/rv770_dpm.c

index 890cf171025382049b07d263d20124594ba17182..7eda43c4b3ec561e6161fb54267b71c9a1bd5254 100644 (file)
@@ -1415,7 +1415,7 @@ int rv770_resume_smc(struct radeon_device *rdev)
 int rv770_set_sw_state(struct radeon_device *rdev)
 {
        if (rv770_send_msg_to_smc(rdev, PPSMC_MSG_SwitchToSwState) != PPSMC_Result_OK)
-               return -EINVAL;
+               DRM_ERROR("rv770_set_sw_state failed\n");
        return 0;
 }