From owner-freebsd-sparc64@FreeBSD.ORG Sat Oct 6 07:00:57 2007 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E8E216A418; Sat, 6 Oct 2007 07:00:57 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (unknown [IPv6:2001:2f0:104:e002::32]) by mx1.freebsd.org (Postfix) with ESMTP id D4BCD13C45D; Sat, 6 Oct 2007 07:00:56 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p4054-ipbf904funabasi.chiba.ocn.ne.jp [122.26.39.54]) (authenticated bits=128) by mail.allbsd.org (8.13.8/8.13.8) with ESMTP id l9670b0d083024; Sat, 6 Oct 2007 16:00:48 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (alph.allbsd.org [192.168.0.10]) (authenticated bits=0) by delta.allbsd.org (8.13.4/8.13.4) with ESMTP id l9670CLr071526; Sat, 6 Oct 2007 16:00:16 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sat, 06 Oct 2007 15:59:53 +0900 (JST) Message-Id: <20071006.155953.35052779.hrs@allbsd.org> To: jhb@FreeBSD.org From: Hiroki Sato In-Reply-To: <200710060222.31023.jhb@freebsd.org> References: <46FEADFD.8020105@FreeBSD.org> <20071003132944.GA17342@alchemy.franken.de> <200710060222.31023.jhb@freebsd.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Sat_Oct__6_15_59_53_2007_671)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.1, clamav-milter version 0.91.1 on gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.allbsd.org [133.31.130.32]); Sat, 06 Oct 2007 16:00:48 +0900 (JST) Cc: freebsd-sparc64@FreeBSD.org, marius@alchemy.franken.de Subject: Re: 7.0 broken on e4500 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2007 07:00:57 -0000 ----Security_Multipart(Sat_Oct__6_15_59_53_2007_671)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit John Baldwin wrote in <200710060222.31023.jhb@freebsd.org>: jh> On Wednesday 03 October 2007 09:29:44 am Marius Strobl wrote: jh> > On Sat, Sep 29, 2007 at 09:56:45PM +0200, Kris Kennaway wrote: jh> > > I get this early during boot with a CVS kernel (updated from last jh> December): jh> > > jh> > > > FreeBSD/SMP: Multiprocessor System Detected: 10 CPUs jh> > > > panic: tsb_tte_enter: replacing valid kernel mapping jh> > > > cpuid = 0 jh> > > > KDB: enter: panic jh> > > > [thread pid 0 tid 0 ] jh> > > > Stopped at kdb_enter+0x68: ta %xcc, 1 jh> > > > db> wh jh> > > > Tracing pid 0 tid 0 td 0xc0744f80 jh> > > > panic() at panic+0x204 jh> > > > tsb_tte_enter() at tsb_tte_enter+0xdc jh> > > > pmap_enter_locked() at pmap_enter_locked+0x2d0 jh> > > > pmap_enter() at pmap_enter+0x64 jh> > > > kmem_malloc() at kmem_malloc+0x6e0 jh> > > > page_alloc() at page_alloc+0x28 jh> > > > uma_large_malloc() at uma_large_malloc+0x44 jh> > > > malloc() at malloc+0x1b0 jh> > > > sf_buf_init() at sf_buf_init+0xf8 jh> > > > mi_startup() at mi_startup+0x18c jh> > > > btext() at btext+0x34 jh> > > jh> > jh> > Do you by chance load the new kernel manually via the loader jh> > prompt, with the old kernel being <= 8MB in size and the new jh> > one > 8MB? jh> jh> I get this panic on an E220R at work, but my "new" kernel is smaller. jh> jh> > ll /boot/kernel/kernel* /boot/test/kernel* jh> -r-xr-xr-x 1 root wheel 7821094 Feb 6 2007 /boot/kernel/kernel jh> -r-xr-xr-x 1 root wheel 13902501 Feb 6 2007 /boot/kernel/kernel.symbols jh> -r-xr-xr-x 1 root wheel 4534968 Oct 6 00:20 /boot/test/kernel jh> -r-xr-xr-x 1 root wheel 10101980 Oct 6 00:20 /boot/test/kernel.symbols jh> jh> The working kernel (~7MB) is the GENERIC kernel, and the "test" kernel jh> is the stripped down kernel for this machine. In my case I'm panicing in jh> pmap_remove_tte() called from pmap_enter_locked(). I added some KTR traces In the E4500 case, the old kernel was small and the new one was >8MB: hrs@e4500-3 % ll -h /boot/kernel/kernel -r-xr-xr-x 1 root wheel 8.2M Oct 6 09:59 /boot/kernel/kernel* hrs@e4500-3 % ll -h /boot/kernel.old/kernel -r-xr-xr-x 1 root wheel 5.9M Oct 6 15:35 /boot/kernel.old/kernel* and no different output with WITNESS. -- | Hiroki SATO ----Security_Multipart(Sat_Oct__6_15_59_53_2007_671)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHBzJpTyzT2CeTzy0RArGBAKDDUQ4bui0QR2LC5TaTH21SI2OPZACePTu9 iivwQIu+Tb5rsdHJtMBfFmM= =TcH0 -----END PGP SIGNATURE----- ----Security_Multipart(Sat_Oct__6_15_59_53_2007_671)----