Skip to contentSkip to conversation

arc/Kconfig: include mm/Kconfig inside "ARC system configuration"

PATCH In review Mike Rapoport 4 participants 11 messages Jun 29, 2018 – Jul 2, 2018 Synopsys ARC architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arc/Kconfig: include mm/Kconfig inside "ARC system configuration"

Otherwise mm configuration options show up in the top level menu.

---
 arch/arc/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/Kconfig +2 -2
index e81bcd271be7..92cf06b354a8 100644
@@ -554,8 +554,6 @@ menu "Executable file formats"
 source "fs/Kconfig.binfmt"
 endmenu
 
-endmenu	 # "ARC Architecture Configuration"
-
 source "mm/Kconfig"
 
 config FORCE_MAX_ZONEORDER
@@ -563,6 +561,8 @@ config FORCE_MAX_ZONEORDER
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
 
+endmenu	 # "ARC Architecture Configuration"
+
 source "net/Kconfig"
 source "drivers/Kconfig"
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Hi Mike,

In which config tool does this matter?

For xconfig, it seems to me that this patch hides the MM menu, whereas before this patch, the MM menu is easy to find (although it could use some kind of heading).

Quoted 27 lines
---
 arch/arc/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arc/Kconfig +2 -2
index e81bcd271be7..92cf06b354a8 100644
@@ -554,8 +554,6 @@ menu "Executable file formats"
 source "fs/Kconfig.binfmt"
 endmenu
 
-endmenu	 # "ARC Architecture Configuration"
-
 source "mm/Kconfig"
 
 config FORCE_MAX_ZONEORDER
@@ -563,6 +561,8 @@ config FORCE_MAX_ZONEORDER
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
 
+endmenu	 # "ARC Architecture Configuration"
+
 source "net/Kconfig"
 source "drivers/Kconfig"
 
Signature · 1 line
~Randy
#2 lore raw

Hi Randy,

Quoted 5 lines · Randy Dunlap
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Quoted 7 lines

Hi Mike,

In which config tool does this matter?

For xconfig, it seems to me that this patch hides the MM menu, whereas before this patch, the MM menu is easy to find (although it could use some kind of heading).

With xconfig the menu gets into the top right pane when you click on "ARC architecture configuration", similar to what one gets on x86 with "Processor type and features" or "Kernel features" on ARM.

With menuconfig it looks a bit more prominent, note that mm options are between "ARC Architecture Configuration" and "Networking support":

.config - Linux/arc 4.18.0-rc2 Kernel Configuration

 ──────────────────────────────────────────────────────────────────────────────
  ┌─────────────── Linux/arc 4.18.0-rc2 Kernel Configuration ───────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │  
  │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │  
  │  includes, <N> excludes, <M> modularizes features.  Press <Esc><Esc> to │  
  │  exit, <?> for Help, </> for Search.  Legend: [*] built-in  [ ]         │  
  │ ┌─────────────────────────────────────────────────────────────────────┐ │  
  │ │        *** Compiler: arc-elf-gcc (GCC) 7.3.0 ***                    │ │  
  │ │        General setup  --->                                          │ │  
  │ │    [*] Enable loadable module support  --->                         │ │  
  │ │    [*] Enable the block layer  --->                                 │ │  
  │ │        ARC Architecture Configuration  --->                         │ │  
  │ │    [ ] Allow for memory compaction                                  │ │  
  │ │    [*] Enable bounce buffers                                        │ │  
  │ │    [ ] Enable KSM for page merging                                  │ │  
  │ │    (4096) Low address space to protect from user allocation         │ │  
  │ │    [ ] Enable cleancache driver to cache clean pages if tmem is pres│ │  
  │ │    [ ] Contiguous Memory Allocator                                  │ │  
  │ │    < > Common API for compressed memory storage                     │ │  
  │ │    < > Low (Up to 2x) density storage for compressed pages          │ │  
  │ │    < > Memory allocator for compressed pages                        │ │  
  │ │    [ ] Enable idle page tracking                                    │ │  
  │ │    [ ] Collect percpu memory statistics                             │ │  
  │ │    [ ] Enable infrastructure for get_user_pages_fast() benchmarking │ │  
  │ │    (11) Maximum zone order                                          │ │  
  │ │    [*] Networking support  --->                                     │ │  
  │ │        Device Drivers  --->                                         │ │  
  │ │        Bus Support  --->                                            │ │  
  │ │        File systems  --->                                           │ │  
  │ │        Kernel hacking  --->                                         │ │  
  │ │        Security options  --->                                       │ │  
  │ │    -*- Cryptographic API  --->                                      │ │  
  │ │        Library routines  --->                                       │ │  
  │ │    [ ] Device power management core functionality                   │ │  
  │ │                                                                     │ │  
  │ └─────────────────────────────────────────────────────────────────────┘ │  
  ├─────────────────────────────────────────────────────────────────────────┤  
  │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
  └─────────────────────────────────────────────────────────────────────────┘  
