Thread (11 messages) 11 messages, 3 authors, 2013-08-01

Re: [PATCH v4 2/6] misc: sram: add ability to mark sram sections as reserved

From: Heiko Stübner <heiko@sntech.de>
Date: 2013-08-01 16:35:24
Also in: linux-arm-kernel, lkml

Am Montag, 29. Juli 2013, 23:39:45 schrieb Matt Sealey:
On Mon, Jul 29, 2013 at 9:02 AM, Philipp Zabel [off-list ref] 
wrote:
quoted
Hi Heiko,

Am Montag, den 29.07.2013, 15:12 +0200 schrieb Heiko Stübner:
quoted
Some SoCs need parts of their sram for special purposes. So while being
part of the peripheral, it should not be part of the genpool
controlling the sram.

Therefore add an option mmio-sram-reserved to keep arbitrary portions of
the sram from being part of the pool.

Suggested-by: Rob Herring <redacted>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Ulrich Prinz <redacted>
---
Philipp: I didn't carry the ack, because the loop changed significantly
again. So if it looks ok, could you re-ack it please?
I'd prefer the first loop to contain the magic and produce a list of
useable chunks, instead of a list of reserved blocks. The second loop
could then iterate over the array and just call gen_pool_add_virt
repeatedly.

regards
Philipp
Agreed, however specifying chunks of memory should probably match the
format of the standard memory@ node "available" property - mostly
because it would be the same syntax and definition as defining any
other chunk of memory, as OpenFirmware and device trees have been
doing since the dark ages. In this case, why not re-use the
"available" property name instead of creating a new one? Standard OF
memory parsing code is then free for you to use to pull the chunks
out.
Sound interesting, but could you give me a pointer to some sort of docs about 
this "available" property in memory nodes?

Documentation/devicetree/booting-without-of.txt seems to be the only file 
describing the memory node at all but only required properties, and not any 
"available" property.

I've found a document  on power.org describing the memory node, but also not 
mentioning any "available" property.

And devicetree.org does not seem to handle the memory node at all.


Thanks for any hints
Heiko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help