[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <C832F8F5D375BD43BFA11E82E0FE9FE00829C13EB2@EXDCVYMBSTM005.EQ1STM.local>
Date: Tue, 4 Jan 2011 17:23:37 +0100
From: Johan MOSSBERG <johan.xx.mossberg@...ricsson.com>
To: Russell King - ARM Linux <linux@....linux.org.uk>,
Kyungmin Park <kmpark@...radead.org>
Cc: Michal Nazarewicz <m.nazarewicz@...sung.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
Daniel Walker <dwalker@...eaurora.org>,
Mel Gorman <mel@....ul.ie>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Michal Nazarewicz <mina86@...a86.com>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
Ankita Garg <ankita@...ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>,
"linux-media@...r.kernel.org" <linux-media@...r.kernel.org>,
KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>,
Marek Szyprowski <m.szyprowski@...sung.com>
Subject: RE: [PATCHv8 00/12] Contiguous Memory Allocator
Russell King wrote:
> Has anyone addressed my issue with it that this is wide-open for
> abuse by allocating large chunks of memory, and then remapping
> them in some way with different attributes, thereby violating the
> ARM architecture specification?
I seem to have missed the previous discussion about this issue.
Where in the specification (preferably ARMv7) can I find
information about this? Is the problem that it is simply
forbidden to map an address multiple times with different cache
setting and if this is done the hardware might start failing? Or
is the problem that having an address mapped cached means that
speculative pre-fetch can read it into the cache at any time,
possibly causing problems if an un-cached mapping exists? In my
opinion option number two can be handled and I've made an attempt
at doing that in hwmem (posted on linux-mm a while ago), look in
cache_handler.c. Hwmem currently does not use cma but the next
version probably will.
/Johan Mossberg
--
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