Quoted 14 lines
Quoted 9 lines
arch/arc/Kconfig +2 -0
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
 
+endmenu	 # "ARC Architecture Configuration"
+
 source "net/Kconfig"
 source "drivers/Kconfig"
Signature · 1 line
~Randy
Signature · 2 lines
Sincerely yours,
Mike.
#3 lore raw
Quoted 16 lines · Mike Rapoport

Hi Randy,

Quoted 5 lines · Randy Dunlap
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Quoted 7 lines

Hi Mike,

In which config tool does this matter?

For xconfig, it seems to me that this patch hides the MM menu, whereas before this patch, the MM menu is easy to find (although it could use some kind of heading).

Quoted 6 lines

With xconfig the menu gets into the top right pane when you click on "ARC architecture configuration", similar to what one gets on x86 with "Processor type and features" or "Kernel features" on ARM.

With menuconfig it looks a bit more prominent, note that mm options are between "ARC Architecture Configuration" and "Networking support":

I know. I ran all 4 of menuconfig, nconfig, xconfig, and gconfig.

I would prefer to see Memory Management options have its own top-level menu, but that's a different patch. Then menuconfig would look like this:

│ │        *** Compiler: arc-linux-gcc (GCC) 8.1.0 ***                  │ │  
  │ │        General setup  --->                                          │ │  
  │ │    [*] Enable loadable module support  --->                         │ │  
  │ │    [*] Enable the block layer  --->                                 │ │  
  │ │        ARC Architecture Configuration  --->                         │ │  
  │ │        Memory Management options  --->                              │ │  
  │ │    (11) Maximum zone order                                          │ │  
  │ │    [*] Networking support  --->                                     │ │  
  │ │        Device Drivers  --->                                         │ │  
  │ │        Bus Support  ---> 

but that "Maximum zone order" needs to be moved or taken care of somehow.

[snip]

Quoted 10 lines
Quoted 10 lines

arch/arc/Kconfig config FORCE_MAX_ZONEORDER · line 567

Quoted 10 lines
arch/arc/Kconfig +2 -0
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
 
+endmenu	 # "ARC Architecture Configuration"
+
 source "net/Kconfig"
 source "drivers/Kconfig"

thanks,

Signature · 1 line
~Randy
#4 lore raw
Quoted 28 lines · Randy Dunlap
Quoted 14 lines · Mike Rapoport

Hi Randy,

Quoted 11 lines · Randy Dunlap
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Hi Mike,

In which config tool does this matter?

For xconfig, it seems to me that this patch hides the MM menu, whereas before this patch, the MM menu is easy to find (although it could use some kind of heading).

Quoted 6 lines

With xconfig the menu gets into the top right pane when you click on "ARC architecture configuration", similar to what one gets on x86 with "Processor type and features" or "Kernel features" on ARM.

With menuconfig it looks a bit more prominent, note that mm options are between "ARC Architecture Configuration" and "Networking support":

I know. I ran all 4 of menuconfig, nconfig, xconfig, and gconfig.

I would prefer to see Memory Management options have its own top-level menu, but that's a different patch. Then menuconfig would look like this:

Quoted 10 lines
│ │        *** Compiler: arc-linux-gcc (GCC) 8.1.0 ***                  │ │  
  │ │        General setup  --->                                          │ │  
  │ │    [*] Enable loadable module support  --->                         │ │  
  │ │    [*] Enable the block layer  --->                                 │ │  
  │ │        ARC Architecture Configuration  --->                         │ │  
  │ │        Memory Management options  --->                              │ │  
  │ │    (11) Maximum zone order                                          │ │  
  │ │    [*] Networking support  --->                                     │ │  
  │ │        Device Drivers  --->                                         │ │  
  │ │        Bus Support  ---> 

Indeed I realized after applying that we are cluttering the mm stuff inside ARC.

So I don't see real net improvement with this patch/

Quoted 1 line

but that "Maximum zone order" needs to be moved or taken care of somehow.

Right this is mm specific option which is provided for by arch. And even a redirector like ARCH_HAS_FORCE_MAX and moving this to generic mm won't cut it since the option values are arch specific !

-Vineet

#5 lore raw
In reply to Randy Dunlap
Quoted 43 lines · Randy Dunlap
Quoted 16 lines · Mike Rapoport

Hi Randy,

Quoted 5 lines · Randy Dunlap
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Quoted 7 lines

Hi Mike,

In which config tool does this matter?

For xconfig, it seems to me that this patch hides the MM menu, whereas before this patch, the MM menu is easy to find (although it could use some kind of heading).

