From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Tue, 17 Feb 2015 22:28:17 +0000 Subject: [BUG] ARM: socfpga: L2 cache init In-Reply-To: References: <20150206103946.GM15692@pengutronix.de> <20150206110557.GY8656@n2100.arm.linux.org.uk> <20150209155314.GA7994@pengutronix.de> <54D8E3BB.3060505@opensource.altera.com> <20150209185820.GB7994@pengutronix.de> <20150209213017.GC7994@pengutronix.de> <54DD2BB3.3090507@opensource.altera.com> <20150213080106.GD7994@pengutronix.de> Message-ID: <20150217222817.GS8656@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Feb 17, 2015 at 04:00:47PM -0600, Dinh Nguyen wrote: > On Fri, Feb 13, 2015 at 2:01 AM, Steffen Trumtrar > wrote: > > Yes, seems very likely that Russell is right. > > The bug doesn't happen if I disable the L2. Digging more... What ensures that the value written to socfpga_cpu1start_addr (by of_property_read_u32() in socfpga_sysmgr_init(), called at .init_irq time) is visible to the secondary CPU? >From what I can see, the physical address written there is not guaranteed to be flushed from all levels of cache. The flush_cache_all() in socfpga_boot_secondary() won't do the job - that won't touch the L2C-310. -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net.