From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Issue with file transfers to a mass storage device on SMP system
Date: Tue, 27 Jul 2010 15:21:13 +0100 [thread overview]
Message-ID: <20100727142113.GE11468@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <EAF47CD23C76F840A9E7FCE10091EFAB02C62EF90B@dbde02.ent.ti.com>
On Tue, Jul 27, 2010 at 07:44:20PM +0530, Shilimkar, Santosh wrote:
> OMAP doesn't override because the default definition is good enough now.
Ah, good to know.
> Shouldn't below work ?
> #elif __LINUX_ARM_ARCH__ >= 7 || defined(CONFIG_SMP)
> #define mb() do { dsb(); outer_sync(); } while (0)
> #define rmb() dmb()
> #define wmb() mb()
Yes, that should get it out of the CPU and caches, and onto the bus.
However, I need to check up exactly what a write to the L2x0 SYNC
register gives us...
> > As the OMAP mandatory barrier implementation isn't in mainline, I can't
> > comment on that. However, I feel certain that this is where the problem
> > is.
>
> Do you think with above setting it should be still a problem ? I mean
> with " CONFIG_ARCH_HAS_BARRIERS" not enabled
Well, the question is whether getting it out of the outer cache (and
performing an effective memory barrier to the outer cache) is sufficient
for the DMA agent to see the data.
Could the data be sitting somewhere in the interconnect between the
CPU pushing it out of the outer cache and the DMA agent trying to read
from memory?
next prev parent reply other threads:[~2010-07-27 14:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 6:34 Issue with file transfers to a mass storage device on SMP system Maulik
2010-07-27 7:05 ` Ming Lei
2010-07-27 9:38 ` Shilimkar, Santosh
2010-07-27 10:01 ` Russell King - ARM Linux
2010-07-27 10:19 ` Shilimkar, Santosh
2010-07-27 10:41 ` Russell King - ARM Linux
2010-07-27 12:00 ` Shilimkar, Santosh
2010-07-27 13:45 ` Shilimkar, Santosh
2010-07-27 13:59 ` Russell King - ARM Linux
2010-07-27 14:14 ` Shilimkar, Santosh
2010-07-27 14:21 ` Russell King - ARM Linux [this message]
2010-07-27 14:29 ` Shilimkar, Santosh
2010-07-27 16:07 ` Russell King - ARM Linux
2010-07-28 5:15 ` Shilimkar, Santosh
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=20100727142113.GE11468@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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