Quoted 6 lines

With xconfig the menu gets into the top right pane when you click on "ARC architecture configuration", similar to what one gets on x86 with "Processor type and features" or "Kernel features" on ARM.

With menuconfig it looks a bit more prominent, note that mm options are between "ARC Architecture Configuration" and "Networking support":

I know. I ran all 4 of menuconfig, nconfig, xconfig, and gconfig.

I would prefer to see Memory Management options have its own top-level menu, but that's a different patch. Then menuconfig would look like this:

│ │        *** Compiler: arc-linux-gcc (GCC) 8.1.0 ***                  │ │  
  │ │        General setup  --->                                          │ │  
  │ │    [*] Enable loadable module support  --->                         │ │  
  │ │    [*] Enable the block layer  --->                                 │ │  
  │ │        ARC Architecture Configuration  --->                         │ │  
  │ │        Memory Management options  --->                              │ │  
  │ │    (11) Maximum zone order                                          │ │  
  │ │    [*] Networking support  --->                                     │ │  
  │ │        Device Drivers  --->                                         │ │  
  │ │        Bus Support  ---> 
Quoted 1 line

but that "Maximum zone order" needs to be moved or taken care of somehow.

I think that would be something like this:

arch/arc/Kconfig +2 -0
index e81bcd271be7..44a20141639a 100644
@@ -556,12 +556,14 @@ endmenu
 
 endmenu	 # "ARC Architecture Configuration"
 
+menu "Memory Management"
 source "mm/Kconfig"
 
 config FORCE_MAX_ZONEORDER
 	int "Maximum zone order"
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
+endmenu # "Memory Management"
 
 source "net/Kconfig"
 source "drivers/Kconfig"
Quoted 19 lines

[snip]

Quoted 10 lines
Quoted 10 lines

Review

Quoted 10 lines
(quoted diff) +2 -0
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
 
+endmenu	 # "ARC Architecture Configuration"
+
 source "net/Kconfig"
 source "drivers/Kconfig"

thanks,

Signature · 1 line
~Randy
Signature · 2 lines
Sincerely yours,
Mike.
#6 lore raw
Quoted 11 lines · Mike Rapoport

I think that would be something like this:

arch/arc/Kconfig +1 -0
index e81bcd271be7..44a20141639a 100644
@@ -556,12 +556,14 @@ endmenu
 
 endmenu	 # "ARC Architecture Configuration"
 
+menu "Memory Management"

arch/arc/Kconfig endmenu · line 569

Quoted 10 lines
arch/arc/Kconfig +1 -0
 source "mm/Kconfig"
 
 config FORCE_MAX_ZONEORDER
 	int "Maximum zone order"
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
+endmenu # "Memory Management"
 
 source "net/Kconfig"
 source "drivers/Kconfig"

Awesome, this is exactly we want - care to send a formal patch ?

-Vineet

Tested-by Acked-by
#7 lore raw
Quoted 19 lines · Vineet Gupta
Quoted 18 lines · Mike Rapoport

I think that would be something like this:

arch/arc/Kconfig +2 -0
index e81bcd271be7..44a20141639a 100644
@@ -556,12 +556,14 @@ endmenu
 
 endmenu	 # "ARC Architecture Configuration"
 
+menu "Memory Management"
 source "mm/Kconfig"
 
 config FORCE_MAX_ZONEORDER
 	int "Maximum zone order"
 	default "12" if ARC_HUGEPAGE_16M
 	default "11"
+endmenu # "Memory Management"
 
Quoted 7 lines

arch/arc/Kconfig endmenu · line 569

Quoted 3 lines
arch/arc/Kconfig +0 -0
 source "net/Kconfig"
 source "drivers/Kconfig"

Awesome, this is exactly we want - care to send a formal patch ?

-Vineet

Mike, I interpret this as a reply to you.

And you can add:
Tested-by: Randy Dunlap <rdunlap at infradead.org>
Acked-by: Randy Dunlap <rdunlap at infradead.org>

and possibly:
Suggested-by: Randy Dunlap <rdunlap at infradead.org>

thanks,

Signature · 1 line
~Randy
#8 lore raw
In reply to Mike Rapoport
Quoted 4 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Signed-off-by Mike Rapoport <rppt at linux.vnet.ibm.com>

LGTM ! Added to for-curr

Thx,
-Vineet

#10 lore raw
Quoted 7 lines · Christoph Hellwig
Quoted 3 lines · Mike Rapoport

Otherwise mm configuration options show up in the top level menu.

Is this urgent? If not I'm about to post a series that moves the includes of all common kernel Kconfigs into the top-level Kconfig..

I believe it's not. The arch/arc/Kconfig had it for couple of years :)

Signature · 2 lines
Sincerely yours,
Mike.