Alexey Kardashevskiy 6010818c30 spapr: Split memory nodes to power-of-two blocks
Linux kernel expects nodes to have power-of-two size and
does WARN_ON if this is not the case:
[    0.041456] WARNING: at drivers/base/memory.c:115
which is:

===
	/* Validate blk_sz is a power of 2 and not less than section size */
	if ((block_sz & (block_sz - 1)) || (block_sz < MIN_MEMORY_BLOCK_SIZE)) {
        	WARN_ON(1);
	        block_sz = MIN_MEMORY_BLOCK_SIZE;
	}
===

This splits memory nodes into set of smaller blocks with
a size which is a power of two. This makes sure the start
address of every node is aligned to the node size.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
[agraf: squash windows compile fix in]
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-09-08 12:50:48 +02:00
..
2014-08-29 15:00:29 +01:00
2014-08-15 19:12:48 +04:00
2013-12-24 18:02:18 +01:00
2014-08-29 10:46:57 +01:00
2014-08-15 18:54:06 +04:00
2014-08-14 13:22:00 +02:00
2014-06-27 13:48:22 +02:00
2014-08-25 00:16:07 +02:00
2014-08-25 00:16:06 +02:00
2014-06-30 21:13:30 +02:00
2014-09-01 09:25:32 +02:00
2014-06-30 21:13:30 +02:00
2014-08-25 00:16:06 +02:00
2014-08-29 12:52:14 +02:00
2014-08-18 12:06:21 +02:00