Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-09 Thread Niranjana Vishwanathapura
On Fri, Jul 08, 2022 at 03:20:01PM +, Hellstrom, Thomas wrote: On Fri, 2022-07-08 at 07:51 -0700, Niranjana Vishwanathapura wrote: > Since we don't loop over the vm_bound_list, there is a need to > check > whether the rebind_list is empty here under the notifier_lock in > read > mode, and in

Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-08 Thread Hellstrom, Thomas
On Fri, 2022-07-08 at 07:51 -0700, Niranjana Vishwanathapura wrote: > > Since we don't loop over the vm_bound_list, there is a need to > > check > > whether the rebind_list is empty here under the notifier_lock in > > read > > mode, and in that case, restart from eb_lookup_vmas(). That might > > al

Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-08 Thread Niranjana Vishwanathapura
On Fri, Jul 08, 2022 at 05:17:53AM -0700, Hellstrom, Thomas wrote: On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: For persistent (vm_bind) vmas of userptr BOs, handle the user page pinning by using the i915_gem_object_userptr_submit_init() /done() functions Signed-off-by: N

Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-08 Thread Niranjana Vishwanathapura
On Thu, Jul 07, 2022 at 06:11:13AM -0700, Hellstrom, Thomas wrote: On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: For persistent (vm_bind) vmas of userptr BOs, handle the user page pinning by using the i915_gem_object_userptr_submit_init() /done() functions Signed-off-by: N

Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-08 Thread Hellstrom, Thomas
On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: > For persistent (vm_bind) vmas of userptr BOs, handle the user > page pinning by using the i915_gem_object_userptr_submit_init() > /done() functions > > Signed-off-by: Niranjana Vishwanathapura > > --- >  .../gpu/drm/i915/gem/i9

Re: [RFC 08/10] drm/i915/vm_bind: userptr dma-resv changes

2022-07-07 Thread Hellstrom, Thomas
On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: > For persistent (vm_bind) vmas of userptr BOs, handle the user > page pinning by using the i915_gem_object_userptr_submit_init() > /done() functions > > Signed-off-by: Niranjana Vishwanathapura > > --- >  .../gpu/drm/i915/gem/i9