Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-12-09 Thread Tvrtko Ursulin
Hi, On 09/12/15 12:46, ankitprasad.r.sha...@intel.com wrote: From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evictin

[Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-12-09 Thread ankitprasad . r . sharma
From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evicting objects to free up enough contiguous space in the vma when bind

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-11-13 Thread Tvrtko Ursulin
Hi, On 11/11/15 10:36, ankitprasad.r.sha...@intel.com wrote: From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evictin

[Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-11-11 Thread ankitprasad . r . sharma
From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evicting objects to free up enough contiguous space in the vma when bind

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-09 Thread Daniel Vetter
On Thu, Oct 08, 2015 at 04:08:52PM +0100, Chris Wilson wrote: > On Thu, Oct 08, 2015 at 03:31:08PM +0100, Tvrtko Ursulin wrote: > > > > On 08/10/15 12:09, Chris Wilson wrote: > > >On Thu, Oct 08, 2015 at 11:43:29AM +0100, Tvrtko Ursulin wrote: > > >>>-struct drm_i915_gem_object * > > >>>-i915_gem_

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-09 Thread Daniel Vetter
On Thu, Oct 08, 2015 at 11:43:29AM +0100, Tvrtko Ursulin wrote: > > Hi, > > On 08/10/15 07:24, ankitprasad.r.sha...@intel.com wrote: > >From: Chris Wilson > > > >If we run out of stolen memory when trying to allocate an object, see if > >we can reap enough purgeable objects to free up enough con

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-08 Thread Chris Wilson
On Thu, Oct 08, 2015 at 03:31:08PM +0100, Tvrtko Ursulin wrote: > > On 08/10/15 12:09, Chris Wilson wrote: > >On Thu, Oct 08, 2015 at 11:43:29AM +0100, Tvrtko Ursulin wrote: > >>>-struct drm_i915_gem_object * > >>>-i915_gem_object_create_stolen(struct drm_device *dev, u64 size) > >>>+static bool >

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-08 Thread Tvrtko Ursulin
On 08/10/15 12:09, Chris Wilson wrote: On Thu, Oct 08, 2015 at 11:43:29AM +0100, Tvrtko Ursulin wrote: -struct drm_i915_gem_object * -i915_gem_object_create_stolen(struct drm_device *dev, u64 size) +static bool +mark_free(struct drm_i915_gem_object *obj, struct list_head *unwind) +{ + BUG

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-08 Thread Chris Wilson
On Thu, Oct 08, 2015 at 11:43:29AM +0100, Tvrtko Ursulin wrote: > >-struct drm_i915_gem_object * > >-i915_gem_object_create_stolen(struct drm_device *dev, u64 size) > >+static bool > >+mark_free(struct drm_i915_gem_object *obj, struct list_head *unwind) > >+{ > >+BUG_ON(obj->stolen == NULL); >

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-08 Thread Tvrtko Ursulin
Hi, On 08/10/15 07:24, ankitprasad.r.sha...@intel.com wrote: From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evictin

[Intel-gfx] [PATCH 4/6] drm/i915: Add support for stealing purgable stolen pages

2015-10-07 Thread ankitprasad . r . sharma
From: Chris Wilson If we run out of stolen memory when trying to allocate an object, see if we can reap enough purgeable objects to free up enough contiguous free space for the allocation. This is in principle very much like evicting objects to free up enough contiguous space in the vma when bind