]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/pm: Enable temperature metrics caps
authorAsad Kamal <asad.kamal@amd.com>
Fri, 1 Aug 2025 20:32:29 +0000 (04:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Aug 2025 18:20:57 +0000 (14:20 -0400)
Enable temperature metrics caps for smu_v13_0_12

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index 5f9f74b9109d4f654431118b8218a85de2f8043c..90e66c8f2f8202455ba074aea84b5e03dd579d6d 100644 (file)
@@ -350,6 +350,11 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
                smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE));
                smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION));
        }
+
+       if (fw_ver >= 0x04560700) {
+               if (!amdgpu_sriov_vf(smu->adev))
+                       smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
+       }
 }
 
 static void smu_v13_0_6_init_caps(struct smu_context *smu)