From owner-freebsd-mips@FreeBSD.ORG Mon Sep 27 08:18:07 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 E36E0106566C for ; Mon, 27 Sep 2010 08:18:06 +0000 (UTC) (envelope-from phcoder@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6C77A8FC12 for ; Mon, 27 Sep 2010 08:18:05 +0000 (UTC) Received: by fxm9 with SMTP id 9so3372948fxm.13 for ; Mon, 27 Sep 2010 01:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=8Y89sSMLB+ar/IWdW1LOJyDuDpYXXvwz2wm93c5ubow=; b=xp1RPjahnUdwwR3w8Bk8+mYBstX85wk5Uuq57sPKYxcbMH1tLCkrMUgdxvI1iCn/yr vW5pgebSFp29o+oKYBE66zQ/bcMFUWtcLjIcpx3vuym9gLNPMeVYQZSlaiAtWSFlP8IY d3T7UEOoFRZn/W29jxFHiLhDwkjH7yPsYeMK4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=axkEEV0wAaydxSmNd6sfFXp57Jr7OwTKnnGhtCXgX6gdb/0b7/6uEpGuaQ3p6Z3goL rV63l+SW4eH3xBGhp8dVIHMuyF8lAPuR+zzuxudmfH8FcsQb/rJeFWCn/ZdClYPu1odA XdU58LyKY/uJd+wEPcJ0Lcp1k/gsAMxB3X9u0= Received: by 10.223.108.211 with SMTP id g19mr4164856fap.99.1285573656212; Mon, 27 Sep 2010 00:47:36 -0700 (PDT) Received: from debian.yeeloong.phnet (hg-public-dock-207-dhcp.ethz.ch [82.130.80.207]) by mx.google.com with ESMTPS id b9sm2238946faq.31.2010.09.27.00.47.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 27 Sep 2010 00:47:34 -0700 (PDT) Message-ID: <4CA0436E.2080005@gmail.com> Date: Mon, 27 Sep 2010 09:10:38 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux mips64; en-US; rv:1.9.1.12) Gecko/20100913 Icedove/3.0.7 MIME-Version: 1.0 To: freebsd-mips@freebsd.org X-Enigmail-Version: 1.0.1 Content-Type: multipart/mixed; boundary="------------070209000903090005020501" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [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 08:18:07 -0000 This is a multi-part message in MIME format. --------------070209000903090005020501 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. -- Regards Vladimir 'φ-coder/phcoder' Serbinenko --------------070209000903090005020501--