* DMA safe buffers for I2C.
@ 2017-04-02 10:12 Jonathan Cameron
2017-06-21 7:15 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Cameron @ 2017-04-02 10:12 UTC (permalink / raw)
To: Wolfram Sang, linux-iio@vger.kernel.org
Hi Wolfram,
Just looking to get up to date info on whether we need to be careful
with cachelines on buffers passed to i2c function calls or not.
i.e. do they need to DMA safe buffers.
I have it in the back of my head somewhere that i2c insisted that
if necessary this was sorted by the i2c master drivers, but I
suspect I am completely wrong.
There are 'lots' of drivers out there that aren't taking care of
this. We have traditionally been much better with SPI where there
were explicit warnings about this.
Anyhow, could you clarify the situation? Even if we audited existing
master drivers to check we were fine, if it's not coming from you
the chances are another one would sneak in sometime in the future
which does need dma safe buffers.
Certainly a superficial glance suggests that the at91 i2c master
is mapping these directly as DMA buffers.
Anyhow, what I'm really looking for is a quick email that I can
point people at in future ;) or a reference to one somewhere else.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: DMA safe buffers for I2C.
2017-04-02 10:12 DMA safe buffers for I2C Jonathan Cameron
@ 2017-06-21 7:15 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2017-06-21 7:15 UTC (permalink / raw)
To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
Hi Jonathan,
> Just looking to get up to date info on whether we need to be careful
> with cachelines on buffers passed to i2c function calls or not.
> i.e. do they need to DMA safe buffers.
I did document this recently and forgot to add you to CC. Please check
https://lkml.org/lkml/2017/6/6/189 (or I can bounce you the mails if you
are interested) and kindly let me know what you think.
Kind regards,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-06-21 7:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-02 10:12 DMA safe buffers for I2C Jonathan Cameron
2017-06-21 7:15 ` Wolfram Sang
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).