Skip to contentSkip to conversation

drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor

PATCH In review Michel Dänzer 3 participants 5 messages Feb 15, 2017 – Feb 17, 2017 4 messages not in the archive

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

PATCH 1/1 drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor

From: Michel Dänzer <[email protected]>

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones.

Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes.

Fixes 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of bounds")
---
 drivers/gpu/drm/radeon/radeon_cursor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_cursor.c +2 -2
index fb16070b266e..4a4f9533c53b 100644
@@ -205,8 +205,8 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
 	}
 
 	if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
-	    x >= (crtc->x + crtc->mode.crtc_hdisplay) ||
-	    y >= (crtc->y + crtc->mode.crtc_vdisplay))
+	    x >= (crtc->x + crtc->mode.hdisplay) ||
+	    y >= (crtc->y + crtc->mode.vdisplay))
 		goto out_of_bounds;
 
 	x += xorigin;
Signature · 6 lines
2.11.0

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

A message that is not in the archive (sent off-list or not yet received): 20170215023048.7337-1-michel-otUistvHUpPR7s880joybQ@public.gmane.org

Reviewed-by
#2 lore raw
Quoted 5 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones.

Quoted 8 lines

Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes.

Fixes 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of bounds")
Quoted 22 lines
---
 drivers/gpu/drm/radeon/radeon_cursor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_cursor.c +2 -3
index fb16070b266e..4a4f9533c53b 100644
@@ -205,8 +205,8 @@ static int radeon_cursor_move_locked(struct drm_crtc *crtc, int x, int y)
        }
 
        if (x <= (crtc->x - w) || y <= (crtc->y - radeon_crtc->cursor_height) ||
-           x >= (crtc->x + crtc->mode.crtc_hdisplay) ||
-           y >= (crtc->y + crtc->mode.crtc_vdisplay))
+           x >= (crtc->x + crtc->mode.hdisplay) ||
+           y >= (crtc->y + crtc->mode.vdisplay))
                goto out_of_bounds;
 
        x += xorigin;
--

2.11.0

Quoted 4 lines

_______________________________________________
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

A message that is not in the archive (sent off-list or not yet received): CADnq5_M_QG=Yn9uYTJjeNHoBQ2dnJkLywTLa5uaKgnYp+8RkcA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 9 lines · Alex Deucher
Quoted 8 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones.

Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes.

Quoted 7 lines
Quoted 5 lines
Fixes 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of bounds")

Thanks! Since this fixes a regression in 4.10, any chance it can be sneaked into 4.10 final?

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): c4231c82-da21-919d-ff67-cbff7d349038-otUistvHUpPR7s880joybQ@public.gmane.org

#6 lore raw
Quoted 27 lines

-----Original Message-----
From: amd-gfx [mailto:[email protected]] On Behalf Of Michel Dänzer
Sent: Wednesday, February 15, 2017 10:24 PM
To: Alex Deucher
Cc: amd-gfx list
Subject: Re: [PATCH] drm/radeon: Use mode h/vdisplay fields to hide out of bounds HW cursor

Quoted 1 line · Alex Deucher

On Tue, Feb 14, 2017 at 9:30 PM, Michel Dänzer <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines

From: Michel Dänzer <[email protected]>

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones.

Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes.

Fixes 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of

bounds")

Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

Thanks! Since this fixes a regression in 4.10, any chance it can be sneaked into 4.10 final?

I think we may be too late for 4.10, but I can cc stable if it ends up in 4.11.

Alex

Quoted 9 lines

--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
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

A message that is not in the archive (sent off-list or not yet received): BN6PR12MB1652A97D9E5E6A891F187F32F75A0-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#8 lore raw
Quoted 19 lines · Alexander
Quoted 19 lines

From: amd-gfx [mailto:[email protected]] On Behalf

Quoted 1 line · Alex Deucher

On Tue, Feb 14, 2017 at 9:30 PM, Michel Dänzer <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines

From: Michel Dänzer <[email protected]>

The crtc_h/vdisplay fields may not match the CRTC viewport dimensions with special modes such as interlaced ones.

Fixes the HW cursor disappearing in the bottom half of the screen with interlaced modes.

Fixes 6b16cf7785a4 ("drm/radeon: Hide the HW cursor while it's out of

bounds")

Quoted 5 lines
Quoted 4 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Thanks! Since this fixes a regression in 4.10, any chance it can be sneaked into 4.10 final?

I think we may be too late for 4.10,

Thanks for trying anyway!

Quoted 1 line

but I can cc stable if it ends up in 4.11.

The commit log has Cc: stable and Fixes: tags, so we should be covered there. :)

Signature · 6 lines
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx