From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: PIPT cache handling on s5pv210 chip
Date: Fri, 14 May 2010 12:53:42 +0100 [thread overview]
Message-ID: <20100514115342.GA15405@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <00ca01caf359$643defa0$2cb9cee0$%kim@samsung.com>
On Fri, May 14, 2010 at 08:34:14PM +0900, Kukjin Kim wrote:
> In case a driver starts the Memory_To_Peripheral DMA operation with the
> memory area allotted by __vmalloc(,,no-cacheable), the driver can face some
> problems caused by cache victims.
That's its own lookout - all the time that there's the kernel mapping
present, the cache can be loaded with data via that mapping - and being
PIPT, that means the data _could_ be hit by accesses via the __vmalloc
mapping.
As I've already explained, __vmalloc() with differing memory types on
ARMv6 and above is unpredictable, period. The same is true for different
sharability settings for the same physical memory. No amount of
discussing will change this; it's a fact of the hardware. If you
create them, your system will have unpredictable behaviour.
With different cache attributes, it's unpredictable to the word of the
architecture spec, and eventually it will become unpredictable according
to the hardware as well.
So the message is: using __vmalloc() with _any_ differing attributes
from the main memory mapping is unpredictable and must not be used on
ARM.
next prev parent reply other threads:[~2010-05-14 11:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-14 3:49 PIPT cache handling on s5pv210 chip Kyungmin Park
2010-05-14 9:11 ` Russell King - ARM Linux
2010-05-14 10:36 ` Kukjin Kim
2010-05-14 10:48 ` Russell King - ARM Linux
2010-05-14 11:34 ` Kukjin Kim
2010-05-14 11:53 ` Russell King - ARM Linux [this message]
2010-05-17 4:03 ` Ben Dooks
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=20100514115342.GA15405@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;
as well as URLs for NNTP newsgroup(s).