public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: Add HAINAN clock adjustment
@ 2026-02-10  7:24 decce6
  2026-02-11  6:34 ` Claude review: " Claude Code Review Bot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: decce6 @ 2026-02-10  7:24 UTC (permalink / raw)
  To: amd-gfx
  Cc: decce6, Kenneth Feng, Alex Deucher, Christian König,
	David Airlie, Simona Vetter, Timur Kristóf, Lijo Lazar,
	Alexandre Demers, chr[], Sunil Khatri, dri-devel, linux-kernel

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>
---
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c b/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
index 1f539cc65f41..b5d895537477 100644
--- a/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
+++ b/drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c
@@ -3468,6 +3468,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) ||
-- 
2.43.0




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-11 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-10  7:24 [PATCH] drm/amdgpu: Add HAINAN clock adjustment decce6
2026-02-11  6:34 ` Claude review: " Claude Code Review Bot
2026-02-11  6:34 ` Claude Code Review Bot
2026-02-11 14:17 ` [PATCH] " Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox