Skip to contentSkip to conversation

Update Malta defconfigs

PATCH In review Markos Chandras 6 participants 14 messages Feb 20, 2014 – Mar 10, 2014 MIPS

lore
Share & tools
lore
#0 lore raw

cover Update Malta defconfigs

Hi,

This patchset updates the Malta defconfigs and adds a new one for SMVP/EVA.

Therefore, it needs to be applied after the EVA patchset.

The patchset is based on top of the upstream-sfr/mips-for-linux-next tree

Markos Chandras (2):
MIPS: Malta: Enable DEVTMPFS
MIPS: Add defconfig for Malta SMVP with EVA

Paul Burton (3):
MIPS: regenerate malta defconfigs
MIPS: Set page size to 16KB for malta SMP defconfigs
MIPS: Default NR_CPUS=8 for malta SMP defconfigs

 arch/mips/configs/malta_defconfig           |   9 +-
 arch/mips/configs/malta_kvm_defconfig       |  10 +-
 arch/mips/configs/malta_kvm_guest_defconfig |   7 +-
 arch/mips/configs/maltaaprp_defconfig       |   3 +-
 arch/mips/configs/maltasmtc_defconfig       |   4 +-
 arch/mips/configs/maltasmvp_defconfig       |   5 +-
 arch/mips/configs/maltasmvp_eva_defconfig   | 200 ++++++++++++++++++++++++++++
 arch/mips/configs/maltaup_defconfig         |   3 +-
 8 files changed, 214 insertions(+), 27 deletions(-)
 create mode 100644 arch/mips/configs/maltasmvp_eva_defconfig
Signature · 1 line
1.8.5.5
#1 lore raw

PATCH 1/5 MIPS: regenerate malta defconfigs

From: Paul Burton <[email protected]>

This patch simply regenerates the malta defconfigs such that they don't change after being used & saved as a defconfig again. ie. it is the result of running the following:

for cfg in arch/mips/configs/malta*; do

	ARCH=mips make `basename ${cfg}`
	ARCH=mips make savedefconfig
	mv -v defconfig ${cfg}

done

---
 arch/mips/configs/malta_defconfig           | 7 +------
 arch/mips/configs/malta_kvm_defconfig       | 9 ++-------
 arch/mips/configs/malta_kvm_guest_defconfig | 6 ------
 arch/mips/configs/maltaaprp_defconfig       | 2 --
 arch/mips/configs/maltasmtc_defconfig       | 2 --
 arch/mips/configs/maltasmvp_defconfig       | 1 -
 arch/mips/configs/maltaup_defconfig         | 2 --
 7 files changed, 3 insertions(+), 26 deletions(-)
arch/mips/configs/malta_defconfig +1 -6
index ce1d3ee..bc494b2 100644
@@ -2,6 +2,7 @@ CONFIG_MIPS_MALTA=y
 CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
 CONFIG_MIPS_MT_SMP=y
+CONFIG_NR_CPUS=2
 CONFIG_HZ_100=y
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
@@ -42,7 +43,6 @@ CONFIG_INET_IPCOMP=m
 CONFIG_INET_XFRM_MODE_TRANSPORT=m
 CONFIG_INET_XFRM_MODE_TUNNEL=m
 CONFIG_TCP_MD5SIG=y
-CONFIG_IPV6_PRIVACY=y
 CONFIG_IPV6_ROUTER_PREF=y
 CONFIG_IPV6_ROUTE_INFO=y
 CONFIG_IPV6_OPTIMISTIC_DAD=y
@@ -68,7 +68,6 @@ CONFIG_NF_CONNTRACK_SANE=m
 CONFIG_NF_CONNTRACK_SIP=m
 CONFIG_NF_CONNTRACK_TFTP=m
 CONFIG_NF_CT_NETLINK=m
-CONFIG_NETFILTER_TPROXY=m
 CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
 CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
 CONFIG_NETFILTER_XT_TARGET_MARK=m
@@ -125,7 +124,6 @@ CONFIG_IP_VS_SH=m
 CONFIG_IP_VS_SED=m
 CONFIG_IP_VS_NQ=m
 CONFIG_NF_CONNTRACK_IPV4=m
-CONFIG_IP_NF_QUEUE=m
 CONFIG_IP_NF_IPTABLES=m
 CONFIG_IP_NF_MATCH_AH=m
 CONFIG_IP_NF_MATCH_ECN=m
@@ -185,7 +183,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_PHONET=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
@@ -228,7 +225,6 @@ CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
-CONFIG_MTD_CHAR=y
 CONFIG_MTD_BLOCK=y
 CONFIG_MTD_OOPS=m
 CONFIG_MTD_CFI=y
