Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aee3960a authored by Tom St Denis's avatar Tom St Denis Committed by Alex Deucher
Browse files

drm/amdgpu/si_dpm: Limit clocks on HD86xx part



Limit clocks on a specific HD86xx part to avoid
crashes (while awaiting an appropriate PP fix).

Signed-off-by: default avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 24e8df6a
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3499,6 +3499,12 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev,
		max_sclk = 75000;
		max_mclk = 80000;
	}
	/* Limit clocks for some HD8600 parts */
	if (adev->pdev->device == 0x6660 &&
	    adev->pdev->revision == 0x83) {
		max_sclk = 75000;
		max_mclk = 80000;
	}

	if (rps->vce_active) {
		rps->evclk = adev->pm.dpm.vce_states[adev->pm.dpm.vce_level].evclk;