diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2017-05-24 18:54:42 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-05-25 16:12:42 -0400 |
commit | 9e23f192dccf4e70634f529a21b2bd72f5586925 (patch) | |
tree | cd8d310c35c1c09d31aa5918182d1df21ef7cc1a /drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c | |
parent | efb792c4b2ca0c58c397ed969965d606a73f56bc (diff) | |
download | op-kernel-dev-9e23f192dccf4e70634f529a21b2bd72f5586925.zip op-kernel-dev-9e23f192dccf4e70634f529a21b2bd72f5586925.tar.gz |
drm/amd/powerplay: bypass pptable process on raven
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>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c index 7138cf9..2716721 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; |