diff options
| -rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c index 8c264c195e1a..0f75af33e581 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_powertune.c | |||
| @@ -746,6 +746,7 @@ int smu7_enable_didt_config(struct pp_hwmgr *hwmgr) | |||
| 746 | PP_CAP(PHM_PlatformCaps_TCPRamping)) { | 746 | PP_CAP(PHM_PlatformCaps_TCPRamping)) { |
| 747 | 747 | ||
| 748 | cgs_enter_safe_mode(hwmgr->device, true); | 748 | cgs_enter_safe_mode(hwmgr->device, true); |
| 749 | cgs_lock_grbm_idx(hwmgr->device, true); | ||
| 749 | value = 0; | 750 | value = 0; |
| 750 | value2 = cgs_read_register(hwmgr->device, mmGRBM_GFX_INDEX); | 751 | value2 = cgs_read_register(hwmgr->device, mmGRBM_GFX_INDEX); |
| 751 | for (count = 0; count < num_se; count++) { | 752 | for (count = 0; count < num_se; count++) { |
| @@ -785,6 +786,7 @@ int smu7_enable_didt_config(struct pp_hwmgr *hwmgr) | |||
| 785 | PP_ASSERT_WITH_CODE((0 == result), | 786 | PP_ASSERT_WITH_CODE((0 == result), |
| 786 | "Failed to enable DPM DIDT.", return result); | 787 | "Failed to enable DPM DIDT.", return result); |
| 787 | } | 788 | } |
| 789 | cgs_lock_grbm_idx(hwmgr->device, false); | ||
| 788 | cgs_enter_safe_mode(hwmgr->device, false); | 790 | cgs_enter_safe_mode(hwmgr->device, false); |
| 789 | } | 791 | } |
| 790 | 792 | ||
