Skip to contentSkip to conversation

drm/radeon: fix regression in dynpm due to multi-ring rework

PATCH In review [email protected] 4 participants 5 messages Jun 14, 2012

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

PATCH 1/1 drm/radeon: fix regression in dynpm due to multi-ring rework

From: Alex Deucher <[email protected]>

Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=43367

---
 drivers/gpu/drm/radeon/radeon_pm.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_pm.c +7 -3
index 79642cd..7ae6066 100644
@@ -793,9 +793,13 @@ static void radeon_dynpm_idle_work_handler(struct work_struct *work)
 		int i;
 
 		for (i = 0; i < RADEON_NUM_RINGS; ++i) {
-			not_processed += radeon_fence_count_emitted(rdev, i);
-			if (not_processed >= 3)
-				break;
+			struct radeon_ring *ring = &rdev->ring[i];
+
+			if (ring->ready) {
+				not_processed += radeon_fence_count_emitted(rdev, i);
+				if (not_processed >= 3)
+					break;
+			}
 		}
 
 		if (not_processed >= 3) { /* should upclock */
Signature · 1 line
1.7.7.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Thu, Jun 14, 2012 at 3:54 PM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=43367

Quoted 32 lines

---
 drivers/gpu/drm/radeon/radeon_pm.c |   10 +++++++---

 1 files changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_pm.c +7 -3
index 79642cd..7ae6066 100644
@@ -793,9 +793,13 @@ static void radeon_dynpm_idle_work_handler(struct work_struct *work)
                int i;
 
                for (i = 0; i < RADEON_NUM_RINGS; ++i) {
-                       not_processed += radeon_fence_count_emitted(rdev, i);
-                       if (not_processed >= 3)
-                               break;
+                       struct radeon_ring *ring = &rdev->ring[i];
+
+                       if (ring->ready) {
+                               not_processed += radeon_fence_count_emitted(rdev, i);
+                               if (not_processed >= 3)
+                                       break;
+                       }
                }
 

               if (not_processed >= 3) { /* should upclock */ --
1.7.7.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 9 lines · On 14.06.2012 21:54, [email protected] wrote:

From: Alex Deucher<[email protected]>

Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=43367

Quoted 25 lines
---
  drivers/gpu/drm/radeon/radeon_pm.c |   10 +++++++---
  1 files changed, 7 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/radeon_pm.c +7 -3
index 79642cd..7ae6066 100644
@@ -793,9 +793,13 @@ static void radeon_dynpm_idle_work_handler(struct work_struct *work)
  		int i;
 
  		for (i = 0; i<  RADEON_NUM_RINGS; ++i) {
-			not_processed += radeon_fence_count_emitted(rdev, i);
-			if (not_processed>= 3)
-				break;
+			struct radeon_ring *ring =&rdev->ring[i];
+
+			if (ring->ready) {
+				not_processed += radeon_fence_count_emitted(rdev, i);
+				if (not_processed>= 3)
+					break;
+			}
  		}
 
  		if (not_processed>= 3) { /* should upclock */
#3 lore raw

Stripping of spaces in messages (was: [PATCH] drm/radeon: fix regression in dynpm due to multi-ring rework)

Dear Christian,

Am Donnerstag, den 14.06.2012, 22:17 +0200 schrieb Christian König:

Quoted 2 lines · On 14.06.2012 21:54, [email protected] wrote:
Quoted 1 line

From: Alex Deucher<[email protected]>

                      ^
Quoted 7 lines
Quoted 7 lines

Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=43367

                              ^
Quoted 1 line
                             ^

do you have any idea why your mailer strips the spaces in front of the »<«?

[…]

Thanks,

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Re: Stripping of spaces in messages

Quoted 14 lines · Paul Menzel

Dear Christian,

Am Donnerstag, den 14.06.2012, 22:17 +0200 schrieb Christian König:

Quoted 2 lines · On 14.06.2012 21:54, [email protected] wrote:
Quoted 1 line

From: Alex Deucher<[email protected]>

                       ^
Quoted 6 lines
Quoted 6 lines

Not all asics have all rings, so make sure the ring is ready before attempting to check it in the dynpm work handler.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=43367

Quoted 7 lines
Quoted 1 line
Quoted 1 line
                               ^
Quoted 1 line
                              ^

do you have any idea why your mailer strips the spaces in front of the »<«?

Noticed that effect for a couple of days now, but I have no idea what is causing this.

I'm using plain Thunderbird 12.0.1.

Regards,
Christian.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel