All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Paul Bolle <pebolle@tiscali.nl>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Guenter Roeck <linux@roeck-us.net>,
	Tony Luck <tony.luck@intel.com>,
	Fenghua Yu <fenghua.yu@intel.com>
Subject: Re: [PATCHv2 05/19] ia64: expose number of page table levels on Kconfig level
Date: Mon, 2 Feb 2015 15:50:10 +0200	[thread overview]
Message-ID: <20150202135010.GA12902@node.dhcp.inet.fi> (raw)
In-Reply-To: <1422881799.19005.31.camel@x220>

On Mon, Feb 02, 2015 at 01:56:39PM +0100, Paul Bolle wrote:
> On Sat, 2015-01-31 at 02:17 +0200, Kirill A. Shutemov wrote:
> > We would want to use number of page table level to define mm_struct.
> > Let's expose it as CONFIG_PGTABLE_LEVELS.
> > 
> > We need to define PGTABLE_LEVELS before sourcing init/Kconfig:
> > arch/Kconfig will define default value and it's sourced from init/Kconfig.
> > 
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> > Cc: Tony Luck <tony.luck@intel.com>
> > Cc: Fenghua Yu <fenghua.yu@intel.com>
> > ---
> >  v2: fix default for IA64_PAGE_SIZE_64KB
> > ---
> >  arch/ia64/Kconfig                | 18 +++++-------------
> >  arch/ia64/include/asm/page.h     |  4 ++--
> >  arch/ia64/include/asm/pgalloc.h  |  4 ++--
> >  arch/ia64/include/asm/pgtable.h  | 12 ++++++------
> >  arch/ia64/kernel/ivt.S           | 12 ++++++------
> >  arch/ia64/kernel/machine_kexec.c |  4 ++--
> >  6 files changed, 23 insertions(+), 31 deletions(-)
> > 
> > diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
> > index 074e52bf815c..4f9a6661491b 100644
> > --- a/arch/ia64/Kconfig
> > +++ b/arch/ia64/Kconfig
> > @@ -1,3 +1,8 @@
> > +config PGTABLE_LEVELS
> > +	int "Page Table Levels" if !IA64_PAGE_SIZE_64KB
> > +	range 3 4 if !IA64_PAGE_SIZE_64KB
> > +	default 3
> > +
> 
> Why didn't you choose to make this something like
>     config PGTABLE_LEVELS
> 	int
> 	default 3 if PGTABLE_3
> 	default 4 if PGTABLE_4
> 
> >  source "init/Kconfig"
> >  
> >  source "kernel/Kconfig.freezer"
> > @@ -286,19 +291,6 @@ config IA64_PAGE_SIZE_64KB
> >  
> >  endchoice
> >  
> > -choice
> > -	prompt "Page Table Levels"
> > -	default PGTABLE_3
> > -
> > -config PGTABLE_3
> > -	bool "3 Levels"
> > -
> > -config PGTABLE_4
> > -	depends on !IA64_PAGE_SIZE_64KB
> > -	bool "4 Levels"
> > -
> > -endchoice
> > -
> >  if IA64_HP_SIM
> >  config HZ
> >  	default 32
> 
> ... and drop this hunk (ie, keep this choice as it is)? That would make
> upgrading to a release that uses PGTABLE_LEVELS do the right thing
> automagically, wouldn't it? As currently in the !IA64_PAGE_SIZE_64KB
> case people need to reconfigure their "Page Table Levels".

Again: I can do it if maintainers prefer.

But I don't see much sense in having arch-specific kconfig option if we
have generic one.

-- 
 Kirill A. Shutemov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: "Kirill A. Shutemov" <kirill@shutemov.name>
To: Paul Bolle <pebolle@tiscali.nl>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Martin Schwidefsky <schwidefsky@de.ibm.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, linux-kernel@vger.kernel.org,
	Guenter Roeck <linux@roeck-us.net>,
	Tony Luck <tony.luck@intel.com>,
	Fenghua Yu <fenghua.yu@intel.com>
