]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Enable system power caps for smu_v13_0_12
authorAsad Kamal <asad.kamal@amd.com>
Sun, 9 Nov 2025 06:12:43 +0000 (14:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:33 +0000 (13:56 -0500)
Enable system power caps to fetch system power and threshold 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 2fefd258bc0e0fe1e74125b7d19893008c97ea7c..a3ceecbe5d684b033b1701a0e223999523ef7f38 100644 (file)
@@ -356,8 +356,11 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
        if (fw_ver > 0x04560900)
                smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
 
-       if (fw_ver >= 0x04560D00)
+       if (fw_ver >= 0x04560D00) {
                smu_v13_0_6_cap_set(smu, SMU_CAP(FAST_PPT));
+               if (smu->adev->gmc.xgmi.physical_node_id == 0)
+                       smu_v13_0_6_cap_set(smu, SMU_CAP(SYSTEM_POWER_METRICS));
+       }
 
        if (fw_ver >= 0x04560700) {
                if (fw_ver >= 0x04560900) {