From owner-freebsd-arm@FreeBSD.ORG Wed Jun 11 07:42:06 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EFCFB37F; Wed, 11 Jun 2014 07:42:06 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "funkthat.com", Issuer "funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C5B382483; Wed, 11 Jun 2014 07:42:06 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id s5B7fxEN091743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Jun 2014 00:41:59 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id s5B7fxj4091742; Wed, 11 Jun 2014 00:41:59 -0700 (PDT) (envelope-from jmg) Date: Wed, 11 Jun 2014 00:41:59 -0700 From: John-Mark Gurney To: Alan Cox Subject: Re: svn commit: r266850 - in head/sys/arm/xscale: i80321 i8134x ixp425 pxa Message-ID: <20140611074159.GL31367@funkthat.com> Mail-Followup-To: Alan Cox , alc@freebsd.org, "freebsd-arm@freebsd.org" , ian@FreeBSD.org References: <5395D312.5000302@rice.edu> <20140609163302.GS31367@funkthat.com> <5395E725.7020807@rice.edu> <20140609174431.GT31367@funkthat.com> <9100CDFA-0C40-4BC8-AA9C-1DE37EEA6208@rice.edu> <6DA17B5C-1824-49BF-8192-432135D42C6E@bsdimp.com> <20140609221742.GV31367@funkthat.com> <539730B1.2040900@rice.edu> <20140610170052.GF31367@funkthat.com> <5397F089.90403@rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5397F089.90403@rice.edu> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Wed, 11 Jun 2014 00:42:00 -0700 (PDT) Cc: alc@freebsd.org, "freebsd-arm@freebsd.org" , ian@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 07:42:07 -0000 Alan Cox wrote this message on Wed, Jun 11, 2014 at 01:00 -0500: > On 06/10/2014 12:00, John-Mark Gurney wrote: > > Alan Cox wrote this message on Tue, Jun 10, 2014 at 11:22 -0500: > >> On 06/09/2014 17:17, John-Mark Gurney wrote: > >>> Warner Losh wrote this message on Mon, Jun 09, 2014 at 14:08 -0600: > >>>> On Jun 9, 2014, at 1:23 PM, Alan Cox wrote: > >>>> > >>>>> On Jun 9, 2014, at 12:44 PM, John-Mark Gurney wrote: > >>>>> > >>>>>> Alan Cox wrote this message on Mon, Jun 09, 2014 at 11:56 -0500: > >>>>>>> I made a mistake with the new KASSERT()s in vm_reserv_break(). Try this. > >>>>>> No worried, the new patch panics: > >>>>>> panic: vm_reserv_break: 2 saved_object=0xc06e6378 x=253 m_tmp->object=0xc06e6378 (1) > >>>>>> > >>>>> Is your arm processor running in big-endian or little-endian mode? > >>>> Big Endian. > >>> Specificly, TARGET_ARCH=armeb... So, ARMv4 in big-endian mode... > >>> > >> Please try the attached patch. > > This patch now boots to multiuser mode and I can log in! > > > > I can now more easily debug newsyslog segfaulting and stuff... I'll > > let you know if I have any more issues... > > > > Thanks again for tracking this down! > > > > Here is a commit-able patch. Please tell me if it works. So, it worked for a while, but it looks like there are still lingering bugs... Not sure if this is the same, or different... While doing portsnap extract, I got the following panic: panic: Lock vm object not exclusively locked @ /usr/src.avila/sys/arm/arm/pmap.c:4474 w/ the bt: [lots of boiler plate panic backtrace deleted] kassert_panic() at kassert_panic pc = 0xc03ac2d4 lr = 0xc03a9980 (__rw_assert+0x168) sp = 0xcd157d78 fp = 0x00000000 r0 = 0xc05e41f8 r1 = 0xc0617ab0 r2 = 0xc061c818 r3 = 0x0000117a r4 = 0x00000000 __rw_assert() at __rw_assert+0x168 pc = 0xc03a9980 lr = 0xc05736a4 (pmap_remove_write+0x3c) sp = 0xcd157d88 fp = 0x00000000 r4 = 0xc0845a50 pmap_remove_write() at pmap_remove_write+0x3c pc = 0xc05736a4 lr = 0xc0574890 (pmap_remove_all+0x4c) sp = 0xcd157d90 fp = 0x00000000 r4 = 0xc0845a50 pmap_remove_all() at pmap_remove_all+0x4c pc = 0xc0574890 lr = 0xc055abf8 (vm_pageout_grow_cache+0x8b0) sp = 0xcd157dc0 fp = 0x00000000 r4 = 0xc0845a50 r5 = 0xc184dd20 r6 = 0xc14b8a9c r7 = 0x00000000 r8 = 0xc06ea5d0 r9 = 0xc14b89e0 r10 = 0xc184dd20 vm_pageout_grow_cache() at vm_pageout_grow_cache+0x8b0 pc = 0xc055abf8 lr = 0xc055af9c (vm_pageout_grow_cache+0xc54) sp = 0xcd157df0 fp = 0x00000000 r4 = 0xc14b89e0 r5 = 0xc1853320 r6 = 0xc0618cd8 r7 = 0xc184dd20 r8 = 0xc14ea320 r9 = 0xc14b89e0 r10 = 0xc14b89e0 vm_pageout_grow_cache() at vm_pageout_grow_cache+0xc54 pc = 0xc055af9c lr = 0xc037fa30 (fork_exit+0x94) sp = 0xcd157e48 fp = 0x00000000 r4 = 0xc0f83960 r5 = 0xc0e58000 r6 = 0xc055ac9c r7 = 0x00000000 r8 = 0xcd157e60 r9 = 0x19999990 r10 = 0x00000000 fork_exit() at fork_exit+0x94 pc = 0xc037fa30 lr = 0xc056c4e4 (swi_exit) sp = 0xcd157e60 fp = 0x00000000 r4 = 0xc055ac9c r5 = 0x00000000 r6 = 0x1284378c r7 = 0x00000104 r8 = 0x00000104 swi_exit() at swi_exit pc = 0xc056c4e4 lr = 0xc056c4e4 (swi_exit) sp = 0xcd157e60 fp = 0x00000000 Unable to unwind further Let me know if there is any thing else you need to collect... I've rebooted the machine, and I'll be doing the same command to see if it's reproducable... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."