Subject: Re: [PATCHv2 05/19] ia64: expose number of page table levels on Kconfig level
Date: Mon, 2 Feb 2015 15:50:10 +0200	[thread overview]
Message-ID: <20150202135010.GA12902@node.dhcp.inet.fi> (raw)
In-Reply-To: <1422881799.19005.31.camel@x220>

On Mon, Feb 02, 2015 at 01:56:39PM +0100, Paul Bolle wrote:
> On Sat, 2015-01-31 at 02:17 +0200, Kirill A. Shutemov wrote:
> > We would want to use number of page table level to define mm_struct.
> > Let's expose it as CONFIG_PGTABLE_LEVELS.
> > 
> > We need to define PGTABLE_LEVELS before sourcing init/Kconfig:
> > arch/Kconfig will define default value and it's sourced from init/Kconfig.
> > 
> > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
> > Cc: Tony Luck <tony.luck@intel.com>
> > Cc: Fenghua Yu <fenghua.yu@intel.com>
> > ---
> >  v2: fix default for IA64_PAGE_SIZE_64KB
> > ---
> >  arch/ia64/Kconfig                | 18 +++++-------------
> >  arch/ia64/include/asm/page.h     |  4 ++--
> >  arch/ia64/include/asm/pgalloc.h  |  4 ++--
> >  arch/ia64/include/asm/pgtable.h  | 12 ++++++------
> >  arch/ia64/kernel/ivt.S           | 12 ++++++------
> >  arch/ia64/kernel/machine_kexec.c |  4 ++--
> >  6 files changed, 23 insertions(+), 31 deletions(-)
> > 
> > diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig
> > index 074e52bf815c..4f9a6661491b 100644
> > --- a/arch/ia64/Kconfig
> > +++ b/arch/ia64/Kconfig
> > @@ -1,3 +1,8 @@
> > +config PGTABLE_LEVELS
> > +	int "Page Table Levels" if !IA64_PAGE_SIZE_64KB
> > +	range 3 4 if !IA64_PAGE_SIZE_64KB
> > +	default 3
> > +
> 
> Why didn't you choose to make this something like
>     config PGTABLE_LEVELS
> 	int
> 	default 3 if PGTABLE_3
> 	default 4 if PGTABLE_4
> 
> >  source "init/Kconfig"
> >  
> >  source "kernel/Kconfig.freezer"
> > @@ -286,19 +291,6 @@ config IA64_PAGE_SIZE_64KB
> >  
> >  endchoice
> >  
> > -choice
> > -	prompt "Page Table Levels"
> > -	default PGTABLE_3
> > -
> > -config PGTABLE_3
> > -	bool "3 Levels"
> > -
> > -config PGTABLE_4
> > -	depends on !IA64_PAGE_SIZE_64KB
> > -	bool "4 Levels"
> > -
> > -endchoice
> > -
> >  if IA64_HP_SIM
> >  config HZ
> >  	default 32
> 
> ... and drop this hunk (ie, keep this choice as it is)? That would make
> upgrading to a release that uses PGTABLE_LEVELS do the right thing
> automagically, wouldn't it? As currently in the !IA64_PAGE_SIZE_64KB
> case people need to reconfigure their "Page Table Levels".

Again: I can do it if maintainers prefer.

But I don't see much sense in having arch-specific kconfig option if we
have generic one.

