<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/nios2/kernel/prom.c, branch linux-4.18.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.18.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2018-01-30T17:17:12Z</updated>
<entry>
<title>nios2: remove arch specific early_init_dt_alloc_memory_arch</title>
<updated>2018-01-30T17:17:12Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2018-01-05T22:11:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7a6e01c8c90596c1871c9fae22e498cbf1c73a1'/>
<id>urn:sha1:f7a6e01c8c90596c1871c9fae22e498cbf1c73a1</id>
<content type='text'>
Now that the DT core code handles bootmem arches, we can remove the nios2
specific early_init_dt_alloc_memory_arch function.

Cc: Ley Foon Tan &lt;lftan@altera.com&gt;
Cc: nios2-dev@lists.rocketboards.org
Reviewed-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
</content>
</entry>
<entry>
<title>nios2: remove custom early console implementation</title>
<updated>2017-05-11T09:44:21Z</updated>
<author>
<name>Tobias Klauser</name>
</author>
<published>2017-05-11T09:40:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e118c3fec9c0d8d2a96462c4c035305dc952e402'/>
<id>urn:sha1:e118c3fec9c0d8d2a96462c4c035305dc952e402</id>
<content type='text'>
As of commits d8f347ba35cf ("nios2: enable earlycon support"),
0dcc0542a006 ("serial: altera_jtaguart: add earlycon support") and
4d9d7d896d77 ("serial: altera_uart: add earlycon support"), the nios2
architecture and the altera_uart/altera_jtaguart drivers support
earlycon. Thus, the custom early console implementation for nios2 is no
longer necessary to get early boot messages. Remove it and rely fully on
earlycon support.

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
</content>
</entry>
<entry>
<title>nios2: reserve boot memory for device tree</title>
<updated>2017-04-03T03:13:57Z</updated>
<author>
<name>Tobias Klauser</name>
</author>
<published>2017-04-03T03:08:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=921d701e6f31e1ffaca3560416af1aa04edb4c4f'/>
<id>urn:sha1:921d701e6f31e1ffaca3560416af1aa04edb4c4f</id>
<content type='text'>
Make sure to reserve the boot memory for the flattened device tree.
Otherwise it might get overwritten, e.g. when initial_boot_params is
copied, leading to a corrupted FDT and a boot hang/crash:

  bootconsole [early0] enabled
  Early console on uart16650 initialized at 0xf8001600
  OF: fdt: Error -11 processing FDT
  Kernel panic - not syncing: setup_cpuinfo: No CPU found in devicetree!

  ---[ end Kernel panic - not syncing: setup_cpuinfo: No CPU found in devicetree!

Guenter Roeck says:

&gt; I think I found the problem. In unflatten_and_copy_device_tree(), with added
&gt; debug information:
&gt;
&gt; OF: fdt: initial_boot_params=c861e400, dt=c861f000 size=28874 (0x70ca)
&gt;
&gt; ... and then initial_boot_params is copied to dt, which results in corrupted
&gt; fdt since the memory overlaps. Looks like the initial_boot_params memory
&gt; is not reserved and (re-)allocated by early_init_dt_alloc_memory_arch().

Cc: stable@vger.kernel.org
Reported-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Reference: http://lkml.kernel.org/r/20170226210338.GA19476@roeck-us.net
Tested-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Acked-by: Ley Foon Tan &lt;ley.foon.tan@intel.com&gt;
</content>
</entry>
<entry>
<title>nios2: Replace fdt_translate_address with of_flat_dt_translate_address</title>
<updated>2016-03-31T00:15:45Z</updated>
<author>
<name>Guenter Roeck</name>
</author>
<published>2016-03-29T09:02:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8fe889274c7a4d95c3e2d06f87ead499ea6faa2d'/>
<id>urn:sha1:8fe889274c7a4d95c3e2d06f87ead499ea6faa2d</id>
<content type='text'>
nios2 builds fail with the following build error.

arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial':
arch/nios2/kernel/prom.c:100:2: error:
	implicit declaration of function 'fdt_translate_address'

Commit c90fe9c0394b ("of: earlycon: Move address translation to
of_setup_earlycon()") replaced fdt_translate_address() with
of_flat_dt_translate_address() but missed updating the nios2 code.

Fixes: c90fe9c0394b ("of: earlycon: Move address translation to of_setup_earlycon()")
Cc: Peter Hurley &lt;peter@hurleysoftware.com&gt;
Cc: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: Guenter Roeck &lt;linux@roeck-us.net&gt;
Acked-by: Ley Foon Tan &lt;lftan@altera.com&gt;
</content>
</entry>
<entry>
<title>nios2: add early printk support</title>
<updated>2015-02-10T15:21:08Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2015-02-10T15:21:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8bf5bc776edef44777b13b2eb4461d653519bae'/>
<id>urn:sha1:e8bf5bc776edef44777b13b2eb4461d653519bae</id>
<content type='text'>
Signed-off-by: Ley Foon Tan &lt;lftan@altera.com&gt;
</content>
</entry>
<entry>
<title>nios2: Device tree support</title>
<updated>2014-12-08T04:56:01Z</updated>
<author>
<name>Ley Foon Tan</name>
</author>
<published>2014-11-06T07:20:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=95acd4c7b69c9b250d901d154390ec4c8b7b51c1'/>
<id>urn:sha1:95acd4c7b69c9b250d901d154390ec4c8b7b51c1</id>
<content type='text'>
Add device tree support to arch/nios2.

Signed-off-by: Ley Foon Tan &lt;lftan@altera.com&gt;
</content>
</entry>
</feed>
