Skip to content
/ linux Public

Commit 6a997eb

Browse files
decce6Sasha Levin
authored andcommitted
drm/radeon: Add HAINAN clock adjustment
[ Upstream commit 908d318 ] 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 radeon. 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 5b9af03 commit 6a997eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/radeon/si_dpm.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
29692969
max_sclk = 60000;
29702970
max_mclk = 80000;
29712971
}
2972+
if ((rdev->pdev->device == 0x666f) &&
2973+
(rdev->pdev->revision == 0x00)) {
2974+
max_sclk = 80000;
2975+
max_mclk = 95000;
2976+
}
29722977
} else if (rdev->family == CHIP_OLAND) {
29732978
if ((rdev->pdev->revision == 0xC7) ||
29742979
(rdev->pdev->revision == 0x80) ||

0 commit comments

Comments
 (0)