-- 
 Kirill A. Shutemov

  reply	other threads:[~2015-02-02 13:51 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 14:43 [PATCH 00/19] expose page table levels on Kconfig leve Kirill A. Shutemov
2015-01-30 14:43 ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 01/19] alpha: expose number of page table levels on Kconfig level Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 02/19] arm64: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:56   ` Catalin Marinas
2015-01-30 14:56     ` Catalin Marinas
2015-01-31  6:23     ` Jungseok Lee
2015-01-31  6:23       ` Jungseok Lee
2015-01-30 14:43 ` [PATCH 03/19] arm: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 16:02   ` Russell King - ARM Linux
2015-01-30 16:02     ` Russell King - ARM Linux
2015-01-30 16:24     ` Kirill A. Shutemov
2015-01-30 16:24       ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 04/19] frv: mark PUD and PMD folded Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 05/19] ia64: expose number of page table levels on Kconfig level Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-31  0:17   ` [PATCHv2 " Kirill A. Shutemov
2015-01-31  0:17     ` Kirill A. Shutemov
2015-02-02 12:56     ` Paul Bolle
2015-02-02 12:56       ` Paul Bolle
2015-02-02 13:50       ` Kirill A. Shutemov [this message]
2015-02-02 13:50         ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 06/19] m32r: mark PMD folded Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 07/19] m68k: mark PMD folded and expose number of page table levels Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 08/19] mips: expose number of page table levels on Kconfig level Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 09/19] mn10300: mark PUD and PMD folded Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 10/19] parisc: expose number of page table levels on Kconfig level Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 11/19] powerpc: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-31  0:27   ` [PATCHv2 " Kirill A. Shutemov
2015-01-31  0:27     ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 12/19] s390: expose number of page table levels Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:48   ` Martin Schwidefsky
2015-01-30 14:48     ` Martin Schwidefsky
2015-01-30 14:54     ` [PATCHv2 " Kirill A. Shutemov
2015-01-30 14:54       ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 13/19] sh: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 14/19] sparc: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 15/19] tile: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:49   ` Chris Metcalf
2015-01-30 14:49     ` Chris Metcalf
2015-01-30 14:43 ` [PATCH 16/19] um: " Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 19:29   ` Richard Weinberger
2015-01-30 19:29     ` Richard Weinberger
2015-01-30 14:43 ` [PATCH 17/19] x86: expose number of page table levels on Kconfig level Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-31  0:30   ` [PATCHv2 " Kirill A. Shutemov
2015-01-31  0:30     ` Kirill A. Shutemov
2015-02-02 11:26     ` Paul Bolle
2015-02-02 11:26       ` Paul Bolle
2015-02-02 11:37       ` Kirill A. Shutemov
2015-02-02 11:37         ` Kirill A. Shutemov
2015-02-02 11:57         ` Paul Bolle
2015-02-02 11:57           ` Paul Bolle
2015-02-02 12:07           ` Kirill A. Shutemov
2015-02-02 12:07             ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 18/19] mm: define default PGTABLE_LEVELS to two Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 14:43 ` [PATCH 19/19] mm: do not add nr_pmds into mm_struct if PMD is folded Kirill A. Shutemov
2015-01-30 14:43   ` Kirill A. Shutemov
2015-01-30 17:26 ` [PATCH 00/19] expose page table levels on Kconfig leve Guenter Roeck
2015-01-30 17:26   ` Guenter Roeck
2015-01-30 18:50   ` Kirill A. Shutemov
2015-01-30 18:50     ` Kirill A. Shutemov
2015-01-30 19:14     ` Guenter Roeck
2015-01-30 19:14       ` Guenter Roeck
2015-01-30 20:09       ` Kirill A. Shutemov
2015-01-30 20:09         ` Kirill A. Shutemov
2015-01-30 20:41         ` Guenter Roeck
2015-01-30 20:41           ` Guenter Roeck
2015-01-30 20:59         ` Guenter Roeck
2015-01-30 20:59           ` Guenter Roeck
2015-01-31  0:11           ` Kirill A. Shutemov
2015-01-31  0:11             ` Kirill A. Shutemov
2015-01-31  6:23             ` Guenter Roeck
2015-01-31  6:23               ` Guenter Roeck
2015-01-31  0:36 ` [PATCH] mm: do not use mm->nr_pmds on !MMU configurations Kirill A. Shutemov
2015-01-31  0:36   ` Kirill A. Shutemov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150202135010.GA12902@node.dhcp.inet.fi \
    --to=kirill@shutemov.name \
    --cc=akpm@linux-foundation.org \
    --cc=fenghua.yu@intel.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux@roeck-us.net \
    --cc=pebolle@tiscali.nl \
    --cc=schwidefsky@de.ibm.com \
    --cc=tony.luck@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.