From owner-freebsd-mips@FreeBSD.ORG Fri Mar 19 18:48:59 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 6C5C71065670 for ; Fri, 19 Mar 2010 18:48:59 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 426A38FC1A for ; Fri, 19 Mar 2010 18:48:59 +0000 (UTC) Received: by pvc7 with SMTP id 7so510932pvc.13 for ; Fri, 19 Mar 2010 11:48:58 -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=rcwuw2Hpvj/Llx9cHUUWCE/pTXA3dsVxusb0iuQZk4o=; b=gtjy5YF8M3H6tcW5BSki1FYB6ssIwyC8c/P+V/WGaimEGf5kvSisc1WR1Xdxyz6ZWj VHUPgn/706hKnSBx/gqwpzprlaapuIWXLZi+eKkpktAFSQDSkliSV/+hatJkpVVPnmXx QhCvbhk9KgpW82PvKvgqRiZeg0+z4X/Rx54QA= 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=vPynqC77Th5uw1SfpXJsOXgpeh/Hh1nfHyCMl6zhC9DiV+eeFhuY66qVnMog9kgj+0 PC57KOPYu/gsLAkhp3jjPDmtv2piqdf+YHhoDuge034GKQGg3KPkMBi6TsydvJ+Bvzl6 DI98ZD52o8T4bKYTDHffKcMIU6VvXpMkK/i8w= MIME-Version: 1.0 Received: by 10.142.60.21 with SMTP id i21mr547037wfa.132.1269024538756; Fri, 19 Mar 2010 11:48:58 -0700 (PDT) In-Reply-To: <98a59be81003190518h32b118d3t79927954c92f933a@mail.gmail.com> References: <98a59be81003190518h32b118d3t79927954c92f933a@mail.gmail.com> Date: Fri, 19 Mar 2010 11:48:58 -0700 Message-ID: From: Neel Natu To: "C. Jayachandran" 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 18:48:59 -0000 Hi JC, On Fri, Mar 19, 2010 at 5:18 AM, C. Jayachandran wrote: > 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. > Thanks a lot for taking the time and effort to test this - much appreciated. best Neel > JC. >