drm/powerplay/hwmgr: log errors in tonga_hwmgr_backend_init
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Dec 2015 17:39:01 +0000 (12:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:55 +0000 (16:42 -0500)
Helpful in debugging init issues.

Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c

index 49f8af515d733d54e8ac679430901af670680afc..3cb5d041b3cf3c060a95c5ba89c353f11bceb028 100644 (file)
@@ -4557,6 +4557,8 @@ int tonga_hwmgr_backend_init(struct pp_hwmgr *hwmgr)
 
        /* Initalize Dynamic State Adjustment Rule Settings*/
        result = tonga_initializa_dynamic_state_adjustment_rule_settings(hwmgr);
+       if (result)
+               printk(KERN_ERR "[ powerplay ] tonga_initializa_dynamic_state_adjustment_rule_settings failed!\n");
        data->uvd_enabled = 0;
 
        table = &(data->smc_state_table);