[BUG] ARM: socfpga: L2 cache init
Russell King - ARM Linux
linux at arm.linux.org.uk
Fri Feb 6 03:05:57 PST 2015
On Fri, Feb 06, 2015 at 11:39:46AM +0100, Steffen Trumtrar wrote:
> I have run into a bug on the Socfpga platform. My boards sometimes fail
> to boot when I have the commit
>
> commit 8b5c18f05621394eb108d3fbc9bf98b05e8162db
> Author: Russell King <rmk+kernel at arm.linux.org.uk>
> Date: Mon Apr 28 15:55:59 2014 +0100
>
> ARM: l2c: socfpga: convert to generic l2c OF initialisation
>
> Remove the explicit call to l2x0_of_init(), converting to the generic
> infrastructure instead.
>
> Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
>
That should only result in the L2 cache being turned on earlier (before
the secondary CPUs come up.) I wonder if there's a bug in the secondary
CPU code which is being tickled by it.
What we need is some information on the failure - and as you've noticed,
the failure occurs before the console is initialised. There's two
solutions to that:
1. Enable early printk support (and hope that works)
2. Enable DEBUG_LL support, selecting the DEBUG_SOCFPGA_UART option,
and add:
{ extern void printascii(const char *); printascii(text); }
after the vscnprintf() in kernel/printk/printk.c.
(I've always used method 2, since that existed long before early printk
support was merged - so I've never used method 1 myself.)
Thanks.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list