@@ -328,7 +324,6 @@ CONFIG_LIBERTAS=m
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO_I8042 is not set
-CONFIG_VT_HW_CONSOLE_BINDING=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 # CONFIG_HWMON is not set
arch/mips/configs/malta_kvm_defconfig +2 -7
index 341bb47..041e41b 100644
@@ -3,6 +3,7 @@ CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
 CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
+CONFIG_NR_CPUS=2
 CONFIG_HZ_100=y
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
@@ -44,7 +45,6 @@ CONFIG_INET_IPCOMP=m
 CONFIG_INET_XFRM_MODE_TRANSPORT=m
 CONFIG_INET_XFRM_MODE_TUNNEL=m
 CONFIG_TCP_MD5SIG=y
-CONFIG_IPV6_PRIVACY=y
 CONFIG_IPV6_ROUTER_PREF=y
 CONFIG_IPV6_ROUTE_INFO=y
 CONFIG_IPV6_OPTIMISTIC_DAD=y
@@ -70,7 +70,6 @@ CONFIG_NF_CONNTRACK_SANE=m
 CONFIG_NF_CONNTRACK_SIP=m
 CONFIG_NF_CONNTRACK_TFTP=m
 CONFIG_NF_CT_NETLINK=m
-CONFIG_NETFILTER_TPROXY=m
 CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
 CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
 CONFIG_NETFILTER_XT_TARGET_MARK=m
@@ -127,7 +126,6 @@ CONFIG_IP_VS_SH=m
 CONFIG_IP_VS_SED=m
 CONFIG_IP_VS_NQ=m
 CONFIG_NF_CONNTRACK_IPV4=m
-CONFIG_IP_NF_QUEUE=m
 CONFIG_IP_NF_IPTABLES=m
 CONFIG_IP_NF_MATCH_AH=m
 CONFIG_IP_NF_MATCH_ECN=m
@@ -187,7 +185,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_PHONET=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
@@ -230,7 +227,6 @@ CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
-CONFIG_MTD_CHAR=y
 CONFIG_MTD_BLOCK=y
 CONFIG_MTD_OOPS=m
 CONFIG_MTD_CFI=y
@@ -300,6 +296,7 @@ CONFIG_IFB=m
 CONFIG_MACVLAN=m
 CONFIG_TUN=m
 CONFIG_VETH=m
+CONFIG_VHOST_NET=m
 CONFIG_PCNET32=y
 CONFIG_CHELSIO_T3=m
 CONFIG_AX88796=m
@@ -329,7 +326,6 @@ CONFIG_LIBERTAS=m
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO_I8042 is not set
-CONFIG_VT_HW_CONSOLE_BINDING=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 # CONFIG_HWMON is not set
@@ -453,4 +449,3 @@ CONFIG_VIRTUALIZATION=y
 CONFIG_KVM=m
 CONFIG_KVM_MIPS_DYN_TRANS=y
 CONFIG_KVM_MIPS_DEBUG_COP0_COUNTERS=y
-CONFIG_VHOST_NET=m
arch/mips/configs/malta_kvm_guest_defconfig +0 -6
index 2b8558b..bf186df 100644
@@ -44,7 +44,6 @@ CONFIG_INET_IPCOMP=m
 CONFIG_INET_XFRM_MODE_TRANSPORT=m
 CONFIG_INET_XFRM_MODE_TUNNEL=m
 CONFIG_TCP_MD5SIG=y
-CONFIG_IPV6_PRIVACY=y
 CONFIG_IPV6_ROUTER_PREF=y
 CONFIG_IPV6_ROUTE_INFO=y
 CONFIG_IPV6_OPTIMISTIC_DAD=y
@@ -70,7 +69,6 @@ CONFIG_NF_CONNTRACK_SANE=m
 CONFIG_NF_CONNTRACK_SIP=m
 CONFIG_NF_CONNTRACK_TFTP=m
 CONFIG_NF_CT_NETLINK=m
-CONFIG_NETFILTER_TPROXY=m
 CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
 CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
 CONFIG_NETFILTER_XT_TARGET_MARK=m
@@ -127,7 +125,6 @@ CONFIG_IP_VS_SH=m
 CONFIG_IP_VS_SED=m
 CONFIG_IP_VS_NQ=m
 CONFIG_NF_CONNTRACK_IPV4=m
-CONFIG_IP_NF_QUEUE=m
 CONFIG_IP_NF_IPTABLES=m
 CONFIG_IP_NF_MATCH_AH=m
 CONFIG_IP_NF_MATCH_ECN=m
