drm/radeon: fix regression in dynpm due to multi-ring rework
Subsystems (2)
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
@@ -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
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=43367Signed-off-by Alex Deucher <[email protected]>
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@@ -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
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=43367Signed-off-by Alex Deucher<[email protected]>
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@@ -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 */
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=43367Signed-off-by Alex Deucher<[email protected]>
^
Quoted 1 line
Reviewed-by Christian König<[email protected]>
^
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
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.
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Signed-off-by Alex Deucher<[email protected]>^Quoted 1 line
Reviewed-by Christian König<[email protected]>^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