From owner-freebsd-mips@FreeBSD.ORG Mon Sep 27 11:21:10 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 AD0FD106564A for ; Mon, 27 Sep 2010 11:21:10 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 40FCF8FC1D for ; Mon, 27 Sep 2010 11:21:09 +0000 (UTC) Received: by wwc33 with SMTP id 33so5928382wwc.31 for ; Mon, 27 Sep 2010 04:21:09 -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=StKxE7LubVF3VTHGL7x0723VPybDt3fbLA69CdkB8pw=; b=kDIllnyEAap6MyY5f7DG5CUwFyR7cOx2EoSqiHje16Zd8FJCdqE4aT8ydv72qA1WQZ R0wpPNa7XQccuglG8yR5dDriFmL6Koxhks/j8xCfX1bBPqWdtOYt4QnTh9xNdhO/nsd+ aRFTXM0u+5y5gMec4iqtO1nE2q3SfEJGPGxu4= 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=q01oWd1KrUVmoZA5TjiowuBwZevMJuiZJDECwHetYl4jBNsCvDW1QyrMS2kdKF1AYk J0YV8rGBbMjxXcqT5u6epaKuncNibdxAkSalO+gp5iTk1UORRiztiL3f25pK92a4DRee CMwEaCaOm2CqYxmIxCjL5VZEj3gbJcU6TYooE= MIME-Version: 1.0 Received: by 10.227.180.205 with SMTP id bv13mr5945569wbb.39.1285586451408; Mon, 27 Sep 2010 04:20:51 -0700 (PDT) Received: by 10.227.139.205 with HTTP; Mon, 27 Sep 2010 04:20:51 -0700 (PDT) In-Reply-To: <4CA07AF3.1040403@gmail.com> References: <4CA0436E.2080005@gmail.com> <4CA07AF3.1040403@gmail.com> Date: Mon, 27 Sep 2010 16:50:51 +0530 Message-ID: From: "Jayachandran C." To: =?ISO-8859-7?Q?Vladimir_=27=F6=2Dcoder=2Fphcoder=27_Serbinenko?= Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: freebsd-mips@freebsd.org Subject: Re: [PATCH] [yeeloong] Kernel support for non-4K pages 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, 27 Sep 2010 11:21:10 -0000 2010/9/27 Vladimir '=F6-coder/phcoder' Serbinenko : > On 09/27/2010 09:10 AM, Vladimir '=F6-coder/phcoder' Serbinenko wrote: >> Loongson CPUs have an annoying VIPT cache and 14 bits of virtual address >> are used for tagging. So either we need an excessive and difficult to >> maintain cache flushing or to use 16K or biger pages. Note than when >> configuring Linux on Yeeloong only page size of 16K and 64K are proposed= . >> This patch fixes bunch of hardcoding of page size related constants and >> changes PAGE_SHIFT to 14 on Yeeloong. I'll see if I can get this to work on XLR also, thanks for splitting this o= ut. JC.