From: gdavis@mvista.com (George G. Davis)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] ARM: Implement read/write for ownership in the ARMv6 DMA cache ops
Date: Thu, 6 May 2010 11:57:38 -0400 [thread overview]
Message-ID: <20100506155738.GC18436@mvista.com> (raw)
In-Reply-To: <1273156832.2094.21.camel@e102109-lin.cambridge.arm.com>
On Thu, May 06, 2010 at 03:40:32PM +0100, Catalin Marinas wrote:
> On Wed, 2010-05-05 at 14:26 +0100, George G. Davis wrote:
> > Definitely need this for stable DMA on ARM11 MPCore.
> >
> > On Tue, May 04, 2010 at 05:44:26PM +0100, Catalin Marinas wrote:
> > > The Snoop Control Unit on the ARM11MPCore hardware does not detect the
> > > cache operations and the dma_cache_maint*() functions may leave stale
> > > cache entries on other CPUs. The solution implemented in this patch
> > > performs a Read or Write For Ownership in the ARMv6 DMA cache
> > > maintenance functions. These LDR/STR instructions change the cache line
> > > state to shared or exclusive so that the cache maintenance operation has
> > > the desired effect.
> > >
> > > Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
> >
> > Tested-by: George G. Davis <gdavis@mvista.com>
>
> Thanks.
>
> > FWIW, lack of ARM11 MPCore DMA cache coherency has been a problem for
> > well over two years now and it would be good if we can finally get this
> > fixed in mainline. Without this applied on current, I observe various
> > oopses and/or filesystem errors which are resolved by this patch.
>
> What platform was this tested on?
Tested on the EMMA Car Series EC-4260 board [1] and (EC-4270) NE1BOARD [2]
using ext4 root filesystem over USB Mass Storage and SD Card. Here is
the ID Code Register, same for both systems (I've given up trying to make
sense as to whether this is r1p0, r0p4 or other : ):
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=08c5387f
> > If there is some other testing that I can do to help getting this
> > or some other variation accepted for mainline, let me know.
>
> The more platforms tested, the better. Anyway, I don't think we have
> much choice in how this workaround is implemented, unless the hardware
> supports FIQs.
FWIW, I've also tried testing on a RealView EB ARM11 MPCore [3] but
unfortunately it has a rather old core (r0p0/[410fb020]) which no
longer boots on linux-2.6.34-rc (but oddly still works ok on
v2.6.33).
Thanks!
--
Regards,
George
[1] http://www.arm.linux.org.uk/developer/machines/list.php?id=2639
[2] http://www.arm.linux.org.uk/developer/machines/list.php?id=1655
[3] http://www.arm.linux.org.uk/developer/machines/list.php?id=827
>
> --
> Catalin
next prev parent reply other threads:[~2010-05-06 15:57 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 16:44 [PATCH 0/8] Various patches for comments and upstream Catalin Marinas
2010-05-04 16:44 ` [PATCH 1/8] ARM: Improve the L2 cache performance when PL310 is used Catalin Marinas
2010-05-04 17:02 ` Jason McMullan
2010-05-05 16:07 ` Catalin Marinas
2010-05-04 16:44 ` [PATCH 2/8] ARM: Implement read/write for ownership in the ARMv6 DMA cache ops Catalin Marinas
2010-05-04 17:04 ` Jason McMullan
2010-05-05 16:23 ` Catalin Marinas
2010-05-05 13:26 ` George G. Davis
2010-05-06 14:40 ` Catalin Marinas
2010-05-06 15:57 ` George G. Davis [this message]
2010-05-12 12:51 ` Ronen Shitrit
2010-05-12 13:55 ` Catalin Marinas
2010-05-12 15:03 ` Ronen Shitrit
2010-05-12 18:48 ` Russell King - ARM Linux
2010-05-12 18:59 ` Russell King - ARM Linux
2010-05-12 20:00 ` Ronen Shitrit
2010-05-12 20:04 ` Russell King - ARM Linux
2010-05-12 20:19 ` Ronen Shitrit
2010-05-12 21:21 ` [PATCH 2/8] ARM: Implement read/write for ownership in theARMv6 " Catalin Marinas
2010-05-13 5:27 ` Ronen Shitrit
2010-05-13 8:26 ` Catalin Marinas
2010-05-13 13:54 ` George G. Davis
2010-05-13 14:15 ` Catalin Marinas
2010-05-13 20:34 ` George G. Davis
2010-05-14 16:29 ` Catalin Marinas
2010-05-14 16:42 ` Catalin Marinas
2010-05-15 1:26 ` George G. Davis
2010-05-16 6:28 ` Ronen Shitrit
2010-05-16 6:29 ` Ronen Shitrit
2010-05-16 15:01 ` Russell King - ARM Linux
2010-05-17 6:29 ` Ronen Shitrit
2010-05-17 6:57 ` Russell King - ARM Linux
2010-05-17 7:34 ` Ronen Shitrit
2010-05-17 7:43 ` Russell King - ARM Linux
2010-05-17 8:29 ` Ronen Shitrit
2010-05-17 8:57 ` Russell King - ARM Linux
2010-05-17 9:50 ` Ronen Shitrit
2010-05-17 10:03 ` Russell King - ARM Linux
2010-05-17 11:26 ` Ronen Shitrit
2010-05-17 11:31 ` Russell King - ARM Linux
2010-05-17 11:45 ` Catalin Marinas
2010-05-17 10:00 ` Catalin Marinas
2010-05-17 11:29 ` Ronen Shitrit
2010-05-17 11:42 ` Catalin Marinas
2010-05-17 12:04 ` Ronen Shitrit
2010-05-17 13:45 ` Catalin Marinas
2010-05-17 9:51 ` Catalin Marinas
2010-05-17 9:57 ` Catalin Marinas
2010-05-17 9:59 ` Ronen Shitrit
2010-05-17 11:08 ` Catalin Marinas
2010-05-17 11:27 ` Ronen Shitrit
2010-05-17 11:47 ` Catalin Marinas
2010-05-17 13:46 ` [PATCH 2/8] ARM: Implement read/write for ownership intheARMv6 " Catalin Marinas
2010-05-04 16:44 ` [PATCH 3/8] ARM: Align machine_desc.phys_io to a 1MB section Catalin Marinas
2010-05-04 16:44 ` [PATCH 4/8] ARM: Remove the domain switching on ARMv6k/v7 CPUs Catalin Marinas
2010-05-04 16:44 ` [PATCH 5/8] ARM: Fix the __arm_ioremap_caller() definition in nommu.c Catalin Marinas
2010-05-04 17:19 ` Russell King - ARM Linux
2010-05-04 16:44 ` [PATCH 6/8] ARM: Implement copy_to_user_page() for noMMU Catalin Marinas
2010-05-04 17:19 ` Russell King - ARM Linux
2010-05-04 16:44 ` [PATCH 7/8] ARM: Use the Inner Shareable I-cache and BTB ops on ARMv7 SMP Catalin Marinas
2010-05-28 18:50 ` Russell King - ARM Linux
2010-05-28 21:37 ` [PATCH 7/8] ARM: Use the Inner Shareable I-cache and BTB opson " Catalin Marinas
2010-05-04 16:44 ` [PATCH 8/8] ARM: Implement phys_mem_access_prot() to avoid attributes aliasing Catalin Marinas
2010-05-04 16:48 ` [PATCH 0/8] Various patches for comments and upstream Catalin Marinas
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=20100506155738.GC18436@mvista.com \
--to=gdavis@mvista.com \
--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 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.