From owner-freebsd-mips@FreeBSD.ORG Thu Apr 25 02:44:40 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 7C620AA9 for ; Thu, 25 Apr 2013 02:44:40 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-da0-x234.google.com (mail-da0-x234.google.com [IPv6:2607:f8b0:400e:c00::234]) by mx1.freebsd.org (Postfix) with ESMTP id 502861ADF for ; Thu, 25 Apr 2013 02:44:40 +0000 (UTC) Received: by mail-da0-f52.google.com with SMTP id j17so1178801dan.39 for ; Wed, 24 Apr 2013 19:44:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to:x-mailer:x-gm-message-state; bh=PkY/hWeZaHYA6cnXNLCO0PrWHusw8PVW72q8CReblz0=; b=Kw+hjyMSPg2D7g0MX4JQHL6rIintJWpM0x+UvDg5uUCtHEoW5DjQorh3p/DgNbRz8a AWGn2RTnaszbC3nHMMXsCNvz2C9oBkCumlAZxwI1bJGdjGjeEo3zt+B6xJVWneRHHX3A CDoxTP5RJBhp3E8MBEXrziHH35toH21XcnaepeDJCCo1UnU1+p16NvHNDC+EtxAaTYxR pLWu/p1p6yG3c9R9xfM+ONuI9685hSRl6mZNm+WJG4DhZaIpR3kABjRMQziC0zQmZeiM 7kgHNWKFv/RO/h37+BsTCBLcP6R08msJaoio4jmqMxQotAeuSHXUrcsfpMJ/MUVhc3JE GKgA== X-Received: by 10.68.113.65 with SMTP id iw1mr49920363pbb.31.1366857879978; Wed, 24 Apr 2013 19:44:39 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id do4sm5302523pbc.8.2013.04.24.19.44.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Apr 2013 19:44:39 -0700 (PDT) Sender: Warner Losh Subject: Re: kern/177876: [mips] kernel stack overflow panic on mips64, EdgeRouter Lite Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51788F5B.2000905@rewt.org.uk> Date: Wed, 24 Apr 2013 20:44:35 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Joe Holden X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQn+CwAsj0/zVL4K4lpRdkW633gfsoO7DIfP2eZwfdCO0yxvVFa4m8nrlXJCWhO9OSPJMOCD Cc: Joe Holden , "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 02:44:40 -0000 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... :( >>>>>>>>=20 >>>>>>>> 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: >>>>>=20 >>>>> /usr/src/gnu/usr.bin/gdb/kgdb/trgt_mips.c:122: error: 'struct = trapframe' has no member named 't4' >>>>>=20 >>>>> 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? > I'll let you get on with fiddling now :) Cool! I think I've transitioned to me new cavium setup.. Warner=