drm/amd/powerplay: bypass pptable process on raven
authorHawking Zhang <Hawking.Zhang@amd.com>
Wed, 24 May 2017 10:54:42 +0000 (18:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 May 2017 20:12:42 +0000 (16:12 -0400)
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c

index 7138cf9e96d41efb6ba6315955edbd7a92c676a0..2716721e545350dd6a33af9aad86e7b65d8c13f1 100644 (file)
@@ -1563,6 +1563,9 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr)
        int result;
        const ATOM_PPLIB_POWERPLAYTABLE *powerplay_table;
 
+       if (hwmgr->chip_id == CHIP_RAVEN)
+               return 0;
+
        hwmgr->need_pp_table_upload = true;
 
        powerplay_table = get_powerplay_table(hwmgr);
@@ -1609,6 +1612,9 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr)
 
 static int pp_tables_uninitialize(struct pp_hwmgr *hwmgr)
 {
+       if (hwmgr->chip_id == CHIP_RAVEN)
+               return 0;
+
        if (NULL != hwmgr->dyn_state.vddc_dependency_on_sclk) {
                kfree(hwmgr->dyn_state.vddc_dependency_on_sclk);
                hwmgr->dyn_state.vddc_dependency_on_sclk = NULL;