]> 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:08:01 +0000 (11:08 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 14:55:31 +0000 (10:55 -0400)
Enable host limit metrics support for smuv_13_0_6

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 34ffaa0cfeeb04110441ac99d47cb7cd50abf0a1..3f61c94ea2f84f2d9050f9a4d1518f8a8e316829 100644 (file)
@@ -386,6 +386,9 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
                        smu_v13_0_6_cap_clear(smu, SMU_CAP(RMA_MSG));
                if (fw_ver < 0x00555600)
                        smu_v13_0_6_cap_clear(smu, SMU_CAP(ACA_SYND));
+               if ((pgm == 7 && fw_ver >= 0x7550E00) ||
+                   (pgm == 0 && fw_ver >= 0x00557E00))
+                       smu_v13_0_6_cap_set(smu, SMU_CAP(HST_LIMIT_METRICS));
        }
        if (((pgm == 7) && (fw_ver >= 0x7550700)) ||
            ((pgm == 0) && (fw_ver >= 0x00557900)) ||