]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Add fine grained flag to SMU v13.0.6
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 27 Apr 2026 07:23:30 +0000 (12:53 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2026 18:47:13 +0000 (14:47 -0400)
Gfx clock is fine grained on SMU v13.0.6/12 SOCs. Add the flag to report
clock frequencies correctly.

Fixes: 7380228401c4 ("drm/amd/pm: Use generic dpm table for SMUv13 SOCs")
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Asad Kamal <asad.kamal@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 36716541e505ec1712fabcdba959435d956f9b31..3d91904fd4197801907d524433dcef3bf40a7481 100644 (file)
@@ -1133,6 +1133,7 @@ static int smu_v13_0_6_set_default_dpm_table(struct smu_context *smu)
        /* gfxclk dpm table setup */
        dpm_table = &dpm_context->dpm_tables.gfx_table;
        dpm_table->clk_type = SMU_GFXCLK;
+       dpm_table->flags = SMU_DPM_TABLE_FINE_GRAINED;
        if (smu_cmn_feature_is_enabled(smu, SMU_FEATURE_DPM_GFXCLK_BIT)) {
                /* In the case of gfxclk, only fine-grained dpm is honored.
                 * Get min/max values from FW.