@@ -187,7 +184,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_PHONET=m
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
@@ -230,7 +226,6 @@ CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
-CONFIG_MTD_CHAR=y
 CONFIG_MTD_BLOCK=y
 CONFIG_MTD_OOPS=m
 CONFIG_MTD_CFI=y
@@ -331,7 +326,6 @@ CONFIG_LIBERTAS=m
 # CONFIG_INPUT_KEYBOARD is not set
 # CONFIG_INPUT_MOUSE is not set
 # CONFIG_SERIO_I8042 is not set
-CONFIG_VT_HW_CONSOLE_BINDING=y
 CONFIG_SERIAL_8250=y
 CONFIG_SERIAL_8250_CONSOLE=y
 # CONFIG_HWMON is not set
arch/mips/configs/maltaaprp_defconfig +0 -2
index 93057a7..90b1725 100644
@@ -44,7 +44,6 @@ CONFIG_INET_AH=m
 CONFIG_INET_ESP=m
 CONFIG_INET_IPCOMP=m
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6_PRIVACY=y
 CONFIG_INET6_AH=m
 CONFIG_INET6_ESP=m
 CONFIG_INET6_IPCOMP=m
@@ -55,7 +54,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
 CONFIG_NET_SCH_HTB=m
arch/mips/configs/maltasmtc_defconfig +0 -2
index 4e54b75..991da9f 100644
@@ -45,7 +45,6 @@ CONFIG_INET_AH=m
 CONFIG_INET_ESP=m
 CONFIG_INET_IPCOMP=m
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6_PRIVACY=y
 CONFIG_INET6_AH=m
 CONFIG_INET6_ESP=m
 CONFIG_INET6_IPCOMP=m
@@ -56,7 +55,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
 CONFIG_NET_SCH_HTB=m
arch/mips/configs/maltasmvp_defconfig +0 -1
index d759318..1dafe79 100644
@@ -47,7 +47,6 @@ CONFIG_INET_AH=m
 CONFIG_INET_ESP=m
 CONFIG_INET_IPCOMP=m
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6_PRIVACY=y
 CONFIG_INET6_AH=m
 CONFIG_INET6_ESP=m
 CONFIG_INET6_IPCOMP=m
arch/mips/configs/maltaup_defconfig +0 -2
index 9868fc9..b8a97a2 100644
@@ -43,7 +43,6 @@ CONFIG_INET_AH=m
 CONFIG_INET_ESP=m
 CONFIG_INET_IPCOMP=m
 # CONFIG_INET_LRO is not set
-CONFIG_IPV6_PRIVACY=y
 CONFIG_INET6_AH=m
 CONFIG_INET6_ESP=m
 CONFIG_INET6_IPCOMP=m
@@ -54,7 +53,6 @@ CONFIG_ATALK=m
 CONFIG_DEV_APPLETALK=m
 CONFIG_IPDDP=m
 CONFIG_IPDDP_ENCAP=y
-CONFIG_IPDDP_DECAP=y
 CONFIG_NET_SCHED=y
 CONFIG_NET_SCH_CBQ=m
 CONFIG_NET_SCH_HTB=m
Signature · 1 line
1.8.5.5
#2 lore raw

PATCH 2/5 MIPS: Malta: Enable DEVTMPFS

In reply to Markos Chandras

Recent versions of udev and systemd require the kernel to be compiled with CONFIG_DEVTMPFS in order to populate the /dev directory. Most MIPS platforms have it enabled by default, so enable it for Malta configs as well.

---
 arch/mips/configs/malta_defconfig           | 1 +
 arch/mips/configs/malta_kvm_defconfig       | 1 +
 arch/mips/configs/malta_kvm_guest_defconfig | 1 +
 arch/mips/configs/maltaaprp_defconfig       | 1 +
 arch/mips/configs/maltasmtc_defconfig       | 1 +
 arch/mips/configs/maltasmvp_defconfig       | 1 +
 arch/mips/configs/maltaup_defconfig         | 1 +
 7 files changed, 7 insertions(+)
arch/mips/configs/malta_defconfig +1 -0
index bc494b2..6bb89a3 100644
@@ -223,6 +223,7 @@ CONFIG_MAC80211_RC_DEFAULT_PID=y
 CONFIG_MAC80211_MESH=y
 CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_DEVTMPFS=y
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
 CONFIG_MTD_BLOCK=y
arch/mips/configs/malta_kvm_defconfig +1 -0
index 041e41b..bc19ebb 100644
@@ -225,6 +225,7 @@ CONFIG_MAC80211_RC_DEFAULT_PID=y
 CONFIG_MAC80211_MESH=y
 CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_DEVTMPFS=y
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
 CONFIG_MTD_BLOCK=y
arch/mips/configs/malta_kvm_guest_defconfig +1 -0
index bf186df..e36681c 100644
@@ -224,6 +224,7 @@ CONFIG_MAC80211_RC_DEFAULT_PID=y
 CONFIG_MAC80211_MESH=y
 CONFIG_RFKILL=m
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
+CONFIG_DEVTMPFS=y
 CONFIG_CONNECTOR=m
 CONFIG_MTD=y
 CONFIG_MTD_BLOCK=y
arch/mips/configs/maltaaprp_defconfig +1 -0
index 90b1725..fb042ce 100644
@@ -78,6 +78,7 @@ CONFIG_NET_CLS_ACT=y
 CONFIG_NET_ACT_POLICE=y
 CONFIG_NET_CLS_IND=y
 # CONFIG_WIRELESS is not set
+CONFIG_DEVTMPFS=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_CRYPTOLOOP=m
 CONFIG_IDE=y
arch/mips/configs/maltasmtc_defconfig +1 -0
index 991da9f..4e59730 100644
@@ -79,6 +79,7 @@ CONFIG_NET_CLS_ACT=y
 CONFIG_NET_ACT_POLICE=y
 CONFIG_NET_CLS_IND=y
 # CONFIG_WIRELESS is not set
+CONFIG_DEVTMPFS=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_CRYPTOLOOP=m
 CONFIG_IDE=y
arch/mips/configs/maltasmvp_defconfig +1 -0
index 1dafe79..e867c9a 100644
@@ -81,6 +81,7 @@ CONFIG_NET_CLS_ACT=y
 CONFIG_NET_ACT_POLICE=y
 CONFIG_NET_CLS_IND=y
 # CONFIG_WIRELESS is not set
+CONFIG_DEVTMPFS=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_CRYPTOLOOP=m
 CONFIG_IDE=y
arch/mips/configs/maltaup_defconfig +1 -0
index b8a97a2..6234464 100644
@@ -77,6 +77,7 @@ CONFIG_NET_CLS_ACT=y
 CONFIG_NET_ACT_POLICE=y
 CONFIG_NET_CLS_IND=y
 # CONFIG_WIRELESS is not set
+CONFIG_DEVTMPFS=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_CRYPTOLOOP=m
 CONFIG_IDE=y
Signature · 1 line
1.8.5.5
#3 lore raw

PATCH 3/5 MIPS: Set page size to 16KB for malta SMP defconfigs

In reply to Markos Chandras

From: Paul Burton <[email protected]>

For Malta defconfigs which may run on an SMP configuration without hardware cache anti-aliasing, a 16KB page size is a safer default. Most notably at the moment it will avoid cache aliasing issues for multicore proAptiv systems.

---
 arch/mips/configs/malta_defconfig     | 1 +
 arch/mips/configs/maltasmtc_defconfig | 1 +
 arch/mips/configs/maltasmvp_defconfig | 1 +
 3 files changed, 3 insertions(+)
arch/mips/configs/malta_defconfig +1 -0
index 6bb89a3..28323b7 100644
@@ -1,6 +1,7 @@
 CONFIG_MIPS_MALTA=y
 CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
+CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
 CONFIG_NR_CPUS=2
 CONFIG_HZ_100=y
arch/mips/configs/maltasmtc_defconfig +1 -0
index 4e59730..eb31644 100644
@@ -1,6 +1,7 @@
 CONFIG_MIPS_MALTA=y
 CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
+CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMTC=y
 # CONFIG_MIPS_MT_FPAFF is not set
 CONFIG_NR_CPUS=9
arch/mips/configs/maltasmvp_defconfig +1 -0
index e867c9a..203c563 100644
@@ -1,6 +1,7 @@
 CONFIG_MIPS_MALTA=y
 CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
+CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
 CONFIG_SCHED_SMT=y
 CONFIG_MIPS_CMP=y
Signature · 1 line
1.8.5.5
#4 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 6 lines · Markos Chandras

From: Paul Burton <[email protected]>

For Malta defconfigs which may run on an SMP configuration without hardware cache anti-aliasing, a 16KB page size is a safer default. Most notably at the moment it will avoid cache aliasing issues for multicore proAptiv systems.

You're aware that this may cause binary compatibility issues with old userland? So far the defaults were chosen to maximise compatibility over performance.

Ralf

#5 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 9 lines · Ralf Baechle
Quoted 6 lines · Markos Chandras

From: Paul Burton <[email protected]>

For Malta defconfigs which may run on an SMP configuration without hardware cache anti-aliasing, a 16KB page size is a safer default. Most notably at the moment it will avoid cache aliasing issues for multicore proAptiv systems.

Quoted 6 lines

You're aware that this may cause binary compatibility issues with old userland? So far the defaults were chosen to maximise compatibility over performance.

Ralf

Hi Ralf,

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Signature · 1 line
markos
#6 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 16 lines · Markos Chandras
Quoted 9 lines · Ralf Baechle
Quoted 6 lines · Markos Chandras

From: Paul Burton <[email protected]>

For Malta defconfigs which may run on an SMP configuration without hardware cache anti-aliasing, a 16KB page size is a safer default. Most notably at the moment it will avoid cache aliasing issues for multicore proAptiv systems.

Quoted 6 lines

You're aware that this may cause binary compatibility issues with old userland? So far the defaults were chosen to maximise compatibility over performance.

Ralf

Quoted 11 lines

Hi Ralf,

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Signature · 1 line
markos

I think the potential backwards compatibility issue is probably not a huge issue for Malta, but that it would make sense to dig deeper into why proAptiv SMP systems don't run correctly with 4KB pages. You don't actually have to look very far to find userland which depends upon 4KB pages (*cough* android *cough*). I consider this patch an acceptable workaround for the proAptiv problem on Malta, but I don't know enough at the moment to say whether there's a proper fix.

Paul

#7 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 29 lines · Paul Burton
Quoted 16 lines · Markos Chandras
Quoted 9 lines · Ralf Baechle
Quoted 6 lines · Markos Chandras

From: Paul Burton <[email protected]>

For Malta defconfigs which may run on an SMP configuration without hardware cache anti-aliasing, a 16KB page size is a safer default. Most notably at the moment it will avoid cache aliasing issues for multicore proAptiv systems.

Quoted 6 lines

You're aware that this may cause binary compatibility issues with old userland? So far the defaults were chosen to maximise compatibility over performance.

Ralf

Quoted 11 lines

Hi Ralf,

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Signature · 1 line
markos
Quoted 7 lines

I think the potential backwards compatibility issue is probably not a huge issue for Malta, but that it would make sense to dig deeper into why proAptiv SMP systems don't run correctly with 4KB pages. You don't actually have to look very far to find userland which depends upon 4KB pages (*cough* android *cough*). I consider this patch an acceptable workaround for the proAptiv problem on Malta, but I don't know enough at the moment to say whether there's a proper fix.

The issue I was refering to is that certain older binutils are creating ELF segments of insufficient alignment for large page sizes to work.

Hardcoded page size is another problem - one should think that after iterating through every power of two starting with like 512 bytes programmers have sprung a clue.

Ralf

#8 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

In reply to Markos Chandras

Hi,

Quoted 6 lines · Markos Chandras

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Not so long ago there was an issue with Debian where Iceweasel or Spidermonkey failed on MIPS/Loongson because of its 8K page size (the userspace assumed 4K). You will get such issues as long as x86 dominates, it's not a matter of "old userland".

A.

#9 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 9 lines · Aaro Koskinen

Hi,

Quoted 6 lines · Markos Chandras

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Quoted 5 lines

Not so long ago there was an issue with Debian where Iceweasel or Spidermonkey failed on MIPS/Loongson because of its 8K page size (the userspace assumed 4K). You will get such issues as long as x86 dominates, it's not a matter of "old userland".

It is not just getpagesize(). People also used to amuse themselves by patching ld so that it did Program Header layout in a manner that was incompatible with anything other than 4K pages. This was mostly seen in toolchains used by people using uClibc.

#10 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

In reply to Aaro Koskinen
Quoted 10 lines · Aaro Koskinen

Hi,

Quoted 6 lines · Markos Chandras

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Quoted 4 lines

Not so long ago there was an issue with Debian where Iceweasel or Spidermonkey failed on MIPS/Loongson because of its 8K page size (the userspace assumed 4K). You will get such issues as long as x86 dominates, it's not a matter of "old userland".

In Debian I am aware of the problem on at least all mozilla based products (the problem is jemalloc) and GCL.

The problem is not that the page size is hardcoded to 4K, but that it is detected at build time instead of run time. This is only a problem for distributions where a package could be built on one machine and run on another, but it should not affect people building such packages themselves, or using the same set of machines.

The fact that the page size is not 4K is usually correctly handled, as other architectures like alpha and itanium were using 8K or 16K pages.

Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net
#11 lore raw

Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs

Quoted 16 lines · Aurelien Jarno
Quoted 10 lines · Aaro Koskinen

Hi,

