[OpenWrt-Devel] ramips/mt7621 after 5.4 switch

Andre Valentin avalentin at marcant.net
Tue Apr 7 04:45:03 EDT 2020


Currently I'm having some serious problems with the new 5.4 port.
1) PCIe
I'm developing on the ZyXEL LTE3301-PLUS. It has PCIe and a mt7615e connected to second bus on the first phy.
If booting the device, kernel hangs with a RST message, telling the device is not detected. It seems the PCIe bus 1
cannot be reseted because nothing is connected to bus 0.
An upport of the old PCI driver reenables the function. I can provide more logs on this if needed.

2) DSA
These are my first experiments with DSA. I've configured 2 bridges:
lan: lan1 lan2 lan3 lan4
dmz: lan1.20 lan2.20 lan3.20 lan4.20

Inbound traffic on vlan 20 is comming in, outgoing traffic passes the lan1 port but does note arrive at the other end.

Should this work with DSA on mediathek? If not, I can offer that I write a patch for traditional swconfig.

3) Problems with QMI Interfaces
QMI is used for mobile phones and interact with the qmi_wwan driver in the kernel. I had transmit issues,
switched the driver back to the 4.14 while still on 5.4. But the same problem happens again.
Under 4.14 this was not a problem. So it seems 5.4 or the SOC patches somehow are the root cause.
Here's the kernel message:

[ 4199.444191] ------------[ cut here ]------------
[ 4199.453534] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:447 dev_watchdog+0x2f8/0x300
[ 4199.470074] NETDEV WATCHDOG: wwan0 (qmi_wwan): transmit queue 0 timed out
Mon Apr  6 16:27[ 4199.483839] Modules linked in: qcserial option cdc_mbim usb_wwan sierra_net sierra rndis_host qmi_wwan pppoe pl2303 l2tp_ppp iptable_nat ipt_REJECT huawei_cdc_ncm ftdi_sio
cdc_subset cdc_ncm cdc_ether cdc_eem xt_u32 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_socket xt_recent xt_quota xt_policy xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac
xt_limit xt_length xt_iprange xt_hl xt_helper xt_hashlimit xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_cluster xt_bpf xt_addrtype xt_TRACE xt_TPROXY
xt_TCPMSS xt_REDIRECT xt_NETMAP xt_MASQUERADE xt_LOG xt_LED xt_HL xt_DSCP xt_CT xt_CLASSIFY xor wireguard vhci_hcd usbserial usbnet usblp usbip_host usbip_core ts_fsm ts_bm pptp pppox ppp_synctty
ppp_mppe ppp_async nfnetlink_queue nfnetlink_log nf_tproxy_ipv6 nf_tproxy_ipv4 nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323
nf_nat_ftp nf_nat_amanda nf_nat nf_log_ipv4
:24 2020 kern.wa[ 4199.484081]  nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast
ts_kmp nf_conntrack_amanda nf_conncount macvlan iptable_raw iptable_mangle iptable_filter ipt_ah ipt_ECN ipt_CLUSTERIP ipheth ip6table_raw ip_tables hso crc_ccitt cdc_wdm cdc_acm asn1_decoder
arptable_filter arpt_mangle arp_tables fuse sch_teql sch_sfq sch_red sch_prio sch_pie sch_multiq sch_gred sch_fq sch_dsmark sch_codel em_text em_nbyte em_meta em_cmp act_simple act_police act_pedit
act_ipt act_gact act_csum libcrc32c act_connmark nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow
cls_basic act_skbedit act_mirred evdev lp i2c_dev ledtrig_usbport ppdev parport ledtrig_heartbeat ledtrig_gpio cryptodev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport
ip_set_hash_netnet ip_set_hash_netiface
rn kernel: [ 419[ 4199.660920]  ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac
ip_set_bitmap_ip ip_set nfnetlink ip6t_rt ip6t_mh ip6t_ipv6header ip6t_hbh ip6t_frag ip6t_eui64 ip6t_ah nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables
nf_reject_ipv6 pppoatm ppp_generic slhc msdos bonding ip6_gre ip_gre gre ifb dummy nat46 l2tp_ip6 l2tp_ip l2tp_eth ip6_vti ip_vti sit l2tp_netlink l2tp_core ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel
ipcomp esp4 ah4 ipip ip6_tunnel tunnel6 tunnel4 ip_tunnel veth tun xfrm_user xfrm_ipcomp af_key xfrm_algo vfat fat udf crc_itu_t ntfs isofs dns_resolver br2684 atm fscache nls_utf8 nls_iso8859_1
nls_cp850 nls_cp437 nls_cp1250 vxlan udp_tunnel ip6_udp_tunnel wp512 twofish_generic twofish_common tgr192 tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic
blowfish_generic blowfish_common anubis xts
9.444191] ------[ 4199.836284]  crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_generic sha256_generic libsha256 sha1_generic seqiv jitterentropy_rng drbg pcbc michael_mic md5
md4 hmac ghash_generic gf128mul gcm echainiv ecb des_generic libdes ctr cmac ccm cbc authenc arc4 usb_storage input_polldev leds_gpio xhci_plat_hcd xhci_pci xhci_mtk xhci_hcd ledtrig_transient
fsl_mph_dr_of ehci_platform ehci_fsl sd_mod scsi_mod ehci_hcd gpio_button_hotplug ext4 mbcache jbd2 button_hotplug input_core usbcore nls_base usb_common mii crc32c_generic
------[ cut here[ 4200.111711] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.28 #0
[ 4200.126210] Stack : 00000122 80075b90 00000000 806b0000 80720000 806b8cc8 806b80c8 8fc0ddb4
[ 4200.142849]         80860000 8064cf5c 80703248 80702d83 00000000 00000001 8fc0dd58 8c9dfc2d
[ 4200.159465]         00000000 00000000 808a0000 00000000 00000030 000002d6 342e3520 2038322e
[ 4200.176082]         00000000 000000d0 00000000 0001b45f 00000000 80720000 00000000 8045a7f8
[ 4200.192696]         00000009 00000000 81004378 00200000 00000002 803412e4 00000000 80860000
[ 4200.209311]         ...
[ 4200.214163] Call Trace:
[ 4200.219056] [<8000cfac>] show_stack+0x30/0x100
[ 4200.227923] [<8058e9bc>] dump_stack+0xa4/0xdc
[ 4200.236603] [<80029ef0>] __warn+0xc0/0x10c
[ 4200.244742] [<80029fc8>] warn_slowpath_fmt+0x8c/0xac
[ 4200.254642] [<8045a7f8>] dev_watchdog+0x2f8/0x300
[ 4200.264008] [<8008e858>] call_timer_fn.isra.0+0x1c/0x8c
[ 4200.274394] [<8008eae8>] run_timer_softirq+0x220/0x234
[ 4200.284631] [<805b0738>] __do_softirq+0x168/0x334
[ 4200.293981] [<8002e5dc>] irq_exit+0x98/0xb0
[ 4200.302311] [<802e1ca8>] plat_irq_dispatch+0x68/0xec
[ 4200.312180] [<800077a8>] except_vec_vi_end+0xb8/0xc4
[ 4200.322048] [<805afe18>] r4k_wait_irqoff+0x18/0x20

Any idea about this?

Don't misunderstand me, I really waited for 5.4 on mt7621. Thanks for all the effort for upgrading it!

Kind regards,


openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list