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:
  luci-app-mosdns: move to feeds
  kernel: add WED rx support for mediatek on mt76 with MT7986 and MT7915
  pacakge: add mosdns and luci-app-mosdns from sbwml
  kernel: bump 5.15 to 5.15.80 (coolsnowwolf#10506)
  • Loading branch information
github-actions[bot] committed Nov 26, 2022
2 parents dbb2a75 + f235862 commit 4377a7c
Show file tree
Hide file tree
Showing 46 changed files with 4,836 additions and 90 deletions.
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 = .79
LINUX_KERNEL_HASH-5.15.79 = cba39031dbc0eed0785b8afdc8c58cf23df83e47001b2354fa44486ae699c154
LINUX_VERSION-5.15 = .80
LINUX_KERNEL_HASH-5.15.80 = 3b321a6466d2021f60ed8d4e33bba21db2f23efc2ddd2d9fb775393d9afdfd4d
58 changes: 51 additions & 7 deletions target/linux/ath79/patches-5.15/910-unaligned_access_hacks.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,47 @@
From: Felix Fietkau <[email protected]>
Subject: [PATCH] ar71xx: fix unaligned access in a few more places

SVN-Revision: 35130
---
arch/mips/include/asm/checksum.h | 83 +++---------------
include/uapi/linux/ip.h | 2 +-
include/uapi/linux/ipv6.h | 2 +-
include/uapi/linux/tcp.h | 4 ++--
include/uapi/linux/udp.h | 2 +-
net/netfilter/nf_conntrack_core.c | 4 ++--
include/uapi/linux/icmp.h | 2 +-
include/uapi/linux/in6.h | 2 +-
net/ipv6/tcp_ipv6.c | 9 +++--
net/ipv6/datagram.c | 6 ++--
net/ipv6/exthdrs.c | 2 +-
include/linux/types.h | 5 +++
net/ipv4/af_inet.c | 4 ++--
net/ipv4/tcp_output.c | 69 +++++++++--------
include/uapi/linux/igmp.h | 8 +++---
net/core/flow_dissector.c | 2 +-
include/uapi/linux/icmpv6.h | 2 +-
include/net/ndisc.h | 10 ++++----
net/sched/cls_u32.c | 6 +++---
net/ipv6/ip6_offload.c | 2 +-
include/net/addrconf.h | 2 +-
include/net/inet_ecn.h | 4 ++--
include/net/ipv6.h | 23 +++++----
include/net/secure_seq.h | 1 +
include/uapi/linux/in.h | 2 +-
net/ipv6/ip6_fib.h | 2 +-
net/netfilter/nf_conntrack_proto_tcp.c | 2 +-
net/xfrm/xfrm_input.c | 4 ++--
net/ipv4/tcp_input.c | 12 ++++---
include/uapi/linux/if_pppox.h | 1 +
net/ipv6/netfilter/nf_log_ipv6.c | 4 ++--
include/net/neighbour.h | 6 +++--
include/uapi/linux/netfilter_arp/arp_tables.h | 2 +-
net/core/utils.c | 10 +++++--
include/linux/etherdevice.h | 11 ++++---
net/ipv4/tcp_offload.c | 6 +++---
net/ipv6/netfilter/ip6table_mangle.c | 4 ++--
37 file changed, 171 insertions(+), 141 deletions(-)

--- a/arch/mips/include/asm/checksum.h
+++ b/arch/mips/include/asm/checksum.h
@@ -100,26 +100,30 @@ static inline __sum16 ip_fast_csum(const
Expand Down Expand Up @@ -118,9 +162,9 @@

--- a/include/uapi/linux/ip.h
+++ b/include/uapi/linux/ip.h
@@ -103,7 +103,7 @@ struct iphdr {
__be32 saddr;
__be32 daddr;
@@ -105,7 +105,7 @@ struct iphdr {
__be32 daddr;
);
/*The options start here. */
-};
+} __attribute__((packed, aligned(2)));
Expand All @@ -129,10 +173,10 @@
struct ip_auth_hdr {
--- a/include/uapi/linux/ipv6.h
+++ b/include/uapi/linux/ipv6.h
@@ -132,7 +132,7 @@ struct ipv6hdr {

struct in6_addr saddr;
struct in6_addr daddr;
@@ -134,7 +134,7 @@ struct ipv6hdr {
struct in6_addr saddr;
struct in6_addr daddr;
);
-};
+} __attribute__((packed, aligned(2)));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ bcm2835-mmc: uninitialized_var is no more
goto out;
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1801,7 +1801,8 @@ EXPORT_SYMBOL(mmc_erase);
@@ -1807,7 +1807,8 @@ EXPORT_SYMBOL(mmc_erase);

int mmc_can_erase(struct mmc_card *card)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ Signed-off-by: Joerg Quinten <[email protected]>
static const struct drm_display_mode innolux_at070tn92_mode = {
.clock = 33333,
.hdisplay = 800,
@@ -4660,6 +4692,9 @@ static const struct of_device_id platfor
@@ -4662,6 +4694,9 @@ static const struct of_device_id platfor
.compatible = "innolux,at043tn24",
.data = &innolux_at043tn24,
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Signed-off-by: Dave Stevenson <[email protected]>

--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3759,6 +3759,31 @@ static const struct panel_desc qishenglo
@@ -3761,6 +3761,31 @@ static const struct panel_desc qishenglo
.connector_type = DRM_MODE_CONNECTOR_DPI,
};

Expand Down Expand Up @@ -47,7 +47,7 @@ Signed-off-by: Dave Stevenson <[email protected]>
static const struct display_timing rocktech_rk070er9427_timing = {
.pixelclock = { 26400000, 33300000, 46800000 },
.hactive = { 800, 800, 800 },
@@ -4839,6 +4864,9 @@ static const struct of_device_id platfor
@@ -4841,6 +4866,9 @@ static const struct of_device_id platfor
.compatible = "qishenglong,gopher2b-lcd",
.data = &qishenglong_gopher2b_lcd,
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Acked-by: Maxime Ripard <[email protected]>
static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
.clock = 9000,
.hdisplay = 480,
@@ -4702,6 +4728,9 @@ static const struct of_device_id platfor
@@ -4704,6 +4730,9 @@ static const struct of_device_id platfor
.compatible = "friendlyarm,hd702e",
.data = &friendlyarm_hd702e,
}, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Signed-off-by: David S. Miller <[email protected]>
struct phylink_link_state *state);
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1172,6 +1172,10 @@ static int dsa_port_phylink_register(str
@@ -1188,6 +1188,10 @@ static int dsa_port_phylink_register(str
dp->pl_config.type = PHYLINK_DEV;
dp->pl_config.pcs_poll = ds->pcs_poll;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

--- a/net/dsa/dsa_priv.h
+++ b/net/dsa/dsa_priv.h
@@ -260,13 +260,13 @@ int dsa_port_mrp_add_ring_role(const str
@@ -261,13 +261,13 @@ int dsa_port_mrp_add_ring_role(const str
const struct switchdev_obj_ring_role_mrp *mrp);
int dsa_port_mrp_del_ring_role(const struct dsa_port *dp,
const struct switchdev_obj_ring_role_mrp *mrp);
Expand All @@ -38,7 +38,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
const struct net_device *dev)
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1076,7 +1076,7 @@ static void dsa_port_phylink_mac_link_up
@@ -1092,7 +1092,7 @@ static void dsa_port_phylink_mac_link_up
speed, duplex, tx_pause, rx_pause);
}

