Re: [Intel-gfx] [PATCH v2 10/20] drm/i915: Convert suspend/resume to atomic.

2015-07-07 Thread Daniel Vetter
On Tue, Jul 07, 2015 at 03:14:57PM +0200, Daniel Vetter wrote: > On Tue, Jul 07, 2015 at 12:33:25PM +0200, Maarten Lankhorst wrote: > > Op 07-07-15 om 11:57 schreef Daniel Vetter: > > > On Tue, Jul 07, 2015 at 09:08:21AM +0200, Maarten Lankhorst wrote: > > > Since we've only badly bruised escape th

Re: [Intel-gfx] [PATCH v2 10/20] drm/i915: Convert suspend/resume to atomic.

2015-07-07 Thread Daniel Vetter
On Tue, Jul 07, 2015 at 12:33:25PM +0200, Maarten Lankhorst wrote: > Op 07-07-15 om 11:57 schreef Daniel Vetter: > > On Tue, Jul 07, 2015 at 09:08:21AM +0200, Maarten Lankhorst wrote: > >> @@ -10421,10 +10414,6 @@ void intel_release_load_detect_pipe(struct > >> drm_connector *connector, > >>

Re: [Intel-gfx] [PATCH v2 10/20] drm/i915: Convert suspend/resume to atomic.

2015-07-07 Thread Maarten Lankhorst
Op 07-07-15 om 11:57 schreef Daniel Vetter: > On Tue, Jul 07, 2015 at 09:08:21AM +0200, Maarten Lankhorst wrote: >> Instead of all the ad-hoc updating, duplicate the old state first before >> reading out the hw state, then restore it. >> >> Signed-off-by: Maarten Lankhorst >> --- >> drivers/gpu/d

Re: [Intel-gfx] [PATCH v2 10/20] drm/i915: Convert suspend/resume to atomic.

2015-07-07 Thread Daniel Vetter
On Tue, Jul 07, 2015 at 09:08:21AM +0200, Maarten Lankhorst wrote: > Instead of all the ad-hoc updating, duplicate the old state first before > reading out the hw state, then restore it. > > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/i915/i915_drv.c | 2 +- > drivers/gpu/drm

[Intel-gfx] [PATCH v2 10/20] drm/i915: Convert suspend/resume to atomic.

2015-07-07 Thread Maarten Lankhorst
Instead of all the ad-hoc updating, duplicate the old state first before reading out the hw state, then restore it. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 3 +- drivers/gpu/drm/i915/intel_display.c | 153 ++