Skip to content

Commit

Permalink
kernel: bump 5.4 to 5.4.124
Browse files Browse the repository at this point in the history
Manually rebased:
  generic/hack-5.4/662-remove_pfifo_fast.patch

All other patches automatically rebased.

Build system: x86_64
Build-tested: ipq806x/R7800
Run-tested: ipq806x/R7800

No dmesg regressions, everything functional

Signed-off-by: John Audia <graysky@archlinux.us>
[manual changes to ramips/patches-5.10/835-asoc-add-mt7620-support.patch]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  • Loading branch information
graysky2 authored and hauke committed Jun 5, 2021
1 parent da77b9c commit 752cd29
Show file tree
Hide file tree
Showing 45 changed files with 168 additions and 167 deletions.
4 changes: 2 additions & 2 deletions include/kernel-version.mk
Expand Up @@ -6,10 +6,10 @@ ifdef CONFIG_TESTING_KERNEL
KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER)
endif

LINUX_VERSION-5.4 = .123
LINUX_VERSION-5.4 = .124
LINUX_VERSION-5.10 = .42

LINUX_KERNEL_HASH-5.4.123 = 8efe33fffb661d14422877b775fb38de373e04ad640f5d0c8f57144ddb1022de
LINUX_KERNEL_HASH-5.4.124 = f7f29dda2b042d7b5986d18274413131cf70e17288c05e9a683df1f46c507d82
LINUX_KERNEL_HASH-5.10.42 = 8ba027c73bd67b8ded2649a741d2f018db630c1cbc081700d8ffd07ab0d906e5

remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1))))
Expand Down
Expand Up @@ -30,7 +30,7 @@ Signed-off-by: Sungbo Eo <mans0n@gorani.run>
uport->cons->cflag = 0;
}
/*
@@ -2108,8 +2110,10 @@ uart_set_options(struct uart_port *port,
@@ -2110,8 +2112,10 @@ uart_set_options(struct uart_port *port,
* Allow the setting of the UART parameters with a NULL console
* too:
*/
Expand Down
Expand Up @@ -66,7 +66,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5404,8 +5404,7 @@ static inline void skb_gro_reset_offset(
@@ -5423,8 +5423,7 @@ static inline void skb_gro_reset_offset(
NAPI_GRO_CB(skb)->frag0 = NULL;
NAPI_GRO_CB(skb)->frag0_len = 0;

Expand Down
Expand Up @@ -17,7 +17,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1153,6 +1153,64 @@ mt7530_port_vlan_del(struct dsa_switch *
@@ -1145,6 +1145,64 @@ mt7530_port_vlan_del(struct dsa_switch *
return 0;
}

Expand Down Expand Up @@ -82,7 +82,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
static enum dsa_tag_protocol
mtk_get_tag_protocol(struct dsa_switch *ds, int port)
{
@@ -1530,6 +1588,8 @@ static const struct dsa_switch_ops mt753
@@ -1522,6 +1580,8 @@ static const struct dsa_switch_ops mt753
.port_vlan_prepare = mt7530_port_vlan_prepare,
.port_vlan_add = mt7530_port_vlan_add,
.port_vlan_del = mt7530_port_vlan_del,
Expand Down
Expand Up @@ -101,7 +101,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
return 0;

/* Do not deprogram the CPU port as it may be shared with other user
@@ -1118,7 +1118,7 @@ static int dsa_slave_vlan_rx_add_vid(str
@@ -1120,7 +1120,7 @@ static int dsa_slave_vlan_rx_add_vid(str
* need to emulate the switchdev prepare + commit phase.
*/
if (dp->bridge_dev) {
Expand All @@ -110,7 +110,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
return 0;

/* br_vlan_get_info() returns -EINVAL or -ENOENT if the
@@ -1152,7 +1152,7 @@ static int dsa_slave_vlan_rx_kill_vid(st
@@ -1154,7 +1154,7 @@ static int dsa_slave_vlan_rx_kill_vid(st
* need to emulate the switchdev prepare + commit phase.
*/
if (dp->bridge_dev) {
Expand Down
Expand Up @@ -15,7 +15,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -1093,12 +1093,6 @@ mt7530_port_vlan_add(struct dsa_switch *
@@ -1085,12 +1085,6 @@ mt7530_port_vlan_add(struct dsa_switch *
struct mt7530_priv *priv = ds->priv;
u16 vid;

Expand All @@ -28,7 +28,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
mutex_lock(&priv->reg_mutex);

for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) {
@@ -1124,12 +1118,6 @@ mt7530_port_vlan_del(struct dsa_switch *
@@ -1116,12 +1110,6 @@ mt7530_port_vlan_del(struct dsa_switch *
struct mt7530_priv *priv = ds->priv;
u16 vid, pvid;

Expand All @@ -41,7 +41,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
mutex_lock(&priv->reg_mutex);

pvid = priv->ports[port].pvid;
@@ -1242,6 +1230,7 @@ mt7530_setup(struct dsa_switch *ds)
@@ -1234,6 +1222,7 @@ mt7530_setup(struct dsa_switch *ds)
* as two netdev instances.
*/
dn = ds->ports[MT7530_CPU_PORT].master->dev.of_node->parent;
Expand Down
Expand Up @@ -10,7 +10,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -2211,6 +2211,28 @@ static int mtk_start_dma(struct mtk_eth
@@ -2232,6 +2232,28 @@ static int mtk_start_dma(struct mtk_eth
return 0;
}

Expand Down Expand Up @@ -39,7 +39,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
static int mtk_open(struct net_device *dev)
{
struct mtk_mac *mac = netdev_priv(dev);
@@ -2406,8 +2428,6 @@ static int mtk_hw_init(struct mtk_eth *e
@@ -2427,8 +2449,6 @@ static int mtk_hw_init(struct mtk_eth *e
mtk_w32(eth, 0, MTK_QDMA_DELAY_INT);
mtk_tx_irq_disable(eth, ~0);
mtk_rx_irq_disable(eth, ~0);
Expand All @@ -48,7 +48,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

/* FE int grouping */
mtk_w32(eth, MTK_TX_DONE_INT, MTK_PDMA_INT_GRP1);
@@ -2416,18 +2436,7 @@ static int mtk_hw_init(struct mtk_eth *e
@@ -2437,18 +2457,7 @@ static int mtk_hw_init(struct mtk_eth *e
mtk_w32(eth, MTK_RX_DONE_INT, MTK_QDMA_INT_GRP2);
mtk_w32(eth, 0x21021000, MTK_FE_INT_GRP);

Expand Down
Expand Up @@ -15,7 +15,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -2215,6 +2215,9 @@ static void mtk_gdm_config(struct mtk_et
@@ -2236,6 +2236,9 @@ static void mtk_gdm_config(struct mtk_et
{
int i;

Expand All @@ -25,7 +25,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
for (i = 0; i < MTK_MAC_COUNT; i++) {
u32 val = mtk_r32(eth, MTK_GDMA_FWD_CFG(i));

@@ -2253,6 +2256,8 @@ static int mtk_open(struct net_device *d
@@ -2274,6 +2277,8 @@ static int mtk_open(struct net_device *d
if (err)
return err;

Expand All @@ -34,7 +34,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
napi_enable(&eth->tx_napi);
napi_enable(&eth->rx_napi);
mtk_tx_irq_enable(eth, MTK_TX_DONE_INT);
@@ -2436,8 +2441,6 @@ static int mtk_hw_init(struct mtk_eth *e
@@ -2457,8 +2462,6 @@ static int mtk_hw_init(struct mtk_eth *e
mtk_w32(eth, MTK_RX_DONE_INT, MTK_QDMA_INT_GRP2);
mtk_w32(eth, 0x21021000, MTK_FE_INT_GRP);

Expand Down
Expand Up @@ -12,7 +12,7 @@ Signed-off-by: David S. Miller <davem@davemloft.net>

--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -2310,6 +2310,8 @@ static int mtk_stop(struct net_device *d
@@ -2331,6 +2331,8 @@ static int mtk_stop(struct net_device *d
if (!refcount_dec_and_test(&eth->dma_refcnt))
return 0;

Expand Down
Expand Up @@ -25,7 +25,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>

--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1590,7 +1590,9 @@ static void dsa_slave_switchdev_event_wo
@@ -1592,7 +1592,9 @@ static void dsa_slave_switchdev_event_wo

err = dsa_port_fdb_add(dp, fdb_info->addr, fdb_info->vid);
if (err) {
Expand All @@ -36,7 +36,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
break;
}
fdb_info->offloaded = true;
@@ -1605,9 +1607,11 @@ static void dsa_slave_switchdev_event_wo
@@ -1607,9 +1609,11 @@ static void dsa_slave_switchdev_event_wo

err = dsa_port_fdb_del(dp, fdb_info->addr, fdb_info->vid);
if (err) {
Expand Down
Expand Up @@ -54,7 +54,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
struct sk_buff * (*xmit)(struct sk_buff *skb,
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1565,76 +1565,66 @@ static int dsa_slave_netdevice_event(str
@@ -1567,76 +1567,66 @@ static int dsa_slave_netdevice_event(str
return NOTIFY_DONE;
}

Expand Down Expand Up @@ -167,7 +167,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
}

/* Called under rcu_read_lock() */
@@ -1642,7 +1632,9 @@ static int dsa_slave_switchdev_event(str
@@ -1644,7 +1634,9 @@ static int dsa_slave_switchdev_event(str
unsigned long event, void *ptr)
{
struct net_device *dev = switchdev_notifier_info_to_dev(ptr);
Expand All @@ -177,7 +177,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
int err;

if (event == SWITCHDEV_PORT_ATTR_SET) {
@@ -1655,20 +1647,32 @@ static int dsa_slave_switchdev_event(str
@@ -1657,20 +1649,32 @@ static int dsa_slave_switchdev_event(str
if (!dsa_slave_dev_check(dev))
return NOTIFY_DONE;

Expand Down Expand Up @@ -213,7 +213,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
dev_hold(dev);
break;
default:
@@ -1678,10 +1682,6 @@ static int dsa_slave_switchdev_event(str
@@ -1680,10 +1684,6 @@ static int dsa_slave_switchdev_event(str

dsa_schedule_work(&switchdev_work->work);
return NOTIFY_OK;
Expand Down
Expand Up @@ -20,7 +20,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>

--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1637,31 +1637,29 @@ static int dsa_slave_switchdev_event(str
@@ -1639,31 +1639,29 @@ static int dsa_slave_switchdev_event(str
struct dsa_port *dp;
int err;

Expand Down Expand Up @@ -68,7 +68,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>
fdb_info = ptr;

if (!fdb_info->added_by_user) {
@@ -1674,13 +1672,12 @@ static int dsa_slave_switchdev_event(str
@@ -1676,13 +1674,12 @@ static int dsa_slave_switchdev_event(str
switchdev_work->vid = fdb_info->vid;

dev_hold(dev);
Expand Down
Expand Up @@ -30,7 +30,7 @@ Signed-off-by: Jakub Kicinski <kuba@kernel.org>

--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1650,6 +1650,9 @@ static int dsa_slave_switchdev_event(str
@@ -1652,6 +1652,9 @@ static int dsa_slave_switchdev_event(str

dp = dsa_slave_to_port(dev);

Expand Down
Expand Up @@ -172,7 +172,7 @@ Signed-off-by: DENG Qingfang <dqfext@gmail.com>
*/
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1627,6 +1627,25 @@ static void dsa_slave_switchdev_event_wo
@@ -1629,6 +1629,25 @@ static void dsa_slave_switchdev_event_wo
dev_put(dp->slave);
}

Expand All @@ -198,7 +198,7 @@ Signed-off-by: DENG Qingfang <dqfext@gmail.com>
/* Called under rcu_read_lock() */
static int dsa_slave_switchdev_event(struct notifier_block *unused,
unsigned long event, void *ptr)
@@ -1645,10 +1664,37 @@ static int dsa_slave_switchdev_event(str
@@ -1647,10 +1666,37 @@ static int dsa_slave_switchdev_event(str
return notifier_from_errno(err);
case SWITCHDEV_FDB_ADD_TO_DEVICE:
case SWITCHDEV_FDB_DEL_TO_DEVICE:
Expand Down Expand Up @@ -239,7 +239,7 @@ Signed-off-by: DENG Qingfang <dqfext@gmail.com>

if (!dp->ds->ops->port_fdb_add || !dp->ds->ops->port_fdb_del)
return NOTIFY_DONE;
@@ -1663,18 +1709,13 @@ static int dsa_slave_switchdev_event(str
@@ -1665,18 +1711,13 @@ static int dsa_slave_switchdev_event(str
switchdev_work->port = dp->index;
switchdev_work->event = event;

Expand Down
Expand Up @@ -14,7 +14,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>

--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -570,12 +570,13 @@ extern struct Qdisc_ops noop_qdisc_ops;
@@ -603,12 +603,13 @@ extern struct Qdisc_ops noop_qdisc_ops;
extern struct Qdisc_ops pfifo_fast_ops;
extern struct Qdisc_ops mq_qdisc_ops;
extern struct Qdisc_ops noqueue_qdisc_ops;
Expand Down Expand Up @@ -82,8 +82,8 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+const struct Qdisc_ops *default_qdisc_ops = &fq_codel_qdisc_ops;
EXPORT_SYMBOL(default_qdisc_ops);

/* Main transmission queue. */
@@ -1035,12 +1035,12 @@ static void attach_one_default_qdisc(str
static void qdisc_maybe_clear_missed(struct Qdisc *q,
@@ -1079,12 +1079,12 @@ static void attach_one_default_qdisc(str
void *_unused)
{
struct Qdisc *qdisc;
Expand Down
21 changes: 20 additions & 1 deletion target/linux/generic/hack-5.4/662-remove_pfifo_fast.patch
Expand Up @@ -10,7 +10,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>

--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -595,211 +595,6 @@ struct Qdisc_ops noqueue_qdisc_ops __rea
@@ -620,230 +620,6 @@ struct Qdisc_ops noqueue_qdisc_ops __rea
.owner = THIS_MODULE,
};

Expand Down Expand Up @@ -64,8 +64,10 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
-{
- struct pfifo_fast_priv *priv = qdisc_priv(qdisc);
- struct sk_buff *skb = NULL;
- bool need_retry = true;
- int band;
-
-retry:
- for (band = 0; band < PFIFO_FAST_BANDS && !skb; band++) {
- struct skb_array *q = band2list(priv, band);
-
Expand All @@ -76,6 +78,23 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
- }
- if (likely(skb)) {
- qdisc_update_stats_at_dequeue(qdisc, skb);
- } else if (need_retry &&
- test_bit(__QDISC_STATE_MISSED, &qdisc->state)) {
- /* Delay clearing the STATE_MISSED here to reduce
- * the overhead of the second spin_trylock() in
- * qdisc_run_begin() and __netif_schedule() calling
- * in qdisc_run_end().
- */
- clear_bit(__QDISC_STATE_MISSED, &qdisc->state);
-
- /* Make sure dequeuing happens after clearing
- * STATE_MISSED.
- */
- smp_mb__after_atomic();
-
- need_retry = false;
-
- goto retry;
- } else {
- WRITE_ONCE(qdisc->empty, true);
- }
Expand Down
Expand Up @@ -38,7 +38,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>

#include "dsa_priv.h"

@@ -1221,6 +1225,27 @@ static struct devlink_port *dsa_slave_ge
@@ -1223,6 +1227,27 @@ static struct devlink_port *dsa_slave_ge
return dp->ds->devlink ? &dp->devlink_port : NULL;
}

Expand Down Expand Up @@ -66,7 +66,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
static const struct net_device_ops dsa_slave_netdev_ops = {
.ndo_open = dsa_slave_open,
.ndo_stop = dsa_slave_close,
@@ -1245,6 +1270,9 @@ static const struct net_device_ops dsa_s
@@ -1247,6 +1272,9 @@ static const struct net_device_ops dsa_s
.ndo_vlan_rx_add_vid = dsa_slave_vlan_rx_add_vid,
.ndo_vlan_rx_kill_vid = dsa_slave_vlan_rx_kill_vid,
.ndo_get_devlink_port = dsa_slave_get_devlink_port,
Expand Down
Expand Up @@ -32,7 +32,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
__u16 tc_index; /* traffic control index */
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -5470,6 +5470,9 @@ static enum gro_result dev_gro_receive(s
@@ -5489,6 +5489,9 @@ static enum gro_result dev_gro_receive(s
int same_flow;
int grow;

Expand All @@ -42,7 +42,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
if (netif_elide_gro(skb->dev))
goto normal;

@@ -7265,6 +7268,48 @@ static void __netdev_adjacent_dev_unlink
@@ -7284,6 +7287,48 @@ static void __netdev_adjacent_dev_unlink
&upper_dev->adj_list.lower);
}

Expand Down Expand Up @@ -91,23 +91,23 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
static int __netdev_upper_dev_link(struct net_device *dev,
struct net_device *upper_dev, bool master,
void *upper_priv, void *upper_info,
@@ -7315,6 +7360,7 @@ static int __netdev_upper_dev_link(struc
@@ -7334,6 +7379,7 @@ static int __netdev_upper_dev_link(struc
if (ret)
return ret;

+ netdev_update_addr_mask(dev);
ret = call_netdevice_notifiers_info(NETDEV_CHANGEUPPER,
&changeupper_info.info);
ret = notifier_to_errno(ret);
@@ -7408,6 +7454,7 @@ void netdev_upper_dev_unlink(struct net_
@@ -7427,6 +7473,7 @@ void netdev_upper_dev_unlink(struct net_

__netdev_adjacent_dev_unlink_neighbour(dev, upper_dev);

+ netdev_update_addr_mask(dev);
call_netdevice_notifiers_info(NETDEV_CHANGEUPPER,
&changeupper_info.info);

@@ -8138,6 +8185,7 @@ int dev_set_mac_address(struct net_devic
@@ -8157,6 +8204,7 @@ int dev_set_mac_address(struct net_devic
if (err)
return err;
dev->addr_assign_type = NET_ADDR_SET;
Expand Down

0 comments on commit 752cd29

Please sign in to comment.