VCN/JPEG PG won't be a feature mask bit which exposed by vangogh smu
firmware. So remove it.

Signed-off-by: Huang Rui <ray.hu...@amd.com>
---
 .../gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c  | 32 +++++++------------
 1 file changed, 12 insertions(+), 20 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c 
b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
index d0417eb93d05..fc091091eaed 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
@@ -330,17 +330,13 @@ static int vangogh_dpm_set_vcn_enable(struct smu_context 
*smu, bool enable)
 
        if (enable) {
                /* vcn dpm on is a prerequisite for vcn power gate messages */
-               if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_VCN_PG_BIT)) {
-                       ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerUpVcn, 0, NULL);
-                       if (ret)
-                               return ret;
-               }
+               ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerUpVcn, 
0, NULL);
+               if (ret)
+                       return ret;
        } else {
-               if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_VCN_PG_BIT)) {
-                       ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerDownVcn, 0, NULL);
-                       if (ret)
-                               return ret;
-               }
+               ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerDownVcn, 0, NULL);
+               if (ret)
+                       return ret;
        }
 
        return ret;
@@ -351,17 +347,13 @@ static int vangogh_dpm_set_jpeg_enable(struct smu_context 
*smu, bool enable)
        int ret = 0;
 
        if (enable) {
-               if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_JPEG_PG_BIT)) {
-                       ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerUpJpeg, 0, NULL);
-                       if (ret)
-                               return ret;
-               }
+               ret = smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_PowerUpJpeg, 
0, NULL);
+               if (ret)
+                       return ret;
        } else {
-               if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_JPEG_PG_BIT)) {
-                       ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerDownJpeg, 0, NULL);
-                       if (ret)
-                               return ret;
-               }
+               ret = smu_cmn_send_smc_msg_with_param(smu, 
SMU_MSG_PowerDownJpeg, 0, NULL);
+               if (ret)
+                       return ret;
        }
 
        return ret;
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to