Expand All @@ -47,7 +47,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
.validate = dsa_port_phylink_validate,
.mac_pcs_get_state = dsa_port_phylink_mac_pcs_get_state,
.mac_config = dsa_port_phylink_mac_config,
@@ -1085,6 +1085,30 @@ const struct phylink_mac_ops dsa_port_ph
@@ -1101,6 +1101,30 @@ const struct phylink_mac_ops dsa_port_ph
.mac_link_up = dsa_port_phylink_mac_link_up,
};

Expand Down Expand Up @@ -78,7 +78,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
static int dsa_port_setup_phy_of(struct dsa_port *dp, bool enable)
{
struct dsa_switch *ds = dp->ds;
@@ -1161,27 +1185,15 @@ static int dsa_port_phylink_register(str
@@ -1177,27 +1201,15 @@ static int dsa_port_phylink_register(str
{
struct dsa_switch *ds = dp->ds;
struct device_node *port_dn = dp->dn;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
struct phylink_link_state *state);
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1095,9 +1095,8 @@ int dsa_port_phylink_create(struct dsa_p
@@ -1111,9 +1111,8 @@ int dsa_port_phylink_create(struct dsa_p
if (err)
mode = PHY_INTERFACE_MODE_NA;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Signed-off-by: David S. Miller <[email protected]>
void (*phylink_mac_config)(struct dsa_switch *ds, int port,
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1012,6 +1012,20 @@ static void dsa_port_phylink_mac_pcs_get
@@ -1028,6 +1028,20 @@ static void dsa_port_phylink_mac_pcs_get
}
}

Expand All @@ -49,7 +49,7 @@ Signed-off-by: David S. Miller <[email protected]>
static void dsa_port_phylink_mac_config(struct phylink_config *config,
unsigned int mode,
const struct phylink_link_state *state)
@@ -1078,6 +1092,7 @@ static void dsa_port_phylink_mac_link_up
@@ -1094,6 +1108,7 @@ static void dsa_port_phylink_mac_link_up

static const struct phylink_mac_ops dsa_port_phylink_mac_ops = {
.validate = dsa_port_phylink_validate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1110,6 +1110,13 @@ int dsa_port_phylink_create(struct dsa_p
@@ -1126,6 +1126,13 @@ int dsa_port_phylink_create(struct dsa_p
if (err)
mode = PHY_INTERFACE_MODE_NA;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
if (iface == PHY_INTERFACE_MODE_MOCA)
--- a/net/dsa/port.c
+++ b/net/dsa/port.c
@@ -1017,8 +1017,8 @@ dsa_port_phylink_mac_select_pcs(struct p
@@ -1033,8 +1033,8 @@ dsa_port_phylink_mac_select_pcs(struct p
phy_interface_t interface)
{
struct dsa_port *dp = container_of(config, struct dsa_port, pl_config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Signed-off-by: David S. Miller <[email protected]>

--- a/net/dsa/master.c
+++ b/net/dsa/master.c
@@ -330,28 +330,13 @@ static const struct attribute_group dsa_
@@ -329,28 +329,13 @@ static const struct attribute_group dsa_
.attrs = dsa_slave_attrs,
};

Expand Down Expand Up @@ -67,7 +67,7 @@ Signed-off-by: David S. Miller <[email protected]>

/* The DSA master must use SET_NETDEV_DEV for this to work. */
consumer_link = device_link_add(ds->dev, dev->dev.parent,
@@ -361,13 +346,6 @@ int dsa_master_setup(struct net_device *
@@ -360,13 +345,6 @@ int dsa_master_setup(struct net_device *
"Failed to create a device link to DSA switch %s\n",
dev_name(ds->dev));

Expand All @@ -81,7 +81,7 @@ Signed-off-by: David S. Miller <[email protected]>
/* If we use a tagging format that doesn't have an ethertype
* field, make sure that all packets from this point on get
* sent to the tag format's receive function.
@@ -405,7 +383,6 @@ void dsa_master_teardown(struct net_devi
@@ -404,7 +382,6 @@ void dsa_master_teardown(struct net_devi
sysfs_remove_group(&dev->dev.kobj, &dsa_group);
dsa_netdev_ops_set(dev, NULL);
dsa_master_ethtool_teardown(dev);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Signed-off-by: David S. Miller <[email protected]>
static int dsa_tree_setup_lags(struct dsa_switch_tree *dst)
--- a/net/dsa/master.c
+++ b/net/dsa/master.c
@@ -267,9 +267,9 @@ static void dsa_master_set_promiscuity(s
@@ -266,9 +266,9 @@ static void dsa_master_set_promiscuity(s
if (!ops->promisc_on_master)
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Signed-off-by: David S. Miller <[email protected]>
struct dsa_switchdev_event_work {
struct dsa_switch *ds;
int port;
@@ -548,6 +555,12 @@ int dsa_tree_change_tag_proto(struct dsa
@@ -549,6 +556,12 @@ int dsa_tree_change_tag_proto(struct dsa
struct net_device *master,
const struct dsa_device_ops *tag_ops,
const struct dsa_device_ops *old_tag_ops);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
stmmac_clear_tx_descriptors(priv, queue);

stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg,
@@ -7387,6 +7382,25 @@ int stmmac_suspend(struct device *dev)
@@ -7390,6 +7385,25 @@ int stmmac_suspend(struct device *dev)
}
EXPORT_SYMBOL_GPL(stmmac_suspend);

Expand All @@ -113,7 +113,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
/**
* stmmac_reset_queues_param - reset queue parameters
* @priv: device pointer
@@ -7397,22 +7411,11 @@ static void stmmac_reset_queues_param(st
@@ -7400,22 +7414,11 @@ static void stmmac_reset_queues_param(st
u32 tx_cnt = priv->plat->tx_queues_to_use;
u32 queue;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
struct stmmac_channel *ch = &priv->channel[queue];
unsigned long flags;
int ret;
@@ -6493,7 +6497,7 @@ void stmmac_xdp_release(struct net_devic
@@ -6496,7 +6500,7 @@ void stmmac_xdp_release(struct net_devic
stmmac_disable_all_queues(priv);

for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
Expand All @@ -1152,7 +1152,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

/* Free the IRQ lines */
stmmac_free_irq(dev, REQ_IRQ_ERR_ALL, 0);
@@ -6552,7 +6556,7 @@ int stmmac_xdp_open(struct net_device *d
@@ -6555,7 +6559,7 @@ int stmmac_xdp_open(struct net_device *d

/* DMA RX Channel Configuration */
for (chan = 0; chan < rx_cnt; chan++) {
Expand All @@ -1161,7 +1161,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

stmmac_init_rx_chan(priv, priv->ioaddr, priv->plat->dma_cfg,
rx_q->dma_rx_phy, chan);
@@ -6570,7 +6574,7 @@ int stmmac_xdp_open(struct net_device *d
@@ -6573,7 +6577,7 @@ int stmmac_xdp_open(struct net_device *d
rx_q->queue_index);
} else {
stmmac_set_dma_bfsize(priv, priv->ioaddr,
Expand All @@ -1170,7 +1170,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
rx_q->queue_index);
}

@@ -6579,7 +6583,7 @@ int stmmac_xdp_open(struct net_device *d
@@ -6582,7 +6586,7 @@ int stmmac_xdp_open(struct net_device *d

/* DMA TX Channel Configuration */
for (chan = 0; chan < tx_cnt; chan++) {
Expand All @@ -1179,7 +1179,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg,
tx_q->dma_tx_phy, chan);
@@ -6612,7 +6616,7 @@ int stmmac_xdp_open(struct net_device *d
@@ -6615,7 +6619,7 @@ int stmmac_xdp_open(struct net_device *d

irq_error:
for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
Expand All @@ -1188,7 +1188,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

stmmac_hw_teardown(dev);
init_error:
@@ -6639,8 +6643,8 @@ int stmmac_xsk_wakeup(struct net_device
@@ -6642,8 +6646,8 @@ int stmmac_xsk_wakeup(struct net_device
queue >= priv->plat->tx_queues_to_use)
return -EINVAL;

Expand All @@ -1199,7 +1199,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>
ch = &priv->channel[queue];

if (!rx_q->xsk_pool && !tx_q->xsk_pool)
@@ -6896,8 +6900,8 @@ int stmmac_reinit_ringparam(struct net_d
@@ -6899,8 +6903,8 @@ int stmmac_reinit_ringparam(struct net_d
if (netif_running(dev))
stmmac_release(dev);

Expand All @@ -1210,7 +1210,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

if (netif_running(dev))
ret = stmmac_open(dev);
@@ -7333,7 +7337,7 @@ int stmmac_suspend(struct device *dev)
@@ -7336,7 +7340,7 @@ int stmmac_suspend(struct device *dev)
stmmac_disable_all_queues(priv);

for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
Expand All @@ -1219,7 +1219,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

if (priv->eee_enabled) {
priv->tx_path_in_lpi_mode = false;
@@ -7384,7 +7388,7 @@ EXPORT_SYMBOL_GPL(stmmac_suspend);
@@ -7387,7 +7391,7 @@ EXPORT_SYMBOL_GPL(stmmac_suspend);

static void stmmac_reset_rx_queue(struct stmmac_priv *priv, u32 queue)
{
Expand All @@ -1228,7 +1228,7 @@ Signed-off-by: Jakub Kicinski <[email protected]>

rx_q->cur_rx = 0;
rx_q->dirty_rx = 0;
@@ -7392,7 +7396,7 @@ static void stmmac_reset_rx_queue(struct
@@ -7395,7 +7399,7 @@ static void stmmac_reset_rx_queue(struct

static void stmmac_reset_tx_queue(struct stmmac_priv *priv, u32 queue)
{
Expand Down
Loading

0 comments on commit 4377a7c

Please sign in to comment.