From: Matthias Meier <matthias.j.meier@gmx.net>
To: Lars-Peter Clausen <lars@metafoo.de>, linux-iio@vger.kernel.org
Subject: Re: iio_interrupt_trigger
Date: Tue, 20 Oct 2015 19:05:43 +0200 [thread overview]
Message-ID: <56267467.10605@gmx.net> (raw)
In-Reply-To: <5624BB59.20003@metafoo.de>
Just for information...
I estimated the max ISR rate and sampling accuracy when using iio
buffering triggered by a hardware PWM timer on a IMX6 dl board:
Up to a ISR rate of ~5kHz the accuracy of the sampling time is about
+/-25us (measured over several seconds).
Above 10kHz, interrupts are lost (but CPU load still <25%).
Test conditions:
For this test I modified 'generic_buffer' so I could estimate the
accuracy of the sampling point (by calculating min/max/mean of the time
difference.
The kernel was 4.2.1 with CONFIG_PREEMPT=y
The ADC device I used is a AD7476 connected via SPI bus.
The scaling_governor was set to performance.
No additional load (buildroot rfs).
The results are about same when using a 4.1 TT-patched kernel with
CONFIG_PREEMPT_RT_FULL=y (without special isr priority).
Conclusion: accurate high(er) speed sampling seems not to be possible
this way (without dma buffered continuous sampling)
-- Matthias
next prev parent reply other threads:[~2015-10-20 17:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 12:53 iio_interrupt_trigger Matthias Meier
2015-10-19 9:43 ` iio_interrupt_trigger Lars-Peter Clausen
2015-10-20 16:00 ` iio_interrupt_trigger Matthias Meier
2015-10-20 17:05 ` Matthias Meier [this message]
2015-10-20 17:31 ` iio_interrupt_trigger Lars-Peter Clausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56267467.10605@gmx.net \
--to=matthias.j.meier@gmx.net \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.