Quoted 6 lines · Markos Chandras

Are you referring to programs hard coding the page size to 4k instead of using the getpagesize()? Well yes this could be a problem. But is that a real problem? We are changing the default value so whoever has such an old userland can easily switch to the 4k page size. It may also be a good opportunity to expose such application and get the fixed properly :) But if that's not acceptable, we can drop the patch. Paul what do you think?

Quoted 4 lines

Not so long ago there was an issue with Debian where Iceweasel or Spidermonkey failed on MIPS/Loongson because of its 8K page size (the userspace assumed 4K). You will get such issues as long as x86 dominates, it's not a matter of "old userland".

Quoted 5 lines

In Debian I am aware of the problem on at least all mozilla based products (the problem is jemalloc) and GCL.

The problem is not that the page size is hardcoded to 4K, but that it is detected at build time instead of run time.

Of course that is incorrect, pagesize must be detected at runtime. Any package that does otherwise is defective and should be fixed.

If they need an upper bound, we can supply that. It is 64K.

Quoted 8 lines

This is only a problem for
distributions where a package could be built on one machine and run on another, but it should not affect people building such packages themselves, or using the same set of machines.

The fact that the page size is not 4K is usually correctly handled, as other architectures like alpha and itanium were using 8K or 16K pages.

#12 lore raw

PATCH 4/5 MIPS: Default NR_CPUS=8 for malta SMP defconfigs

In reply to Markos Chandras

From: Paul Burton <[email protected]>

The previous NR_CPUS=2 default is not an optimal default for current Malta setups where it is common to have more than 2 CPUs available. It makes sense to increase this to a number which covers all common setups currently in use, such that all of those cores are usable. 8 seems to fit that description.

If the user has less than 8 CPUs & they wish to have a more optimal kernel they can simply reduce this in their config. It makes sense for the default to work on as many systems as possible.

---
 arch/mips/configs/malta_defconfig     | 2 +-
 arch/mips/configs/malta_kvm_defconfig | 2 +-
 arch/mips/configs/maltasmvp_defconfig | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/configs/malta_defconfig +1 -1
index 28323b7..b745b6a 100644
@@ -3,7 +3,7 @@ CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
 CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
-CONFIG_NR_CPUS=2
+CONFIG_NR_CPUS=8
 CONFIG_HZ_100=y
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
arch/mips/configs/malta_kvm_defconfig +1 -1
index bc19ebb..4f7d952 100644
@@ -3,7 +3,7 @@ CONFIG_CPU_LITTLE_ENDIAN=y
 CONFIG_CPU_MIPS32_R2=y
 CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
-CONFIG_NR_CPUS=2
+CONFIG_NR_CPUS=8
 CONFIG_HZ_100=y
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
arch/mips/configs/maltasmvp_defconfig +1 -1
index 203c563..10ef3be 100644
@@ -5,7 +5,7 @@ CONFIG_PAGE_SIZE_16KB=y
 CONFIG_MIPS_MT_SMP=y
 CONFIG_SCHED_SMT=y
 CONFIG_MIPS_CMP=y
-CONFIG_NR_CPUS=2
+CONFIG_NR_CPUS=8
 CONFIG_HZ_100=y
 CONFIG_LOCALVERSION="cmp"
 CONFIG_SYSVIPC=y
Signature · 1 line
1.8.5.5
#13 lore raw

PATCH 5/5 MIPS: Add defconfig for Malta SMVP with EVA

In reply to Markos Chandras
---
 arch/mips/configs/maltasmvp_eva_defconfig | 200 ++++++++++++++++++++++++++++++
 1 file changed, 200 insertions(+)
 create mode 100644 arch/mips/configs/maltasmvp_eva_defconfig
