]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amdgpu: apply state adjust rules to some additional HAINAN vairants
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 25 Sep 2023 14:44:07 +0000 (10:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:50 +0000 (11:08 +0100)
commit 9787f7da186ee8143b7b6d914cfa0b6e7fee2648 upstream.

They need a similar workaround.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1839
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 0de31d92a173d3d94f28051b0b80a6c98913aed4)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c

index f5232df1aa8c7890ce18346c4ae7cde0d7b8f7ee..26defd72a36cf6a30db2e9dca8ac060ad359a438 100644 (file)
@@ -3440,9 +3440,11 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev,
        if (adev->asic_type == CHIP_HAINAN) {
                if ((adev->pdev->revision == 0x81) ||
                    (adev->pdev->revision == 0xC3) ||
+                   (adev->pdev->device == 0x6660) ||
                    (adev->pdev->device == 0x6664) ||
                    (adev->pdev->device == 0x6665) ||
-                   (adev->pdev->device == 0x6667)) {
+                   (adev->pdev->device == 0x6667) ||
+                   (adev->pdev->device == 0x666F)) {
                        max_sclk = 75000;
                }
                if ((adev->pdev->revision == 0xC3) ||