summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/rv770_dpm.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-03-28 10:44:28 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-06-27 19:40:05 -0400
commitfa4b5471bd6231d293a2de9ad016e39eb2c9c70e (patch)
treedf0e718c364b50457e1b72e2930f3be5b8e39c19 /drivers/gpu/drm/radeon/rv770_dpm.c
parenta9e61410921bcc1aa8f594ffa6301d5baba90f3b (diff)
drm/radeon/dpm: add dpm_enable failure output (7xx-ni)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/rv770_dpm.c')
-rw-r--r--drivers/gpu/drm/radeon/rv770_dpm.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c
index 0c9a495aba8..cdf823d9fae 100644
--- a/drivers/gpu/drm/radeon/rv770_dpm.c
+++ b/drivers/gpu/drm/radeon/rv770_dpm.c
@@ -1886,8 +1886,10 @@ int rv770_dpm_enable(struct radeon_device *rdev)
if (pi->voltage_control) {
rv770_enable_voltage_control(rdev, true);
ret = rv770_construct_vddc_table(rdev);
- if (ret)
+ if (ret) {
+ DRM_ERROR("rv770_construct_vddc_table failed\n");
return ret;
+ }
}
if (pi->dcodt)
@@ -1895,8 +1897,10 @@ int rv770_dpm_enable(struct radeon_device *rdev)
if (pi->mvdd_control) {
ret = rv770_get_mvdd_configuration(rdev);
- if (ret)
+ if (ret) {
+ DRM_ERROR("rv770_get_mvdd_configuration failed\n");
return ret;
+ }
}
if (rdev->pm.dpm.platform_caps & ATOM_PP_PLATFORM_CAP_BACKBIAS)
@@ -1921,12 +1925,15 @@ int rv770_dpm_enable(struct radeon_device *rdev)
rv770_enable_dynamic_pcie_gen2(rdev, true);
ret = rv770_upload_firmware(rdev);
- if (ret)
+ if (ret) {
+ DRM_ERROR("rv770_upload_firmware failed\n");
return ret;
-
+ }
ret = rv770_init_smc_table(rdev, boot_ps);
- if (ret)
+ if (ret) {
+ DRM_ERROR("rv770_init_smc_table failed\n");
return ret;
+ }
rv770_program_response_times(rdev);
r7xx_start_smc(rdev);