Skip to contentSkip to conversation

powerpc/64: Move HAVE_CONTEXT_TRACKING from pseries to common Kconfig

PATCH In review Anton Blanchard 3 participants 4 messages Jan 12, 2017 – Feb 2, 2017 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 powerpc/64: Move HAVE_CONTEXT_TRACKING from pseries to common Kconfig

From: Anton Blanchard <[email protected]>

We added support for HAVE_CONTEXT_TRACKING, but placed the option inside PPC_PSERIES.

This has the undesirable effect that NO_HZ_FULL can be enabled on a kernel with both powernv and pseries support, but cannot on a kernel with powernv only support.

---
 arch/powerpc/Kconfig                   | 1 +
 arch/powerpc/platforms/pseries/Kconfig | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/Kconfig +1 -0
index 48001e7..f072f82 100644
@@ -164,6 +164,7 @@ config PPC
 	select HAVE_ARCH_HARDENED_USERCOPY
 	select HAVE_KERNEL_GZIP
 	select HAVE_CC_STACKPROTECTOR
+	select HAVE_CONTEXT_TRACKING if PPC64
 
 config GENERIC_CSUM
 	def_bool CPU_LITTLE_ENDIAN
arch/powerpc/platforms/pseries/Kconfig +0 -1
index e1c280a..30ec04f 100644
@@ -17,7 +17,6 @@ config PPC_PSERIES
 	select PPC_UDBG_16550
 	select PPC_NATIVE
 	select PPC_DOORBELL
-	select HAVE_CONTEXT_TRACKING
 	select HOTPLUG_CPU if SMP
 	select ARCH_RANDOM
 	select PPC_DOORBELL
Signature · 1 line
2.9.3
#1 lore raw

PATCH 2/2 powerpc/64: Add BPF_JIT to powernv and pseries defconfigs

From: Anton Blanchard <[email protected]>

Commit db9112173b18 ("powerpc: Turn on BPF_JIT in ppc64_defconfig") only added BPF_JIT to the ppc64 defconfig. Add it to our powernv and pseries defconfigs too.

---
 arch/powerpc/configs/powernv_defconfig | 1 +
 arch/powerpc/configs/pseries_defconfig | 1 +
 2 files changed, 2 insertions(+)
arch/powerpc/configs/powernv_defconfig +1 -0
index e4d53fe..b793550 100644
@@ -79,6 +79,7 @@ CONFIG_NETFILTER=y
 # CONFIG_NETFILTER_ADVANCED is not set
 CONFIG_BRIDGE=m
 CONFIG_VLAN_8021Q=m
+CONFIG_BPF_JIT=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
arch/powerpc/configs/pseries_defconfig +1 -0
index 5a06bdd..d99734f 100644
@@ -82,6 +82,7 @@ CONFIG_NETFILTER=y
 # CONFIG_NETFILTER_ADVANCED is not set
 CONFIG_BRIDGE=m
 CONFIG_VLAN_8021Q=m
+CONFIG_BPF_JIT=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
Signature · 1 line
2.9.3
Acked-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] powerpc/64: Add BPF_JIT to powernv and pseries defconfigs

Quoted 7 lines · Anton Blanchard

From: Anton Blanchard <[email protected]>

Commit db9112173b18 ("powerpc: Turn on BPF_JIT in ppc64_defconfig") only added BPF_JIT to the ppc64 defconfig. Add it to our powernv and pseries defconfigs too.

Thanks!

Quoted 32 lines
---
 arch/powerpc/configs/powernv_defconfig | 1 +
 arch/powerpc/configs/pseries_defconfig | 1 +
 2 files changed, 2 insertions(+)
arch/powerpc/configs/powernv_defconfig +1 -0
index e4d53fe..b793550 100644
@@ -79,6 +79,7 @@ CONFIG_NETFILTER=y
 # CONFIG_NETFILTER_ADVANCED is not set
 CONFIG_BRIDGE=m
 CONFIG_VLAN_8021Q=m
+CONFIG_BPF_JIT=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
arch/powerpc/configs/pseries_defconfig +1 -0
index 5a06bdd..d99734f 100644
@@ -82,6 +82,7 @@ CONFIG_NETFILTER=y
 # CONFIG_NETFILTER_ADVANCED is not set
 CONFIG_BRIDGE=m
 CONFIG_VLAN_8021Q=m
+CONFIG_BPF_JIT=y
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
Signature · 1 line
2.9.3
#3 lore raw
In reply to Anton Blanchard
Quoted 10 lines · Anton Blanchard

From: Anton Blanchard <[email protected]>

We added support for HAVE_CONTEXT_TRACKING, but placed the option inside PPC_PSERIES.

This has the undesirable effect that NO_HZ_FULL can be enabled on a kernel with both powernv and pseries support, but cannot on a kernel with powernv only support.

Series applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/d6c569b99558b219fcf0ce0d3af8ec

cheers