Commit 49fe2c57 authored by decce6's avatar decce6 Committed by Alex Deucher
Browse files

drm/amdgpu: Add HAINAN clock adjustment



This patch limits the clock speeds of the AMD Radeon R5 M420 GPU from
850/1000MHz (core/memory) to 800/950 MHz, making it work stably. This
patch is for amdgpu.

Signed-off-by: default avatardecce6 <decce6@proton.me>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 908d318f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -3464,6 +3464,11 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev,
			max_sclk = 60000;
			max_mclk = 80000;
		}
		if ((adev->pdev->device == 0x666f) &&
		    (adev->pdev->revision == 0x00)) {
			max_sclk = 80000;
			max_mclk = 95000;
		}
	} else if (adev->asic_type == CHIP_OLAND) {
		if ((adev->pdev->revision == 0xC7) ||
		    (adev->pdev->revision == 0x80) ||