Re: [PATCH] ARM: allow, but warn, when issuing ioremap() on RAM
From: Russell King - ARM Linux
Date: Mon Oct 11 2010 - 06:52:56 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/