]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: Add HAINAN clock adjustment
authordecce6 <decce6@proton.me>
Tue, 10 Feb 2026 07:26:00 +0000 (07:26 +0000)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:48 +0000 (07:20 -0500)
[ Upstream commit 908d318f23d6b5d625bea093c5fc056238cdb7ff ]

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>
drivers/gpu/drm/radeon/si_dpm.c

index 9deb91970d4df23f7de74d9b75b777275f4a4fff..f12227145ef08b12ea496751df3ea965b698de35 100644 (file)
@@ -2925,6 +2925,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
                        max_sclk = 60000;
                        max_mclk = 80000;
                }
+               if ((rdev->pdev->device == 0x666f) &&
+                   (rdev->pdev->revision == 0x00)) {
+                       max_sclk = 80000;
+                       max_mclk = 95000;
+               }
        } else if (rdev->family == CHIP_OLAND) {
                if ((rdev->pdev->revision == 0xC7) ||
                    (rdev->pdev->revision == 0x80) ||