Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1211633
| From | Vinod Koul <vinod.koul@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 2/2] dma: Add Xilinx zynqmp dma engine driver support |
| Date | 2015-08-23 16:10 +0200 |
| Message-ID | <q0E8a-30F-19@gated-at.bofh.it> (permalink) |
| References | <pZr3k-4jD-7@gated-at.bofh.it> <pZrmF-4VL-13@gated-at.bofh.it> <pZrmF-4VL-11@gated-at.bofh.it> <pZrG2-5if-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 20, 2015 at 12:01:27PM +0530, punnaiah choudary kalluri wrote:
> On Thu, Aug 20, 2015 at 11:43 AM, Vinod Koul <vinod.koul@intel.com> wrote:
> > On Thu, Aug 06, 2015 at 08:49:33AM +0530, Punnaiah Choudary Kalluri wrote:
> >
> >> + list_for_each_entry_safe(desc, next, &chan->done_list, node) {
> >> + dma_async_tx_callback callback;
> >> + void *callback_param;
> >> +
> >> + list_del(&desc->node);
> >> +
> >> + callback = desc->async_tx.callback;
> >> + callback_param = desc->async_tx.callback_param;
> >> + if (callback) {
> >> + if (in_interrupt())
> >> + spin_unlock_bh(&chan->lock);
> >> + else
> >> + spin_unlock(&chan->lock);
> >
> > This looks bad!
> > Why would callback be called from different context. It should only be
> > invoked from your tasklet
>
> During the terminate call, driver need to clean up the existing BDs so that time
> this function will be called from the thread or process context in
> addition to the
> tasklet context.
>
> DO you have any suggestion here ?
Yes you need to terminate but you don't need to invoke user for terminate
flow. It is not expected.
Terminate flow expect youu to clean the channels
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v4 2/2] dma: Add Xilinx zynqmp dma engine driver support Vinod Koul <vinod.koul@intel.com> - 2015-08-20 08:20 +0200
Re: [PATCH v4 2/2] dma: Add Xilinx zynqmp dma engine driver support punnaiah choudary kalluri <punnaia@xilinx.com> - 2015-08-20 08:40 +0200
Re: [PATCH v4 2/2] dma: Add Xilinx zynqmp dma engine driver support Vinod Koul <vinod.koul@intel.com> - 2015-08-23 16:10 +0200
Re: [PATCH v4 2/2] dma: Add Xilinx zynqmp dma engine driver support punnaiah choudary kalluri <punnaia@xilinx.com> - 2015-08-23 17:00 +0200
csiph-web