Re: [Intel-gfx] [PATCH 1/2] drm/i915: Only shrink the unbound objects during freeze

2016-09-19 Thread Joonas Lahtinen
On ma, 2016-09-19 at 09:38 +0100, Chris Wilson wrote: > On Mon, Sep 19, 2016 at 11:31:37AM +0300, Joonas Lahtinen wrote: > > > > On pe, 2016-09-16 at 20:23 +0100, Chris Wilson wrote: > > > > > >  int i915_gem_freeze_late(struct drm_i915_private *dev_priv) > > >  { > > > > > > > > > > > >  

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Only shrink the unbound objects during freeze

2016-09-19 Thread Chris Wilson
On Mon, Sep 19, 2016 at 11:31:37AM +0300, Joonas Lahtinen wrote: > On pe, 2016-09-16 at 20:23 +0100, Chris Wilson wrote: > >  int i915_gem_freeze_late(struct drm_i915_private *dev_priv) > >  { > > >   struct drm_i915_gem_object *obj; > > @@ -4692,7 +4705,8 @@ int i915_gem_freeze_late(struct

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Only shrink the unbound objects during freeze

2016-09-19 Thread Joonas Lahtinen
On pe, 2016-09-16 at 20:23 +0100, Chris Wilson wrote: >  int i915_gem_freeze_late(struct drm_i915_private *dev_priv) >  { > >   struct drm_i915_gem_object *obj; > @@ -4692,7 +4705,8 @@ int i915_gem_freeze_late(struct drm_i915_private > *dev_priv) > >    * the objects as well. > >    */ >  

[Intel-gfx] [PATCH 1/2] drm/i915: Only shrink the unbound objects during freeze

2016-09-16 Thread Chris Wilson
At the point of creating the hibernation image, the runtime power manage core is disabled - and using the rpm functions triggers a warn. i915_gem_shrink_all() tries to unbind objects, which requires device access and so tries to how an rpm reference triggering a warning: [ 44.235420]