Skip to contentSkip to conversation

drm/radeon/si_dpm: Limit clocks on HD86xx part

PATCH In review Tom St Denis 3 participants 3 messages Oct 13, 2016 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon/si_dpm: Limit clocks on HD86xx part

Limit clocks on a specific HD86xx part to avoid
crashes (while awaiting an appropriate PP fix).

---
 drivers/gpu/drm/radeon/si_dpm.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/radeon/si_dpm.c +6 -0
index 89bdf20344ae..691f37b28b1a 100644
@@ -3021,6 +3021,12 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev,
 		max_sclk = 75000;
 		max_mclk = 80000;
 	}
+	/* limit clocks on HD8600 series */
+	if (rdev->pdev->device == 0x6660 &&
+	     rdev->pdev->revision == 0x83) {
+		max_sclk = 75000;
+		max_mclk = 80000;
+	}
 
 	if (rps->vce_active) {
 		rps->evclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].evclk;
Signature · 6 lines
2.10.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by Alex Deucher
#2 lore raw
In reply to a message not in the archive
Quoted 8 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Tom St Denis
Sent: Thursday, October 13, 2016 12:42 PM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/radeon/si_dpm: Limit clocks on HD86xx part

Quoted 4 lines

Limit clocks on a specific HD86xx part to avoid
crashes (while awaiting an appropriate PP fix).

Care to send a patch for amdgpu as well?

Alex

Quoted 23 lines
---
 drivers/gpu/drm/radeon/si_dpm.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/radeon/si_dpm.c +6 -0
index 89bdf20344ae..691f37b28b1a 100644
@@ -3021,6 +3021,12 @@ static void si_apply_state_adjust_rules(struct
 radeon_device *rdev,
 		max_sclk = 75000;
 		max_mclk = 80000;
 	}
+	/* limit clocks on HD8600 series */
+	if (rdev->pdev->device == 0x6660 &&
+	     rdev->pdev->revision == 0x83) {
+		max_sclk = 75000;
+		max_mclk = 80000;
+	}
 
 	if (rps->vce_active) {

rps->evclk = rdev->pm.dpm.vce_states[rdev-

Quoted 8 lines
Quoted 1 line

pm.dpm.vce_level].evclk;

--
2.10.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reviewed-by Alex Deucher
#4 lore raw
In reply to a message not in the archive

Hi Alex,

No problem I'll submit that tomorrow morning.

Cheers,

Tom

________________________________
From: Deucher, Alexander
Sent: Thursday, October 13, 2016 15:19
To: 'Tom St Denis'; [email protected]
Cc: StDenis, Tom
Subject: RE: [PATCH] drm/radeon/si_dpm: Limit clocks on HD86xx part

Quoted 8 lines

-----Original Message-----
From: amd-gfx [mailto:amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org] On Behalf Of Tom St Denis
Sent: Thursday, October 13, 2016 12:42 PM
To: [email protected]
Cc: StDenis, Tom
Subject: [PATCH] drm/radeon/si_dpm: Limit clocks on HD86xx part

Quoted 4 lines

Limit clocks on a specific HD86xx part to avoid
crashes (while awaiting an appropriate PP fix).

Care to send a patch for amdgpu as well?

Alex

Quoted 23 lines
---
 drivers/gpu/drm/radeon/si_dpm.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/radeon/si_dpm.c +6 -0
index 89bdf20344ae..691f37b28b1a 100644
@@ -3021,6 +3021,12 @@ static void si_apply_state_adjust_rules(struct
 radeon_device *rdev,
               max_sclk = 75000;
               max_mclk = 80000;
       }
+     /* limit clocks on HD8600 series */
+     if (rdev->pdev->device == 0x6660 &&
+          rdev->pdev->revision == 0x83) {
+             max_sclk = 75000;
+             max_mclk = 80000;
+     }
 
       if (rps->vce_active) {
               rps->evclk = rdev->pm.dpm.vce_states[rdev-
Quoted 8 lines
Quoted 1 line

pm.dpm.vce_level].evclk;

--
2.10.0

_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx