Skip to contentSkip to conversation

MXS: Remove MMAP_MIN_ADDR setting from mxs_defconfig

PATCH New Marek Vasut 2 participants 2 messages Aug 3, 2012 – Aug 4, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 MXS: Remove MMAP_MIN_ADDR setting from mxs_defconfig

The CONFIG_DEFAULT_MMAP_MIN_ADDR was set to 65536 in mxs_defconfig, this caused severe breakage of userland applications since the upper limit for ARM is 32768. By default CONFIG_DEFAULT_MMAP_MIN_ADDR is set to 4096 and can also be changed via /proc/sys/vm/mmap_min_addr if needed.

Quoting Russell King [1]:

"4096 is also fine for ARM too. There's not much point in having defconfigs change it - that would just be pure noise in the config files."

the CONFIG_DEFAULT_MMAP_MIN_ADDR can be removed from the defconfig altogether.

This problem was introduced by:

commit cde7c41feaa06cb6bfc748b2fc3c7d809091c2b0

Author: Wolfram Sang <[email protected]>
Date:   Fri Apr 29 15:06:40 2011 +0200

ARM: configs: add defconfig for mach-mxs

[1] http://marc.info/?l=linux-arm-kernel&m=134401593807820&w=2

Cc Russell King <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Wolfgang Denk <[email protected]>
---
 arch/arm/configs/mxs_defconfig |    1 -
 1 file changed, 1 deletion(-)

V2: Remove the setting altogether
Update description

arch/arm/configs/mxs_defconfig +0 -1
index ccdb635..4edcfb4 100644
@@ -34,7 +34,6 @@ CONFIG_NO_HZ=y
 CONFIG_HIGH_RES_TIMERS=y
 CONFIG_PREEMPT_VOLUNTARY=y
 CONFIG_AEABI=y
-CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
 CONFIG_AUTO_ZRELADDR=y
 CONFIG_FPE_NWFPE=y
 CONFIG_NET=y
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 MXS: Remove MMAP_MIN_ADDR setting from mxs_defconfig

Again, patch subject should be like "ARM: mxs: ...".

Quoted 15 lines · Marek Vasut

The CONFIG_DEFAULT_MMAP_MIN_ADDR was set to 65536 in mxs_defconfig, this caused severe breakage of userland applications since the upper limit for ARM is 32768. By default CONFIG_DEFAULT_MMAP_MIN_ADDR is set to 4096 and can also be changed via /proc/sys/vm/mmap_min_addr if needed.

Quoting Russell King [1]:

"4096 is also fine for ARM too. There's not much point in having defconfigs change it - that would just be pure noise in the config files."

the CONFIG_DEFAULT_MMAP_MIN_ADDR can be removed from the defconfig altogether.

Quoted 8 lines

This problem was introduced by:

commit cde7c41feaa06cb6bfc748b2fc3c7d809091c2b0

Author: Wolfram Sang <[email protected]>
Date:   Fri Apr 29 15:06:40 2011 +0200

ARM: configs: add defconfig for mach-mxs

We generally quote another commit in commit message like

cde7c41 (ARM: configs: add defconfig for mach-mxs)

Quoted 6 lines

[1] http://marc.info/?l=linux-arm-kernel&m=134401593807820&w=2

Cc Russell King <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Wolfgang Denk <[email protected]>

We should Cc stable.

I just fixed them and queued the patch for 3.6-rc.

Regards,
Shawn