* IIO for PCIe-DMA ADC
@ 2014-07-24 13:06 Krzysztof Sywula
2014-07-24 15:11 ` Lars-Peter Clausen
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Sywula @ 2014-07-24 13:06 UTC (permalink / raw)
To: linux-iio
Hi there, Im designing a PCIe driver for DMA enabled ADC. Is IIO handling
such a combo? I'm based on kernel 3.8.7.
Website:
http://wiki.analog.com/software/linux/docs/iio/iio
says "However typical DMA operated devices such as ones connected to a
high speed synchronous serial (McBSP, SPORT) or high speed synchronous
parallel (EPI, PPI) or FPGA peripherals are also subject to this
subsystem."
which is not clear enough for me to answer that question.
Thanks,
Krzysztof Sywula
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IIO for PCIe-DMA ADC
2014-07-24 13:06 IIO for PCIe-DMA ADC Krzysztof Sywula
@ 2014-07-24 15:11 ` Lars-Peter Clausen
2014-07-28 11:09 ` Krzysztof Sywula
0 siblings, 1 reply; 4+ messages in thread
From: Lars-Peter Clausen @ 2014-07-24 15:11 UTC (permalink / raw)
To: Krzysztof Sywula, linux-iio
On 07/24/2014 03:06 PM, Krzysztof Sywula wrote:
> Hi there, I’m designing a PCIe driver for DMA enabled ADC. Is IIO handling
> such a combo? I'm based on kernel 3.8.7.
>
> Website:
> http://wiki.analog.com/software/linux/docs/iio/iio
> says "However typical DMA operated devices such as ones connected to a
> high speed synchronous serial (McBSP, SPORT) or high speed synchronous
> parallel (EPI, PPI) or FPGA peripherals are also subject to this
> subsystem."
>
> which is not clear enough for me to answer that question.
Hi,
The current upstream version of IIO does not have built-in support for DMA,
but you can always create your custom buffer implementation that handles the
DMA.
There is a out of tree generic DMA[0] and DMAengine[1] support for IIO. This
is both scheduled for mainline submission, but obviously will not be
available in a 3.8.7 kernel.
- Lars
[0]
https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmabuf.c
[1]
https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmaengine.c
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IIO for PCIe-DMA ADC
2014-07-24 15:11 ` Lars-Peter Clausen
@ 2014-07-28 11:09 ` Krzysztof Sywula
2014-07-28 11:48 ` Lars-Peter Clausen
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Sywula @ 2014-07-28 11:09 UTC (permalink / raw)
To: Lars-Peter Clausen; +Cc: Krzysztof Sywula, linux-iio
Lars, I have few more questions, would love if you could answer.
- ADC I have uses max 4KHz sampling frequency, SoC CPU is 533MHz; will IIO
cope?
- are there any other ADCs in IIO framework that use your DMA-extension?
- I would like to use dw_dmac DMA driver, I hope both, IIO and your
DMA-extension will honour that
- what is the status of upstreaming DMA-extension? Are you commited to any
dates?
- is there any out of the box set of tests for IIO/DMA-extension?
Thanks,
Krzysztof Sywula
> On 07/24/2014 03:06 PM, Krzysztof Sywula wrote:
>> Hi there, Im designing a PCIe driver for DMA enabled ADC. Is IIO
>> handling
>> such a combo? I'm based on kernel 3.8.7.
>>
>> Website:
>> http://wiki.analog.com/software/linux/docs/iio/iio
>> says "However typical DMA operated devices such as ones connected to a
>> high speed synchronous serial (McBSP, SPORT) or high speed synchronous
>> parallel (EPI, PPI) or FPGA peripherals are also subject to this
>> subsystem."
>>
>> which is not clear enough for me to answer that question.
>
>
> Hi,
>
> The current upstream version of IIO does not have built-in support for
> DMA,
> but you can always create your custom buffer implementation that handles
> the
> DMA.
>
> There is a out of tree generic DMA[0] and DMAengine[1] support for IIO.
> This
> is both scheduled for mainline submission, but obviously will not be
> available in a 3.8.7 kernel.
>
> - Lars
>
> [0]
> https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmabuf.c
> [1]
> https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmaengine.c
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: IIO for PCIe-DMA ADC
2014-07-28 11:09 ` Krzysztof Sywula
@ 2014-07-28 11:48 ` Lars-Peter Clausen
0 siblings, 0 replies; 4+ messages in thread
From: Lars-Peter Clausen @ 2014-07-28 11:48 UTC (permalink / raw)
To: Krzysztof Sywula; +Cc: linux-iio
On 07/28/2014 01:09 PM, Krzysztof Sywula wrote:
> Lars, I have few more questions, would love if you could answer.
> - ADC I have uses max 4KHz sampling frequency, SoC CPU is 533MHz; will IIO
> cope?
That's more of a hardware issue and less of a IIO framework issue. But I
think 4kHz is something that's even without DMA possible to archive without
problems.
> - are there any other ADCs in IIO framework that use your DMA-extension?
Not at this point.
> - I would like to use dw_dmac DMA driver, I hope both, IIO and your
> DMA-extension will honour that
If the dw_dmac driver is compliant with the DMAengine API it will work out
of the box.
> - what is the status of upstreaming DMA-extension? Are you commited to any
> dates?
soon ;) The plan is to at least send the kernel parts after the next merge
window has closed.
> - is there any out of the box set of tests for IIO/DMA-extension?
The userspace API is backwards compatible so you can use the same tools that
can be used to test other IIO applications.
- Lars
>
> Thanks,
> Krzysztof Sywula
>
>> On 07/24/2014 03:06 PM, Krzysztof Sywula wrote:
>>> Hi there, I’m designing a PCIe driver for DMA enabled ADC. Is IIO
>>> handling
>>> such a combo? I'm based on kernel 3.8.7.
>>>
>>> Website:
>>> http://wiki.analog.com/software/linux/docs/iio/iio
>>> says "However typical DMA operated devices such as ones connected to a
>>> high speed synchronous serial (McBSP, SPORT) or high speed synchronous
>>> parallel (EPI, PPI) or FPGA peripherals are also subject to this
>>> subsystem."
>>>
>>> which is not clear enough for me to answer that question.
>>
>>
>> Hi,
>>
>> The current upstream version of IIO does not have built-in support for
>> DMA,
>> but you can always create your custom buffer implementation that handles
>> the
>> DMA.
>>
>> There is a out of tree generic DMA[0] and DMAengine[1] support for IIO.
>> This
>> is both scheduled for mainline submission, but obviously will not be
>> available in a 3.8.7 kernel.
>>
>> - Lars
>>
>> [0]
>> https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmabuf.c
>> [1]
>> https://github.com/analogdevicesinc/linux/blob/xcomm_zynq/drivers/iio/industrialio-dmaengine.c
>>
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-iio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-07-28 11:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 13:06 IIO for PCIe-DMA ADC Krzysztof Sywula
2014-07-24 15:11 ` Lars-Peter Clausen
2014-07-28 11:09 ` Krzysztof Sywula
2014-07-28 11:48 ` Lars-Peter Clausen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.