Skip to content
/ linux Public

Commit 5b9af03

Browse files
decce6Sasha Levin
authored andcommitted
drm/amdgpu: Add HAINAN clock adjustment
[ Upstream commit 49fe2c5 ] 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: decce6 <decce6@proton.me> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent c26bde6 commit 5b9af03

File tree

1 file changed

+5
-0
lines changed
  • drivers/gpu/drm/amd/pm/legacy-dpm

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3449,6 +3449,11 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev,
34493449
max_sclk = 60000;
34503450
max_mclk = 80000;
34513451
}
3452+
if ((adev->pdev->device == 0x666f) &&
3453+
(adev->pdev->revision == 0x00)) {
3454+
max_sclk = 80000;
3455+
max_mclk = 95000;
3456+
}
34523457
} else if (adev->asic_type == CHIP_OLAND) {
34533458
if ((adev->pdev->revision == 0xC7) ||
34543459
(adev->pdev->revision == 0x80) ||

0 commit comments

Comments
 (0)