lkml.org 
[lkml]   [2010]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-10-11 12:55    [W:0.137 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site