diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2017-06-08 03:45:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-06-09 11:30:33 -0400 |
commit | f06fed92dcf27d83ad546c9a510165d1bd54fc3f (patch) | |
tree | 98ec222bccd26a18817f4cb0c97d902bb530fd17 | |
parent | 0fa4955838ea1ecde268456676540dd2e84dce26 (diff) |
drm/amd/powerplay: fix copy error in powerplay.
v2: fix typos.
should disable led dpm feature when stop dpm.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c index 9338aca3522f..d9744b6b5b0e 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | |||
@@ -2702,9 +2702,9 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap) | |||
2702 | 2702 | ||
2703 | if(data->smu_features[GNLD_LED_DISPLAY].supported == true){ | 2703 | if(data->smu_features[GNLD_LED_DISPLAY].supported == true){ |
2704 | PP_ASSERT_WITH_CODE(!vega10_enable_smc_features(hwmgr->smumgr, | 2704 | PP_ASSERT_WITH_CODE(!vega10_enable_smc_features(hwmgr->smumgr, |
2705 | true, data->smu_features[GNLD_LED_DISPLAY].smu_feature_bitmap), | 2705 | false, data->smu_features[GNLD_LED_DISPLAY].smu_feature_bitmap), |
2706 | "Attempt to Enable LED DPM feature Failed!", return -EINVAL); | 2706 | "Attempt to disable LED DPM feature failed!", return -EINVAL); |
2707 | data->smu_features[GNLD_LED_DISPLAY].enabled = true; | 2707 | data->smu_features[GNLD_LED_DISPLAY].enabled = false; |
2708 | } | 2708 | } |
2709 | 2709 | ||
2710 | for (i = 0; i < GNLD_DPM_MAX; i++) { | 2710 | for (i = 0; i < GNLD_DPM_MAX; i++) { |