Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-21 Thread Sudeep Dutt
On Fri, 2015-08-21 at 13:59 +0530, Vinod Koul wrote: > On Thu, Aug 20, 2015 at 10:30:50AM -0700, Sudeep Dutt wrote: > > On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: > > > On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: > > > > > + /* > > > > +

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-21 Thread Vinod Koul
On Thu, Aug 20, 2015 at 10:30:50AM -0700, Sudeep Dutt wrote: > On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: > > On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: > > > + /* > > > + * This is a hack to program status descriptor since > > > + * DMA

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-21 Thread Sudeep Dutt
On Fri, 2015-08-21 at 13:59 +0530, Vinod Koul wrote: On Thu, Aug 20, 2015 at 10:30:50AM -0700, Sudeep Dutt wrote: On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: + /* +* This is a

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-21 Thread Vinod Koul
On Thu, Aug 20, 2015 at 10:30:50AM -0700, Sudeep Dutt wrote: On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: + /* + * This is a hack to program status descriptor since + * DMA engine API

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-20 Thread Sudeep Dutt
On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: > On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: > > +/* Program a status descriptor with phys as address and value to be > > written */ > > +static int mic_dma_do_status_update(struct mic_dma_chan *ch, dma_addr_t > > phys, >

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-20 Thread Sudeep Dutt
On Thu, 2015-08-20 at 10:50 +0530, Vinod Koul wrote: On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: +/* Program a status descriptor with phys as address and value to be written */ +static int mic_dma_do_status_update(struct mic_dma_chan *ch, dma_addr_t phys, +

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-19 Thread Vinod Koul
On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: > +/* Program a status descriptor with phys as address and value to be written > */ > +static int mic_dma_do_status_update(struct mic_dma_chan *ch, dma_addr_t phys, > + u64 value) > +{ > + int ret

Re: [PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-08-19 Thread Vinod Koul
On Mon, Jul 27, 2015 at 04:58:17PM -0700, Ashutosh Dixit wrote: +/* Program a status descriptor with phys as address and value to be written */ +static int mic_dma_do_status_update(struct mic_dma_chan *ch, dma_addr_t phys, + u64 value) +{ + int ret =

[PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-07-27 Thread Ashutosh Dixit
From: Siva Yerramreddy The MIC X100 DMA engine has a special status descriptor which writes an 8 byte value to a destination location. This is used to signal completion of all DMA descriptors prior to the status descriptor. This patch uses the src field as a value since the DMA engine API does

[PATCH char-misc-next 11/19] dma: Add support to program MIC x100 status descriptiors

2015-07-27 Thread Ashutosh Dixit
From: Siva Yerramreddy yshivakris...@gmail.com The MIC X100 DMA engine has a special status descriptor which writes an 8 byte value to a destination location. This is used to signal completion of all DMA descriptors prior to the status descriptor. This patch uses the src field as a value since