From owner-freebsd-arm@FreeBSD.ORG Fri Apr 10 09:16:56 2015 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D35CEBAC; Fri, 10 Apr 2015 09:16:56 +0000 (UTC) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 656C83E8; Fri, 10 Apr 2015 09:16:55 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Fri, 10 Apr 2015 11:16:46 +0200 id 0010E404.552794FE.00010F97 Date: Fri, 10 Apr 2015 11:16:45 +0200 From: Milan Obuch To: Pratik Singhal Subject: Re: panic: pmap_demote_section: No l2_bucket for wired mapping Message-ID: <20150410111645.55c1efb0@zeta.dino.sk> In-Reply-To: References: <1EFF2C41-456C-476E-9BA8-712E62DF0D4E@gromit.dlib.vt.edu> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; i386-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 09:16:56 -0000 On Fri, 10 Apr 2015 14:39:05 +0530 Pratik Singhal wrote: > I am also able to reproduce the same bug on my Cubieboard 1 with > freeBSD 11-current :- > > I am pasting the stack trace and the boot log. > > boot log :- http://pastie.org/10084212 > > stack trace :- http://pastie.org/10084214 > Hi, could you try adding 'options ARM_NEW_PMAP' to your kernel configs? It looks like it fixes this issue for me. If yoo can verify it, then I suggest to add this into RPI-B kernel config in our source tree for everybody, and some other kernel configs as well. Regards, Milan > On Mon, Mar 23, 2015 at 6:11 AM, Zbigniew Bodek > wrote: > > > 2015-03-22 20:45 GMT+01:00 Paul Mather : > > > On Mar 22, 2015, at 7:54 AM, Michael Tuexen > > > wrote: > > > > > >> Dear all, > > >> > > >> running head on a Raspberry Pi became unstable. When running > > >> r280329 for a while (the machine is exposed to the Internet, so > > >> ssh logins are continuously tried), the machine panics: > > >> > > >> panic: pmap_demote_section: No l2_bucket for wired mapping > > >> KDB: enter: panic > > > > > > > > > I get this panic when booting to multi-user on my newly-updated > > > BBB > > (FreeBSD 11.0-CURRENT #0 r280350). As pointed out later in this > > thread, setting vm.pmap.sp_enabled=0 prevents the panic (so far) > > and allows booting. > > > > > > Cheers, > > > > > > Paul. > > > > > > > I was able to reproduce this on my R-Pi too. > > The bug may be related to shared libraries mapping since excluding > > pmap_enter_section() (the one in the pmap_enter_object() that is > > responsible for doing the work for shared libraries mappings) > > results in normal operation even with page promotion/demotion > > enabled. I will try to find some time to look into that to ensure > > that this is not just covering the problem. If it doesn't then we > > may consider disabling pmap_enter_section() (by adding "return > > FALSE;") to have WA (without disabling superpages) until we find > > the real solution. pmap_enter_section() was being used very rarely > > before shared libraries superpage mappings were enabled so it is > > reasonable to think that the bug is somewhere around. Please let me > > know in case you find something. > > > > Best regards > > zbb > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to > > "freebsd-arm-unsubscribe@freebsd.org" > > > > >