[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101011105216.GD27153@n2100.arm.linux.org.uk>
Date: Mon, 11 Oct 2010 11:52:16 +0100
From: Russell King - ARM Linux <linux@....linux.org.uk>
To: Felipe Contreras <felipe.contreras@...il.com>
Cc: Catalin Marinas <catalin.marinas@....com>,
Nicolas Pitre <nico@...xnic.net>,
Arnd Hannemann <arnd@...dnet.de>,
Hemant Pedanekar <hemantp@...com>, Greg KH <greg@...ah.com>,
linux-main <linux-kernel@...r.kernel.org>,
Uwe Kleine-König
<u.kleine-koenig@...gutronix.de>,
Han Jonghun <jonghun79.han@...il.com>,
linux-arm <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM
On Mon, Oct 11, 2010 at 01:39:13PM +0300, Felipe Contreras wrote:
> Anyway, I'm reading the TRM and I can't find any mention of this.
> Catalin, can you point out where is this mentioned, and also, can you
> confirm if this would affect only the memory that has the double
> mapping, or it can corrupt other memory as well?
Page A3-31:
If the same memory locations are marked as having different cacheability
attributes, for example by the use of aliases in a virtual to physical
address mapping, behavior is UNPREDICTABLE.
Page A3-36:
Behavior is UNPREDICTABLE if the same memory location:
■ is marked as Shareable Normal and Non-shareable Normal
■ is marked as having different memory types (Normal, Device, or Strongly-
ordered)
■ is marked as having different cacheability attributes
■ is marked as being Shareable Device and Non-shareable Device memory.
Such memory marking contradictions can occur, for example, by the use of
aliases in a virtual to physical address mapping.
And from the glossary:
UNPREDICTABLE Means the behavior cannot be relied upon. UNPREDICTABLE
behavior must not represent security holes. UNPREDICTABLE behavior must
not halt or hang the processor, or any parts of the system. UNPREDICTABLE
behavior must not be documented or promoted as having a defined effect.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists