From owner-freebsd-mips@FreeBSD.ORG Thu Apr 25 03:16:32 2013 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B7F6912A; Thu, 25 Apr 2013 03:16:32 +0000 (UTC) (envelope-from lists@rewt.org.uk) Received: from hosted.mx.as41113.net (hosted.mx.as41113.net [91.208.177.22]) by mx1.freebsd.org (Postfix) with ESMTP id 7D3FA1CAF; Thu, 25 Apr 2013 03:16:31 +0000 (UTC) Received: from [172.16.9.23] (bella.stf.rewt.org.uk [91.208.177.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lists@rewt.org.uk) by hosted.mx.as41113.net (Postfix) with ESMTPSA id 3Zx3T93Ygsz1R6; Thu, 25 Apr 2013 04:16:29 +0100 (BST) Message-ID: <5178A007.8030005@rewt.org.uk> Date: Thu, 25 Apr 2013 04:16:23 +0100 From: Joe Holden User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Warner Losh Subject: Re: kern/177876: [mips] kernel stack overflow panic on mips64, EdgeRouter Lite References: <201304220300.r3M301iY093070@freefall.freebsd.org> <51753506.3070901@rewt.org.uk> <5176FB36.2070809@rewt.org.uk> <163C6DC2-D817-4176-BE96-ACAA56BD8F87@bsdimp.com> <51781614.1060306@rewt.org.uk> <1D07B1F7-A91A-49F4-80C6-7696F457EC74@bsdimp.com> <51788F5B.2000905@rewt.org.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-mips@FreeBSD.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Apr 2013 03:16:32 -0000 Warner Losh wrote: > On Apr 24, 2013, at 8:05 PM, Joe Holden wrote: > >> Warner Losh wrote: >>> On Apr 24, 2013, at 11:27 AM, Joe Holden wrote: >>>> Warner Losh wrote: >>>>> On Apr 23, 2013, at 3:20 PM, Joe Holden wrote: >>>>>> Warner Losh wrote: >>>>>>> I just committed r249790 which makes everything match. >>>>>>> On Apr 22, 2013, at 2:29 PM, Juli Mallett wrote: >>>>>>>> On Mon, Apr 22, 2013 at 1:27 PM, Warner Losh wrote: >>>>>>>>> It sure looks like you are right... I have a full new tree building just to make sure... :( >>>>>>>>> >>>>>>>>> Then again, it would be useful to document where these dependencies lie to help prevent others from tripping over this in the future :( >>>>>>>> We should use genassym to generate trapframe offsets instead of having >>>>>>>> hand-coded defines for these, perhaps? I haven't thought it through >>>>>>>> very fully, but that seems a lot better. >>>>>>> I'll look into this... >>>>>>> Warner >>>>>> I rebuilt just the kernel but the same problem persists - started building world and I'm seeing: >>>>>> >>>>>> /usr/src/gnu/usr.bin/gdb/kgdb/trgt_mips.c:122: error: 'struct trapframe' has no member named 't4' >>>>>> >>>>>> and so on, have just commented them out for now so it completes, may just be left overs from previous build - may be getting confused :) >>>>> You can just rebuild the kernel (I'll fix the kgdb stuff, I didn't see that when I built the world for some reason). >>>>> Please try this patch to see if this fixes it. >>>>> Warner >>>> So far so good, boots into multiuser - will give it a thrashing and see if I can make it break :) >>> Thanks Joe. I'll go ahead and commit it then and work on a longer term solution. >>> Warner >> Excellent, still seeing trapframe panics under cpu load but it's at least usable! > > Were those there before I started F*@#!$@ with things? > Yeah, original pr is the one I'm still getting... just trying to track down exactly what part of the building triggers it, as it doesn't happen if it's not compiling or hammering flash >> I'll let you get on with fiddling now :) > > Cool! I think I've transitioned to me new cavium setup.. > > Warner