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

2014-04-07 Thread Rodrigo Vivi
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 3/6] drm/i915: Add support for stealing purgable stolen pages

2014-04-07 Thread Gupta, Sourab
On Mon, 2014-04-07 at 20:01 +, Rodrigo Vivi 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

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

2014-04-07 Thread Chris Wilson
On Tue, Apr 08, 2014 at 04:32:02AM +, Gupta, Sourab wrote: > Hi Rodrigo, > In this patch, while freeing the purgeable stolen object, the memory > node also has to be freed, so as to make space for new object. We need > to call drm_mm_remove_node while freeing obj. > > The below modification pa

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

2014-04-07 Thread Gupta, Sourab
On Tue, 2014-04-08 at 06:45 +, Chris Wilson wrote: > On Tue, Apr 08, 2014 at 04:32:02AM +, Gupta, Sourab wrote: > > Hi Rodrigo, > > In this patch, while freeing the purgeable stolen object, the memory > > node also has to be freed, so as to make space for new object. We need > > to call drm

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

2014-04-09 Thread Daniel Vetter
On Tue, Apr 08, 2014 at 06:53:03AM +, Gupta, Sourab wrote: > On Tue, 2014-04-08 at 06:45 +, Chris Wilson wrote: > > On Tue, Apr 08, 2014 at 04:32:02AM +, Gupta, Sourab wrote: > > > Hi Rodrigo, > > > In this patch, while freeing the purgeable stolen object, the memory > > > node also has

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

2014-04-10 Thread Gupta, Sourab
On Wed, 2014-04-09 at 13:06 +, Daniel Vetter wrote: > On Tue, Apr 08, 2014 at 06:53:03AM +, Gupta, Sourab wrote: > > On Tue, 2014-04-08 at 06:45 +, Chris Wilson wrote: > > > On Tue, Apr 08, 2014 at 04:32:02AM +, Gupta, Sourab wrote: > > > > Hi Rodrigo, > > > > In this patch, while f

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

2014-04-11 Thread Daniel Vetter
On Thu, Apr 10, 2014 at 10:12:39AM +, Gupta, Sourab wrote: > On Wed, 2014-04-09 at 13:06 +, Daniel Vetter wrote: > > On Tue, Apr 08, 2014 at 06:53:03AM +, Gupta, Sourab wrote: > > > On Tue, 2014-04-08 at 06:45 +, Chris Wilson wrote: > > > > On Tue, Apr 08, 2014 at 04:32:02AM +,

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

2014-04-14 Thread Gupta, Sourab
On Fri, 2014-04-11 at 08:55 +, Daniel Vetter wrote: > On Thu, Apr 10, 2014 at 10:12:39AM +, Gupta, Sourab wrote: > > On Wed, 2014-04-09 at 13:06 +, Daniel Vetter wrote: > > > On Tue, Apr 08, 2014 at 06:53:03AM +, Gupta, Sourab wrote: > > > > On Tue, 2014-04-08 at 06:45 +, Chris