Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Chris Wilson
On Wed, Jul 15, 2015 at 03:58:33PM +, Daniel, Thomas wrote: > > -Original Message- > > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > > Sent: Wednesday, July 15, 2015 4:47 PM > > To: Daniel, Thomas > > Cc: Goel, Akash; intel-gfx@lists.freedesktop.org; Belgaumkar, Vinay; > > Win

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Daniel, Thomas
> -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Wednesday, July 15, 2015 4:47 PM > To: Daniel, Thomas > Cc: Goel, Akash; intel-gfx@lists.freedesktop.org; Belgaumkar, Vinay; > Winiarski, > Michal; Zou, Nanhai > Subject: Re: [PATCH v4] drm/i915: Add soft-p

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Chris Wilson
On Wed, Jul 15, 2015 at 03:41:49PM +, Daniel, Thomas wrote: > > -Original Message- > > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > > Sent: Wednesday, July 15, 2015 4:06 PM > > To: Goel, Akash > > Cc: Daniel, Thomas; intel-gfx@lists.freedesktop.org; Belgaumkar, Vinay; > > Wini

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Daniel, Thomas
> -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Wednesday, July 15, 2015 4:06 PM > To: Goel, Akash > Cc: Daniel, Thomas; intel-gfx@lists.freedesktop.org; Belgaumkar, Vinay; > Winiarski, Michal; Zou, Nanhai > Subject: Re: [PATCH v4] drm/i915: Add soft-pinn

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Chris Wilson
On Wed, Jul 15, 2015 at 08:25:23PM +0530, Goel, Akash wrote: > >>+int > >>+i915_gem_evict_for_vma(struct i915_vma *target) > >>+{ > >>+ struct drm_mm_node *node, *next; > >>+ > >>+ list_for_each_entry_safe(node, next, > >>+ &target->vm->mm.head_node.node_list, > >>+

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-15 Thread Goel, Akash
On 6/30/2015 7:50 PM, Daniel, Thomas wrote: Many apologies to Michal for incorrectly spelling his name in the CC list. Thomas. -Original Message- From: Daniel, Thomas Sent: Tuesday, June 30, 2015 3:13 PM To: intel-gfx@lists.freedesktop.org Cc: Chris Wilson; Goel, Akash; Belgaumkar, V

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-08 Thread Chris Wilson
ntel-gfx@lists.freedesktop.org; > > Michal > > Winiarsky; Goel, Akash > > Subject: Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for > > execbuffer > > > > On Fri, Jul 03, 2015 at 10:29:44PM -0700, Kristian Høgsberg wrote: > > > On Tue, Ju

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-08 Thread Daniel, Thomas
l-gfx] [PATCH v4] drm/i915: Add soft-pinning API for > execbuffer > > On Fri, Jul 03, 2015 at 10:29:44PM -0700, Kristian Høgsberg wrote: > > On Tue, Jun 30, 2015 at 7:13 AM, Thomas Daniel > wrote: > > > From: Chris Wilson > > > > > > Userspace can pass

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-04 Thread Chris Wilson
On Fri, Jul 03, 2015 at 10:29:44PM -0700, Kristian Høgsberg wrote: > On Tue, Jun 30, 2015 at 7:13 AM, Thomas Daniel > wrote: > > From: Chris Wilson > > > > Userspace can pass in an offset that it presumes the object is located > > at. The kernel will then do its utmost to fit the object into tha

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-04 Thread Chris Wilson
On Tue, Jun 30, 2015 at 03:13:13PM +0100, Thomas Daniel wrote: > /** > - * Returned value of the updated offset of the object, for future > - * presumed_offset writes. > + * When the EXEC_OBJECT_PINNED flag is specified this is populated by > + * the user with the GTT offs

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-07-03 Thread Kristian Høgsberg
On Tue, Jun 30, 2015 at 7:13 AM, Thomas Daniel wrote: > From: Chris Wilson > > Userspace can pass in an offset that it presumes the object is located > at. The kernel will then do its utmost to fit the object into that > location. The assumption is that userspace is handling its own object > loca

Re: [Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-06-30 Thread Daniel, Thomas
Many apologies to Michal for incorrectly spelling his name in the CC list. Thomas. > -Original Message- > From: Daniel, Thomas > Sent: Tuesday, June 30, 2015 3:13 PM > To: intel-gfx@lists.freedesktop.org > Cc: Chris Wilson; Goel, Akash; Belgaumkar, Vinay; Michal Winiarsky; Zou, > Nanhai;

[Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

2015-06-30 Thread Thomas Daniel
From: Chris Wilson Userspace can pass in an offset that it presumes the object is located at. The kernel will then do its utmost to fit the object into that location. The assumption is that userspace is handling its own object locations (for example along with full-ppgtt) and that the kernel will