From owner-freebsd-mips@FreeBSD.ORG Thu Feb 11 17:31:27 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 6B813106566C for ; Thu, 11 Feb 2010 17:31:27 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f189.google.com (mail-pz0-f189.google.com [209.85.222.189]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5368FC14 for ; Thu, 11 Feb 2010 17:31:27 +0000 (UTC) Received: by pzk27 with SMTP id 27so72310pzk.27 for ; Thu, 11 Feb 2010 09:31:26 -0800 (PST) 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 :content-transfer-encoding; bh=ILcpjB1CrJX/YgygGZtNTCTuDlEIXtdUi0GvZnwl74Y=; b=FKOFAAXyAy7spUayt4P9lIvAaDVeI3j6se9073UUJ9lZdOlu+kzqebQbgZhQD/P0+g MZEmzp7ScwHR4Lrl+nYRfKw5wOcmxYn3Ed5+V/xo1P6MocHEmqBM5Din5WskN1pf2AWO fsa3UvkDz67m1wWdPR8KsrgdHO1k9a9Hjg20s= 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=YudZPe/oX7ZemAgLijF5Iv3SiysKxGPtgYhtNg/Ry3H68Q7fSe14AAR60DkBQntro3 ZhetkwLEheZS2JEzrffS65jzy42Jlg/gC7QsUuoaO7HorJ1DxbJScySqH7ZVVDUD1cts 88TmjNWAVrqTHKhtC1U4xsBVCrLuPbBXdYG+w= MIME-Version: 1.0 Received: by 10.141.90.2 with SMTP id s2mr85621rvl.273.1265909486687; Thu, 11 Feb 2010 09:31:26 -0800 (PST) In-Reply-To: <20100211.100530.390080239494612674.imp@bsdimp.com> References: <5709963B-3F83-44FE-991F-A3227A2052DC@lakerest.net> <98a59be81002110655y60ab4e8cj473f4b6ecf6f5ae4@mail.gmail.com> <20100211.100530.390080239494612674.imp@bsdimp.com> Date: Thu, 11 Feb 2010 23:01:26 +0530 Message-ID: <98a59be81002110931h2fd2c250heec0520860768689@mail.gmail.com> From: "C. Jayachandran" To: "M. Warner Losh" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hzou@netlogicmicro.com, jayachandranc@netlogicmicro.com, freebsd-mips@freebsd.org Subject: Re: RMI status 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: Thu, 11 Feb 2010 17:31:27 -0000 On Thu, Feb 11, 2010 at 10:35 PM, M. Warner Losh wrote: > > cj> Any plan of doing n32? =A0n32 with 64-bit physical address support ma= y > cj> be a better suited base configuration for XLR than o32, because we ca= n > cj> use all of the memory and the 64 bit support, without having to go > cj> full 64-bit. > > rrs>Not sure.. Warner, what do you think.. should we mess with n32? > > My plans are to mine the Cavium port for n32 and n64 support. =A0I've > done some preliminary work on this, and it doesn't look too horrible. > I do think there's a place to do both n32 as well as n64 in this > system. =A0Either one, in the kernel, could more easily access the > hardware on Octeon (and I think XLR) that has a bunch of funky bits > set in the higher bits and is too sparse to be covered by one wired > TLB entry. > > I have no plans to support the so-called 'o64' mode or the 'o32 with > 64-bit registers' mode of operation. =A0I'd like to retire the 'let's > run an o32 binary in 64-bit mode while in the kernel' mode that we're > using for Octeon right now. =A0It is useful as a bootstrap, but just a > little too non-standard for my tastes. =A0We'll get better compiler > support if we don't try to do unnatural things like this anyway. The FreeBSD 6 port to XLR was o64. Even in o32/o64, it is useful to go enable 64bit mode in kernel (with KX bit and maybe XTLB handler) since you can access the whole physical memory and IO without using TLB entries. Is the plan to have full n32 (including userspace), or have compatibility code to run o32 userspace on n32 kernel? I guess I should have a look at the current support.... JC.