arch/mips/configs/maltasmvp_eva_defconfig new file +200 -0
new file mode 100644
index 0000000..2d3002c
@@ -0,0 +1,200 @@
+CONFIG_MIPS_MALTA=y
+CONFIG_CPU_LITTLE_ENDIAN=y
+CONFIG_CPU_MIPS32_R2=y
+CONFIG_CPU_MIPS32_3_5_FEATURES=y
+CONFIG_PAGE_SIZE_16KB=y
+CONFIG_MIPS_MT_SMP=y
+CONFIG_SCHED_SMT=y
+CONFIG_MIPS_CMP=y
+CONFIG_NR_CPUS=8
+CONFIG_HZ_100=y
+CONFIG_LOCALVERSION="cmp"
+CONFIG_SYSVIPC=y
+CONFIG_POSIX_MQUEUE=y
+CONFIG_AUDIT=y
+CONFIG_NO_HZ=y
+CONFIG_IKCONFIG=y
+CONFIG_IKCONFIG_PROC=y
+CONFIG_LOG_BUF_SHIFT=15
+CONFIG_SYSCTL_SYSCALL=y
+CONFIG_EMBEDDED=y
+CONFIG_SLAB=y
+CONFIG_MODULES=y
+CONFIG_MODULE_UNLOAD=y
+CONFIG_MODVERSIONS=y
+CONFIG_MODULE_SRCVERSION_ALL=y
+# CONFIG_BLK_DEV_BSG is not set
+CONFIG_PCI=y
+# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_XFRM_USER=m
+CONFIG_NET_KEY=y
+CONFIG_INET=y
+CONFIG_IP_MULTICAST=y
+CONFIG_IP_ADVANCED_ROUTER=y
+CONFIG_IP_MULTIPLE_TABLES=y
+CONFIG_IP_ROUTE_MULTIPATH=y
+CONFIG_IP_ROUTE_VERBOSE=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+CONFIG_IP_PNP_BOOTP=y
+CONFIG_NET_IPIP=m
+CONFIG_IP_MROUTE=y
+CONFIG_IP_PIMSM_V1=y
+CONFIG_IP_PIMSM_V2=y
+CONFIG_SYN_COOKIES=y
+CONFIG_INET_AH=m
+CONFIG_INET_ESP=m
+CONFIG_INET_IPCOMP=m
+# CONFIG_INET_LRO is not set
+CONFIG_INET6_AH=m
+CONFIG_INET6_ESP=m
+CONFIG_INET6_IPCOMP=m
+CONFIG_IPV6_TUNNEL=m
+CONFIG_BRIDGE=m
+CONFIG_VLAN_8021Q=m
+CONFIG_ATALK=m
+CONFIG_DEV_APPLETALK=m
+CONFIG_IPDDP=m
+CONFIG_IPDDP_ENCAP=y
+CONFIG_NET_SCHED=y
+CONFIG_NET_SCH_CBQ=m
+CONFIG_NET_SCH_HTB=m
+CONFIG_NET_SCH_HFSC=m
+CONFIG_NET_SCH_PRIO=m
+CONFIG_NET_SCH_RED=m
+CONFIG_NET_SCH_SFQ=m
+CONFIG_NET_SCH_TEQL=m
+CONFIG_NET_SCH_TBF=m
+CONFIG_NET_SCH_GRED=m
+CONFIG_NET_SCH_DSMARK=m
+CONFIG_NET_SCH_NETEM=m
+CONFIG_NET_SCH_INGRESS=m
+CONFIG_NET_CLS_BASIC=m
+CONFIG_NET_CLS_TCINDEX=m
+CONFIG_NET_CLS_ROUTE4=m
+CONFIG_NET_CLS_FW=m
+CONFIG_NET_CLS_U32=m
+CONFIG_NET_CLS_RSVP=m
+CONFIG_NET_CLS_RSVP6=m
+CONFIG_NET_CLS_ACT=y
+CONFIG_NET_ACT_POLICE=y
+CONFIG_NET_CLS_IND=y
+# CONFIG_WIRELESS is not set
+CONFIG_DEVTMPFS=y
+CONFIG_BLK_DEV_LOOP=y
+CONFIG_BLK_DEV_CRYPTOLOOP=m
+CONFIG_IDE=y
+# CONFIG_IDE_PROC_FS is not set
+# CONFIG_IDEPCI_PCIBUS_ORDER is not set
+CONFIG_BLK_DEV_GENERIC=y
+CONFIG_BLK_DEV_PIIX=y
+CONFIG_SCSI=y
+CONFIG_BLK_DEV_SD=y
+CONFIG_CHR_DEV_SG=y
+# CONFIG_SCSI_LOWLEVEL is not set
+CONFIG_NETDEVICES=y
+# CONFIG_NET_VENDOR_3COM is not set
+# CONFIG_NET_VENDOR_ADAPTEC is not set
+# CONFIG_NET_VENDOR_ALTEON is not set
+CONFIG_PCNET32=y
+# CONFIG_NET_VENDOR_ATHEROS is not set
+# CONFIG_NET_VENDOR_BROADCOM is not set
+# CONFIG_NET_VENDOR_BROCADE is not set
+# CONFIG_NET_VENDOR_CHELSIO is not set
+# CONFIG_NET_VENDOR_CISCO is not set
+# CONFIG_NET_VENDOR_DEC is not set
+# CONFIG_NET_VENDOR_DLINK is not set
+# CONFIG_NET_VENDOR_EMULEX is not set
+# CONFIG_NET_VENDOR_EXAR is not set
+# CONFIG_NET_VENDOR_HP is not set
+# CONFIG_NET_VENDOR_INTEL is not set
+# CONFIG_NET_VENDOR_MARVELL is not set
+# CONFIG_NET_VENDOR_MELLANOX is not set
+# CONFIG_NET_VENDOR_MICREL is not set
+# CONFIG_NET_VENDOR_MYRI is not set
+# CONFIG_NET_VENDOR_NATSEMI is not set
+# CONFIG_NET_VENDOR_NVIDIA is not set
+# CONFIG_NET_VENDOR_OKI is not set
+# CONFIG_NET_PACKET_ENGINE is not set
+# CONFIG_NET_VENDOR_QLOGIC is not set
+# CONFIG_NET_VENDOR_REALTEK is not set
+# CONFIG_NET_VENDOR_RDC is not set
+# CONFIG_NET_VENDOR_SEEQ is not set
+# CONFIG_NET_VENDOR_SILAN is not set
+# CONFIG_NET_VENDOR_SIS is not set
+# CONFIG_NET_VENDOR_SMSC is not set
+# CONFIG_NET_VENDOR_STMICRO is not set
+# CONFIG_NET_VENDOR_SUN is not set
+# CONFIG_NET_VENDOR_TEHUTI is not set
+# CONFIG_NET_VENDOR_TI is not set
+# CONFIG_NET_VENDOR_TOSHIBA is not set
+# CONFIG_NET_VENDOR_VIA is not set
+# CONFIG_NET_VENDOR_WIZNET is not set
+# CONFIG_WLAN is not set
+# CONFIG_VT is not set
+CONFIG_LEGACY_PTY_COUNT=4
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_HW_RANDOM=y
+# CONFIG_HWMON is not set
+CONFIG_VIDEO_OUTPUT_CONTROL=m
+CONFIG_FB=y
+CONFIG_FIRMWARE_EDID=y
+CONFIG_FB_MATROX=y
+CONFIG_FB_MATROX_G=y
+CONFIG_USB=y
+CONFIG_USB_EHCI_HCD=y
+# CONFIG_USB_EHCI_TT_NEWSCHED is not set
+CONFIG_USB_UHCI_HCD=y
+CONFIG_USB_STORAGE=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
+CONFIG_LEDS_TRIGGERS=y
+CONFIG_LEDS_TRIGGER_TIMER=y
+CONFIG_LEDS_TRIGGER_IDE_DISK=y
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
+CONFIG_LEDS_TRIGGER_BACKLIGHT=y
+CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_DRV_CMOS=y
+CONFIG_EXT2_FS=y
+CONFIG_EXT3_FS=y
+# CONFIG_EXT3_DEFAULTS_TO_ORDERED is not set
+CONFIG_XFS_FS=y
+CONFIG_XFS_QUOTA=y
+CONFIG_XFS_POSIX_ACL=y
+CONFIG_QUOTA=y
+CONFIG_QFMT_V2=y
+CONFIG_MSDOS_FS=m
+CONFIG_VFAT_FS=m
+CONFIG_PROC_KCORE=y
+CONFIG_TMPFS=y
+CONFIG_NFS_FS=y
+CONFIG_ROOT_NFS=y
+CONFIG_CIFS=m
+CONFIG_CIFS_WEAK_PW_HASH=y
+CONFIG_CIFS_XATTR=y
+CONFIG_CIFS_POSIX=y
+CONFIG_NLS_CODEPAGE_437=m
+CONFIG_NLS_ISO8859_1=m
+# CONFIG_FTRACE is not set
+CONFIG_CRYPTO_NULL=m
+CONFIG_CRYPTO_PCBC=m
+CONFIG_CRYPTO_HMAC=y
+CONFIG_CRYPTO_MICHAEL_MIC=m
+CONFIG_CRYPTO_SHA512=m
+CONFIG_CRYPTO_TGR192=m
+CONFIG_CRYPTO_WP512=m
+CONFIG_CRYPTO_ANUBIS=m
+CONFIG_CRYPTO_BLOWFISH=m
+CONFIG_CRYPTO_CAST5=m
+CONFIG_CRYPTO_CAST6=m
+CONFIG_CRYPTO_KHAZAD=m
+CONFIG_CRYPTO_SERPENT=m
+CONFIG_CRYPTO_TEA=m
+CONFIG_CRYPTO_TWOFISH=m
+# CONFIG_CRYPTO_ANSI_CPRNG is not set
+# CONFIG_CRYPTO_HW is not set
Signature · 1 line
1.8.5.5