]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: smu13: Enable VCN_RESET for pgm 7 with appropriate firmware version
authorJesse.Zhang <Jesse.Zhang@amd.com>
Tue, 21 Oct 2025 02:01:46 +0000 (10:01 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:54:36 +0000 (09:54 -0400)
This patch extends the VCN_RESET capability check to include pgm 7 when the firmware version is 0x07551400 or newer.

Signed-off-by: Jesse Zhang <Jesse.Zhang@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 cc7a0e061ba1bdc669d2ebaad5899b62ed6bf4ed..0a7d2cea7dc6cd180fc394ca81a4dfbc8b81545f 100644 (file)
@@ -450,7 +450,8 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
            ((pgm == 4) && (fw_ver >= 0x4557000)))
                smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));
 
-       if ((pgm == 0) && (fw_ver >= 0x00558200))
+       if ((pgm == 0 && fw_ver >= 0x00558200) ||
+           (pgm == 7 && fw_ver >= 0x07551400))
                smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
 }