Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-09 Thread Niranjana Vishwanathapura
On Fri, Jul 08, 2022 at 07:32:54PM +0200, Christian König wrote: Am 08.07.22 um 15:23 schrieb Niranjana Vishwanathapura: On Thu, Jul 07, 2022 at 03:27:43PM +0200, Christian König wrote: Am 02.07.22 um 00:50 schrieb Niranjana Vishwanathapura: Add uapi allowing user to specify a BO as private to

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-09 Thread Niranjana Vishwanathapura
On Fri, Jul 08, 2022 at 07:44:54AM -0700, Hellstrom, Thomas wrote: On Fri, 2022-07-08 at 15:43 +0200, Thomas Hellström wrote: > The vm_bind/bound_list and the non_priv_vm_bind_list are there for > very different reasons. > > The reason for having separate vm_bind_list and vm_bound_list is > that

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-08 Thread Hellstrom, Thomas
On Fri, 2022-07-08 at 15:43 +0200, Thomas Hellström wrote: > > The vm_bind/bound_list and the non_priv_vm_bind_list are there for > > very different reasons. > > > > The reason for having separate vm_bind_list and vm_bound_list is > > that > > during the execbuf path, we can rebind the unbound map

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-08 Thread Hellstrom, Thomas
On Fri, 2022-07-08 at 06:14 -0700, Niranjana Vishwanathapura wrote: > On Thu, Jul 07, 2022 at 03:31:42AM -0700, Hellstrom, Thomas wrote: > > On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: > > > Add uapi allowing user to specify a BO as private to a specified > > > VM > > > duri

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-08 Thread Niranjana Vishwanathapura
On Thu, Jul 07, 2022 at 03:27:43PM +0200, Christian König wrote: Am 02.07.22 um 00:50 schrieb Niranjana Vishwanathapura: Add uapi allowing user to specify a BO as private to a specified VM during the BO creation. VM private BOs can only be mapped on the specified VM and can't be dma_buf exported

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-08 Thread Niranjana Vishwanathapura
On Thu, Jul 07, 2022 at 03:31:42AM -0700, Hellstrom, Thomas wrote: On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: Add uapi allowing user to specify a BO as private to a specified VM during the BO creation. VM private BOs can only be mapped on the specified VM and can't be dm

Re: [Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-07 Thread Hellstrom, Thomas
On Fri, 2022-07-01 at 15:50 -0700, Niranjana Vishwanathapura wrote: > Add uapi allowing user to specify a BO as private to a specified VM > during the BO creation. > VM private BOs can only be mapped on the specified VM and can't be > dma_buf exported. VM private BOs share a single common dma_resv

[Intel-gfx] [RFC 03/10] drm/i915/vm_bind: Support private and shared BOs

2022-07-01 Thread Niranjana Vishwanathapura
Add uapi allowing user to specify a BO as private to a specified VM during the BO creation. VM private BOs can only be mapped on the specified VM and can't be dma_buf exported. VM private BOs share a single common dma_resv object, hence has a performance advantage requiring a single dma_resv object