public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
From: <Eugen.Hristev@microchip.com>
To: <jic23@kernel.org>, <linux-iio@vger.kernel.org>
Cc: <alexandru.ardelean@analog.com>
Subject: Requirement for at91-sama5d2_adc timestamp buffer
Date: Fri, 30 Oct 2020 12:26:11 +0000	[thread overview]
Message-ID: <8825686e-1fc4-65fd-e482-f25d46288ff7@microchip.com> (raw)

Hello Jonathan,

I found an issue with at91-sama5d2_adc driver, namely, when using DMA 
and timestamp in the same time, the hardware provides the sample in the 
fashion (2 bytes per channel) * (number of channels) - as copied by the 
DMA master to memory.
I compute a software timestamp , and then push to buffers with timestamp.
However your push code will try to write this timestamp inside my buffer 
! and overwrite my samples... I have multiple samples in the buffer 
(watermark number) and there is no space between them because the 
hardware copies the conversion data directly in this buffer.

Do you have any suggestion on how to solve this, except 1) giving up the 
timestamp in this mode or 2) copy to another buffer with more space for 
timestamp storage ?

Thanks,
Eugen

             reply	other threads:[~2020-10-30 12:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-30 12:26 Eugen.Hristev [this message]
2020-11-01  9:28 ` Requirement for at91-sama5d2_adc timestamp buffer Alexandru Ardelean
2020-11-01 20:21   ` Jonathan Cameron
2020-11-02 13:29     ` Eugen.Hristev
2020-11-02 17:28       ` Jonathan Cameron

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=8825686e-1fc4-65fd-e482-f25d46288ff7@microchip.com \
    --to=eugen.hristev@microchip.com \
    --cc=alexandru.ardelean@analog.com \
    --cc=jic23@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox