Adding OpenWrt support for Xiaomi AX3600

Yes same here, I also use it, there are no build issues.

1 Like

I know there was a rebase just 4 days ago, but wondering if another can be done? With the bump of mac80211 some patches in the -pr branch need love. The kernel ones are easy enough to merge, but I'm hesitant to touch the ipq807 specific ones... :slight_smile:

1 Like

I have started rebasing as backports got updated along with my QMI helpers patch being included.
But I need to rework all of the patches to apply

9 Likes

Thanks!
Yeah this round of patch rework was a bit more involved…

Does anyone else have the issue that the data rate via 5Ghz (ax) has dropped since the last rebase? I only get 200 Mbps instead of 250 and the issue is amplified further with the second AX3600 connected via WDS.

Finally managed to rebase onto using the updated backports.
In the end, I had to drop all of the patches and do all of the backporting again but it should be easier with a dedicated kernel tree just for backports now.

I backported up to the last commit in ath-next as of yesterday.

Still need to redo the kernel tree and utilize the upstreamed HW patches as there is a ton of improvements and simplifications there.

12 Likes

@Ansuel did you manage to report the firmware crash issue on Bugzilla? There should hopefully be some fixes and improvements in the newer firmwares so being able to use the newer firmwares would be great

The latest version doesn't boot for me on AX6 :frowning:

Doubt it has anything to do with rebase as kernel patches were not touched

The commit before the rebase does boot though...

I dont know what to tell you, it works for me on the Qnap and AX3600.

On my AX6 it just builds and runs fine.

1 Like

i had to make distclean / clean ... after that is fine

Interesting. I'll give it another try at some point.

with the newes build...
i switch between vlans...

Tue Aug  2 23:14:07 2022 daemon.notice hostapd: wlan2: AP-STA-DISCONNECTED 18:87:40:e6:dd:b3
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received:
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212]
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] ar_wal_peer.c:2462 Assertion is_graceful_to_handle failedparam0 :zero, param1 :zero, param2 :zero.
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] Thread ID      : 0x00000060  Thread name    : WLAN RT1  Process ID     : 0
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] Register:
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] SP : 0x4c135128
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] FP : 0x4c135130
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] PC : 0x4b195a10
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] SSR : 0x00000008
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] BADVA : 0x00020000
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] LR : 0x4b1951ac
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212]
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] Stack Dump
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] from : 0x4c135128
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212] to   : 0x4c135980
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.115212]
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.164017] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.186139] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
Tue Aug  2 23:14:07 2022 kern.err kernel: [ 9622.194298] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
Tue Aug  2 23:14:07 2022 kern.info kernel: [ 9622.227071] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9622.474314] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9622.520789] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.134182] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.159786] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.159833] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 daemon.info dnsmasq-dhcp[1]: DHCPDISCOVER(br-lan.15) 18:87:40:e6:dd:b3
Tue Aug  2 23:14:08 2022 daemon.info dnsmasq-dhcp[1]: DHCPOFFER(br-lan.15) 192.168.15.199 18:87:40:e6:dd:b3
Tue Aug  2 23:14:08 2022 daemon.info dnsmasq-dhcp[1]: DHCPREQUEST(br-lan.15) 192.168.15.199 18:87:40:e6:dd:b3
Tue Aug  2 23:14:08 2022 daemon.info dnsmasq-dhcp[1]: DHCPACK(br-lan.15) 192.168.15.199 18:87:40:e6:dd:b3
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.307523] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.334696] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:08 2022 kern.warn kernel: [ 9623.334829] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:09 2022 kern.warn kernel: [ 9623.545274] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:09 2022 kern.warn kernel: [ 9623.779383] ath11k c000000.wifi: failed to transmit frame -108
Tue Aug  2 23:14:10 2022 daemon.notice hostapd: wlan2-2: STA 18:87:40:e6:dd:b3 IEEE 802.11: Could not add STA to kernel driver
Tue Aug  2 23:14:10 2022 kern.info kernel: [ 9625.150688] wlan2: HW problem - can not stop rx aggregation for 18:87:40:e6:dd:b3 tid 0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.189226] ------------[ cut here ]------------
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.189255] WARNING: CPU: 1 PID: 2028 at sta_set_sinfo+0xba4/0xbc0 [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.192906] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath11k_ahb ath11k ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc qrtr_smd qrtr qmi_helpers ns nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c hwmon crc_ccitt compat seqiv jitterentropy_rng drbg michael_mic hmac cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp qca_ssdk gpio_button_hotplug crc32c_generic
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.246277] CPU: 1 PID: 2028 Comm: hostapd Not tainted 5.15.58 #0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.268513] Hardware name: Xiaomi AX3600 (DT)
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.274501] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.278844] pc : sta_set_sinfo+0xba4/0xbc0 [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.285610] lr : sta_set_sinfo+0xba0/0xbc0 [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.290819] sp : ffffffc00d343850
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.295851] x29: ffffffc00d343850 x28: ffffff800297de00 x27: ffffffc00d343dd0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.299157] x26: 0000000000000000 x25: ffffffc008b8f5c0 x24: ffffffc000a0d000
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.306274] x23: ffffffc00d343a38 x22: ffffff8005c1f800 x21: ffffff800fd128c0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.313392] x20: ffffff80058b9080 x19: ffffff8017552000 x18: 0000000000000000
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.320512] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.327628] x14: ffffffffffffffff x13: 0000000000000059 x12: 0000000000000000
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.334747] x11: ffffffc000cc3270 x10: ffffffc00d343720 x9 : ffffffc00d343740
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.341866] x8 : 00000000ffffffd0 x7 : 000000000000b3dd x6 : ffffff801197d024
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.348983] x5 : 0000000000008d18 x4 : 0000000000000000 x3 : ffffff800297de00
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.356102] x2 : 0000000000000000 x1 : ffffff800297de00 x0 : 00000000ffffff94
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.363220] Call trace:
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.370329]  sta_set_sinfo+0xba4/0xbc0 [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.372590]  sta_info_destroy_addr_bss+0x50/0x74 [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.377452]  ieee80211_color_change_finish+0x1858/0x227c [mac80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.382835]  cfg80211_check_station_change+0x106c/0x3cd0 [cfg80211]
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.389085]  genl_family_rcv_msg_doit+0xb8/0x120
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.395332]  genl_rcv_msg+0xd4/0x1d0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.400191]  netlink_rcv_skb+0x5c/0x130
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.403749]  genl_rcv+0x38/0x50
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.407309]  netlink_unicast+0x1ec/0x2e4
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.410435]  netlink_sendmsg+0x1a4/0x3dc
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.414602]  ____sys_sendmsg+0x280/0x2c4
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.418508]  ___sys_sendmsg+0x84/0xf0
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.422414]  __sys_sendmsg+0x48/0x90
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.425973]  __arm64_sys_sendmsg+0x24/0x30
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.429620]  invoke_syscall.constprop.0+0x5c/0x104
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.433527]  do_el0_svc+0x74/0x16c
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.438298]  el0_svc+0x18/0x54
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.441683]  el0t_64_sync_handler+0xa4/0x130
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.444723]  el0t_64_sync+0x184/0x188
Tue Aug  2 23:14:11 2022 kern.warn kernel: [ 9625.449150] ---[ end trace 6cfab407405747d2 ]---
Tue Aug  2 23:14:11 2022 daemon.notice hostapd: wlan2-2: STA 18:87:40:e6:dd:b3 IEEE 802.11: did not acknowledge authentication response
Tue Aug  2 23:14:12 2022 daemon.info hostapd: wlan2: STA 18:87:40:e6:dd:b3 IEEE 802.11: deauthenticated due to local deauth request
Tue Aug  2 23:14:13 2022 kern.err kernel: [ 9627.509384] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: start timed out
Tue Aug  2 23:14:13 2022 kern.err kernel: [ 9627.509430] remoteproc remoteproc0: can't start rproc cd00000.q6v5_wcss: -110

kernel log

[ 9622.115212] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: fatal error received: 
[ 9622.115212] QC Image Version: QC_IMAGE_VERSION_STRING=WLAN.HK.2.5.0.1-01208-QCAHKSWPL_SILICONZ-1
[ 9622.115212] Image Variant : IMAGE_VARIANT_STRING=8074.wlanfw.eval_v2Q
[ 9622.115212] 
[ 9622.115212] ar_wal_peer.c:2462 Assertion is_graceful_to_handle failedparam0 :zero, param1 :zero, param2 :zero.
[ 9622.115212] Thread ID      : 0x00000060  Thread name    : WLAN RT1  Process ID     : 0
[ 9622.115212] Register:
[ 9622.115212] SP : 0x4c135128
[ 9622.115212] FP : 0x4c135130
[ 9622.115212] PC : 0x4b195a10
[ 9622.115212] SSR : 0x00000008
[ 9622.115212] BADVA : 0x00020000
[ 9622.115212] LR : 0x4b1951ac
[ 9622.115212] 
[ 9622.115212] Stack Dump
[ 9622.115212] from : 0x4c135128
[ 9622.115212] to   : 0x4c135980
[ 9622.115212] 
[ 9622.164017] remoteproc remoteproc0: crash detected in cd00000.q6v5_wcss: type fatal error
[ 9622.186139] remoteproc remoteproc0: handling crash #1 in cd00000.q6v5_wcss
[ 9622.194298] remoteproc remoteproc0: recovering cd00000.q6v5_wcss
[ 9622.227071] remoteproc remoteproc0: stopped remote processor cd00000.q6v5_wcss
[ 9622.474314] ath11k c000000.wifi: failed to transmit frame -108
[ 9622.520789] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.134182] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.159786] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.159833] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.307523] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.334696] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.334829] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.545274] ath11k c000000.wifi: failed to transmit frame -108
[ 9623.779383] ath11k c000000.wifi: failed to transmit frame -108
[ 9625.150688] wlan2: HW problem - can not stop rx aggregation for 18:87:40:e6:dd:b3 tid 0
[ 9625.189226] ------------[ cut here ]------------
[ 9625.189255] WARNING: CPU: 1 PID: 2028 at sta_set_sinfo+0xba4/0xbc0 [mac80211]
[ 9625.192906] Modules linked in: pppoe ppp_async nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath11k_ahb ath11k ath10k_pci ath10k_core ath pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_counter nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 cfg80211 slhc qrtr_smd qrtr qmi_helpers ns nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c hwmon crc_ccitt compat seqiv jitterentropy_rng drbg michael_mic hmac cmac leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp qca_ssdk gpio_button_hotplug crc32c_generic
[ 9625.246277] CPU: 1 PID: 2028 Comm: hostapd Not tainted 5.15.58 #0
[ 9625.268513] Hardware name: Xiaomi AX3600 (DT)
[ 9625.274501] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 9625.278844] pc : sta_set_sinfo+0xba4/0xbc0 [mac80211]
[ 9625.285610] lr : sta_set_sinfo+0xba0/0xbc0 [mac80211]
[ 9625.290819] sp : ffffffc00d343850
[ 9625.295851] x29: ffffffc00d343850 x28: ffffff800297de00 x27: ffffffc00d343dd0
[ 9625.299157] x26: 0000000000000000 x25: ffffffc008b8f5c0 x24: ffffffc000a0d000
[ 9625.306274] x23: ffffffc00d343a38 x22: ffffff8005c1f800 x21: ffffff800fd128c0
[ 9625.313392] x20: ffffff80058b9080 x19: ffffff8017552000 x18: 0000000000000000
[ 9625.320512] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 9625.327628] x14: ffffffffffffffff x13: 0000000000000059 x12: 0000000000000000
[ 9625.334747] x11: ffffffc000cc3270 x10: ffffffc00d343720 x9 : ffffffc00d343740
[ 9625.341866] x8 : 00000000ffffffd0 x7 : 000000000000b3dd x6 : ffffff801197d024
[ 9625.348983] x5 : 0000000000008d18 x4 : 0000000000000000 x3 : ffffff800297de00
[ 9625.356102] x2 : 0000000000000000 x1 : ffffff800297de00 x0 : 00000000ffffff94
[ 9625.363220] Call trace:
[ 9625.370329]  sta_set_sinfo+0xba4/0xbc0 [mac80211]
[ 9625.372590]  sta_info_destroy_addr_bss+0x50/0x74 [mac80211]
[ 9625.377452]  ieee80211_color_change_finish+0x1858/0x227c [mac80211]
[ 9625.382835]  cfg80211_check_station_change+0x106c/0x3cd0 [cfg80211]
[ 9625.389085]  genl_family_rcv_msg_doit+0xb8/0x120
[ 9625.395332]  genl_rcv_msg+0xd4/0x1d0
[ 9625.400191]  netlink_rcv_skb+0x5c/0x130
[ 9625.403749]  genl_rcv+0x38/0x50
[ 9625.407309]  netlink_unicast+0x1ec/0x2e4
[ 9625.410435]  netlink_sendmsg+0x1a4/0x3dc
[ 9625.414602]  ____sys_sendmsg+0x280/0x2c4
[ 9625.418508]  ___sys_sendmsg+0x84/0xf0
[ 9625.422414]  __sys_sendmsg+0x48/0x90
[ 9625.425973]  __arm64_sys_sendmsg+0x24/0x30
[ 9625.429620]  invoke_syscall.constprop.0+0x5c/0x104
[ 9625.433527]  do_el0_svc+0x74/0x16c
[ 9625.438298]  el0_svc+0x18/0x54
[ 9625.441683]  el0t_64_sync_handler+0xa4/0x130
[ 9625.444723]  el0t_64_sync+0x184/0x188
[ 9625.449150] ---[ end trace 6cfab407405747d2 ]---
[ 9627.509384] qcom-q6v5-wcss-pil cd00000.q6v5_wcss: start timed out
[ 9627.509430] remoteproc remoteproc0: can't start rproc cd00000.q6v5_wcss: -110
[ 9627.782581] ath11k_warn: 376 callbacks suppressed
[ 9627.782632] ath11k c000000.wifi: failed to transmit frame -108
[ 9627.786288] ath11k c000000.wifi: failed to transmit frame -108

OK, not sure what happened there, but another clean build made it work. /shrug

I can trigger this reliably (started testing with the last 2/3 snapshots published in July) by putting select SSIDs on both of the ath11k radios; I know if I swap one of them from the 2.4 ath11k with the 2.4 ath10k it doesn't seem to happen. Has anyone looked closer into all this?

yep unsure what causes this behaviour ! as by default anything that changes should be built ... anytime something doesn't make properly and I just rebuild the entire thing... /shrug :wink:

I have the same SSID on both ath11k radios for ever, but in the last month, I have seen zero such issues. (or any other unexpected errors in the kernel log).

latest build from Robi for AX3600
multiple wlan in different vlan

if everyone stays in his wlan the router runs stable (now since 1d 18h)
but when i start to switch between the different wlan i get the crash scenario