From b03826d8aaa659e2581dcff3f96280a8b4683422 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 9 Jun 2018 15:59:41 +0200 Subject: [PATCH 01/22] kernel: bump kernel 4.4 to version 4.4.137 The new option CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE was added, in this commit: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.4.y&id=ffe4bf3eb3cfa10f9ef295c08c21f4fe3bb07e21 Handle it by setting it to the opposite value CONFIG_CC_OPTIMIZE_FOR_SIZE is set to. Tested on lantiq Signed-off-by: Hauke Mehrtens --- include/kernel-version.mk | 4 ++-- target/linux/apm821xx/config-4.4 | 1 + target/linux/ar71xx/config-4.4 | 1 + .../ar71xx/patches-4.4/910-unaligned_access_hacks.patch | 2 +- target/linux/arm64/config-4.4 | 1 + target/linux/at91/config-4.4 | 1 + target/linux/ath25/config-4.4 | 1 + target/linux/bcm53xx/config-4.4 | 1 + target/linux/brcm47xx/config-4.4 | 1 + target/linux/brcm63xx/config-4.4 | 1 + target/linux/gemini/config-4.4 | 1 + target/linux/generic/config-4.4 | 1 + ...t-phy-cherry-pick-Broadcom-drivers-updates-from-v4.patch | 6 +++--- .../generic/patches-4.4/203-kallsyms_uncompressed.patch | 2 +- target/linux/generic/patches-4.4/204-module_strip.patch | 2 +- target/linux/generic/patches-4.4/995-mangle_bootargs.patch | 2 +- target/linux/imx6/config-4.4 | 1 + target/linux/ixp4xx/config-4.4 | 1 + target/linux/layerscape/config-4.4 | 1 + target/linux/malta/config-4.4 | 1 + target/linux/mxs/config-4.4 | 1 + target/linux/octeon/config-4.4 | 1 + target/linux/ramips/mt7620/config-4.4 | 1 + target/linux/ramips/mt7621/config-4.4 | 1 + target/linux/ramips/mt7628/config-4.4 | 1 + target/linux/ramips/mt7688/config-4.4 | 1 + target/linux/ramips/rt288x/config-4.4 | 1 + target/linux/ramips/rt305x/config-4.4 | 1 + target/linux/ramips/rt3883/config-4.4 | 1 + target/linux/rb532/config-4.4 | 1 + target/linux/zynq/config-4.4 | 1 + 31 files changed, 34 insertions(+), 9 deletions(-) diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 8890168e887f..a054de1a5f64 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -3,10 +3,10 @@ LINUX_RELEASE?=1 LINUX_VERSION-3.18 = .43 -LINUX_VERSION-4.4 = .135 +LINUX_VERSION-4.4 = .137 LINUX_KERNEL_HASH-3.18.43 = 1236e8123a6ce537d5029232560966feed054ae31776fe8481dd7d18cdd5492c -LINUX_KERNEL_HASH-4.4.135 = 03ccb008824e363d9f83245676b9e0602f604c880dd10577653f3328c37781dc +LINUX_KERNEL_HASH-4.4.137 = 31d17963fb3033de9b3d319179a222a3767075779861d3d64fd9819e1db71206 ifdef KERNEL_PATCHVER LINUX_VERSION:=$(KERNEL_PATCHVER)$(strip $(LINUX_VERSION-$(KERNEL_PATCHVER))) diff --git a/target/linux/apm821xx/config-4.4 b/target/linux/apm821xx/config-4.4 index 68e22ecf8d5b..d10cb3016085 100644 --- a/target/linux/apm821xx/config-4.4 +++ b/target/linux/apm821xx/config-4.4 @@ -41,6 +41,7 @@ CONFIG_BOOKE_WDT=y CONFIG_BOUNCE=y # CONFIG_CANYONLANDS is not set # CONFIG_IKAREM is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLONE_BACKWARDS=y CONFIG_CMDLINE="rootfstype=squashfs noinitrd" diff --git a/target/linux/ar71xx/config-4.4 b/target/linux/ar71xx/config-4.4 index a8622454b421..91eb9f0de7ef 100644 --- a/target/linux/ar71xx/config-4.4 +++ b/target/linux/ar71xx/config-4.4 @@ -230,6 +230,7 @@ CONFIG_ATH79_NVRAM=y CONFIG_ATH79_PCI_ATH9K_FIXUP=y # CONFIG_ATH79_ROUTERBOOT is not set CONFIG_ATH79_WDT=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLKDEV_LOOKUP=y diff --git a/target/linux/ar71xx/patches-4.4/910-unaligned_access_hacks.patch b/target/linux/ar71xx/patches-4.4/910-unaligned_access_hacks.patch index 374f9be3b4b7..bbfe7bd80316 100644 --- a/target/linux/ar71xx/patches-4.4/910-unaligned_access_hacks.patch +++ b/target/linux/ar71xx/patches-4.4/910-unaligned_access_hacks.patch @@ -838,7 +838,7 @@ --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c -@@ -3820,14 +3820,16 @@ static bool tcp_parse_aligned_timestamp( +@@ -3822,14 +3822,16 @@ static bool tcp_parse_aligned_timestamp( { const __be32 *ptr = (const __be32 *)(th + 1); diff --git a/target/linux/arm64/config-4.4 b/target/linux/arm64/config-4.4 index 53793ef6b12c..9ba8eedbbae2 100644 --- a/target/linux/arm64/config-4.4 +++ b/target/linux/arm64/config-4.4 @@ -85,6 +85,7 @@ CONFIG_BUILD_BIN2C=y # CONFIG_CAVIUM_ERRATUM_23144 is not set # CONFIG_CAVIUM_ERRATUM_23154 is not set # CONFIG_CAVIUM_ERRATUM_27456 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_ACPI=y diff --git a/target/linux/at91/config-4.4 b/target/linux/at91/config-4.4 index 86d3a0546ec1..378569512835 100644 --- a/target/linux/at91/config-4.4 +++ b/target/linux/at91/config-4.4 @@ -42,6 +42,7 @@ CONFIG_ATMEL_SDRAMC=y CONFIG_AUTO_ZRELADDR=y # CONFIG_BLK_DEV_INITRD is not set # CONFIG_CACHE_L2X0 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_OF=y diff --git a/target/linux/ath25/config-4.4 b/target/linux/ath25/config-4.4 index 3985437253ca..29f8912f46bb 100644 --- a/target/linux/ath25/config-4.4 +++ b/target/linux/ath25/config-4.4 @@ -17,6 +17,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ATH25=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/bcm53xx/config-4.4 b/target/linux/bcm53xx/config-4.4 index 2eb84c5ef73e..331ef4f3ad27 100644 --- a/target/linux/bcm53xx/config-4.4 +++ b/target/linux/bcm53xx/config-4.4 @@ -78,6 +78,7 @@ CONFIG_BGMAC_BCMA=y CONFIG_BOUNCE=y CONFIG_BROADCOM_PHY=y CONFIG_CACHE_L2X0=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK=y diff --git a/target/linux/brcm47xx/config-4.4 b/target/linux/brcm47xx/config-4.4 index 97571b62a305..b243ee007353 100644 --- a/target/linux/brcm47xx/config-4.4 +++ b/target/linux/brcm47xx/config-4.4 @@ -34,6 +34,7 @@ CONFIG_BCMA_NFLASH=y CONFIG_BCMA_PFLASH=y CONFIG_BCMA_SFLASH=y # CONFIG_BGMAC_BCMA is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/brcm63xx/config-4.4 b/target/linux/brcm63xx/config-4.4 index fb448adc1aae..63b24ea5ca94 100644 --- a/target/linux/brcm63xx/config-4.4 +++ b/target/linux/brcm63xx/config-4.4 @@ -51,6 +51,7 @@ CONFIG_BCM_NET_PHYLIB=y CONFIG_BOARD_BCM63XX_DT=y CONFIG_BOARD_BCM963XX=y CONFIG_BOARD_LIVEBOX=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/gemini/config-4.4 b/target/linux/gemini/config-4.4 index 9572196ae8b9..730082e4ecb3 100644 --- a/target/linux/gemini/config-4.4 +++ b/target/linux/gemini/config-4.4 @@ -18,6 +18,7 @@ CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ATA=y CONFIG_ATAGS=y # CONFIG_CACHE_L2X0 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLONE_BACKWARDS=y CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,19200 mem=32M" diff --git a/target/linux/generic/config-4.4 b/target/linux/generic/config-4.4 index a8fd15d1a4a4..14284ff3c341 100644 --- a/target/linux/generic/config-4.4 +++ b/target/linux/generic/config-4.4 @@ -590,6 +590,7 @@ CONFIG_CARDBUS=y # CONFIG_CAVIUM_OCTEON_SOC is not set # CONFIG_CB710_CORE is not set # CONFIG_CC10001_ADC is not set +CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set # CONFIG_CC_STACKPROTECTOR is not set CONFIG_CC_STACKPROTECTOR_NONE=y diff --git a/target/linux/generic/patches-4.4/078-0003-net-phy-cherry-pick-Broadcom-drivers-updates-from-v4.patch b/target/linux/generic/patches-4.4/078-0003-net-phy-cherry-pick-Broadcom-drivers-updates-from-v4.patch index b5c528140df2..6a1cbbdeaa99 100644 --- a/target/linux/generic/patches-4.4/078-0003-net-phy-cherry-pick-Broadcom-drivers-updates-from-v4.patch +++ b/target/linux/generic/patches-4.4/078-0003-net-phy-cherry-pick-Broadcom-drivers-updates-from-v4.patch @@ -265,9 +265,9 @@ Signed-off-by: Rafał Miłecki { --- a/drivers/net/phy/bcm-phy-lib.h +++ b/drivers/net/phy/bcm-phy-lib.h -@@ -19,6 +19,9 @@ - int bcm_phy_write_exp(struct phy_device *phydev, u16 reg, u16 val); - int bcm_phy_read_exp(struct phy_device *phydev, u16 reg); +@@ -26,6 +26,9 @@ static inline int bcm_phy_write_exp_sel( + return bcm_phy_write_exp(phydev, reg | MII_BCM54XX_EXP_SEL_ER, val); + } +int bcm54xx_auxctl_write(struct phy_device *phydev, u16 regnum, u16 val); +int bcm54xx_auxctl_read(struct phy_device *phydev, u16 regnum); diff --git a/target/linux/generic/patches-4.4/203-kallsyms_uncompressed.patch b/target/linux/generic/patches-4.4/203-kallsyms_uncompressed.patch index cf8a447bbcd5..d3a5aa7606a2 100644 --- a/target/linux/generic/patches-4.4/203-kallsyms_uncompressed.patch +++ b/target/linux/generic/patches-4.4/203-kallsyms_uncompressed.patch @@ -51,7 +51,7 @@ } else if (argc != 1) --- a/init/Kconfig +++ b/init/Kconfig -@@ -1345,6 +1345,17 @@ config SYSCTL_ARCH_UNALIGN_ALLOW +@@ -1358,6 +1358,17 @@ config SYSCTL_ARCH_UNALIGN_ALLOW the unaligned access emulation. see arch/parisc/kernel/unaligned.c for reference diff --git a/target/linux/generic/patches-4.4/204-module_strip.patch b/target/linux/generic/patches-4.4/204-module_strip.patch index a661f98c659f..09c62e29ac2b 100644 --- a/target/linux/generic/patches-4.4/204-module_strip.patch +++ b/target/linux/generic/patches-4.4/204-module_strip.patch @@ -89,7 +89,7 @@ Signed-off-by: Felix Fietkau --- a/init/Kconfig +++ b/init/Kconfig -@@ -2033,6 +2033,13 @@ config MODULE_COMPRESS_XZ +@@ -2046,6 +2046,13 @@ config MODULE_COMPRESS_XZ endchoice diff --git a/target/linux/generic/patches-4.4/995-mangle_bootargs.patch b/target/linux/generic/patches-4.4/995-mangle_bootargs.patch index 821370350ed4..55863882bf8b 100644 --- a/target/linux/generic/patches-4.4/995-mangle_bootargs.patch +++ b/target/linux/generic/patches-4.4/995-mangle_bootargs.patch @@ -40,7 +40,7 @@ setup_per_cpu_areas(); --- a/init/Kconfig +++ b/init/Kconfig -@@ -1655,6 +1655,15 @@ config EMBEDDED +@@ -1668,6 +1668,15 @@ config EMBEDDED an embedded system so certain expert options are available for configuration. diff --git a/target/linux/imx6/config-4.4 b/target/linux/imx6/config-4.4 index a4ced2e49d7e..52cd714920a5 100644 --- a/target/linux/imx6/config-4.4 +++ b/target/linux/imx6/config-4.4 @@ -49,6 +49,7 @@ CONFIG_ATAGS=y # CONFIG_ATA_SFF is not set CONFIG_AUTO_ZRELADDR=y CONFIG_CACHE_L2X0=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_IMX_GPT=y diff --git a/target/linux/ixp4xx/config-4.4 b/target/linux/ixp4xx/config-4.4 index 1929f85b1fe9..d46c7a2b7397 100644 --- a/target/linux/ixp4xx/config-4.4 +++ b/target/linux/ixp4xx/config-4.4 @@ -33,6 +33,7 @@ CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ATAGS=y CONFIG_BOUNCE=y # CONFIG_CACHE_L2X0 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKSRC_MMIO=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/layerscape/config-4.4 b/target/linux/layerscape/config-4.4 index d334e42fe7d1..d26bc8f18cf4 100644 --- a/target/linux/layerscape/config-4.4 +++ b/target/linux/layerscape/config-4.4 @@ -17,6 +17,7 @@ CONFIG_ARM_GIC=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_SD=y # CONFIG_CAVIUM_ERRATUM_27456 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_MMIO=y diff --git a/target/linux/malta/config-4.4 b/target/linux/malta/config-4.4 index d19006563d00..d6bc73f1411f 100644 --- a/target/linux/malta/config-4.4 +++ b/target/linux/malta/config-4.4 @@ -27,6 +27,7 @@ CONFIG_BOARD_SCACHE=y CONFIG_BOOT_ELF32=y CONFIG_BOUNCE=y CONFIG_BUILTIN_DTB=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLKBLD_I8253=y diff --git a/target/linux/mxs/config-4.4 b/target/linux/mxs/config-4.4 index 6723f05d31a9..89db4c9e0877 100644 --- a/target/linux/mxs/config-4.4 +++ b/target/linux/mxs/config-4.4 @@ -42,6 +42,7 @@ CONFIG_ARM_THUMB=y CONFIG_ATAGS=y CONFIG_AUTO_ZRELADDR=y # CONFIG_CACHE_L2X0 is not set +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CLKDEV_LOOKUP=y CONFIG_CLKSRC_MMIO=y diff --git a/target/linux/octeon/config-4.4 b/target/linux/octeon/config-4.4 index fd2f26f1eaa5..c46de19d5613 100644 --- a/target/linux/octeon/config-4.4 +++ b/target/linux/octeon/config-4.4 @@ -37,6 +37,7 @@ CONFIG_CAVIUM_OCTEON_LOCK_L2_LOW_LEVEL_INTERRUPT=y CONFIG_CAVIUM_OCTEON_LOCK_L2_MEMCPY=y CONFIG_CAVIUM_OCTEON_LOCK_L2_TLB=y CONFIG_CAVIUM_OCTEON_SOC=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/ramips/mt7620/config-4.4 b/target/linux/ramips/mt7620/config-4.4 index a2a77177f465..6683543f949e 100644 --- a/target/linux/ramips/mt7620/config-4.4 +++ b/target/linux/ramips/mt7620/config-4.4 @@ -15,6 +15,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_AT803X_PHY=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CEVT_SYSTICK_QUIRK=y diff --git a/target/linux/ramips/mt7621/config-4.4 b/target/linux/ramips/mt7621/config-4.4 index 383370b86e18..def9620387a6 100644 --- a/target/linux/ramips/mt7621/config-4.4 +++ b/target/linux/ramips/mt7621/config-4.4 @@ -16,6 +16,7 @@ CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_BOARD_SCACHE=y CONFIG_BOUNCE=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y # CONFIG_CEVT_SYSTICK_QUIRK is not set diff --git a/target/linux/ramips/mt7628/config-4.4 b/target/linux/ramips/mt7628/config-4.4 index 6b04457f1786..561d765d0185 100644 --- a/target/linux/ramips/mt7628/config-4.4 +++ b/target/linux/ramips/mt7628/config-4.4 @@ -15,6 +15,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_AT803X_PHY=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CEVT_SYSTICK_QUIRK=y diff --git a/target/linux/ramips/mt7688/config-4.4 b/target/linux/ramips/mt7688/config-4.4 index aad333bfdb0a..3b7310d1b8cb 100644 --- a/target/linux/ramips/mt7688/config-4.4 +++ b/target/linux/ramips/mt7688/config-4.4 @@ -15,6 +15,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_AT803X_PHY=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CEVT_SYSTICK_QUIRK=y diff --git a/target/linux/ramips/rt288x/config-4.4 b/target/linux/ramips/rt288x/config-4.4 index 5f29322874d6..c576f618b7cd 100644 --- a/target/linux/ramips/rt288x/config-4.4 +++ b/target/linux/ramips/rt288x/config-4.4 @@ -14,6 +14,7 @@ CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y # CONFIG_CEVT_SYSTICK_QUIRK is not set diff --git a/target/linux/ramips/rt305x/config-4.4 b/target/linux/ramips/rt305x/config-4.4 index b8f6cda46940..dd2c97aaec2e 100644 --- a/target/linux/ramips/rt305x/config-4.4 +++ b/target/linux/ramips/rt305x/config-4.4 @@ -14,6 +14,7 @@ CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CEVT_SYSTICK_QUIRK=y diff --git a/target/linux/ramips/rt3883/config-4.4 b/target/linux/ramips/rt3883/config-4.4 index 93df68771cf9..50dd2a8773ad 100644 --- a/target/linux/ramips/rt3883/config-4.4 +++ b/target/linux/ramips/rt3883/config-4.4 @@ -15,6 +15,7 @@ CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y # CONFIG_CEVT_SYSTICK_QUIRK is not set diff --git a/target/linux/rb532/config-4.4 b/target/linux/rb532/config-4.4 index 7d0bb3ab1556..1abdbfc547cf 100644 --- a/target/linux/rb532/config-4.4 +++ b/target/linux/rb532/config-4.4 @@ -16,6 +16,7 @@ CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y CONFIG_ATA=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_SD=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CEVT_R4K=y CONFIG_CLONE_BACKWARDS=y diff --git a/target/linux/zynq/config-4.4 b/target/linux/zynq/config-4.4 index 52080e2ee924..ff9d341f36da 100644 --- a/target/linux/zynq/config-4.4 +++ b/target/linux/zynq/config-4.4 @@ -98,6 +98,7 @@ CONFIG_CAN_RAW=y # CONFIG_CAN_SOFTING is not set # CONFIG_CAN_TI_HECC is not set CONFIG_CAN_XILINXCAN=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_CHR_DEV_SG=y CONFIG_CLKDEV_LOOKUP=y From 7fc94b2a25bb92c886b5de0433284b28c6a1df9a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Mon, 28 May 2018 15:45:43 +0200 Subject: [PATCH 02/22] mac80211: rt2x00: no longer use TXOP_BACKOFF for probe frames Import a revert-commit from Stanislaw Gruszka which significantly improves WiFi performance on rt2x00 based hardware. Signed-off-by: Daniel Golle (cherry-picked from commit f4a639a3d7d40b4f63c431c2d554c479fbcc6b74) --- package/kernel/mac80211/Makefile | 2 +- ...00-use-TXOP_BACKOFF-for-probe-frames.patch | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 package/kernel/mac80211/patches/090-Revert-rt2800-use-TXOP_BACKOFF-for-probe-frames.patch diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile index 0cdce6386db7..0a4cbc8ab4d4 100644 --- a/package/kernel/mac80211/Makefile +++ b/package/kernel/mac80211/Makefile @@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=mac80211 PKG_VERSION:=2017-01-31 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources PKG_BACKPORT_VERSION:= PKG_HASH:=75e6d39e34cf156212a2509172a4a62b673b69eb4a1d9aaa565f7fa719fa2317 diff --git a/package/kernel/mac80211/patches/090-Revert-rt2800-use-TXOP_BACKOFF-for-probe-frames.patch b/package/kernel/mac80211/patches/090-Revert-rt2800-use-TXOP_BACKOFF-for-probe-frames.patch new file mode 100644 index 000000000000..34380512d885 --- /dev/null +++ b/package/kernel/mac80211/patches/090-Revert-rt2800-use-TXOP_BACKOFF-for-probe-frames.patch @@ -0,0 +1,45 @@ +From 52a192362932f333a7ebafd581c4d9b81da2fec8 Mon Sep 17 00:00:00 2001 +From: Stanislaw Gruszka +Date: Mon, 28 May 2018 13:25:06 +0200 +Subject: [PATCH] Revert "rt2800: use TXOP_BACKOFF for probe frames" + +This reverts commit fb47ada8dc3c30c8e7b415da155742b49536c61e. + +In some situations when we set TXOP_BACKOFF, the probe frame is +not sent at all. What it worse then sending probe frame as part +of AMPDU and can degrade 11n performance to 11g rates. + +Cc: stable@vger.kernel.org +Signed-off-by: Stanislaw Gruszka +Signed-off-by: Kalle Valo +--- + drivers/net/wireless/ralink/rt2x00/rt2x00queue.c | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c +index a6884e73d2ab..7ddee980048b 100644 +--- a/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c ++++ b/drivers/net/wireless/ralink/rt2x00/rt2x00queue.c +@@ -372,16 +372,15 @@ static void rt2x00queue_create_tx_descriptor_ht(struct rt2x00_dev *rt2x00dev, + + /* + * Determine IFS values +- * - Use TXOP_BACKOFF for probe and management frames except beacons ++ * - Use TXOP_BACKOFF for management frames except beacons + * - Use TXOP_SIFS for fragment bursts + * - Use TXOP_HTTXOP for everything else + * + * Note: rt2800 devices won't use CTS protection (if used) + * for frames not transmitted with TXOP_HTTXOP + */ +- if ((ieee80211_is_mgmt(hdr->frame_control) && +- !ieee80211_is_beacon(hdr->frame_control)) || +- (tx_info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE)) ++ if (ieee80211_is_mgmt(hdr->frame_control) && ++ !ieee80211_is_beacon(hdr->frame_control)) + txdesc->u.ht.txop = TXOP_BACKOFF; + else if (!(tx_info->flags & IEEE80211_TX_CTL_FIRST_FRAGMENT)) + txdesc->u.ht.txop = TXOP_SIFS; +-- +2.17.1 + From cf4a37a581b278d336036b186359c3cbe2c0824c Mon Sep 17 00:00:00 2001 From: Tony Ambardar Date: Tue, 25 Apr 2017 02:16:56 -0700 Subject: [PATCH 03/22] uci: add missing 'option' support to uci_rename() When using the uci.sh wrapper, allow parameters to match those supported by the uci binary i.e. "uci rename .
[.