Commit 6728daa2 authored by Jesse.Zhang's avatar Jesse.Zhang Committed by Alex Deucher
Browse files

drm/amd/pm: Enable VCN reset for pgm=4 with appropriate FW version



Extend the VCN reset capability to include pgm=4 variants when the
firmware version meets the required threshold (>= 0x04557100). This
follows the existing pattern for pgm=0 and pgm=7, ensuring that VCN
reset is enabled only on configurations where it is supported by the
firmware.

Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarJesse Zhang <jesse.zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5c82adf9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -461,6 +461,7 @@ static void smu_v13_0_6_init_caps(struct smu_context *smu)
		smu_v13_0_6_cap_set(smu, SMU_CAP(SDMA_RESET));

	if ((pgm == 0 && fw_ver >= 0x00558200) ||
	    (pgm == 4 && fw_ver >= 0x04557100) ||
	    (pgm == 7 && fw_ver >= 0x07551400))
		smu_v13_0_6_cap_set(smu, SMU_CAP(VCN_RESET));
}