Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* https://github.com/coolsnowwolf/lede:
  mac80211: fix 5.18/5.19 brcm patch
  rockchip: adjust default DMA coherent_pool to 2MiB
  rockchip: move dts to files folder
  rockchip: reorder r66s/p2 eth ports
  rockchip: add smp tune for fastrhino r66s
  kernel: bump 5.10 to 5.10.136
  kernel: bump 5.15 to 5.15.60
  ipq807x: add default packages about nss (coolsnowwolf#9920)
  • Loading branch information
github-actions[bot] committed Aug 12, 2022
2 parents 55c07bc + 084bf63 commit 0533c72
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 22 deletions.
4 changes: 2 additions & 2 deletions include/kernel-5.10
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.10 = .135
LINUX_KERNEL_HASH-5.10.135 = e499a61be9ce670716dd27b5124bb9ef6c6bc0e8fab443abf717a77136543344
LINUX_VERSION-5.10 = .136
LINUX_KERNEL_HASH-5.10.136 = 1c099d0d59e7d9f671dfc947e16891b7a3a45efd7dfcc6b1e55a194961e45159
4 changes: 2 additions & 2 deletions include/kernel-5.15
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.15 = .59
LINUX_KERNEL_HASH-5.15.59 = e6ddc642057340db06b3b921c2b31bfed2c611359e8f144c3e5cf9c3ac33bccb
LINUX_VERSION-5.15 = .60
LINUX_KERNEL_HASH-5.15.60 = 2d9545f7c96faffd8407522011b9533adefd1360118494dfb6c862f2f15e237a
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ index 44a11b0..178e692 100644
ndev->ethtool_ops = &brcmf_ethtool_ops;

/* set the mac address & netns */
++#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
memcpy(ndev->dev_addr, ifp->mac_addr, ETH_ALEN);
+#else
+ eth_hw_addr_set(ifp->ndev, ifp->mac_addr);
Expand Down Expand Up @@ -117,7 +117,7 @@ index 57aa863..f5ebb5a 100644
local->hw.wiphy->perm_addr,
ETH_ALEN);
+#else
+ eth_hw_addr_set(ndev, params->macaddr);
+ eth_hw_addr_set(dev, local->hw.wiphy->perm_addr);
+#endif
memcpy(dev->perm_addr, dev->dev_addr, ETH_ALEN);

Expand Down
1 change: 1 addition & 0 deletions target/linux/ipq807x/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ DEFAULT_PACKAGES += \
autocore-arm htop wpad-openssl zram-swap uboot-envtools \
kmod-qca-nss-dp kmod-qca-nss-drv-64 \
kmod-qca-nss-drv-pppoe-64 kmod-qca-nss-ecm-64 \
kmod-qca-nss-drv-bridge-mgr-64 kmod-qca-nss-drv-vlan-mgr-64 \
nss-firmware-ipq8074 luci-app-ipsec-vpnd \
luci-app-unblockmusic luci-app-zerotier

Expand Down
8 changes: 5 additions & 3 deletions target/linux/rockchip/armv8/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ rockchip_setup_interfaces()
case "$board" in
embedfire,doornet1|\
embedfire,doornet2|\
fastrhino,r66s|\
friendlyarm,nanopi-r2c|\
friendlyarm,nanopi-r2s|\
friendlyarm,nanopi-r4s|\
friendlyarm,nanopi-r4se|\
sharevdi,guangmiao-g4c|\
xunlong,orangepi-r1-plus|\
xunlong,orangepi-r1-plus-lts|\
firefly,rk3568-roc-pc)
xunlong,orangepi-r1-plus-lts)
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
;;
fastrhino,r66s|\
firefly,rk3568-roc-pc)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
friendlyelec,nanopi-r5s)
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ sharevdi,guangmiao-g4c)
set_interface_core 10 "eth0"
set_interface_core 20 "eth1"
;;
fastrhino,r66s|\
firefly,rk3568-roc-pc)
set_interface_core 2 "eth0"
set_interface_core 4 "eth1"
Expand Down
13 changes: 0 additions & 13 deletions target/linux/rockchip/armv8/base-files/lib/preinit/04_reorder_eth

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 16bdf3e76fec6ddb44f1fcf221139fb39d225031 Mon Sep 17 00:00:00 2001
From: Igor Pecovnik <igor.pecovnik@gmail.com>
Date: Sat, 2 Jan 2021 05:23:55 +0000
Subject: [PATCH] kernel: dma: adjust default coherent_pool to 2MiB

---
kernel/dma/pool.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)

--- a/kernel/dma/pool.c
+++ b/kernel/dma/pool.c
@@ -189,13 +189,11 @@ static int __init dma_atomic_pool_init(v
int ret = 0;

/*
- * If coherent_pool was not used on the command line, default the pool
- * sizes to 128KB per 1GB of memory, min 128KB, max MAX_ORDER-1.
+ * Always use 2MiB as default pool size.
+ * See: https://forum.armbian.com/topic/4811-uas-mainline-kernel-coherent-pool-memory-size/
*/
if (!atomic_pool_size) {
- unsigned long pages = totalram_pages() / (SZ_1G / SZ_128K);
- pages = min_t(unsigned long, pages, MAX_ORDER_NR_PAGES);
- atomic_pool_size = max_t(size_t, pages << PAGE_SHIFT, SZ_128K);
+ atomic_pool_size = SZ_2M;
}
INIT_WORK(&atomic_pool_work, atomic_pool_work_fn);

0 comments on commit 0533c72

Please sign in to comment.