Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 30 Mar 2009 09:24:53 +0100 (BST) Received: from tenor.i-cable.com ([203.83.115.107]:56817 "HELO tenor.i-cable.com") by ftp.linux-mips.org with SMTP id S20036228AbZC3IYr (ORCPT ); Mon, 30 Mar 2009 09:24:47 +0100 Received: (qmail 12443 invoked by uid 508); 30 Mar 2009 08:24:39 -0000 Received: from 203.83.114.122 by tenor (envelope-from , uid 505) with qmail-scanner-1.25 (clamdscan: 0.93.3/7824. Clear:RC:1(203.83.114.122):. Processed in 0.193087 secs); 30 Mar 2009 08:24:39 -0000 Received: from ip114122.hkicable.com (HELO xenon.i-cable.com) (203.83.114.122) by 0 with SMTP; 30 Mar 2009 08:24:38 -0000 Received: from localhost (cm222-167-208-75.hkcable.com.hk [222.167.208.75]) by xenon.i-cable.com (8.13.5/8.13.5) with ESMTP id n2U8OQfp009819; Mon, 30 Mar 2009 16:24:27 +0800 (CST) Date: Mon, 30 Mar 2009 16:24:15 +0800 From: Zhang Le To: =?utf-8?B?5p6X5bu65a6J?= Cc: Ralf Baechle , linux-mips@linux-mips.org Subject: Re: The impact to change page size to 16k for cache alias Message-ID: <20090330082414.GA4797@adriano.hkcable.com.hk> Mail-Followup-To: =?utf-8?B?5p6X5bu65a6J?= , Ralf Baechle , linux-mips@linux-mips.org References: <9BDA961341E843F29C1C1ECDB54FD0CF@realtek.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9BDA961341E843F29C1C1ECDB54FD0CF@realtek.com.tw> User-Agent: Mutt/1.5.19 (2009-01-05) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 22183 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: r0bertz@gentoo.org Precedence: bulk X-list: linux-mips On 12:06 Mon 30 Mar , 林建安 wrote: > > Hi all, > We are willing to use 16k page size to avoid cache alias problem. > The Linux version we use is 2.6.12. If we just upgrade mm system to > support 16k page size, what else problems will happen? > There is already one thing we know that applications of ELF format > applications should be transformed to be 16k alignment. > Another one, we think, highly suspected to be problematic is that many > drivers will be ok for 4k page size but fails for 16k. > That is because 4k page size had been seemed to be natural for a very > long long time. > Any other problem that shall happen for 16k page size? Linux on Loongson 2E and 2F uses 16k page size to avoid cache alias problem, too. However, I haven't encountered any problem on Linux kernel itself due to 16k page size. Anyway, I am not 100% familiar with Loongson patches, so I am not sure whether the page size problem is already been taken care of in the patch. If you are interested to find out yourself, you can get the whole source here: http://repo.or.cz/w/linux-2.6/linux-loongson.git Zhang, Le http://zhangle.is-a-geek.org