[Intel-gfx] [PATCH driver/intel] sna/cursor: Make sure hw cursors are disabled before disabling secondary planes
Egbert Eich
e4t at freenet.de
Mon Jul 4 11:55:18 UTC 2016
On Tue, Jun 21, 2016 at 09:25:36PM +0100, Chris Wilson wrote:
> On Tue, Jun 21, 2016 at 07:34:34PM +0200, Egbert Eich wrote:
> > When the hw cursors are not disabled before the cursor planes get disabled
> > we may lose the cursor later on. Thus make sure the cursors are disabled
> > before the cursor planes are.
>
> The cursor would already be controlled by the xf86SetDesiredModes(), so
> we can skip disabling entirely. What we should do instead is add the
> paranoia check, but I can't see an easy way to inquire what the kernel
> thinks the legacy cursor handle should be.
>
> commit f1c757e4518f6835bbff6c940269a5c6be75f202
> Author: Chris Wilson <chris at chris-wilson.co.uk>
> Date: Tue Jun 21 21:17:15 2016 +0100
>
> sna: Only shutdown unknown secondary planes on CRTC we control
>
> In a ZaphodHead scenario, we do not own all the CRTC and so we should
> not be making changes outside of our zone of control. Also, we only want
> to disable secondary overlay planes and ignore the secondary cursor
> planes which are controlled through the normal modesetting.
>
> As we are now tracking all sprite planes on a CRTC, this leads to much
> simpler code.
Chris, thanks for the patch! I've been able to test it now - it works.
Cheers,
Egbert.
More information about the Intel-gfx
mailing list