Commit 9787f7da authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: apply state adjust rules to some additional HAINAN vairants

They need a similar workaround.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1839


Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 0de31d92)
Cc: stable@vger.kernel.org
parent e9f58ff9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3454,9 +3454,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) ||