Re: [PATCH v3 05/15] habanalabs: add command buffer module

2019-02-09 Thread Greg KH
On Fri, Feb 08, 2019 at 09:53:27PM +0200, Oded Gabbay wrote: > On Fri, Feb 8, 2019 at 2:06 PM Greg KH wrote: > > > > On Mon, Feb 04, 2019 at 10:32:44PM +0200, Oded Gabbay wrote: > > > +int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data) > > > +{ > > > + union hl_cb_args *args = data; > > > +

Re: [PATCH v3 05/15] habanalabs: add command buffer module

2019-02-08 Thread Oded Gabbay
On Fri, Feb 8, 2019 at 2:06 PM Greg KH wrote: > > On Mon, Feb 04, 2019 at 10:32:44PM +0200, Oded Gabbay wrote: > > +int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data) > > +{ > > + union hl_cb_args *args = data; > > + struct hl_device *hdev = hpriv->hdev; > > + u64 handle; > > + in

Re: [PATCH v3 05/15] habanalabs: add command buffer module

2019-02-08 Thread Greg KH
On Mon, Feb 04, 2019 at 10:32:44PM +0200, Oded Gabbay wrote: > +int hl_cb_ioctl(struct hl_fpriv *hpriv, void *data) > +{ > + union hl_cb_args *args = data; > + struct hl_device *hdev = hpriv->hdev; > + u64 handle; > + int rc; > + > + switch (args->in.op) { > + case HL_CB_OP_

[PATCH v3 05/15] habanalabs: add command buffer module

2019-02-04 Thread Oded Gabbay
This patch adds the command buffer (CB) module, which allows the user to create and destroy CBs and to map them to the user's process address-space. A command buffer is a memory blocks that reside in DMA-able address-space and is physically contiguous so it can be accessed by the device without MM