]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Enable host limit metrics support
authorAsad Kamal <asad.kamal@amd.com>
Sat, 12 Apr 2025 03:14:32 +0000 (11:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:55:43 +0000 (10:55 -0400)
Enable host limit metrics support for smuv_13_0_12

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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 3f61c94ea2f84f2d9050f9a4d1518f8a8e316829..6d84257b530147abe3243ac05885c57e623041e0 100644 (file)
@@ -337,6 +337,8 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
        if (fw_ver >= 0x00561E00)
                smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS));
 
+       if (fw_ver >= 0x00562500)
+               smu_v13_0_6_cap_set(smu, SMU_CAP(HST_LIMIT_METRICS));
 }
 
 static void smu_v13_0_6_init_caps(struct smu_context *smu)