* iio_simple_dummy_buffer_dma @ 2016-02-22 4:41 John Syne 2016-02-22 4:51 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 8:07 ` iio_simple_dummy_buffer_dma Daniel Baluta 0 siblings, 2 replies; 16+ messages in thread From: John Syne @ 2016-02-22 4:41 UTC (permalink / raw) To: linux-iio Hi, I am interested in using the IIO DMA framework and tried to use your dummy driver. I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. Here is what I have done so far: I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. In linux config, I have enabled the following: CONFIG_IIO_SIMPLE_DUMMY_EVENTS CONFIG_IIO_SIMPLE_DUMMY_BUFFER CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA CONFIG_IIO_BUFFER_CB CONFIG_IIO_BUFFER_DMA CONFIG_IIO_BUFFER_DMAENGINE CONFIG_IIO_KFIFO_BUF CONFIG_IIO_TRIGGERED_BUFFER CONFIG_IIO_TRIGGER CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 When I "modprobe iio_dummy”, the following modules are loaded: industrialio industrialio_buffer_dma iio_dummy kfifo_buf iio_dummy_evgen I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: > echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger > cat name /sys/bus/iio/device/trigger0/name > sysfstrig1 > echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger Now to enable a measurement: > echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en Finally to enable the buffer: > echo 1 /sys/bus/iio/device/iio:device0/buffer/enable When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: WARNING: High-speed mode not enabled ERROR: Reading from device failed: -110 Client Exited In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? Regards, John ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 4:41 iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 4:51 ` John Syne 2016-02-22 4:57 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 11:44 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 2016-02-22 8:07 ` iio_simple_dummy_buffer_dma Daniel Baluta 1 sibling, 2 replies; 16+ messages in thread From: John Syne @ 2016-02-22 4:51 UTC (permalink / raw) To: John Syne; +Cc: linux-iio BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. Regards, John > On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: > > Hi, > > I am interested in using the IIO DMA framework and tried to use your dummy driver. > > I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. > > Here is what I have done so far: > > I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 > > As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. > > In linux config, I have enabled the following: > CONFIG_IIO_SIMPLE_DUMMY_EVENTS > CONFIG_IIO_SIMPLE_DUMMY_BUFFER > CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA > CONFIG_IIO_BUFFER_CB > CONFIG_IIO_BUFFER_DMA > CONFIG_IIO_BUFFER_DMAENGINE > CONFIG_IIO_KFIFO_BUF > CONFIG_IIO_TRIGGERED_BUFFER > CONFIG_IIO_TRIGGER > CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 > > When I "modprobe iio_dummy”, the following modules are loaded: > > industrialio > industrialio_buffer_dma > iio_dummy > kfifo_buf > iio_dummy_evgen > > I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: > >> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >> cat name /sys/bus/iio/device/trigger0/name >> sysfstrig1 >> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger > > Now to enable a measurement: > >> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en > > Finally to enable the buffer: > >> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable > > When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: > > WARNING: High-speed mode not enabled > ERROR: Reading from device failed: -110 > Client Exited > > In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? > > > Regards, > John > > > > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 4:51 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 4:57 ` John Syne 2016-02-22 7:34 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 11:44 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 1 sibling, 1 reply; 16+ messages in thread From: John Syne @ 2016-02-22 4:57 UTC (permalink / raw) To: linux-iio Seems like “iio_simple_dummy_configure_buffer_dma" never gets called and that is why the demo doesn’t work. Regards, John > On Feb 21, 2016, at 8:51 PM, John Syne <john3909@gmail.com> wrote: > > BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. > > Regards, > John > > > > >> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >> >> Hi, >> >> I am interested in using the IIO DMA framework and tried to use your dummy driver. >> >> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >> >> Here is what I have done so far: >> >> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >> >> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >> >> In linux config, I have enabled the following: >> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >> CONFIG_IIO_BUFFER_CB >> CONFIG_IIO_BUFFER_DMA >> CONFIG_IIO_BUFFER_DMAENGINE >> CONFIG_IIO_KFIFO_BUF >> CONFIG_IIO_TRIGGERED_BUFFER >> CONFIG_IIO_TRIGGER >> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >> >> When I "modprobe iio_dummy”, the following modules are loaded: >> >> industrialio >> industrialio_buffer_dma >> iio_dummy >> kfifo_buf >> iio_dummy_evgen >> >> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >> >>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>> cat name /sys/bus/iio/device/trigger0/name >>> sysfstrig1 >>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >> >> Now to enable a measurement: >> >>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >> >> Finally to enable the buffer: >> >>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >> >> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >> >> WARNING: High-speed mode not enabled >> ERROR: Reading from device failed: -110 >> Client Exited >> >> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >> >> >> Regards, >> John >> >> >> >> > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 4:57 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 7:34 ` John Syne 2016-02-22 7:43 ` iio_simple_dummy_buffer_dma John Syne 0 siblings, 1 reply; 16+ messages in thread From: John Syne @ 2016-02-22 7:34 UTC (permalink / raw) To: linux-iio Sorry, that should be “iio_simple_dummy_configure_buffer” isn’t called. Regards, John > On Feb 21, 2016, at 8:57 PM, John Syne <john3909@gmail.com> wrote: > > Seems like “iio_simple_dummy_configure_buffer_dma" never gets called and that is why the demo doesn’t work. > > Regards, > John > > > > >> On Feb 21, 2016, at 8:51 PM, John Syne <john3909@gmail.com> wrote: >> >> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >> >> Regards, >> John >> >> >> >> >>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>> >>> Hi, >>> >>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>> >>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>> >>> Here is what I have done so far: >>> >>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>> >>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>> >>> In linux config, I have enabled the following: >>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>> CONFIG_IIO_BUFFER_CB >>> CONFIG_IIO_BUFFER_DMA >>> CONFIG_IIO_BUFFER_DMAENGINE >>> CONFIG_IIO_KFIFO_BUF >>> CONFIG_IIO_TRIGGERED_BUFFER >>> CONFIG_IIO_TRIGGER >>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>> >>> When I "modprobe iio_dummy”, the following modules are loaded: >>> >>> industrialio >>> industrialio_buffer_dma >>> iio_dummy >>> kfifo_buf >>> iio_dummy_evgen >>> >>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>> >>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>> cat name /sys/bus/iio/device/trigger0/name >>>> sysfstrig1 >>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>> >>> Now to enable a measurement: >>> >>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>> >>> Finally to enable the buffer: >>> >>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>> >>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>> >>> WARNING: High-speed mode not enabled >>> ERROR: Reading from device failed: -110 >>> Client Exited >>> >>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>> >>> >>> Regards, >>> John >>> >>> >>> >>> >> > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 7:34 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 7:43 ` John Syne 2016-02-22 7:52 ` iio_simple_dummy_buffer_dma John Syne 0 siblings, 1 reply; 16+ messages in thread From: John Syne @ 2016-02-22 7:43 UTC (permalink / raw) To: linux-iio I apologize for the noise. I was right the first time. It is iio_simple_dummy_buffer_dma.c that isn’t getting called, but I guess that should be done in the iio_simple_dummy.c probe function. Is that correct? Regards, John > On Feb 21, 2016, at 11:34 PM, John Syne <john3909@gmail.com> wrote: > > Sorry, that should be “iio_simple_dummy_configure_buffer” isn’t called. > > Regards, > John > > > > >> On Feb 21, 2016, at 8:57 PM, John Syne <john3909@gmail.com> wrote: >> >> Seems like “iio_simple_dummy_configure_buffer_dma" never gets called and that is why the demo doesn’t work. >> >> Regards, >> John >> >> >> >> >>> On Feb 21, 2016, at 8:51 PM, John Syne <john3909@gmail.com> wrote: >>> >>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>> >>> Regards, >>> John >>> >>> >>> >>> >>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>> >>>> Hi, >>>> >>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>> >>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>> >>>> Here is what I have done so far: >>>> >>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>> >>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>> >>>> In linux config, I have enabled the following: >>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>> CONFIG_IIO_BUFFER_CB >>>> CONFIG_IIO_BUFFER_DMA >>>> CONFIG_IIO_BUFFER_DMAENGINE >>>> CONFIG_IIO_KFIFO_BUF >>>> CONFIG_IIO_TRIGGERED_BUFFER >>>> CONFIG_IIO_TRIGGER >>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>> >>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>> >>>> industrialio >>>> industrialio_buffer_dma >>>> iio_dummy >>>> kfifo_buf >>>> iio_dummy_evgen >>>> >>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>> >>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>> cat name /sys/bus/iio/device/trigger0/name >>>>> sysfstrig1 >>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>> >>>> Now to enable a measurement: >>>> >>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>> >>>> Finally to enable the buffer: >>>> >>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>> >>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>> >>>> WARNING: High-speed mode not enabled >>>> ERROR: Reading from device failed: -110 >>>> Client Exited >>>> >>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>> >>>> >>>> Regards, >>>> John >>>> >>>> >>>> >>>> >>> >> > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 7:43 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 7:52 ` John Syne 0 siblings, 0 replies; 16+ messages in thread From: John Syne @ 2016-02-22 7:52 UTC (permalink / raw) To: linux-iio OK, one last time it is iio_simple_dummy_buffer_dma(struct iio_dev * indio_dev) that isn’t getting called. I see in iio_dummy_probe, it calls iio_simple_dummy_buffer and my guess is I should modify this call to iio_simple_dummy_buffer_dma. Does that should correct? Regards, John > On Feb 21, 2016, at 11:43 PM, John Syne <john3909@gmail.com> wrote: > > I apologize for the noise. I was right the first time. It is iio_simple_dummy_buffer_dma.c that isn’t getting called, but I guess that should be done in the iio_simple_dummy.c probe function. Is that correct? > > Regards, > John > > > > >> On Feb 21, 2016, at 11:34 PM, John Syne <john3909@gmail.com> wrote: >> >> Sorry, that should be “iio_simple_dummy_configure_buffer” isn’t called. >> >> Regards, >> John >> >> >> >> >>> On Feb 21, 2016, at 8:57 PM, John Syne <john3909@gmail.com> wrote: >>> >>> Seems like “iio_simple_dummy_configure_buffer_dma" never gets called and that is why the demo doesn’t work. >>> >>> Regards, >>> John >>> >>> >>> >>> >>>> On Feb 21, 2016, at 8:51 PM, John Syne <john3909@gmail.com> wrote: >>>> >>>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>>> >>>> Regards, >>>> John >>>> >>>> >>>> >>>> >>>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>>> >>>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>>> >>>>> Here is what I have done so far: >>>>> >>>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>>> >>>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>>> >>>>> In linux config, I have enabled the following: >>>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_CB >>>>> CONFIG_IIO_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_DMAENGINE >>>>> CONFIG_IIO_KFIFO_BUF >>>>> CONFIG_IIO_TRIGGERED_BUFFER >>>>> CONFIG_IIO_TRIGGER >>>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>>> >>>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>>> >>>>> industrialio >>>>> industrialio_buffer_dma >>>>> iio_dummy >>>>> kfifo_buf >>>>> iio_dummy_evgen >>>>> >>>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>>> cat name /sys/bus/iio/device/trigger0/name >>>>>> sysfstrig1 >>>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>>> >>>>> Now to enable a measurement: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>>> >>>>> Finally to enable the buffer: >>>>> >>>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>>> >>>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>>> >>>>> WARNING: High-speed mode not enabled >>>>> ERROR: Reading from device failed: -110 >>>>> Client Exited >>>>> >>>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>>> >>>>> >>>>> Regards, >>>>> John >>>>> >>>>> >>>>> >>>>> >>>> >>> >> > ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 4:51 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 4:57 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 11:44 ` Lars-Peter Clausen [not found] ` <5343A235-F2C0-46B0-A0E1-853F3BC5F27D@gmail.com> 2016-02-23 7:24 ` iio_simple_dummy_buffer_dma John Syne 1 sibling, 2 replies; 16+ messages in thread From: Lars-Peter Clausen @ 2016-02-22 11:44 UTC (permalink / raw) To: John Syne; +Cc: linux-iio On 02/22/2016 05:51 AM, John Syne wrote: > BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. > Hi, The patch was dropped for now to avoid conflicts with other ongoing work on the dummy driver. The patch will come back in a slightly overhauled version soonish. As for your problem, make sure that you have the part of the patch which updates things so you can choose in Kconfig whether you want to use the DMA buffer or the KFIFO buffer. And then select the DMA buffer in your .config. - Lars > Regards, > John > > > > >> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >> >> Hi, >> >> I am interested in using the IIO DMA framework and tried to use your dummy driver. >> >> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >> >> Here is what I have done so far: >> >> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >> >> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >> >> In linux config, I have enabled the following: >> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >> CONFIG_IIO_BUFFER_CB >> CONFIG_IIO_BUFFER_DMA >> CONFIG_IIO_BUFFER_DMAENGINE >> CONFIG_IIO_KFIFO_BUF >> CONFIG_IIO_TRIGGERED_BUFFER >> CONFIG_IIO_TRIGGER >> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >> >> When I "modprobe iio_dummy”, the following modules are loaded: >> >> industrialio >> industrialio_buffer_dma >> iio_dummy >> kfifo_buf >> iio_dummy_evgen >> >> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >> >>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>> cat name /sys/bus/iio/device/trigger0/name >>> sysfstrig1 >>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >> >> Now to enable a measurement: >> >>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >> >> Finally to enable the buffer: >> >>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >> >> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >> >> WARNING: High-speed mode not enabled >> ERROR: Reading from device failed: -110 >> Client Exited >> >> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >> >> >> Regards, >> John >> >> >> >> > > -- > 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] 16+ messages in thread
[parent not found: <5343A235-F2C0-46B0-A0E1-853F3BC5F27D@gmail.com>]
* Re: iio_simple_dummy_buffer_dma [not found] ` <5343A235-F2C0-46B0-A0E1-853F3BC5F27D@gmail.com> @ 2016-02-22 17:31 ` Lars-Peter Clausen 2016-02-23 12:58 ` iio_simple_dummy_buffer_dma John Syne 2016-02-23 16:19 ` iio_simple_dummy_buffer_dma John Syne 0 siblings, 2 replies; 16+ messages in thread From: Lars-Peter Clausen @ 2016-02-22 17:31 UTC (permalink / raw) To: John Syne; +Cc: linux-iio@vger.kernel.org On 02/22/2016 06:25 PM, John Syne wrote: > Hi Lars, > > It seems like there are other config selections that are selecting KFIFO so it seems to be enabled always. I can enable DMA buffer, but I will see how to disable KFIFO. When I get this working, should I see a waveform in IIO Oscilloscope? Hi, There is one for the dummy buffer. IIO_SIMPLE_DUMMY_BUFFER_DMA needs to be set and IIO_SIMPLE_DUMMY_BUFFER_KFIFO needs to be unset. - Lars > > Regards, > John > > > > >> On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >> >> On 02/22/2016 05:51 AM, John Syne wrote: >>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>> >> >> Hi, >> >> The patch was dropped for now to avoid conflicts with other ongoing work on >> the dummy driver. The patch will come back in a slightly overhauled version >> soonish. >> >> As for your problem, make sure that you have the part of the patch which >> updates things so you can choose in Kconfig whether you want to use the DMA >> buffer or the KFIFO buffer. And then select the DMA buffer in your .config. >> >> - Lars >> >> >>> Regards, >>> John >>> >>> >>> >>> >>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>> >>>> Hi, >>>> >>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>> >>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>> >>>> Here is what I have done so far: >>>> >>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>> >>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>> >>>> In linux config, I have enabled the following: >>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>> CONFIG_IIO_BUFFER_CB >>>> CONFIG_IIO_BUFFER_DMA >>>> CONFIG_IIO_BUFFER_DMAENGINE >>>> CONFIG_IIO_KFIFO_BUF >>>> CONFIG_IIO_TRIGGERED_BUFFER >>>> CONFIG_IIO_TRIGGER >>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>> >>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>> >>>> industrialio >>>> industrialio_buffer_dma >>>> iio_dummy >>>> kfifo_buf >>>> iio_dummy_evgen >>>> >>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>> >>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>> cat name /sys/bus/iio/device/trigger0/name >>>>> sysfstrig1 >>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>> >>>> Now to enable a measurement: >>>> >>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>> >>>> Finally to enable the buffer: >>>> >>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>> >>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>> >>>> WARNING: High-speed mode not enabled >>>> ERROR: Reading from device failed: -110 >>>> Client Exited >>>> >>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>> >>>> >>>> Regards, >>>> John >>>> >>>> >>>> >>>> >>> >>> -- >>> 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] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 17:31 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen @ 2016-02-23 12:58 ` John Syne 2016-02-23 16:19 ` iio_simple_dummy_buffer_dma John Syne 1 sibling, 0 replies; 16+ messages in thread From: John Syne @ 2016-02-23 12:58 UTC (permalink / raw) To: Lars-Peter Clausen; +Cc: linux-iio@vger.kernel.org Hi Lars, This is set correctly # # IIO dummy driver # CONFIG_IIO_DUMMY_EVGEN=m CONFIG_IIO_SIMPLE_DUMMY=m CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y # CONFIG_IIO_SIMPLE_DUMMY_BUFFER_KFIFO is not set And here is the buffer config for my second e-mail: CONFIG_IIO=m CONFIG_IIO_BUFFER=y CONFIG_IIO_BUFFER_CB=m CONFIG_IIO_BUFFER_DMA=y CONFIG_IIO_KFIFO_BUF=m CONFIG_IIO_TRIGGERED_BUFFER=m CONFIG_IIO_TRIGGER=y CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 Regards, John > On Feb 22, 2016, at 9:31 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: > > On 02/22/2016 06:25 PM, John Syne wrote: >> Hi Lars, >> >> It seems like there are other config selections that are selecting KFIFO so it seems to be enabled always. I can enable DMA buffer, but I will see how to disable KFIFO. When I get this working, should I see a waveform in IIO Oscilloscope? > > Hi, > > There is one for the dummy buffer. > > IIO_SIMPLE_DUMMY_BUFFER_DMA needs to be set and > IIO_SIMPLE_DUMMY_BUFFER_KFIFO needs to be unset. > > - Lars > > >> >> Regards, >> John >> >> >> >> >>> On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >>> >>> On 02/22/2016 05:51 AM, John Syne wrote: >>>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>>> >>> >>> Hi, >>> >>> The patch was dropped for now to avoid conflicts with other ongoing work on >>> the dummy driver. The patch will come back in a slightly overhauled version >>> soonish. >>> >>> As for your problem, make sure that you have the part of the patch which >>> updates things so you can choose in Kconfig whether you want to use the DMA >>> buffer or the KFIFO buffer. And then select the DMA buffer in your .config. >>> >>> - Lars >>> >>> >>>> Regards, >>>> John >>>> >>>> >>>> >>>> >>>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>>> >>>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>>> >>>>> Here is what I have done so far: >>>>> >>>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>>> >>>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>>> >>>>> In linux config, I have enabled the following: >>>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_CB >>>>> CONFIG_IIO_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_DMAENGINE >>>>> CONFIG_IIO_KFIFO_BUF >>>>> CONFIG_IIO_TRIGGERED_BUFFER >>>>> CONFIG_IIO_TRIGGER >>>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>>> >>>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>>> >>>>> industrialio >>>>> industrialio_buffer_dma >>>>> iio_dummy >>>>> kfifo_buf >>>>> iio_dummy_evgen >>>>> >>>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>>> cat name /sys/bus/iio/device/trigger0/name >>>>>> sysfstrig1 >>>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>>> >>>>> Now to enable a measurement: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>>> >>>>> Finally to enable the buffer: >>>>> >>>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>>> >>>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>>> >>>>> WARNING: High-speed mode not enabled >>>>> ERROR: Reading from device failed: -110 >>>>> Client Exited >>>>> >>>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>>> >>>>> >>>>> Regards, >>>>> John >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> 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] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 17:31 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 2016-02-23 12:58 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-23 16:19 ` John Syne 2016-02-23 16:33 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 1 sibling, 1 reply; 16+ messages in thread From: John Syne @ 2016-02-23 16:19 UTC (permalink / raw) To: Lars-Peter Clausen; +Cc: linux-iio@vger.kernel.org Oops, I didn’t copy the complete config: CONFIG_IIO_DUMMY_EVGEN=m CONFIG_IIO_SIMPLE_DUMMY=m CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y # CONFIG_IIO_SIMPLE_DUMMY_BUFFER_KFIFO is not set CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA=y Regards, John > On Feb 22, 2016, at 9:31 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: > > On 02/22/2016 06:25 PM, John Syne wrote: >> Hi Lars, >> >> It seems like there are other config selections that are selecting KFIFO so it seems to be enabled always. I can enable DMA buffer, but I will see how to disable KFIFO. When I get this working, should I see a waveform in IIO Oscilloscope? > > Hi, > > There is one for the dummy buffer. > > IIO_SIMPLE_DUMMY_BUFFER_DMA needs to be set and > IIO_SIMPLE_DUMMY_BUFFER_KFIFO needs to be unset. > > - Lars > > >> >> Regards, >> John >> >> >> >> >>> On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >>> >>> On 02/22/2016 05:51 AM, John Syne wrote: >>>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>>> >>> >>> Hi, >>> >>> The patch was dropped for now to avoid conflicts with other ongoing work on >>> the dummy driver. The patch will come back in a slightly overhauled version >>> soonish. >>> >>> As for your problem, make sure that you have the part of the patch which >>> updates things so you can choose in Kconfig whether you want to use the DMA >>> buffer or the KFIFO buffer. And then select the DMA buffer in your .config. >>> >>> - Lars >>> >>> >>>> Regards, >>>> John >>>> >>>> >>>> >>>> >>>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>>> >>>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>>> >>>>> Here is what I have done so far: >>>>> >>>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>>> >>>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>>> >>>>> In linux config, I have enabled the following: >>>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_CB >>>>> CONFIG_IIO_BUFFER_DMA >>>>> CONFIG_IIO_BUFFER_DMAENGINE >>>>> CONFIG_IIO_KFIFO_BUF >>>>> CONFIG_IIO_TRIGGERED_BUFFER >>>>> CONFIG_IIO_TRIGGER >>>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>>> >>>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>>> >>>>> industrialio >>>>> industrialio_buffer_dma >>>>> iio_dummy >>>>> kfifo_buf >>>>> iio_dummy_evgen >>>>> >>>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>>> cat name /sys/bus/iio/device/trigger0/name >>>>>> sysfstrig1 >>>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>>> >>>>> Now to enable a measurement: >>>>> >>>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>>> >>>>> Finally to enable the buffer: >>>>> >>>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>>> >>>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>>> >>>>> WARNING: High-speed mode not enabled >>>>> ERROR: Reading from device failed: -110 >>>>> Client Exited >>>>> >>>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>>> >>>>> >>>>> Regards, >>>>> John >>>>> >>>>> >>>>> >>>>> >>>> >>>> -- >>>> 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] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-23 16:19 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-23 16:33 ` Lars-Peter Clausen 2016-03-30 6:08 ` iio_simple_dummy_buffer_dma John Syne 0 siblings, 1 reply; 16+ messages in thread From: Lars-Peter Clausen @ 2016-02-23 16:33 UTC (permalink / raw) To: John Syne; +Cc: linux-iio@vger.kernel.org hm, try to disable events, I think it breaks something On 02/23/2016 05:19 PM, John Syne wrote: > Oops, I didn’t copy the complete config: > > CONFIG_IIO_DUMMY_EVGEN=m > CONFIG_IIO_SIMPLE_DUMMY=m > CONFIG_IIO_SIMPLE_DUMMY_EVENTS=y > CONFIG_IIO_SIMPLE_DUMMY_BUFFER=y > # CONFIG_IIO_SIMPLE_DUMMY_BUFFER_KFIFO is not set > CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA=y > > Regards, > John > > > > >> On Feb 22, 2016, at 9:31 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >> >> On 02/22/2016 06:25 PM, John Syne wrote: >>> Hi Lars, >>> >>> It seems like there are other config selections that are selecting KFIFO so it seems to be enabled always. I can enable DMA buffer, but I will see how to disable KFIFO. When I get this working, should I see a waveform in IIO Oscilloscope? >> >> Hi, >> >> There is one for the dummy buffer. >> >> IIO_SIMPLE_DUMMY_BUFFER_DMA needs to be set and >> IIO_SIMPLE_DUMMY_BUFFER_KFIFO needs to be unset. >> >> - Lars >> >> >>> >>> Regards, >>> John >>> >>> >>> >>> >>>> On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >>>> >>>> On 02/22/2016 05:51 AM, John Syne wrote: >>>>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>>>> >>>> >>>> Hi, >>>> >>>> The patch was dropped for now to avoid conflicts with other ongoing work on >>>> the dummy driver. The patch will come back in a slightly overhauled version >>>> soonish. >>>> >>>> As for your problem, make sure that you have the part of the patch which >>>> updates things so you can choose in Kconfig whether you want to use the DMA >>>> buffer or the KFIFO buffer. And then select the DMA buffer in your .config. >>>> >>>> - Lars >>>> >>>> >>>>> Regards, >>>>> John >>>>> >>>>> >>>>> >>>>> >>>>>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>>>>> >>>>>> Hi, >>>>>> >>>>>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>>>>> >>>>>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>>>>> >>>>>> Here is what I have done so far: >>>>>> >>>>>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>>>>> >>>>>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>>>>> >>>>>> In linux config, I have enabled the following: >>>>>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>>>>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>>>>> CONFIG_IIO_BUFFER_CB >>>>>> CONFIG_IIO_BUFFER_DMA >>>>>> CONFIG_IIO_BUFFER_DMAENGINE >>>>>> CONFIG_IIO_KFIFO_BUF >>>>>> CONFIG_IIO_TRIGGERED_BUFFER >>>>>> CONFIG_IIO_TRIGGER >>>>>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>>>>> >>>>>> When I "modprobe iio_dummy”, the following modules are loaded: >>>>>> >>>>>> industrialio >>>>>> industrialio_buffer_dma >>>>>> iio_dummy >>>>>> kfifo_buf >>>>>> iio_dummy_evgen >>>>>> >>>>>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>>>>> >>>>>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>>>>> cat name /sys/bus/iio/device/trigger0/name >>>>>>> sysfstrig1 >>>>>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>>>>> >>>>>> Now to enable a measurement: >>>>>> >>>>>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>>>>> >>>>>> Finally to enable the buffer: >>>>>> >>>>>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>>>>> >>>>>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>>>>> >>>>>> WARNING: High-speed mode not enabled >>>>>> ERROR: Reading from device failed: -110 >>>>>> Client Exited >>>>>> >>>>>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>>>>> >>>>>> >>>>>> Regards, >>>>>> John >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> 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 >>> >> > > -- > 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] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-23 16:33 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen @ 2016-03-30 6:08 ` John Syne 2016-03-30 15:26 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 0 siblings, 1 reply; 16+ messages in thread From: John Syne @ 2016-03-30 6:08 UTC (permalink / raw) To: Lars-Peter Clausen; +Cc: linux-iio@vger.kernel.org Hi Lars, I did manage to get the dummy example with iio_simple_dummy_buffer_dma working. It turns out I had an issue in my dummy Kconfig when I added back the iio_simple_dummy_buffer_dma support. Now I can run iiod and connect iioScope and see sine, square, etc waveforms. I can also use generic_buffer and that works also. Now I’m trying to figure out how to add my own hardware using part 2 of iio_simple_dummy_buffer_dma as a template. I was wondering when you expect to release the “overhauled version”. Has anyone used the IIO-DMA framework in a real driver? In your IIO-DMA patch notes, you said "Andrey Yurovsky has also successfully added DMA buffer support to the existing AT91 ADC”, but I have looked at this driver and I don’t see any IIO-DMA framework added. Also, have you made any progress on adding the high speed interface via mmap or vmsplice. Thank you and Jonathan for all the work you guys do on IIO. The IIO framework is a really helpful for what I need, especially with the DMA support. Regards, John > On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: > > On 02/22/2016 05:51 AM, John Syne wrote: >> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >> > > Hi, > > The patch was dropped for now to avoid conflicts with other ongoing work on > the dummy driver. The patch will come back in a slightly overhauled version > soonish. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-03-30 6:08 ` iio_simple_dummy_buffer_dma John Syne @ 2016-03-30 15:26 ` Lars-Peter Clausen 0 siblings, 0 replies; 16+ messages in thread From: Lars-Peter Clausen @ 2016-03-30 15:26 UTC (permalink / raw) To: John Syne; +Cc: linux-iio@vger.kernel.org On 03/30/2016 08:08 AM, John Syne wrote: > Hi Lars, > > I did manage to get the dummy example with iio_simple_dummy_buffer_dma working. It turns out I had an issue in my dummy Kconfig when I added back the iio_simple_dummy_buffer_dma support. Now I can run iiod and connect iioScope and see sine, square, etc waveforms. I can also use generic_buffer and that works also. Great! > > Now I’m trying to figure out how to add my own hardware using part 2 of iio_simple_dummy_buffer_dma as a template. I was wondering when you expect to release the “overhauled version”. Soon... Sorry I don't have a estimated date, at the moment this is not top priority. I'll get to it as soon as I'm not completely > > Has anyone used the IIO-DMA framework in a real driver? In your IIO-DMA patch notes, you said "Andrey Yurovsky has also successfully added DMA buffer support to the existing AT91 ADC”, but I have looked at this driver and I don’t see any IIO-DMA framework added. The iio-buffer-dmaengine driver is in a sense a real driver, but uses the DMAengine framework to execute the DMA transfers. But you can easily replace the calls to the DMAengine framework with direct access to the DMA hardware. The AT91 support never made it upstream and Andrey's e-mail bounces these days, no idea what happened to the code. > > Also, have you made any progress on adding the high speed interface via mmap or vmsplice. Nope, not yet. Again, I can't say when I'll get to this. > > Thank you and Jonathan for all the work you guys do on IIO. The IIO framework is a really helpful for what I need, especially with the DMA support. > > > Regards, > John > > >> On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: >> >> On 02/22/2016 05:51 AM, John Syne wrote: >>> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >>> >> Hi, >> >> The patch was dropped for now to avoid conflicts with other ongoing work on >> the dummy driver. The patch will come back in a slightly overhauled version >> soonish. ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 11:44 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen [not found] ` <5343A235-F2C0-46B0-A0E1-853F3BC5F27D@gmail.com> @ 2016-02-23 7:24 ` John Syne 1 sibling, 0 replies; 16+ messages in thread From: John Syne @ 2016-02-23 7:24 UTC (permalink / raw) To: Lars-Peter Clausen; +Cc: linux-iio Hi Lars, I patched my kernel with your V1 patch and then applied any fixes from your V2 and V3 patch without removing iio_simple_dummy_buffer_dma.c and associated files. In kconfig I select DMA and KFIFO is not selected. I now get this strange error, but since these are defined in iio_simple_dummy_buffer_dma.c and I see it getting built the makefile shows it as a dependency for iio_dummy.o, this makes no sense to me: + Detected build host [Ubuntu 14.04.4 LTS] + host: [x86_64] + git HEAD commit: [8afc46c38d37aff4fecaefa385c647822251dd25] ----------------------------- scripts/gcc: Using: arm-linux-gnueabihf-gcc (Linaro GCC 4.9-2015.05) 4.9.3 20150413 (prerelease) Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ----------------------------- CROSS_COMPILE=/home/john/Download/GIT/ti-linux-kernel-dev/dl/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- scripts/kconfig/mconf Kconfig *** End of the configuration. *** Execute 'make' to start the build or try 'make help'. ‘.config’ -> ‘/home/john/Download/GIT/ti-linux-kernel-dev/patches/defconfig’ ----------------------------- make -j8 ARCH=arm LOCALVERSION=-ti-r33 CROSS_COMPILE="/home/john/Download/GIT/ti-linux-kernel-dev/dl/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-" zImage modules ----------------------------- CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CHK include/generated/bounds.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h DTC drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb DTB drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S AS drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.o LD drivers/gpu/drm/tilcdc/built-in.o rm drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb drivers/gpu/drm/tilcdc/tilcdc_slave_compat.dtb.S CC drivers/iio/buffer/industrialio-buffer-dma.o LD drivers/iio/dummy/built-in.o CC [M] drivers/iio/dummy/iio_simple_dummy.o CC [M] drivers/iio/buffer/industrialio-buffer-cb.o CC [M] drivers/iio/dummy/iio_simple_dummy_events.o CC [M] drivers/iio/dummy/iio_simple_dummy_buffer_dma.o CC [M] drivers/iio/buffer/industrialio-triggered-buffer.o CC [M] drivers/iio/buffer/kfifo_buf.o CC [M] drivers/iio/dummy/iio_dummy_evgen.o LD drivers/iio/buffer/built-in.o LD [M] drivers/iio/dummy/iio_dummy.o LD drivers/iio/built-in.o Kernel: arch/arm/boot/Image is ready Building modules, stage 2. Kernel: arch/arm/boot/zImage is ready MODPOST 1956 modules ERROR: "iio_dma_buffer_enable" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_init" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_disable" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_set_bytes_per_datum" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_set_length" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_release" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_request_update" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_block_done" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_block_list_abort" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_read" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_exit" [drivers/iio/dummy/iio_dummy.ko] undefined! ERROR: "iio_dma_buffer_data_available" [drivers/iio/dummy/iio_dummy.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 Regards, John > On Feb 22, 2016, at 3:44 AM, Lars-Peter Clausen <lars@metafoo.de> wrote: > > On 02/22/2016 05:51 AM, John Syne wrote: >> BTW, I seem to remember that Lars removed iio_simple_dummy_buffer_dma.c in his V3 patch so this won’t be in the IIO repo, but I don’t know how to test the IIO DMA framework without this file. >> > > Hi, > > The patch was dropped for now to avoid conflicts with other ongoing work on > the dummy driver. The patch will come back in a slightly overhauled version > soonish. > > As for your problem, make sure that you have the part of the patch which > updates things so you can choose in Kconfig whether you want to use the DMA > buffer or the KFIFO buffer. And then select the DMA buffer in your .config. > > - Lars > > >> Regards, >> John >> >> >> >> >>> On Feb 21, 2016, at 8:41 PM, John Syne <john3909@gmail.com> wrote: >>> >>> Hi, >>> >>> I am interested in using the IIO DMA framework and tried to use your dummy driver. >>> >>> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >>> >>> Here is what I have done so far: >>> >>> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >>> >>> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >>> >>> In linux config, I have enabled the following: >>> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >>> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >>> CONFIG_IIO_BUFFER_CB >>> CONFIG_IIO_BUFFER_DMA >>> CONFIG_IIO_BUFFER_DMAENGINE >>> CONFIG_IIO_KFIFO_BUF >>> CONFIG_IIO_TRIGGERED_BUFFER >>> CONFIG_IIO_TRIGGER >>> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >>> >>> When I "modprobe iio_dummy”, the following modules are loaded: >>> >>> industrialio >>> industrialio_buffer_dma >>> iio_dummy >>> kfifo_buf >>> iio_dummy_evgen >>> >>> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >>> >>>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>>> cat name /sys/bus/iio/device/trigger0/name >>>> sysfstrig1 >>>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >>> >>> Now to enable a measurement: >>> >>>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >>> >>> Finally to enable the buffer: >>> >>>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable >>> >>> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >>> >>> WARNING: High-speed mode not enabled >>> ERROR: Reading from device failed: -110 >>> Client Exited >>> >>> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? >>> >>> >>> Regards, >>> John >>> >>> >>> >>> >> >> -- >> 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] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 4:41 iio_simple_dummy_buffer_dma John Syne 2016-02-22 4:51 ` iio_simple_dummy_buffer_dma John Syne @ 2016-02-22 8:07 ` Daniel Baluta 2016-02-22 8:14 ` iio_simple_dummy_buffer_dma John Syne 1 sibling, 1 reply; 16+ messages in thread From: Daniel Baluta @ 2016-02-22 8:07 UTC (permalink / raw) To: John Syne; +Cc: linux-iio@vger.kernel.org On Mon, Feb 22, 2016 at 6:41 AM, John Syne <john3909@gmail.com> wrote: > Hi, > > I am interested in using the IIO DMA framework and tried to use your dummy driver. > > I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. > > Here is what I have done so far: > > I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 > > As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. > > In linux config, I have enabled the following: > CONFIG_IIO_SIMPLE_DUMMY_EVENTS > CONFIG_IIO_SIMPLE_DUMMY_BUFFER > CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA > CONFIG_IIO_BUFFER_CB > CONFIG_IIO_BUFFER_DMA > CONFIG_IIO_BUFFER_DMAENGINE > CONFIG_IIO_KFIFO_BUF > CONFIG_IIO_TRIGGERED_BUFFER > CONFIG_IIO_TRIGGER > CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 > > When I "modprobe iio_dummy”, the following modules are loaded: > > industrialio > industrialio_buffer_dma > iio_dummy > kfifo_buf > iio_dummy_evgen > > I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: > >> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >> cat name /sys/bus/iio/device/trigger0/name >> sysfstrig1 >> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger > > Now to enable a measurement: > >> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en > > Finally to enable the buffer: > >> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable Nit: echo 1 > /sys/bus/iio/device/iio:device0/buffer/enable > > When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: > > WARNING: High-speed mode not enabled > ERROR: Reading from device failed: -110 > Client Exited > > In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? ^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: iio_simple_dummy_buffer_dma 2016-02-22 8:07 ` iio_simple_dummy_buffer_dma Daniel Baluta @ 2016-02-22 8:14 ` John Syne 0 siblings, 0 replies; 16+ messages in thread From: John Syne @ 2016-02-22 8:14 UTC (permalink / raw) To: Daniel Baluta; +Cc: linux-iio@vger.kernel.org Hi Daniel, Yep, that was a typo in my e-mail, but I did this correctly when entering this command. Thank you for pointing that out. Regards, John > On Feb 22, 2016, at 12:07 AM, Daniel Baluta <daniel.baluta@gmail.com> wrote: > > On Mon, Feb 22, 2016 at 6:41 AM, John Syne <john3909@gmail.com> wrote: >> Hi, >> >> I am interested in using the IIO DMA framework and tried to use your dummy driver. >> >> I attempting to get the iio_dummy working with dma and seem to be having sum difficulty. >> >> Here is what I have done so far: >> >> I’m working on a BeagleBoneBlack running a 4.1 Linux Kernel. I have back ported the latest IIO code from git://git.kernel.org/pub/scm/linux/kernel/git/jic23 >> >> As a test I tried ti_am335x_adc.ko and enabled in_voltage0_en and then enabled the buffer. Reading from /dev/iio:device0 provided the waveform of the signal generator I had connected to ADC0 on the board. I was even able to run iiod and then connected IIO Oscilloscope which showed the same waveform. I did get a message WARNING: High-speed mode not enabled, but I guess there is no mmap in the driver and that is probably the issue. >> >> In linux config, I have enabled the following: >> CONFIG_IIO_SIMPLE_DUMMY_EVENTS >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER >> CONFIG_IIO_SIMPLE_DUMMY_BUFFER_DMA >> CONFIG_IIO_BUFFER_CB >> CONFIG_IIO_BUFFER_DMA >> CONFIG_IIO_BUFFER_DMAENGINE >> CONFIG_IIO_KFIFO_BUF >> CONFIG_IIO_TRIGGERED_BUFFER >> CONFIG_IIO_TRIGGER >> CONFIG_IIO_CONSUMERS_PER_TRIGGER 2 >> >> When I "modprobe iio_dummy”, the following modules are loaded: >> >> industrialio >> industrialio_buffer_dma >> iio_dummy >> kfifo_buf >> iio_dummy_evgen >> >> I then modprobe iio_trig_sysfs which gives me /sys/bus/iio/device/iio_sysfs_trigger. To create a trigger I did: >> >>> echo 1 > /sys/bus/iio/device/iio_sysfs_trigger/add_trigger >>> cat name /sys/bus/iio/device/trigger0/name >>> sysfstrig1 >>> echo sysfstrig1 > /sys/bus/iio/device/iio:device0/trigger/current_trigger >> >> Now to enable a measurement: >> >>> echo 1 > /sys/bus/iio/device/iio:device0/scan_elements/in_voltage0_en >> >> Finally to enable the buffer: >> >>> echo 1 /sys/bus/iio/device/iio:device0/buffer/enable > > Nit: echo 1 > /sys/bus/iio/device/iio:device0/buffer/enable > >> >> When I read "/dev/iio:device0" I get nothing. Connecting IIO Oscilloscope I get the following error message: >> >> WARNING: High-speed mode not enabled >> ERROR: Reading from device failed: -110 >> Client Exited >> >> In iio_simple_dummy_buffer_dma.c, I see iio_dummy_dma_source which generates a rect, sine, tri and saw waveforms. Not sure what I need to do to get these waveforms to generate. Is this demo functional? ^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2016-03-30 15:45 UTC | newest] Thread overview: 16+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-02-22 4:41 iio_simple_dummy_buffer_dma John Syne 2016-02-22 4:51 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 4:57 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 7:34 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 7:43 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 7:52 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 11:44 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen [not found] ` <5343A235-F2C0-46B0-A0E1-853F3BC5F27D@gmail.com> 2016-02-22 17:31 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 2016-02-23 12:58 ` iio_simple_dummy_buffer_dma John Syne 2016-02-23 16:19 ` iio_simple_dummy_buffer_dma John Syne 2016-02-23 16:33 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 2016-03-30 6:08 ` iio_simple_dummy_buffer_dma John Syne 2016-03-30 15:26 ` iio_simple_dummy_buffer_dma Lars-Peter Clausen 2016-02-23 7:24 ` iio_simple_dummy_buffer_dma John Syne 2016-02-22 8:07 ` iio_simple_dummy_buffer_dma Daniel Baluta 2016-02-22 8:14 ` iio_simple_dummy_buffer_dma John Syne
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).