Re: [RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-07 Thread Daniel Vetter
On Fri, Apr 07, 2017 at 10:58:47AM -0700, Laura Abbott wrote: > On 04/07/2017 09:58 AM, Chris Wilson wrote: > > On Fri, Apr 07, 2017 at 09:18:30AM -0700, Laura Abbott wrote: > >> On 04/07/2017 12:39 AM, Chris Wilson wrote: > >>> On Thu, Apr 06, 2017 at 04:18:33PM -0700, Laura Abbott wrote: > >

Re: [RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-07 Thread Laura Abbott
On 04/07/2017 09:58 AM, Chris Wilson wrote: > On Fri, Apr 07, 2017 at 09:18:30AM -0700, Laura Abbott wrote: >> On 04/07/2017 12:39 AM, Chris Wilson wrote: >>> On Thu, Apr 06, 2017 at 04:18:33PM -0700, Laura Abbott wrote: Enable the GEM dma-buf import interfaces in addition to the export >

Re: [RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-07 Thread Chris Wilson
On Fri, Apr 07, 2017 at 09:18:30AM -0700, Laura Abbott wrote: > On 04/07/2017 12:39 AM, Chris Wilson wrote: > > On Thu, Apr 06, 2017 at 04:18:33PM -0700, Laura Abbott wrote: > >> > >> Enable the GEM dma-buf import interfaces in addition to the export > >> interfaces. This lets vgem be used as a tes

Re: [RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-07 Thread Laura Abbott
On 04/07/2017 12:39 AM, Chris Wilson wrote: > On Thu, Apr 06, 2017 at 04:18:33PM -0700, Laura Abbott wrote: >> >> Enable the GEM dma-buf import interfaces in addition to the export >> interfaces. This lets vgem be used as a test source for other allocators >> (e.g. Ion). >> >> +int vgem_gem_get_pag

Re: [RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-07 Thread Chris Wilson
On Thu, Apr 06, 2017 at 04:18:33PM -0700, Laura Abbott wrote: > > Enable the GEM dma-buf import interfaces in addition to the export > interfaces. This lets vgem be used as a test source for other allocators > (e.g. Ion). > > +int vgem_gem_get_pages(struct drm_vgem_gem_object *obj) > +{ > + s

[RFC PATCH 2/2] drm/vgem: Enable dmabuf import interfaces

2017-04-06 Thread Laura Abbott
Enable the GEM dma-buf import interfaces in addition to the export interfaces. This lets vgem be used as a test source for other allocators (e.g. Ion). Signed-off-by: Laura Abbott --- drivers/gpu/drm/vgem/vgem_drv.c | 135 drivers/gpu/drm/vgem/vgem_drv.h