<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/kernel/prom.c, branch linux-2.6.34.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.34.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2010-03-09T00:52:52Z</updated>
<entry>
<title>powerpc: Dynamically allocate pacas</title>
<updated>2010-03-09T00:52:52Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2010-01-28T13:23:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1426d5a3bd07589534286375998c0c8c6fdc5260'/>
<id>urn:sha1:1426d5a3bd07589534286375998c0c8c6fdc5260</id>
<content type='text'>
On 64-bit kernels we currently have a 512 byte struct paca_struct for
each cpu (usually just called "the paca"). Currently they are statically
allocated, which means a kernel built for a large number of cpus will
waste a lot of space if it's booted on a machine with few cpus.

We can avoid that by only allocating the number of pacas we need at
boot. However this is complicated by the fact that we need to access
the paca before we know how many cpus there are in the system.

The solution is to dynamically allocate enough space for NR_CPUS pacas,
but then later in boot when we know how many cpus we have, we free any
unused pacas.

Signed-off-by: Michael Ellerman &lt;michael@ellerman.id.au&gt;
Signed-off-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>of: move definition of of_chosen into common code.</title>
<updated>2010-02-14T14:13:55Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-02-14T14:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc0bdae49d810e4cb32d7b547bc6d4dfb08f9e2e'/>
<id>urn:sha1:fc0bdae49d810e4cb32d7b547bc6d4dfb08f9e2e</id>
<content type='text'>
Rather than defining of_chosen in each arch, it can be defined for all
in driver/of/base.c

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>of: remove unused extern reference to devtree_lock</title>
<updated>2010-02-14T14:13:52Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-02-14T14:13:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=22d5579e66101162fd1119f2e7f4f999ca8b48c7'/>
<id>urn:sha1:22d5579e66101162fd1119f2e7f4f999ca8b48c7</id>
<content type='text'>
Neither the powerpc nor the microblaze code use devtree_lock anymore.
Remove the extern reference.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>of/flattree: Don't assume HAVE_LMB</title>
<updated>2010-02-14T14:13:47Z</updated>
<author>
<name>Jeremy Kerr</name>
</author>
<published>2010-02-14T14:13:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ef7b373df330bc0ff037dc4792d373c9346375f'/>
<id>urn:sha1:4ef7b373df330bc0ff037dc4792d373c9346375f</id>
<content type='text'>
We don't always have lmb available, so make arches provide an
early_init_dt_alloc_memory_arch() to handle the allocation of
memory in the fdt code.

When we don't have lmb.h included, we need asm/page.h for __va.

Signed-off-by: Jeremy Kerr &lt;jeremy.kerr@canonical.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Acked-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>of/flattree: endian-convert members of boot_param_header</title>
<updated>2010-02-09T15:34:10Z</updated>
<author>
<name>Jeremy Kerr</name>
</author>
<published>2010-01-30T11:14:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=087f79c48c090a2c0cd9ee45231d63290d2036d2'/>
<id>urn:sha1:087f79c48c090a2c0cd9ee45231d63290d2036d2</id>
<content type='text'>
The boot_param_header has big-endian fields, so change the types to
__be32, and perform endian conversion when we access them.

Signed-off-by: Jeremy Kerr &lt;jeremy.kerr@canonical.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/flattree: use callback to setup initrd from /chosen</title>
<updated>2010-02-09T15:34:10Z</updated>
<author>
<name>Jeremy Kerr</name>
</author>
<published>2010-01-30T08:31:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1406bc2f57787797d1f6a3675c019a7093769275'/>
<id>urn:sha1:1406bc2f57787797d1f6a3675c019a7093769275</id>
<content type='text'>
At present, the fdt code sets the kernel-wide initrd_start and
initrd_end variables when parsing /chosen. On ARM, we only set these
once the bootmem has been reserved.

This change adds an arch hook to setup the initrd from the device
tree:

 void early_init_dt_setup_initrd_arch(unsigned long start,
				      unsigned long end);

The arch-specific code can then setup the initrd however it likes.

Compiled on powerpc, with CONFIG_BLK_DEV_INITRD=y and =n.

Signed-off-by: Jeremy Kerr &lt;jeremy.kerr@canonical.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of/flattree: merge early_init_dt_scan_memory() common code</title>
<updated>2010-02-09T15:33:10Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-02-02T04:34:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=51975db0b7333cf389b64b5040c2a910341d241a'/>
<id>urn:sha1:51975db0b7333cf389b64b5040c2a910341d241a</id>
<content type='text'>
Merge common code between PowerPC and Microblaze architectures.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: Michal Simek &lt;monstr@monstr.eu&gt;
</content>
</entry>
<entry>
<title>of: merge of_find_node_by_phandle</title>
<updated>2010-02-09T15:32:48Z</updated>
<author>
<name>Jeremy Kerr</name>
</author>
<published>2010-02-02T04:34:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=89751a7cb70a20f0d604dd7c4be29dd7b0011718'/>
<id>urn:sha1:89751a7cb70a20f0d604dd7c4be29dd7b0011718</id>
<content type='text'>
Merge common function between powerpc, sparc and microblaze. Code is
identical for powerpc and microblaze, but adds a lock (and release) of
the devtree_lock on sparc.

Signed-off-by: Jeremy Kerr &lt;jeremy.kerr@canonical.com&gt;
Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
</content>
</entry>
<entry>
<title>of: merge of_attach_node() &amp; of_detach_node()</title>
<updated>2010-02-09T15:32:42Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-01-29T12:04:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fcdeb7fedf89f4bbc2e11959794968080cd8426e'/>
<id>urn:sha1:fcdeb7fedf89f4bbc2e11959794968080cd8426e</id>
<content type='text'>
Merge common code between PowerPC and Microblaze

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Tested-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
<entry>
<title>of: unify phandle name in struct device_node</title>
<updated>2010-01-28T21:06:53Z</updated>
<author>
<name>Grant Likely</name>
</author>
<published>2010-01-28T21:06:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6016a363f6b56b46b24655bcfc0499b715851cf3'/>
<id>urn:sha1:6016a363f6b56b46b24655bcfc0499b715851cf3</id>
<content type='text'>
In struct device_node, the phandle is named 'linux_phandle' for PowerPC
and MicroBlaze, and 'node' for SPARC.  There is no good reason for the
difference, it is just an artifact of the code diverging over a couple
of years.  This patch renames both to simply .phandle.

Note: the .node also existed in PowerPC/MicroBlaze, but the only user
seems to be arch/powerpc/platforms/powermac/pfunc_core.c.  It doesn't
look like the assignment between .linux_phandle and .node is
significantly different enough to warrant the separate code paths
unless ibm,phandle properties actually appear in Apple device trees.

I think it is safe to eliminate the old .node property and use
phandle everywhere.

Signed-off-by: Grant Likely &lt;grant.likely@secretlab.ca&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt;
Tested-by: Wolfram Sang &lt;w.sang@pengutronix.de&gt;
Acked-by: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
</content>
</entry>
</feed>
