Skip to contentSkip to conversation

drm/radeon: fix cursor corruption on aruba and newer

PATCH In review [email protected] 2 participants 5 messages Jan 21, 2013

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

PATCH 1/1 drm/radeon: fix cursor corruption on aruba and newer

From: Jerome Glisse <[email protected]>

Aruba and newer gpu does not need the avivo cursor work around, quite the opposite this work around lead to corruption.

---
 drivers/gpu/drm/radeon/radeon_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
index ad6df62..30f71cc 100644
@@ -241,7 +241,7 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
 		y = 0;
 	}
 
-	if (ASIC_IS_AVIVO(rdev)) {
+	if (ASIC_IS_AVIVO(rdev) && (rdev->family < CHIP_ARUBA)) {
 		int i = 0;
 		struct drm_crtc *crtc_p;
 
Signature · 1 line
1.7.11.7
#1 lore raw
Quoted 15 lines · On Mon, Jan 21, 2013 at 3:50 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

Aruba and newer gpu does not need the avivo cursor work around, quite the opposite this work around lead to corruption.

---
 drivers/gpu/drm/radeon/radeon_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cursor.c +0 -0
index ad6df62..30f71cc 100644

drivers/gpu/drm/radeon/radeon_cursor.c int radeon_crtc_cursor_move(struct drm_crtc *crtc, · line 244

Quoted 5 lines
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
@@ -241,7 +241,7 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
                y = 0;
        }
 
-       if (ASIC_IS_AVIVO(rdev)) {
+       if (ASIC_IS_AVIVO(rdev) && (rdev->family < CHIP_ARUBA)) {

I believe these issues were fixed on DCE6, but I'm verifying now. SI is dce6 as well so the check here should probably be:

if (ASIC_IS_AVIVO(rdev) && !ASIC_IS_DCE6(rdev)) {

Alex

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_cursor.c +0 -1
                int i = 0;
                struct drm_crtc *crtc_p;
 
--

1.7.11.7

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

#2 lore raw
Quoted 19 lines · Alex Deucher
Quoted 18 lines · On Mon, Jan 21, 2013 at 3:50 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

Aruba and newer gpu does not need the avivo cursor work around, quite the opposite this work around lead to corruption.

---
 drivers/gpu/drm/radeon/radeon_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cursor.c +0 -0
index ad6df62..30f71cc 100644
@@ -241,7 +241,7 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
                y = 0;
        }
 
Quoted 8 lines

drivers/gpu/drm/radeon/radeon_cursor.c int radeon_crtc_cursor_move(struct drm_crtc *crtc, · line 244

Quoted 2 lines
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
-       if (ASIC_IS_AVIVO(rdev)) {
+       if (ASIC_IS_AVIVO(rdev) && (rdev->family < CHIP_ARUBA)) {

I believe these issues were fixed on DCE6, but I'm verifying now. SI is dce6 as well so the check here should probably be:

if (ASIC_IS_AVIVO(rdev) && !ASIC_IS_DCE6(rdev)) {

Yeah i considered that too.

Cheers,
Jerome

#3 lore raw
In reply to Alex Deucher
Quoted 19 lines · Alex Deucher
Quoted 18 lines · On Mon, Jan 21, 2013 at 3:50 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

Aruba and newer gpu does not need the avivo cursor work around, quite the opposite this work around lead to corruption.

---
 drivers/gpu/drm/radeon/radeon_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cursor.c +0 -0
index ad6df62..30f71cc 100644
@@ -241,7 +241,7 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
                y = 0;
        }
 
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_cursor.c int radeon_crtc_cursor_move(struct drm_crtc *crtc, · line 244

Quoted 2 lines
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
-       if (ASIC_IS_AVIVO(rdev)) {
+       if (ASIC_IS_AVIVO(rdev) && (rdev->family < CHIP_ARUBA)) {

I believe these issues were fixed on DCE6, but I'm verifying now. SI is dce6 as well so the check here should probably be:

if (ASIC_IS_AVIVO(rdev) && !ASIC_IS_DCE6(rdev)) {

Actually, the two patches are identical since:
#define ASIC_IS_DCE6(rdev) ((rdev->family >= CHIP_ARUBA)) but I think the DCE6 variant is clearer. Once I verify with the hw team I'll add the patch with that change.

Thanks!

Alex

Quoted 13 lines

Alex

Quoted 10 lines
drivers/gpu/drm/radeon/radeon_cursor.c +0 -1
                int i = 0;
                struct drm_crtc *crtc_p;
 
--

1.7.11.7

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

#4 lore raw
Quoted 28 lines · Alex Deucher
Quoted 19 lines · Alex Deucher
Quoted 18 lines · On Mon, Jan 21, 2013 at 3:50 PM, <[email protected]> wrote:

From: Jerome Glisse <[email protected]>

Aruba and newer gpu does not need the avivo cursor work around, quite the opposite this work around lead to corruption.

---
 drivers/gpu/drm/radeon/radeon_cursor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_cursor.c +0 -0
index ad6df62..30f71cc 100644
@@ -241,7 +241,7 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
                y = 0;
        }
 
Quoted 7 lines

drivers/gpu/drm/radeon/radeon_cursor.c int radeon_crtc_cursor_move(struct drm_crtc *crtc, · line 244

Quoted 2 lines
drivers/gpu/drm/radeon/radeon_cursor.c +1 -1
-       if (ASIC_IS_AVIVO(rdev)) {
+       if (ASIC_IS_AVIVO(rdev) && (rdev->family < CHIP_ARUBA)) {

I believe these issues were fixed on DCE6, but I'm verifying now. SI is dce6 as well so the check here should probably be:

if (ASIC_IS_AVIVO(rdev) && !ASIC_IS_DCE6(rdev)) {

Quoted 9 lines

Actually, the two patches are identical since:
#define ASIC_IS_DCE6(rdev) ((rdev->family >= CHIP_ARUBA)) but I think the DCE6 variant is clearer. Once I verify with the hw team I'll add the patch with that change.

Thanks!

Alex

Yes they are identical, i meant that i considered doing it that way but i did not have strong feeling. :)

Cheers,
Jerome