Received: with ECARTIS (v1.0.0; list linux-mips); Sat, 27 Jun 2009 07:14:45 +0200 (CEST) Received: from hall.aurel32.net ([88.191.82.174]:44051 "EHLO hall.aurel32.net" rhost-flags-OK-OK-OK-OK) by ftp.linux-mips.org with ESMTP id S1492232AbZF0FOi (ORCPT ); Sat, 27 Jun 2009 07:14:38 +0200 Received: from aurel32 by hall.aurel32.net with local (Exim 4.69) (envelope-from ) id 1MKQBG-0003k5-LM; Sat, 27 Jun 2009 07:10:26 +0200 Date: Sat, 27 Jun 2009 07:10:26 +0200 From: Aurelien Jarno To: Ralf Baechle Cc: Kaz Kylheku , linux-mips@linux-mips.org Subject: Re: Broadcom Swarm support Message-ID: <20090627051026.GB18476@hall.aurel32.net> References: <20090624063453.GA16846@volta.aurel32.net> <20090626232432.GB3235@linux-mips.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20090626232432.GB3235@linux-mips.org> X-Mailer: Mutt 1.5.18 (2008-05-17) User-Agent: Mutt/1.5.18 (2008-05-17) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 23513 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: aurelien@aurel32.net Precedence: bulk X-list: linux-mips On Sat, Jun 27, 2009 at 12:24:32AM +0100, Ralf Baechle wrote: > On Wed, Jun 24, 2009 at 03:18:24PM -0700, Kaz Kylheku wrote: > > From: Kaz Kylheku > > Date: Wed, 24 Jun 2009 15:18:24 -0700 > > To: Aurelien Jarno , linux-mips@linux-mips.org > > Subject: RE: Broadcom Swarm support > > Content-Type: text/plain; > > charset="us-ascii" > > > > Aurelien Jarno wrote: > > > Hi all, > > > > > > I am still trying to get a Broadcom Swarm boot on a recent kernel. I > > > have made some progress, but I am now stuck on another problem. > > > > > > I am using a lmo 2.6.30 kernel, using the defconfig > > > > [ snip ] > > > > > | Kernel panic - not syncing: Attempted to kill init! > > > | Rebooting in 5 seconds..Passing control back to CFE... > > > > What kernel were you running prior to trying 30? > > > > When I migrated from 2.6.17 to 2.6.26, on a Broadcom > > 1480 based board, I discovered that there is some kind > > of instruction cache problem, which causes userland to > > fetch garbage instead of code from its mmap-ped executables. > > I could not get init to execute successfully. > > > > Sorry, I can no longer remember whether this problem was > > SMP specific or not (like what you're experiencing); > > it might have been. > > > > At some point in the kernel history, Ralfie decided that > > the flush_icache_page function is unnecessary and > > turned it into a MIPS-wide noop. But the SB1 core, which has > > a VIVT instruction cache, it appears that there > > is some kind of issue whereby when it > > is handling a fault for a not-present virtual page, > > it somehow ends up with bad data in the instruction > > cache---perhaps an inconsistent state due to not having > > been able to complete the fetch, but having initiated > > a cache update on the expectation that the fetch > > will complete. It seems that the the fault handler > > is expected to do a flush. > > > > Anyway, see if you can work this patch (based on 2.6.26) > > into your kernel, and report whether it makes any difference. > > The functionality of flush_icache_page() is being handled update_mmu_cache. > > The SB1 isn't the only MIPS CPU featuring VIVT caches - there are also > the MIPS 20K and 25K CPUs and the virtually identical SB1A core. I've > tested Linux on 20K and 25K just days ago and I get months of uptime on my > BCM1480 box. > > What type of boot devices are you using, is it the onboard IDE controller > by any chance? > Yes, booting on the IDE controller. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net