From e4b90a654c352e0161760d263f589a2c041533bf Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Thu, 27 Feb 2014 14:07:18 -0500 Subject: linux-ti-staging: rebase patch to disable SMP to apply cleanly No PR bump is needed. Signed-off-by: Denys Dmytriyenko --- ...ge-ARM-config-omap-Disable-SMP-for-AM335x.patch | 45 ++++++++++++++++++++++ ...ge-ARM-config-omap-Disable-SMP-for-AM335x.patch | 45 ---------------------- recipes-kernel/linux/linux-ti-staging_3.12.bb | 4 +- 3 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch delete mode 100644 recipes-kernel/linux/linux-ti-staging/0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch diff --git a/recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch b/recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch new file mode 100644 index 00000000..a389e5c6 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging/0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch @@ -0,0 +1,45 @@ +From bd9c0b09db8798815cb577f82beebf7e6c03edcd Mon Sep 17 00:00:00 2001 +From: Santosh Shilimkar +Date: Thu, 13 Feb 2014 08:52:41 -0500 +Subject: [PATCH] Not-for-merge: ARM: config: omap: Disable SMP for AM335x + build + +SMP and SMP_ON_UP introduces some extra barriers and code many fast paths +including kernel lock functions. + +Performance sensitive usecases like networking gets impacted because of this. +In typical production kernel which is targeted for single core device +like AM335x family, you don't want to take this hit. + +Ideally one should just create a device specific config feed as done by all +typical distro's. Other option is to apply this specifically during build +time using recipe. + +Whichever option, one definitely don't want this overhead for performance +critical usecases. + +Disabling SMP in the build introduces one warining in cpuidle44xx.c driver +and fix is included in the series + +Signed-off-by: Santosh Shilimkar +Signed-off-by: Denys Dmytriyenko +--- + arch/arm/configs/omap2plus_defconfig | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig +index ff579a7..25217e3 100644 +--- a/arch/arm/configs/omap2plus_defconfig ++++ b/arch/arm/configs/omap2plus_defconfig +@@ -36,8 +36,6 @@ CONFIG_OMAP4_ERRATA_I688=y + CONFIG_ARM_THUMBEE=y + CONFIG_ARM_ERRATA_411920=y + CONFIG_PCIE_DRA7XX=y +-CONFIG_SMP=y +-CONFIG_NR_CPUS=2 + CONFIG_CMA=y + CONFIG_PREEMPT_VOLUNTARY=y + CONFIG_LEDS=y +-- +1.8.3.2 + diff --git a/recipes-kernel/linux/linux-ti-staging/0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch b/recipes-kernel/linux/linux-ti-staging/0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch deleted file mode 100644 index 8e016b4b..00000000 --- a/recipes-kernel/linux/linux-ti-staging/0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 2f6cbe000b1d31c91eee0248f24b0c306aadeb63 Mon Sep 17 00:00:00 2001 -From: Santosh Shilimkar -Date: Thu, 13 Feb 2014 08:52:41 -0500 -Subject: [PATCH 2/2] Not-for-merge: ARM: config: omap: Disable SMP for AM335x - build - -SMP and SMP_ON_UP introduces some extra barriers and code many fast paths -including kernel lock functions. - -Performance sensitive usecases like networking gets impacted because of this. -In typical production kernel which is targeted for single core device -like AM335x family, you don't want to take this hit. - -Ideally one should just create a device specific config feed as done by all -typical distro's. Other option is to apply this specifically during build -time using recipe. - -Whichever option, one definitely don't want this overhead for performance -critical usecases. - -Disabling SMP in the build introduces one warining in cpuidle44xx.c driver -and fix is included in the series - -Signed-off-by: Santosh Shilimkar -Signed-off-by: Denys Dmytriyenko ---- - arch/arm/configs/omap2plus_defconfig | 2 -- - 1 file changed, 2 deletions(-) - -diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig -index a34b45a..bb6beb2 100644 ---- a/arch/arm/configs/omap2plus_defconfig -+++ b/arch/arm/configs/omap2plus_defconfig -@@ -36,8 +36,6 @@ CONFIG_OMAP4_ERRATA_I688=y - CONFIG_ARM_THUMBEE=y - CONFIG_ARM_ERRATA_411920=y - CONFIG_PCIE_DRA7XX=y --CONFIG_SMP=y --CONFIG_NR_CPUS=2 - CONFIG_PREEMPT_VOLUNTARY=y - CONFIG_CMA=y - CONFIG_ZBOOT_ROM_TEXT=0x0 --- -1.8.3.2 - diff --git a/recipes-kernel/linux/linux-ti-staging_3.12.bb b/recipes-kernel/linux/linux-ti-staging_3.12.bb index 7982c0d3..1b97ab29 100644 --- a/recipes-kernel/linux/linux-ti-staging_3.12.bb +++ b/recipes-kernel/linux/linux-ti-staging_3.12.bb @@ -48,5 +48,5 @@ SRC_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;bra " # Disable SMP in defconfig on single-core platforms to reduce overhead -SRC_URI_append_ti33x = "file://0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch" -SRC_URI_append_ti43x = "file://0005-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch" +SRC_URI_append_ti33x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch" +SRC_URI_append_ti43x = "file://0001-Not-for-merge-ARM-config-omap-Disable-SMP-for-AM335x.patch" -- cgit v1.2.3-54-g00ecf