On 4 May 2017 14:07:19 BST, Eugen.Hristev@xxxxxxxxxxxxx wrote: >Hello, > >I am making a proof of concept for DMA functionality for the >at91-sama5d2 ADC driver. >I would like to ask if it's better to implement in an old fashion way >(request dma channel, allocate memory, start transfer), or try to >integrate with the DMA-buffer in the iio subsystem ? >Is there any driver using that system in the current kernel ? Lars? > >Also, is there a way to enable/disable DMA coming from the subsystem to >the driver ? (I mean from sysfs, to have or create an option for the >buffer to use DMA or not). >Using DMA has the advantage of less interrupts coming, but much less >granularity on the incoming triggered conversions. So I thought a way >for the user to enable or disable it might be convenient. Use the fifo watermark stuff perhaps? If set high enough use DMA, if lower then don't. Complexity around triggering however. Generally DMA pushed to kfifo is done without triggers as there is no per scan interrupt to hang other devices off. Also no timestamps... > > >Thanks for all the inputs, > >Eugen Hristev > >-- >To unsubscribe from this list: send the line "unsubscribe linux-iio" in >the body of a message to majordomo@xxxxxxxxxxxxxxx >More majordomo info at http://vger.kernel.org/majordomo-info.html -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html