Signed-off-by: Tom St Denis <[email protected]>
---
 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c 
b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
index 1b6aae5c90c1..ee98a4146de8 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
@@ -2312,13 +2312,11 @@ static int vega10_acg_disable(struct pp_hwmgr *hwmgr)
        struct vega10_hwmgr *data =
                        (struct vega10_hwmgr *)(hwmgr->backend);
 
-       if (data->smu_features[GNLD_ACG].supported) {
-               if (data->smu_features[GNLD_ACG].enabled) {
-               if (0 == vega10_enable_smc_features(hwmgr->smumgr, false,
-                               
data->smu_features[GNLD_ACG].smu_feature_bitmap))
+       if (data->smu_features[GNLD_ACG].supported && 
+           data->smu_features[GNLD_ACG].enabled)
+               if (!vega10_enable_smc_features(hwmgr->smumgr, false,
+                       data->smu_features[GNLD_ACG].smu_feature_bitmap))
                        data->smu_features[GNLD_ACG].enabled = false;
-               }
-       }
 
        return 0;
 }
-- 
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to