From: Arvid Brodin <arvid.brodin@enea.com>
To: <linux-kernel@vger.kernel.org>
Subject: dma_unmap_single() lacking cache sync on some archs?
Date: Thu, 22 Sep 2011 02:18:28 +0200 [thread overview]
Message-ID: <4E7A7ED4.7080805@enea.com> (raw)
Hi,
I would expect cache synchronization for DMA_TO_DEVICE and DMA_BIDIRECTIONAL
when dma_map_single() is called, and for DMA_FROM_DEVICE and DMA_BIDIRECTIONAL
when dma_unmap_single() is called.
However, on some architechtures (at least avr32, blackfin, ...), cache
synchronization only happens when dma_map_single() is called (and then
irrespective of DMA direction). dma_unmap_single() is a no-op for these archs.
Isn't this a bug?
(Please CC me in responses.)
--
Arvid Brodin
Enea Services Stockholm AB
next reply other threads:[~2011-09-22 0:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 0:18 Arvid Brodin [this message]
2011-09-22 22:06 ` dma_unmap_single() lacking cache sync on some archs? Guennadi Liakhovetski
-- strict thread matches above, loose matches on Subject: below --
2011-09-27 12:13 Arvid Brodin
2011-09-27 12:13 ` Arvid Brodin
2011-09-27 16:55 ` Håvard Skinnemoen
2011-09-27 18:27 ` Arnd Bergmann
2011-09-29 18:56 ` Arvid Brodin
2011-09-29 18:56 ` Arvid Brodin
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=4E7A7ED4.7080805@enea.com \
--to=arvid.brodin@enea.com \
--cc=linux-kernel@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.