]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: use the SMU multi-msgs helper in smu_v15_0_8
authorYang Wang <kevinyang.wang@amd.com>
Mon, 27 Apr 2026 07:09:38 +0000 (15:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 11 May 2026 20:08:50 +0000 (16:08 -0400)
Convert the SMU15.0.8 enabled-feature query to
smu_cmn_send_smc_msg_with_params() so it uses the common SMU
multi-msgs helper.

No functional change intended.

Signed-off-by: Yang Wang <kevinyang.wang@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu15/smu_v15_0_8_ppt.c

index 977590377021e2a491b9194dbf7064aadd09e540..2105a1d7bb34ba74756ed7e46c7ef34c56097ef2 100644 (file)
@@ -1313,23 +1313,21 @@ static int smu_v15_0_8_system_features_control(struct smu_context *smu,
 static int smu_v15_0_8_get_enabled_mask(struct smu_context *smu,
                                        struct smu_feature_bits *feature_mask)
 {
-       struct smu_msg_args args = {
-               .msg = SMU_MSG_GetEnabledSmuFeatures,
-               .num_args = 0,
-               .num_out_args = 2,
-       };
+       uint32_t out[2];
        int ret;
 
        if (!feature_mask)
                return -EINVAL;
 
-       ret = smu->msg_ctl.ops->send_msg(&smu->msg_ctl, &args);
+       ret = smu_cmn_send_smc_msg_with_params(smu,
+                                              SMU_MSG_GetEnabledSmuFeatures,
+                                              NULL, 0,
+                                              out, ARRAY_SIZE(out));
 
        if (ret)
                return ret;
 
-       smu_feature_bits_from_arr32(feature_mask, args.out_args,
-                                   SMU_FEATURE_NUM_DEFAULT);
+       smu_feature_bits_from_arr32(feature_mask, out, SMU_FEATURE_NUM_DEFAULT);
 
        return 0;
 }