[PATCH rdma-core v3 4/6] pyverbs: Add dma-buf based MR support
Jason Gunthorpe
jgg at ziepe.ca
Mon Nov 30 15:55:44 UTC 2020
On Mon, Nov 30, 2020 at 03:57:41PM +0100, Daniel Vetter wrote:
> > + err = ioctl(dri->fd, DRM_IOCTL_AMDGPU_GEM_CREATE, &gem_create);
> > + if (err)
> > + return err;
> > +
> > + *handle = gem_create.out.handle;
> > + return 0;
> > +}
> > +
> > +static int radeon_alloc(struct dri *dri, size_t size, uint32_t *handle)
>
> Tbh radeon chips are old enough I wouldn't care. Also doesn't support p2p
> dma-buf, so always going to be in system memory when you share. Plus you
> also need some more flags like I suggested above I think.
What about nouveau?
Jason
More information about the dri-devel
mailing list