Re: [PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-31 Thread Rob Clark
On Thu, Mar 31, 2022 at 12:41 PM Dmitry Osipenko wrote: > > On 3/31/22 22:02, Rob Clark wrote: > > On Thu, Mar 31, 2022 at 11:52 AM Dmitry Osipenko > > wrote: > >> > >> ... > >>> +/* > >>> + * Get the requested iova but don't pin it. Fails if the requested iova > >>> is > >>> + * not available.

Re: [PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-31 Thread Dmitry Osipenko
On 3/31/22 22:02, Rob Clark wrote: > On Thu, Mar 31, 2022 at 11:52 AM Dmitry Osipenko > wrote: >> >> ... >>> +/* >>> + * Get the requested iova but don't pin it. Fails if the requested iova is >>> + * not available. Doesn't need a put because iovas are currently valid for >>> + * the life of the

Re: [PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-31 Thread Rob Clark
On Thu, Mar 31, 2022 at 11:52 AM Dmitry Osipenko wrote: > > ... > > +/* > > + * Get the requested iova but don't pin it. Fails if the requested iova is > > + * not available. Doesn't need a put because iovas are currently valid for > > + * the life of the object. > > + * > > + * Setting an iova

Re: [PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-31 Thread Dmitry Osipenko
On 3/31/22 21:52, Dmitry Osipenko wrote: > ... >> +/* >> + * Get the requested iova but don't pin it. Fails if the requested iova is >> + * not available. Doesn't need a put because iovas are currently valid for >> + * the life of the object. >> + * >> + * Setting an iova of zero will clear the

Re: [PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-31 Thread Dmitry Osipenko
... > +/* > + * Get the requested iova but don't pin it. Fails if the requested iova is > + * not available. Doesn't need a put because iovas are currently valid for > + * the life of the object. > + * > + * Setting an iova of zero will clear the vma. > + */ > +int msm_gem_set_iova(struct drm_gem

[PATCH v2 10/10] drm/msm: Add a way for userspace to allocate GPU iova

2022-03-30 Thread Rob Clark
From: Rob Clark The motivation at this point is mainly native userspace mesa driver in a VM guest. The one remaining synchronous "hotpath" is buffer allocation, because guest needs to wait to know the bo's iova before it can start emitting cmdstream/state that references the new bo. By allocati