From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967649AbYD1XJZ (ORCPT ); Mon, 28 Apr 2008 19:09:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S967474AbYD1WsD (ORCPT ); Mon, 28 Apr 2008 18:48:03 -0400 Received: from rv-out-0708.google.com ([209.85.198.241]:6143 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967352AbYD1WsA (ORCPT ); Mon, 28 Apr 2008 18:48:00 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f+NIsCnaXg2KhfzZQBsmTgC2vWagKR6IeovojVvBWWGS5SVYrDxyV2aeT4yUOkDlbNYyZ1n4pnF5Cj+e4xdbTBprmqdK5Gs8XYdjAABq2J+BSt+xK/vg6M0Jcycp/dRzr4cYhOBYCkX8MYF/Dpdn1BvhtvGvhU889APaNrBRIwI= Message-ID: <86802c440804281547mf258345mbb7a3e8c3c0fa2f5@mail.gmail.com> Date: Mon, 28 Apr 2008 15:47:59 -0700 From: "Yinghai Lu" To: "Randy Dunlap" Subject: Re: [PATCH] x86: mtrr cleanup for converting continuous to discrete layout v5 Cc: "Yinghai Lu" , "Andrew Morton" , "Ingo Molnar" , "H. Peter Anvin" , "Thomas Gleixner" , "Gabriel C" , "linux-kernel@vger.kernel.org" , "Mika Fischer" In-Reply-To: <20080428153617.bcd4e301.randy.dunlap@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200804272337.40130.yhlu.kernel@gmail.com> <200804281244.56938.yhlu.kernel@gmail.com> <200804281316.14168.yhlu.kernel@gmail.com> <200804281505.05764.yhlu.kernel@gmail.com> <20080428153617.bcd4e301.randy.dunlap@oracle.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 28, 2008 at 3:36 PM, Randy Dunlap wrote: > On Mon, 28 Apr 2008 15:05:05 -0700 Yinghai Lu wrote: > > > Index: linux-2.6/Documentation/kernel-parameters.txt > > =================================================================== > > --- linux-2.6.orig/Documentation/kernel-parameters.txt > > +++ linux-2.6/Documentation/kernel-parameters.txt > > @@ -595,6 +595,16 @@ and is between 256 and 4096 characters. > > See drivers/char/README.epca and > > Documentation/digiepca.txt. > > > > + disable_mtrr_cleanup [X86] > > + enable_mtrr_cleanup [X86] > > + The kernel try to adjust MTRR layout from continuous > > tries > > > > + to discrete, to make x server driver could add WB entry > > X server driver able to add WB entry > > > > + later. This parameter enable/disable that. > > enables/disables > > > > + > > + mtrr_chunk_size=nn[KMG] [X86] > > + used for mtrr cleanup. It is largest continous chunk > > + that could hold holes aka. UC entries. > > + > > disable_mtrr_trim [X86, Intel and AMD only] > > By default the kernel will trim any uncacheable > > memory out of your available memory pool based on > > Index: linux-2.6/arch/x86/Kconfig > > =================================================================== > > --- linux-2.6.orig/arch/x86/Kconfig > > +++ linux-2.6/arch/x86/Kconfig > > @@ -1035,6 +1035,32 @@ config MTRR > > > > See for more information. > > > > +config MTRR_SANITIZER > > + def_bool y > > + prompt "MTRR cleanup support" > > + depends on MTRR > > + help > > + Convert MTRR layout from continuous to discrete, so some X driver > > + could add WB entries. > > + > > + Say N here if you see bootup problems (boot crash, boot hang, > > + spontaneous reboots). > > + > > + could be disabled with disable_mtrr_cleanup. also mtrr_chunk_size > > Could Also > > > > + could be used to send largest mtrr entry size for continuous block > > + to hold holes (aka. UC entries) > > + > > + If unsure, say Y. > > + > > +config MTRR_SANITIZER_ENABLE_DEFAULT > > + bool > > + prompt "MTRR cleanup enable default" > > prompt "Enable MTRR cleanup" > or > prompt "Enable MTRR cleanup by default" > > > > + depends on MTRR_SANITIZER > > + help > > + Enable mtrr cleanup by default > > default. > > > + > > + If unsure, say Y. > > + > > config X86_PAT > > bool > > prompt "x86 PAT support" thanks. YH