Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-12-14 Thread Ankitprasad Sharma
On Tue, 2015-11-24 at 13:22 +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2015 at 10:06:16AM +, Chris Wilson wrote: > > On Fri, Nov 20, 2015 at 03:07:58PM +0530, Ankitprasad Sharma wrote: > > > On Wed, 2015-11-18 at 10:59 +0100, Daniel Vetter wrote: > > > > On Thu, Nov 05, 2015 at 05:15:59PM +0

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-24 Thread Daniel Vetter
On Fri, Nov 20, 2015 at 10:06:16AM +, Chris Wilson wrote: > On Fri, Nov 20, 2015 at 03:07:58PM +0530, Ankitprasad Sharma wrote: > > On Wed, 2015-11-18 at 10:59 +0100, Daniel Vetter wrote: > > > On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com > > > wrote: > > > > From:

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-20 Thread Chris Wilson
On Fri, Nov 20, 2015 at 03:07:58PM +0530, Ankitprasad Sharma wrote: > On Wed, 2015-11-18 at 10:59 +0100, Daniel Vetter wrote: > > On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com > > wrote: > > > From: Ankitprasad Sharma > > > > > > In pwrite_fast, map an object page by p

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-20 Thread Ankitprasad Sharma
On Wed, 2015-11-18 at 10:59 +0100, Daniel Vetter wrote: > On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com > wrote: > > From: Ankitprasad Sharma > > > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > > we try a nonblocking pin for the whole obj

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-18 Thread Daniel Vetter
On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com wrote: > From: Ankitprasad Sharma > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > we try a nonblocking pin for the whole object (since that is fastest if > reused), then failing that we try to

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-10 Thread Chris Wilson
On Tue, Nov 10, 2015 at 08:44:59AM +, Chris Wilson wrote: > On Tue, Nov 10, 2015 at 09:55:18AM +0200, Mika Kuoppala wrote: > > > + while (remain) { > > > /* Operation in this page > > >* > > >* page_base = page offset within aperture > > >* page_off

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-10 Thread Chris Wilson
On Tue, Nov 10, 2015 at 09:55:18AM +0200, Mika Kuoppala wrote: > ankitprasad.r.sha...@intel.com writes: > > > From: Ankitprasad Sharma > > > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > > we try a nonblocking pin for the whole object (since that is fastest if > > r

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-10 Thread Ankitprasad Sharma
On Tue, 2015-11-10 at 09:55 +0200, Mika Kuoppala wrote: > ankitprasad.r.sha...@intel.com writes: > > > From: Ankitprasad Sharma > > > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > > we try a nonblocking pin for the whole object (since that is fastest if > > reused),

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-09 Thread Mika Kuoppala
ankitprasad.r.sha...@intel.com writes: > From: Ankitprasad Sharma > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > we try a nonblocking pin for the whole object (since that is fastest if > reused), then failing that we try to grab one page in the mappable > aperture.

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-09 Thread kbuild test robot
Hi Ankitprasad, [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on v4.3 next-20151109] url: https://github.com/0day-ci/linux/commits/ankitprasad-r-sharma-intel-com/Support-for-mapping-an-object-page-by-page/20151109-191910 base: git://anongit.freedesktop.org/d

[Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-09 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the whole object (since that is fastest if reused), then failing that we try to grab one page in the mappable aperture. It also allows us to handle objects larger than th

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-07 Thread Chris Wilson
On Thu, Nov 05, 2015 at 02:38:30PM +, Tvrtko Ursulin wrote: > > On 05/11/15 12:58, Chris Wilson wrote: > >On Thu, Nov 05, 2015 at 12:53:20PM +, Tvrtko Ursulin wrote: > >> > >>On 05/11/15 12:42, Chris Wilson wrote: > >>>On Thu, Nov 05, 2015 at 12:37:46PM +, Tvrtko Ursulin wrote: >

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-07 Thread Chris Wilson
On Sat, Nov 07, 2015 at 01:32:15PM +0530, ankitprasad.r.sha...@intel.com wrote: > From: Ankitprasad Sharma > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > we try a nonblocking pin for the whole object (since that is fastest if > reused), then failing that we try to

[Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-07 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the whole object (since that is fastest if reused), then failing that we try to grab one page in the mappable aperture. It also allows us to handle objects larger than th

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Ankitprasad Sharma
On Thu, 2015-11-05 at 12:34 +, Chris Wilson wrote: > On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com > wrote: > > From: Ankitprasad Sharma > > > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > > we try a nonblocking pin for the whole obje

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Tvrtko Ursulin
On 05/11/15 12:58, Chris Wilson wrote: On Thu, Nov 05, 2015 at 12:53:20PM +, Tvrtko Ursulin wrote: On 05/11/15 12:42, Chris Wilson wrote: On Thu, Nov 05, 2015 at 12:37:46PM +, Tvrtko Ursulin wrote: On 05/11/15 11:45, ankitprasad.r.sha...@intel.com wrote: From: Ankitprasad Sharma

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Chris Wilson
On Thu, Nov 05, 2015 at 12:53:20PM +, Tvrtko Ursulin wrote: > > On 05/11/15 12:42, Chris Wilson wrote: > >On Thu, Nov 05, 2015 at 12:37:46PM +, Tvrtko Ursulin wrote: > >> > >>On 05/11/15 11:45, ankitprasad.r.sha...@intel.com wrote: > >>>From: Ankitprasad Sharma > >>> > >>>In pwrite_fast,

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Tvrtko Ursulin
On 05/11/15 12:42, Chris Wilson wrote: On Thu, Nov 05, 2015 at 12:37:46PM +, Tvrtko Ursulin wrote: On 05/11/15 11:45, ankitprasad.r.sha...@intel.com wrote: From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Chris Wilson
On Thu, Nov 05, 2015 at 12:37:46PM +, Tvrtko Ursulin wrote: > > On 05/11/15 11:45, ankitprasad.r.sha...@intel.com wrote: > >From: Ankitprasad Sharma > > > >In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > >we try a nonblocking pin for the whole object (since that is

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Tvrtko Ursulin
On 05/11/15 11:45, ankitprasad.r.sha...@intel.com wrote: From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the whole object (since that is fastest if reused), then failing that we try to grab one page in the mappable

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread Chris Wilson
On Thu, Nov 05, 2015 at 05:15:59PM +0530, ankitprasad.r.sha...@intel.com wrote: > From: Ankitprasad Sharma > > In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, > we try a nonblocking pin for the whole object (since that is fastest if > reused), then failing that we try to

[Intel-gfx] [PATCH 3/3] drm/i915: Use insert_page for pwrite_fast

2015-11-05 Thread ankitprasad . r . sharma
From: Ankitprasad Sharma In pwrite_fast, map an object page by page if obj_ggtt_pin fails. First, we try a nonblocking pin for the whole object (since that is fastest if reused), then failing that we try to grab one page in the mappable aperture. It also allows us to handle objects larger than th