Re: [Intel-gfx] [PATCH] drm/i915: fix cursor handling when runtime suspended

2014-07-24 Thread Daniel Vetter
On Wed, Jul 23, 2014 at 08:38:19PM -0300, Paulo Zanoni wrote: 2014-07-23 19:41 GMT-03:00 Daniel Vetter dan...@ffwll.ch: On Thu, Jul 24, 2014 at 12:35:25AM +0200, Daniel Vetter wrote: On Wed, Jul 23, 2014 at 06:30:59PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com

[Intel-gfx] [PATCH] drm/i915: fix cursor handling when runtime suspended

2014-07-23 Thread Paulo Zanoni
From: Paulo Zanoni paulo.r.zan...@intel.com If we're runtime suspended and try to use the cursor interfaces, we will get a lot of WARNs saying we did the wrong thing. For intel_crtc_update_cursor(), all we need to do is return if the CRTC is not active, since writing the registers won't really

Re: [Intel-gfx] [PATCH] drm/i915: fix cursor handling when runtime suspended

2014-07-23 Thread Daniel Vetter
On Wed, Jul 23, 2014 at 06:30:59PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com If we're runtime suspended and try to use the cursor interfaces, we will get a lot of WARNs saying we did the wrong thing. For intel_crtc_update_cursor(), all we need to do is return

Re: [Intel-gfx] [PATCH] drm/i915: fix cursor handling when runtime suspended

2014-07-23 Thread Paulo Zanoni
2014-07-23 19:41 GMT-03:00 Daniel Vetter dan...@ffwll.ch: On Thu, Jul 24, 2014 at 12:35:25AM +0200, Daniel Vetter wrote: On Wed, Jul 23, 2014 at 06:30:59PM -0300, Paulo Zanoni wrote: From: Paulo Zanoni paulo.r.zan...@intel.com If we're runtime suspended and try to use the cursor