add dpm_set_power_state failure output (7xx-ni)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 23:04:16 +0000 (19:04 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2013 23:40:08 +0000 (19:40 -0400)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/btc_dpm.c
drivers/gpu/drm/radeon/cypress_dpm.c
drivers/gpu/drm/radeon/ni_dpm.c
drivers/gpu/drm/radeon/rv770_dpm.c

index 0cbf75e078498fa32cf268e7a056241dbdeaa2b4..bab01858341746e40b228e8eca385c0353e60ee1 100644 (file)
@@ -2329,8 +2329,10 @@ int btc_dpm_set_power_state(struct radeon_device *rdev)
 #if 0
        /* XXX */
        ret = rv770_unrestrict_performance_levels_after_switch(rdev);
-       if (ret)
+       if (ret) {
+               DRM_ERROR("rv770_unrestrict_performance_levels_after_switch failed\n");
                return ret;
+       }
 #endif
 
        return 0;
index 0097ff725e67a6cb92c8118ad7612ff9c3dd6fd7..5ada922e5cec8b566c430fc12690b4fc0dca3d13 100644 (file)
@@ -2015,8 +2015,10 @@ int cypress_dpm_set_power_state(struct radeon_device *rdev)
                cypress_notify_link_speed_change_after_state_change(rdev, new_ps, old_ps);
 
        ret = rv770_unrestrict_performance_levels_after_switch(rdev);
-       if (ret)
+       if (ret) {
+               DRM_ERROR("rv770_unrestrict_performance_levels_after_switch failed\n");
                return ret;
+       }
 
        return 0;
 }
index a1f128613cf4355c67dd311e846d19ce840bc4e1..ebde8d01c76dd5151c2651badafff3a933d1ead1 100644 (file)
@@ -3795,8 +3795,10 @@ int ni_dpm_set_power_state(struct radeon_device *rdev)
 #if 0
        /* XXX */
        ret = ni_unrestrict_performance_levels_after_switch(rdev);
-       if (ret)
+       if (ret) {
+               DRM_ERROR("ni_unrestrict_performance_levels_after_switch failed\n");
                return ret;
+       }
 #endif
 
        return 0;
index d7954e4fb44017a0f874ba8a8eb72264e811e102..e2d2619852efe79cd28fcd7e6d99a202e5f27c1d 100644 (file)
@@ -2047,8 +2047,10 @@ int rv770_dpm_set_power_state(struct radeon_device *rdev)
                rv770_program_dcodt_after_state_switch(rdev, new_ps, old_ps);
        rv770_set_uvd_clock_after_set_eng_clock(rdev, new_ps, old_ps);
        ret = rv770_unrestrict_performance_levels_after_switch(rdev);
-       if (ret)
+       if (ret) {
+               DRM_ERROR("rv770_unrestrict_performance_levels_after_switch failed\n");
                return ret;
+       }
 
        return 0;
 }