From owner-freebsd-mips@FreeBSD.ORG Mon Apr 26 20:19:58 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31BE81065678; Mon, 26 Apr 2010 20:19:58 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f201.google.com (mail-pz0-f201.google.com [209.85.222.201]) by mx1.freebsd.org (Postfix) with ESMTP id F095E8FC12; Mon, 26 Apr 2010 20:19:57 +0000 (UTC) Received: by pzk39 with SMTP id 39so968994pzk.7 for ; Mon, 26 Apr 2010 13:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eEw2NpSCuOfgsuE1bU1dXCmzol1dx8A5gBJGfsQjzXI=; b=GsW/ORRS1LoMhZg1m3vHjbUQT0claouyuoNGpqDLOfb751u/JpteBBBVJM6wdxhJDu lPiQtBxVcqI/dlMd6nC8fVKXFQlGn07QabeHgCY9/8/hyxj5RDmP5kWQhrSQvtPqjy6B tIL1UosizEabDijIHJaaILEUrKBW0esrFf3YI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=iTDzvNq2zJNhbj2b247sKl1YFbJdV4APLHHLXT4K/s2orHwkeNAqOMcYzlOsSYtBwk gSsTuth0gVPl4lpVE77t4OmLePE7Rm8GnSTrcTLLLnluT/In27Qp5EeLyrZ1Vu94itVw 0uTe4rbQHHWcd+/hi5k28m3KayqovHKWSF9rY= MIME-Version: 1.0 Received: by 10.141.213.24 with SMTP id p24mr4237278rvq.291.1272313195286; Mon, 26 Apr 2010 13:19:55 -0700 (PDT) Received: by 10.140.194.17 with HTTP; Mon, 26 Apr 2010 13:19:55 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Apr 2010 01:49:55 +0530 Message-ID: From: "C. Jayachandran" To: Juli Mallett Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: Crashes with the current -HEAD X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2010 20:19:58 -0000 On Tue, Apr 27, 2010 at 1:19 AM, Juli Mallett wrote: > On Mon, Apr 26, 2010 at 12:36, C. Jayachandran = wrote: >> I checked a few versions, =A0r206714 does not have the crash, r206717 >> has. I haven't looked at the changes yet, but if you have any >> suggestions let me know. > > There are two things there that could be problematic. > > The first is that interrupt enable/disable has been changed. =A0I don't > know anything about hazards on RMI systems, but if there's an > interrupt disable hazard, you may want to change CLEAR_STATUS and > DO_AST macros (in exception.S and asm.h respectively) to use many more > nops or ehbs and see if that makes the problem go away. XLR does not need any hazards for this. > The second is the changes to the lmem pages. =A0If you reduce MAXMEM so > that all of your memory is addressable within KSEG0 and KSEG1, you > won't use lmem at all. =A0If that makes the problem go away, it suggests > there is trouble in that area. > > I'm glad to do whatever I can, but I've been unable to get any RMI > hardware, so all I can do is suggest you look at those two areas your > try to narrow down to the specific change that caused the problem. >From the crash it looks like the PTE/PDE entires of some user processes are getting corrupted. May be this is due to the LMEM changes - will look at the code.... Regards, JC.