Skip to contentSkip to conversation

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

PATCH In review Alex Deucher 2 participants 3 messages Mar 6 – Mar 16

Subsystems (3)
lore
Share & tools
lore

Alex Deucher

author maintainer
#0 lore raw

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

They need a similar workaround.

---
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +3 -1
index 07d2ee67dcbc3..c2b1383c7db71 100644
@@ -3455,9 +3455,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) ||
Signature · 1 line
2.53.0
author maintainer
#1 lore raw

PATCH 2/2 drm/radeon: apply state adjust rules to some additional HAINAN vairants

They need a similar workaround.

---
 drivers/gpu/drm/radeon/si_dpm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/radeon/si_dpm.c +3 -1
index f12227145ef08..0342d095d44ce 100644
@@ -2915,9 +2915,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
 	if (rdev->family == CHIP_HAINAN) {
 		if ((rdev->pdev->revision == 0x81) ||
 		    (rdev->pdev->revision == 0xC3) ||
+		    (rdev->pdev->device == 0x6660) ||
 		    (rdev->pdev->device == 0x6664) ||
 		    (rdev->pdev->device == 0x6665) ||
-		    (rdev->pdev->device == 0x6667)) {
+		    (rdev->pdev->device == 0x6667) ||
+		    (rdev->pdev->device == 0x666F)) {
 			max_sclk = 75000;
 		}
 		if ((rdev->pdev->revision == 0xC3) ||
Signature · 1 line
2.53.0
#2 lore raw
In reply to Alex Deucher

Ping on this series.

Alex

Quoted 29 lines · Alex Deucher

They need a similar workaround.

---
 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c +3 -2
index 07d2ee67dcbc3..c2b1383c7db71 100644
@@ -3455,9 +3455,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) ||
--

2.53.0