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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2015 17:48:15 +0000 (12:48 -0500)
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/rv770_dpm.c

index b9c770745a7a1f717cb9c894a6882c090fd8153c..d24c58c1e1c0ed35a693db4d92fec3600fe0186f 100644 (file)
@@ -1418,7 +1418,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;
 }