Skip to contentSkip to conversation

drm/radeon: fix typo in evergreen_mc_resume()

PATCH Applied [email protected] 5 participants 7 messages Nov 5, 2012 – Nov 11, 2012

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

PATCH 1/1 drm/radeon: fix typo in evergreen_mc_resume()

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

---
 drivers/gpu/drm/radeon/evergreen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +1 -1
index 14313ad..af31f82 100644
@@ -1372,7 +1372,7 @@ void evergreen_mc_resume(struct radeon_device *rdev, struct evergreen_mc_save *s
 	WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN);
 
 	for (i = 0; i < rdev->num_crtc; i++) {
-		if (save->crtc_enabled) {
+		if (save->crtc_enabled[i]) {
 			if (ASIC_IS_DCE6(rdev)) {
 				tmp = RREG32(EVERGREEN_CRTC_BLANK_CONTROL + crtc_offsets[i]);
 				tmp |= EVERGREEN_CRTC_BLANK_DATA_EN;
Signature · 1 line
1.7.7.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Mon, 2012-11-05 at 11:34 -0500, [email protected] wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Signature · 2 lines
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer
#2 lore raw
In reply to [email protected]
Quoted 10 lines · On Mon, Nov 5, 2012 at 11:34 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Looks like the stable cc got dropped when this patch got pulled. The original patch was backported to older kernels.

Alex

Quoted 20 lines
---
 drivers/gpu/drm/radeon/evergreen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/evergreen.c +1 -2
index 14313ad..af31f82 100644
@@ -1372,7 +1372,7 @@ void evergreen_mc_resume(struct radeon_device *rdev, struct evergreen_mc_save *s
        WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN);
 
        for (i = 0; i < rdev->num_crtc; i++) {
-               if (save->crtc_enabled) {
+               if (save->crtc_enabled[i]) {
                        if (ASIC_IS_DCE6(rdev)) {
                                tmp = RREG32(EVERGREEN_CRTC_BLANK_CONTROL + crtc_offsets[i]);
                                tmp |= EVERGREEN_CRTC_BLANK_DATA_EN;
--

1.7.7.5

#3 lore raw
Quoted 6 lines · Alex Deucher
Quoted 5 lines · On Mon, Nov 5, 2012 at 11:34 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

Quoted 8 lines
Quoted 5 lines

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Looks like the stable cc got dropped when this patch got pulled. The original patch was backported to older kernels.

It was? What do you mean by this? What is the git commit id of this in Linus's tree?

confused,

greg k-h

#4 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · Alex Deucher
Quoted 8 lines · On Mon, Nov 5, 2012 at 11:34 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Looks like the stable cc got dropped when this patch got pulled. The original patch was backported to older kernels.

It was? What do you mean by this? What is the git commit id of this in Linus's tree?

Ben Hutchings ported the original patch to older kernels. I can't find the email thread at the moment, but here's the patch for 3.2:
https://lkml.org/lkml/2012/10/14/192
http://lwn.net/Articles/520411/

Alex

Quoted 4 lines

confused,

greg k-h

maintainer
#5 lore raw
Quoted 17 lines · Alex Deucher
Quoted 16 lines · Greg KH
Quoted 14 lines · Alex Deucher
Quoted 10 lines · On Mon, Nov 5, 2012 at 11:34 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Looks like the stable cc got dropped when this patch got pulled. The original patch was backported to older kernels.

Quoted 7 lines
Quoted 2 lines

It was? What do you mean by this? What is the git commit id of this in Linus's tree?

Ben Hutchings ported the original patch to older kernels. I can't find the email thread at the moment, but here's the patch for 3.2:
https://lkml.org/lkml/2012/10/14/192
http://lwn.net/Articles/520411/

Oh I couldn't find it so I didn't bother with the cc.

Sorry,

Dave.

#6 lore raw
In reply to Alex Deucher
Quoted 6 lines · Alex Deucher
Quoted 5 lines · On Mon, Nov 5, 2012 at 11:34 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Add missing index that may have led us to enabling more crtcs than necessary.

Quoted 8 lines
Quoted 5 lines

May also fix:
https://bugs.freedesktop.org/show_bug.cgi?id=56139

Looks like the stable cc got dropped when this patch got pulled. The original patch was backported to older kernels.

[...]

Queued up for 3.2, thanks.

Ben.

Signature · 2 lines
Ben Hutchings
Design a system any fool can use, and only a fool will want to use it.

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