From owner-freebsd-mips@FreeBSD.ORG Fri Mar 19 12:18:56 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 5E473106564A for ; Fri, 19 Mar 2010 12:18:56 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3525D8FC20 for ; Fri, 19 Mar 2010 12:18:55 +0000 (UTC) Received: by pwj4 with SMTP id 4so2460063pwj.13 for ; Fri, 19 Mar 2010 05:18:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=i0UFztXI63VL8ybAxRs9JtF3XTRRiw1/p7D/72QnRbw=; b=Pv6jhx2hLqc4HAhjrY2Ji+2269IYHl5VyP65lWDSr+T7FK1wRM5vs7lD6issOuhH+T kkmxAzYlEA3dNq2YhGs4tc0DzwywSsSys/sSX9SLs5bsY6Iboa5dKyGO5DM294ocwlUI xVv0xYk+FtutUZCRRfTcge9slAyOtKW9uNmvU= 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; b=PUjreNvUp293egcVvj6Gl7ClRFJftaMfL2fo6xnFTscRwq9VLxuKwNgRIjGZhN887T GUC+N0tlJ4L/RuZES87viK4X+ZBX0Ju3a8vSosGD2/4efYnx1JnBSpG3vMbgLjsE9B4k kE7GhMDQuoII62Piek+Bp0MoQGs4MNmGykxns= MIME-Version: 1.0 Received: by 10.141.213.21 with SMTP id p21mr2909648rvq.103.1269001134422; Fri, 19 Mar 2010 05:18:54 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Mar 2010 17:48:54 +0530 Message-ID: <98a59be81003190518h32b118d3t79927954c92f933a@mail.gmail.com> From: "C. Jayachandran" To: Neel Natu Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-mips@freebsd.org Subject: Re: PATCH: enable use of memory beyond kseg0 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: Fri, 19 Mar 2010 12:18:56 -0000 On Tue, Mar 16, 2010 at 7:05 AM, Neel Natu wrote: > This patch enables use of physical memory that is beyond the direct > mapped kseg0 region. > > The basic idea is to use KVA from the kseg2 region for mapping page > table pages that lie beyond the direct mapped region. > > The TLB miss handler can now recursively fault into the TLB invalid > handler if it dereferences a kseg2 page table page address that is not > in the TLB. The TLB invalid handler had to be extensively modified but > in the end came out much cleaner. > > I have tested this on a uni and multi-processor Sibyte with 1GB of > memory. It would be useful if this patch had some independent testing > as well. > > Please review. > > http://people.freebsd.org/~neel/mips_beyond_kseg.diff This fixes the crash I was seeing during 'make -j16 buildworld' on XLR. The buildworld completed after running about 6 hours over NFS mounted src and obj dir, so the patch looks good. I haven't done any performance comparisons yet. JC.