From: Hawking Zhang Date: Wed, 24 May 2017 10:54:42 +0000 (+0800) Subject: drm/amd/powerplay: bypass pptable process on raven X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e23f192dccf4e70634f529a21b2bd72f5586925;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amd/powerplay: bypass pptable process on raven Signed-off-by: Hawking Zhang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c index 7138cf9e96d4..2716721e5453 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c @@ -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;