Ipq806x NSS build (Netgear R7800 / TP-Link C2600 / Linksys EA8500)

To refresh the info here I want to say that using this version @qosmio branch with the qcom_rpm regulator added by @Ansuel

root@R7800:~# uname -a
Linux R7800 5.15.69 #0 SMP Fri Sep 30 06:44:45 2022 armv7l GNU/Linux

I don't have a reboot for more than 8 days. Maybe we are on the right track.

3 Likes

i'm not sure if this is the place to put this
I tried out @ansuel 's latest 5.15 ipq806x experimentation branch on a Linksys EA8500

Two problems :

  1. eth0 is broken (but eth1 is fine) I thought about trying something after looking here https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=f93267bccff672e59ec0d0cf262e6574b00cc3e0 but dont have a lot of time to mess around

  2. I ran iperf3 a couple of times with a realtek r8153 usb adapter connected to the ea8500 and it cut out after a few runs ( --reverse) and this appears to work reliably with the standard 5.10 build. So usb isn't as reliable at least with network adapters.

Obviously it was too early to make any assumptions about the stability. Reboot just happened with three files in pstore. To not confuse anyone this is with @qosmio 5.15-qsdk11-new-krait-cc build with the qcom_rpm regulator added by @Ansuel.

<1>[297867.627483] 8<--- cut here ---
<1>[297867.627527] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[297867.627551] 8<--- cut here ---
<1>[297867.627558] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[297867.627567] pgd = ef8735f1
<1>[297867.627580] [00000000] *pgd=00000000
<0>[297867.627599] Internal error: Oops: 80000005 [#1] SMP ARM
<4>[297867.627615] Modules linked in: ksmbd ecm nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath wireguard 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_compat nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 libchacha20poly1305 ipt_REJECT curve25519_neon cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY sch_cake pptp ppp_async poly1305_arm nfnetlink nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat chacha_neon fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic
<4>[297867.628072]  act_skbedit act_mirred act_gact qca_nss_pppoe pppoe pppox ppp_generic slhc ledtrig_usbport cryptodev ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfs msdos ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel lockd sunrpc grace hfsplus hfs cdrom dns_resolver nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 wp512 twofish_generic twofish_common tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic blowfish_generic blowfish_common anubis xts crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic seqiv md5 md4 ecb des_generic libdes cmac authencesn authenc uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd qca_nss_drv qca_nss_gmac gpio_button_hotplug vfat fat
<4>[297867.628573]  f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax crc32c_generic crc32_generic cbc encrypted_keys trusted tpm oid_registry asn1_encoder asn1_decoder [last unloaded: ksmbd]
<4>[297867.628682] CPU: 0 PID: 9766 Comm: kworker/0:1 Not tainted 5.15.69 #0
<4>[297867.628697] Hardware name: Generic DT based system
<4>[297867.628707] Workqueue: events dbs_work_handler
<4>[297867.628728] PC is at 0x0
<4>[297867.628738] LR is at __msm_console_write+0x1f8/0x2a4
<4>[297867.628755] pc : [<00000000>]    lr : [<c0772c4c>]    psr: 60000193
<4>[297867.628763] sp : ce259ae8  ip : 000001a8  fp : de916070
<4>[297867.628771] r10: 00000001  r9 : 0000005e  r8 : 000346dc
<4>[297867.628778] r7 : c0c933b4  r6 : c0eb4f94  r5 : 0007a121  r4 : c0f094fc
<4>[297867.628787] r3 : 00000000  r2 : 00001207  r1 : 02ad02ac  r0 : 000346dc
<4>[297867.628797] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[297867.628811] Control: 10c5787d  Table: 48e3c06a  DAC: 00000051
<1>[297867.628816] Register r0 information: non-paged memory
<1>[297867.628830] Register r1 information: non-paged memory
<1>[297867.628840] Register r2 information: non-paged memory
<1>[297867.628848] Register r3 information: NULL pointer
<1>[297867.628858] Register r4 information: non-slab/vmalloc memory
<1>[297867.628870] Register r5 information: non-paged memory
<1>[297867.628879] Register r6 information: non-slab/vmalloc memory
<1>[297867.628892] Register r7 information: non-slab/vmalloc memory
<1>[297867.628902] Register r8 information: non-paged memory
<1>[297867.628912] Register r9 information: non-paged memory
<1>[297867.628920] Register r10 information: non-paged memory
<1>[297867.628931] Register r11 information: 0-page vmalloc region starting at 0xde916000 allocated at msm_request_port+0x7c/0xcc
<1>[297867.628956] Register r12 information: non-paged memory
<0>[297867.628966] Process kworker/0:1 (pid: 9766, stack limit = 0xff24262a)
<0>[297867.628978] Stack: (0xce259ae8 to 0xce25a000)
<0>[297867.628993] 9ae0:                   60000193 00000001 c0e04fa0 469a1a90 c0e78cfc c0eb4ec4
<0>[297867.629005] 9b00: c0f074a0 ce258000 c0e78cfc c0f07448 c0e78e04 ce259b5c c0f0742c c037e37c
<0>[297867.629018] 9b20: ce259b5c ffff1030 c0b9b765 c0e04f54 ce258000 00000193 00000000 c0f0743c
<0>[297867.629030] 9b40: 0000005d 00000000 c0f07440 c0f07434 00000000 c037f09c dd9852e1 ce259b68
<0>[297867.629043] 9b60: c0f094fc 00000400 000002ab 00000000 b620fe00 00010ee8 2200004c 00002626
<0>[297867.629054] 9b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629065] 9ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629077] 9bc0: 006c6261 469a1a90 ce259bec c0e04fa0 0000004c 00000000 00000001 00000000
<0>[297867.629091] 9be0: c0b9b730 c1ca9918 c1687d00 c037f590 ce259c4c 01c60fbc c03a19bc 1e000000
<0>[297867.629104] 9c00: 00000004 00000000 ce259cb8 80000005 00000000 c0312fc4 ce258000 c1ca9918
<0>[297867.629116] 9c20: c1687d00 c037f734 ce259c4c ce258000 00000000 c037bdc0 00000000 ce259c4c
<0>[297867.629128] 9c40: ce259cb8 c0312ad8 c0b9b730 c0b9b6ec 00000000 c0b9b708 00000000 c0312e9c
<0>[297867.629140] 9c60: 00000000 00000000 00000000 c0e0a2e4 00000005 00000000 ce259cb8 c0312fc4
<0>[297867.629152] 9c80: ce258000 c1ca9918 c1687d00 c03131cc 000f4240 c0751fac 00000002 c074f940
<0>[297867.629164] 9ca0: 00000000 60000093 ffffffff ce259cec ce259d54 c0300c94 000346dc 60000093
<0>[297867.629176] 9cc0: c0ee533c 00000000 c1687f60 00000001 00000001 20000013 ce259d54 00000000
<0>[297867.629190] 9ce0: c1ca9918 c1687d00 00000000 ce259d08 c0739e0c 00000000 60000093 ffffffff
<0>[297867.629202] 9d00: 00000051 c0739de4 c1687f6c c0eac86c ffffffff 00000002 ce259d54 c073b608
<0>[297867.629214] 9d20: 00000000 c0eac86c ffffffff c034b97c c1ca9900 c0eac86c c1c0a780 00000002
<0>[297867.629226] 9d40: c1682d80 3b9aca00 23c34600 c072661c c1619200 c1d0e6c0 3b9aca00 23c34600
<0>[297867.629239] 9d60: c1619200 c1c0a780 00000000 23c34600 c0ed7fe0 c072bbc0 ce258000 3b9aca00
<0>[297867.629251] 9d80: 23c34600 c1682d80 c1c0a668 23c34600 c0ed7fe0 c1436f00 3b9aca00 23c34600
<0>[297867.629263] 9da0: c1687d00 c072bc04 ce258000 c1682d80 00000001 c1c0a780 00000000 23c34600
<0>[297867.629275] 9dc0: c1682d80 dd985010 23c34600 00000000 c1687d00 c072bf7c 00000000 23c34600
<0>[297867.629288] 9de0: 00000000 ffffffff 23c34600 c0eaf1f4 00000002 c1e11a00 23c34600 00000001
<0>[297867.629301] 9e00: c17aa180 dd985010 23c34600 00000000 c1687d00 c072c904 c1d58000 c17aa080
<0>[297867.629313] 9e20: 00000001 c17aa180 dd985010 23c34600 00000000 c0882b6c 23c34600 c072cc3c
<0>[297867.629325] 9e40: c1e11a00 00000000 c1c0a780 c072cc3c c1d58a00 c17aa180 00000000 ffffffff
<0>[297867.629337] 9e60: 23c34600 c1d58000 dd985010 00000006 23c34600 c17aa080 00000001 00000000
<0>[297867.629349] 9e80: 000927c0 c0882f88 c0ec0a28 c034b99c c1d58a00 23c34600 c1d58a00 c0ee20a8
<0>[297867.629361] 9ea0: 00000000 c0f1d754 000f4240 c0888284 00000001 b50255a0 c0d671c8 00000000
<0>[297867.629373] 9ec0: c1d58a00 000f4240 000927c0 00000024 dd98c5c0 c1d58a00 c17aa880 c17aa900
<0>[297867.629387] 9ee0: c17aa880 c1610840 c17aa900 dd98f405 cc5db9c0 c088be2c c17aa8b8 00000000
<0>[297867.629399] 9f00: c17aa884 c0ec0d08 00000000 c0ed5e60 dd98f405 c088cbb0 c17aa8b8 cc5db980
<0>[297867.629411] 9f20: dd98c1c0 dd98f400 00000000 c03416c8 ce258000 dd98c1c0 00000008 cc5db980
<0>[297867.629424] 9f40: cc5db998 dd98c1c0 00000008 dd98c1d8 c0e03d00 dd98c380 ce258000 c0341a9c
<0>[297867.629436] 9f60: c0e109dc c0ee5adc cc23becc c6f11440 c7330a00 c0341a20 cc5db980 ce258000
<0>[297867.629449] 9f80: cc23becc c7330a20 00000000 c0349f48 c6f11440 c0349de8 00000000 00000000
<0>[297867.629460] 9fa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
<0>[297867.629472] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629484] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[297867.629499] [<c0772c4c>] (__msm_console_write) from [<c037e37c>] (console_unlock+0x32c/0x624)
<0>[297867.629535] [<c037e37c>] (console_unlock) from [<c037f590>] (vprintk_emit+0x7c/0x1f4)
<0>[297867.629569] [<c037f590>] (vprintk_emit) from [<c037f734>] (vprintk_default+0x2c/0x34)
<0>[297867.629599] [<c037f734>] (vprintk_default) from [<c037bdc0>] (_printk+0x24/0x34)
<0>[297867.629629] [<c037bdc0>] (_printk) from [<c0312ad8>] (__do_kernel_fault.part.0+0x5c/0x94)
<0>[297867.629666] [<c0312ad8>] (__do_kernel_fault.part.0) from [<c0312e9c>] (do_sect_fault+0x0/0x8c)
<0>[297867.629695] [<c0312e9c>] (do_sect_fault) from [<00000000>] (0x0)
<0>[297867.629721] Code: bad PC value
<4>[297867.629730] ---[ end trace c5302a5acf935d9e ]---
<0>[297867.653580] Kernel panic - not syncing: Fatal exception
<2>[297867.653590] CPU1: stopping
<4>[297868.869588] SMP: failed to stop secondary CPUs

<1>[297867.627483] 8<--- cut here ---
<1>[297867.627527] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[297867.627551] 8<--- cut here ---
<1>[297867.627558] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[297867.627567] pgd = ef8735f1
<1>[297867.627580] [00000000] *pgd=00000000
<0>[297867.627599] Internal error: Oops: 80000005 [#1] SMP ARM
<4>[297867.627615] Modules linked in: ksmbd ecm nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath wireguard 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_compat nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 libchacha20poly1305 ipt_REJECT curve25519_neon cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY sch_cake pptp ppp_async poly1305_arm nfnetlink nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat chacha_neon fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic
<4>[297867.628072]  act_skbedit act_mirred act_gact qca_nss_pppoe pppoe pppox ppp_generic slhc ledtrig_usbport cryptodev ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfs msdos ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel lockd sunrpc grace hfsplus hfs cdrom dns_resolver nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 wp512 twofish_generic twofish_common tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic blowfish_generic blowfish_common anubis xts crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic seqiv md5 md4 ecb des_generic libdes cmac authencesn authenc uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd qca_nss_drv qca_nss_gmac gpio_button_hotplug vfat fat
<4>[297867.628573]  f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax crc32c_generic crc32_generic cbc encrypted_keys trusted tpm oid_registry asn1_encoder asn1_decoder [last unloaded: ksmbd]
<4>[297867.628682] CPU: 0 PID: 9766 Comm: kworker/0:1 Not tainted 5.15.69 #0
<4>[297867.628697] Hardware name: Generic DT based system
<4>[297867.628707] Workqueue: events dbs_work_handler
<4>[297867.628728] PC is at 0x0
<4>[297867.628738] LR is at __msm_console_write+0x1f8/0x2a4
<4>[297867.628755] pc : [<00000000>]    lr : [<c0772c4c>]    psr: 60000193
<4>[297867.628763] sp : ce259ae8  ip : 000001a8  fp : de916070
<4>[297867.628771] r10: 00000001  r9 : 0000005e  r8 : 000346dc
<4>[297867.628778] r7 : c0c933b4  r6 : c0eb4f94  r5 : 0007a121  r4 : c0f094fc
<4>[297867.628787] r3 : 00000000  r2 : 00001207  r1 : 02ad02ac  r0 : 000346dc
<4>[297867.628797] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
<4>[297867.628811] Control: 10c5787d  Table: 48e3c06a  DAC: 00000051
<1>[297867.628816] Register r0 information: non-paged memory
<1>[297867.628830] Register r1 information: non-paged memory
<1>[297867.628840] Register r2 information: non-paged memory
<1>[297867.628848] Register r3 information: NULL pointer
<1>[297867.628858] Register r4 information: non-slab/vmalloc memory
<1>[297867.628870] Register r5 information: non-paged memory
<1>[297867.628879] Register r6 information: non-slab/vmalloc memory
<1>[297867.628892] Register r7 information: non-slab/vmalloc memory
<1>[297867.628902] Register r8 information: non-paged memory
<1>[297867.628912] Register r9 information: non-paged memory
<1>[297867.628920] Register r10 information: non-paged memory
<1>[297867.628931] Register r11 information: 0-page vmalloc region starting at 0xde916000 allocated at msm_request_port+0x7c/0xcc
<1>[297867.628956] Register r12 information: non-paged memory
<0>[297867.628966] Process kworker/0:1 (pid: 9766, stack limit = 0xff24262a)
<0>[297867.628978] Stack: (0xce259ae8 to 0xce25a000)
<0>[297867.628993] 9ae0:                   60000193 00000001 c0e04fa0 469a1a90 c0e78cfc c0eb4ec4
<0>[297867.629005] 9b00: c0f074a0 ce258000 c0e78cfc c0f07448 c0e78e04 ce259b5c c0f0742c c037e37c
<0>[297867.629018] 9b20: ce259b5c ffff1030 c0b9b765 c0e04f54 ce258000 00000193 00000000 c0f0743c
<0>[297867.629030] 9b40: 0000005d 00000000 c0f07440 c0f07434 00000000 c037f09c dd9852e1 ce259b68
<0>[297867.629043] 9b60: c0f094fc 00000400 000002ab 00000000 b620fe00 00010ee8 2200004c 00002626
<0>[297867.629054] 9b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629065] 9ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629077] 9bc0: 006c6261 469a1a90 ce259bec c0e04fa0 0000004c 00000000 00000001 00000000
<0>[297867.629091] 9be0: c0b9b730 c1ca9918 c1687d00 c037f590 ce259c4c 01c60fbc c03a19bc 1e000000
<0>[297867.629104] 9c00: 00000004 00000000 ce259cb8 80000005 00000000 c0312fc4 ce258000 c1ca9918
<0>[297867.629116] 9c20: c1687d00 c037f734 ce259c4c ce258000 00000000 c037bdc0 00000000 ce259c4c
<0>[297867.629128] 9c40: ce259cb8 c0312ad8 c0b9b730 c0b9b6ec 00000000 c0b9b708 00000000 c0312e9c
<0>[297867.629140] 9c60: 00000000 00000000 00000000 c0e0a2e4 00000005 00000000 ce259cb8 c0312fc4
<0>[297867.629152] 9c80: ce258000 c1ca9918 c1687d00 c03131cc 000f4240 c0751fac 00000002 c074f940
<0>[297867.629164] 9ca0: 00000000 60000093 ffffffff ce259cec ce259d54 c0300c94 000346dc 60000093
<0>[297867.629176] 9cc0: c0ee533c 00000000 c1687f60 00000001 00000001 20000013 ce259d54 00000000
<0>[297867.629190] 9ce0: c1ca9918 c1687d00 00000000 ce259d08 c0739e0c 00000000 60000093 ffffffff
<0>[297867.629202] 9d00: 00000051 c0739de4 c1687f6c c0eac86c ffffffff 00000002 ce259d54 c073b608
<0>[297867.629214] 9d20: 00000000 c0eac86c ffffffff c034b97c c1ca9900 c0eac86c c1c0a780 00000002
<0>[297867.629226] 9d40: c1682d80 3b9aca00 23c34600 c072661c c1619200 c1d0e6c0 3b9aca00 23c34600
<0>[297867.629239] 9d60: c1619200 c1c0a780 00000000 23c34600 c0ed7fe0 c072bbc0 ce258000 3b9aca00
<0>[297867.629251] 9d80: 23c34600 c1682d80 c1c0a668 23c34600 c0ed7fe0 c1436f00 3b9aca00 23c34600
<0>[297867.629263] 9da0: c1687d00 c072bc04 ce258000 c1682d80 00000001 c1c0a780 00000000 23c34600
<0>[297867.629275] 9dc0: c1682d80 dd985010 23c34600 00000000 c1687d00 c072bf7c 00000000 23c34600
<0>[297867.629288] 9de0: 00000000 ffffffff 23c34600 c0eaf1f4 00000002 c1e11a00 23c34600 00000001
<0>[297867.629301] 9e00: c17aa180 dd985010 23c34600 00000000 c1687d00 c072c904 c1d58000 c17aa080
<0>[297867.629313] 9e20: 00000001 c17aa180 dd985010 23c34600 00000000 c0882b6c 23c34600 c072cc3c
<0>[297867.629325] 9e40: c1e11a00 00000000 c1c0a780 c072cc3c c1d58a00 c17aa180 00000000 ffffffff
<0>[297867.629337] 9e60: 23c34600 c1d58000 dd985010 00000006 23c34600 c17aa080 00000001 00000000
<0>[297867.629349] 9e80: 000927c0 c0882f88 c0ec0a28 c034b99c c1d58a00 23c34600 c1d58a00 c0ee20a8
<0>[297867.629361] 9ea0: 00000000 c0f1d754 000f4240 c0888284 00000001 b50255a0 c0d671c8 00000000
<0>[297867.629373] 9ec0: c1d58a00 000f4240 000927c0 00000024 dd98c5c0 c1d58a00 c17aa880 c17aa900
<0>[297867.629387] 9ee0: c17aa880 c1610840 c17aa900 dd98f405 cc5db9c0 c088be2c c17aa8b8 00000000
<0>[297867.629399] 9f00: c17aa884 c0ec0d08 00000000 c0ed5e60 dd98f405 c088cbb0 c17aa8b8 cc5db980
<0>[297867.629411] 9f20: dd98c1c0 dd98f400 00000000 c03416c8 ce258000 dd98c1c0 00000008 cc5db980
<0>[297867.629424] 9f40: cc5db998 dd98c1c0 00000008 dd98c1d8 c0e03d00 dd98c380 ce258000 c0341a9c
<0>[297867.629436] 9f60: c0e109dc c0ee5adc cc23becc c6f11440 c7330a00 c0341a20 cc5db980 ce258000
<0>[297867.629449] 9f80: cc23becc c7330a20 00000000 c0349f48 c6f11440 c0349de8 00000000 00000000
<0>[297867.629460] 9fa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
<0>[297867.629472] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>[297867.629484] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
<0>[297867.629499] [<c0772c4c>] (__msm_console_write) from [<c037e37c>] (console_unlock+0x32c/0x624)
<0>[297867.629535] [<c037e37c>] (console_unlock) from [<c037f590>] (vprintk_emit+0x7c/0x1f4)
<0>[297867.629569] [<c037f590>] (vprintk_emit) from [<c037f734>] (vprintk_default+0x2c/0x34)
<0>[297867.629599] [<c037f734>] (vprintk_default) from [<c037bdc0>] (_printk+0x24/0x34)
<0>[297867.629629] [<c037bdc0>] (_printk) from [<c0312ad8>] (__do_kernel_fault.part.0+0x5c/0x94)
<0>[297867.629666] [<c0312ad8>] (__do_kernel_fault.part.0) from [<c0312e9c>] (do_sect_fault+0x0/0x8c)
<0>[297867.629695] [<c0312e9c>] (do_sect_fault) from [<00000000>] (0x0)
<0>[297867.629721] Code: bad PC value
<4>[297867.629730] ---[ end trace c5302a5acf935d9e ]---
[297867.627483] 8<--- cut here ---
[297867.627551] 8<--- cut here ---
[297867.627558] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[297867.627567] pgd = ef8735f1
[297867.627580] [00000000] *pgd=00000000
[297867.627599] Internal error: Oops: 80000005 [#1] SMP ARM
[297867.627615] Modules linked in: ksmbd ecm nft_fib_inet nf_flow_table_ipv6 nf_flow_table_ipv4 nf_flow_table_inet ath10k_pci ath10k_core ath wireguard 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_compat nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack mac80211 libchacha20poly1305 ipt_REJECT curve25519_neon cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY sch_cake pptp ppp_async poly1305_arm nfnetlink nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 libcurve25519_generic libcrc32c iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat chacha_neon fuse sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic
[297867.628072]  act_skbedit act_mirred act_gact qca_nss_pppoe pppoe pppox ppp_generic slhc ledtrig_usbport cryptodev ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfs msdos ip_gre gre ifb ip6_udp_tunnel udp_tunnel sit tunnel4 ip_tunnel lockd sunrpc grace hfsplus hfs cdrom dns_resolver nls_utf8 nls_iso8859_15 nls_iso8859_1 nls_cp850 nls_cp437 nls_cp1250 wp512 twofish_generic twofish_common tea serpent_generic khazad cast6_generic cast5_generic cast_common camellia_generic blowfish_generic blowfish_common anubis xts crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha1_generic seqiv md5 md4 ecb des_generic libdes cmac authencesn authenc uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom ohci_platform ohci_hcd phy_qcom_ipq806x_usb ahci fsl_mph_dr_of ehci_platform ehci_fsl sd_mod ahci_platform libahci_platform libahci libata scsi_mod scsi_common ehci_hcd qca_nss_drv qca_nss_gmac gpio_button_hotplug vfat fat
[297867.628573]  f2fs ext4 mbcache jbd2 exfat dm_mirror dm_region_hash dm_log dm_crypt dm_mod dax crc32c_generic crc32_generic cbc encrypted_keys trusted tpm oid_registry asn1_encoder asn1_decoder [last unloaded: ksmbd]
[297867.628682] CPU: 0 PID: 9766 Comm: kworker/0:1 Not tainted 5.15.69 #0
[297867.628697] Hardware name: Generic DT based system
[297867.628707] Workqueue: events dbs_work_handler
[297867.628728] PC is at 0x0
[297867.628738] LR is at __msm_console_write+0x1f8/0x2a4
[297867.628755] pc : [<00000000>]    lr : [<c0772c4c>]    psr: 60000193
[297867.628763] sp : ce259ae8  ip : 000001a8  fp : de916070
[297867.628771] r10: 00000001  r9 : 0000005e  r8 : 000346dc
[297867.628778] r7 : c0c933b4  r6 : c0eb4f94  r5 : 0007a121  r4 : c0f094fc
[297867.628787] r3 : 00000000  r2 : 00001207  r1 : 02ad02ac  r0 : 000346dc
[297867.628797] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[297867.628811] Control: 10c5787d  Table: 48e3c06a  DAC: 00000051
[297867.628816] Register r0 information: non-paged memory
[297867.628830] Register r1 information: non-paged memory
[297867.628840] Register r2 information: non-paged memory
[297867.628848] Register r3 information: NULL pointer
[297867.628858] Register r4 information: non-slab/vmalloc memory
[297867.628870] Register r5 information: non-paged memory
[297867.628879] Register r6 information: non-slab/vmalloc memory
[297867.628892] Register r7 information: non-slab/vmalloc memory
[297867.628902] Register r8 information: non-paged memory
[297867.628912] Register r9 information: non-paged memory
[297867.628920] Register r10 information: non-paged memory
[297867.628931] Register r11 information: 0-page vmalloc region starting at 0xde916000 allocated at msm_request_port+0x7c/0xcc
[297867.628956] Register r12 information: non-paged memory
[297867.628966] Process kworker/0:1 (pid: 9766, stack limit = 0xff24262a)
[297867.628978] Stack: (0xce259ae8 to 0xce25a000)
[297867.628993] 9ae0:                   60000193 00000001 c0e04fa0 469a1a90 c0e78cfc c0eb4ec4
[297867.629005] 9b00: c0f074a0 ce258000 c0e78cfc c0f07448 c0e78e04 ce259b5c c0f0742c c037e37c
[297867.629018] 9b20: ce259b5c ffff1030 c0b9b765 c0e04f54 ce258000 00000193 00000000 c0f0743c
[297867.629030] 9b40: 0000005d 00000000 c0f07440 c0f07434 00000000 c037f09c dd9852e1 ce259b68
[297867.629043] 9b60: c0f094fc 00000400 000002ab 00000000 b620fe00 00010ee8 2200004c 00002626
[297867.629054] 9b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[297867.629065] 9ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[297867.629077] 9bc0: 006c6261 469a1a90 ce259bec c0e04fa0 0000004c 00000000 00000001 00000000
[297867.629091] 9be0: c0b9b730 c1ca9918 c1687d00 c037f590 ce259c4c 01c60fbc c03a19bc 1e000000
[297867.629104] 9c00: 00000004 00000000 ce259cb8 80000005 00000000 c0312fc4 ce258000 c1ca9918
[297867.629116] 9c20: c1687d00 c037f734 ce259c4c ce258000 00000000 c037bdc0 00000000 ce259c4c
[297867.629128] 9c40: ce259cb8 c0312ad8 c0b9b730 c0b9b6ec 00000000 c0b9b708 00000000 c0312e9c
[297867.629140] 9c60: 00000000 00000000 00000000 c0e0a2e4 00000005 00000000 ce259cb8 c0312fc4
[297867.629152] 9c80: ce258000 c1ca9918 c1687d00 c03131cc 000f4240 c0751fac 00000002 c074f940
[297867.629164] 9ca0: 00000000 60000093 ffffffff ce259cec ce259d54 c0300c94 000346dc 60000093
[297867.629176] 9cc0: c0ee533c 00000000 c1687f60 00000001 00000001 20000013 ce259d54 00000000
[297867.629190] 9ce0: c1ca9918 c1687d00 00000000 ce259d08 c0739e0c 00000000 60000093 ffffffff
[297867.629202] 9d00: 00000051 c0739de4 c1687f6c c0eac86c ffffffff 00000002 ce259d54 c073b608
[297867.629214] 9d20: 00000000 c0eac86c ffffffff c034b97c c1ca9900 c0eac86c c1c0a780 00000002
[297867.629226] 9d40: c1682d80 3b9aca00 23c34600 c072661c c1619200 c1d0e6c0 3b9aca00 23c34600
[297867.629239] 9d60: c1619200 c1c0a780 00000000 23c34600 c0ed7fe0 c072bbc0 ce258000 3b9aca00
[297867.629251] 9d80: 23c34600 c1682d80 c1c0a668 23c34600 c0ed7fe0 c1436f00 3b9aca00 23c34600
[297867.629263] 9da0: c1687d00 c072bc04 ce258000 c1682d80 00000001 c1c0a780 00000000 23c34600
[297867.629275] 9dc0: c1682d80 dd985010 23c34600 00000000 c1687d00 c072bf7c 00000000 23c34600
[297867.629288] 9de0: 00000000 ffffffff 23c34600 c0eaf1f4 00000002 c1e11a00 23c34600 00000001
[297867.629301] 9e00: c17aa180 dd985010 23c34600 00000000 c1687d00 c072c904 c1d58000 c17aa080
[297867.629313] 9e20: 00000001 c17aa180 dd985010 23c34600 00000000 c0882b6c 23c34600 c072cc3c
[297867.629325] 9e40: c1e11a00 00000000 c1c0a780 c072cc3c c1d58a00 c17aa180 00000000 ffffffff
[297867.629337] 9e60: 23c34600 c1d58000 dd985010 00000006 23c34600 c17aa080 00000001 00000000
[297867.629349] 9e80: 000927c0 c0882f88 c0ec0a28 c034b99c c1d58a00 23c34600 c1d58a00 c0ee20a8
[297867.629361] 9ea0: 00000000 c0f1d754 000f4240 c0888284 00000001 b50255a0 c0d671c8 00000000
[297867.629373] 9ec0: c1d58a00 000f4240 000927c0 00000024 dd98c5c0 c1d58a00 c17aa880 c17aa900
[297867.629387] 9ee0: c17aa880 c1610840 c17aa900 dd98f405 cc5db9c0 c088be2c c17aa8b8 00000000
[297867.629399] 9f00: c17aa884 c0ec0d08 00000000 c0ed5e60 dd98f405 c088cbb0 c17aa8b8 cc5db980
[297867.629411] 9f20: dd98c1c0 dd98f400 00000000 c03416c8 ce258000 dd98c1c0 00000008 cc5db980
[297867.629424] 9f40: cc5db998 dd98c1c0 00000008 dd98c1d8 c0e03d00 dd98c380 ce258000 c0341a9c
[297867.629436] 9f60: c0e109dc c0ee5adc cc23becc c6f11440 c7330a00 c0341a20 cc5db980 ce258000
[297867.629449] 9f80: cc23becc c7330a20 00000000 c0349f48 c6f11440 c0349de8 00000000 00000000
[297867.629460] 9fa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
[297867.629472] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[297867.629484] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[297867.629499] [<c0772c4c>] (__msm_console_write) from [<c037e37c>] (console_unlock+0x32c/0x624)
[297867.629535] [<c037e37c>] (console_unlock) from [<c037f590>] (vprintk_emit+0x7c/0x1f4)
[297867.629569] [<c037f590>] (vprintk_emit) from [<c037f734>] (vprintk_default+0x2c/0x34)
[297867.629599] [<c037f734>] (vprintk_default) from [<c037bdc0>] (_printk+0x24/0x34)
[297867.629629] [<c037bdc0>] (_printk) from [<c0312ad8>] (__do_kernel_fault.part.0+0x5c/0x94)
[297867.629666] [<c0312ad8>] (__do_kernel_fault.part.0) from [<c0312e9c>] (do_sect_fault+0x0/0x8c)
[297867.629695] [<c0312e9c>] (do_sect_fault) from [<00000000>] (0x0)
[297867.629721] Code: bad PC value
[297867.629730] ---[ end trace c5302a5acf935d9e ]---
[297867.653580] Kernel panic - not syncing: Fatal exception
[297867.653590] CPU1: stopping
[297868.869588] SMP: failed to stop secondary CPUs
[297869.892908] Rebooting in 3 seconds..
[297870.672864] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.15.69 #0
[297870.676688] Hardware name: Generic DT based system
[297870.684150] [<c0311b10>] (unwind_backtrace) from [<c030c4c4>] (show_stack+0x1c/0x28)
[297870.688843] [<c030c4c4>] (show_stack) from [<c06c64d0>] (dump_stack_lvl+0x40/0x4c)
[297870.696828] [<c06c64d0>] (dump_stack_lvl) from [<c030fe88>] (do_handle_IPI+0x2fc/0x348)
[297870.704295] [<c030fe88>] (do_handle_IPI) from [<c030fef8>] (ipi_handler+0x24/0x34)
[297870.712626] [<c030fef8>] (ipi_handler) from [<c0388cb8>] (handle_percpu_devid_irq+0xa0/0x228)
[297870.720006] [<c0388cb8>] (handle_percpu_devid_irq) from [<c0381ed8>] (handle_domain_irq+0x70/0x9c)
[297870.728687] [<c0381ed8>] (handle_domain_irq) from [<c06e0aac>] (gic_handle_irq+0x94/0xbc)
[297870.737626] [<c06e0aac>] (gic_handle_irq) from [<c0300b7c>] (__irq_svc+0x5c/0x78)
[297870.745958] Exception stack(0xc1539f18 to 0xc1539f60)
[297870.753507] 9f00:                                                       00000000 00010ee8
[297870.758635] 9f20: 1cc2e000 dd99c5c0 00000000 b75024e0 c1d23840 00000000 dd99b830 00010ee8
[297870.766881] 9f40: 00000000 00010ee8 bdbbeba0 c1539f68 c088f3e8 c088f408 60000013 ffffffff
[297870.775127] [<c0300b7c>] (__irq_svc) from [<c088f408>] (cpuidle_enter_state+0x1b0/0x438)
[297870.783374] [<c088f408>] (cpuidle_enter_state) from [<c088f6f0>] (cpuidle_enter+0x44/0x64)
[297870.791619] [<c088f6f0>] (cpuidle_enter) from [<c035dd00>] (do_idle+0x20c/0x290)
[297870.799780] [<c035dd00>] (do_idle) from [<c035e0c0>] (cpu_startup_entry+0x24/0x28)
[297870.807417] [<c035e0c0>] (cpu_startup_entry) from [<42301610>] (0x42301610)

@qosmio

I am able to avoid an NSS core dump in qca-nss-tunipip6.
NSS.AK.K.CS-1-R firmware requires QSDK11.2 qca-nss-drv and qca-nss-tunipip6 drivers.
I made a reversion patch for tunipip6 only.

and I made some patches for openwrt-ipq806.

I will create PR, please review them.

6 Likes

Master just bumped up to 5.15.

I'm getting this error with 5.15. Any suggestions for what the correct nomenclature is for this line in the .dts patch.

Build log error:

ERROR: Input tree has errors, aborting (use -f to force output)
arch/arm/boot/dts/qcom-ipq8064.dtsi:1686.14-1698.5: ERROR (phandle_references): /soc/amba/nss-common: Reference to non-existent node or label "smb208_s1b"

Portion of patch that is throwing error:

@@ -1554,6 +1685,20 @@
 				dmas = <&sdcc3bam 2>, <&sdcc3bam 1>;
 				dma-names = "tx", "rx";
 			};
+
+		nss-common {
+			compatible = "qcom,nss-common";
+			reg = <0x03000000 0x00001000>;
+			reg-names = "nss_fpb_base";
+			clocks = <&gcc NSS_CORE_CLK>, <&gcc NSSTCM_CLK>,
+				<&rpmcc RPM_NSS_FABRIC_0_CLK>, <&rpmcc RPM_NSS_FABRIC_1_CLK>;
+			clock-names = "nss_core_clk", "nss_tcm_clk",
+				"nss-fab0-clk", "nss-fab1-clk";
+			nss_core-supply = <&smb208_s1b>;
+			nss_core_vdd_nominal = <1100000>;
+			nss_core_vdd_high = <1150000>;
+			nss_core_threshold_freq = <733000000>;
+		};
 		};
 
 		sfpb_mutex: hwlock@1200600 {
2 Likes

In order for me to not have to read 3000+ messages, may i ask a few simple questions?
-the ipq8074 has, aside from its two cortex cores, two nss cores. why are they not enabled by default in the standard openwrt built? Does this has to with binary blobs needed to get them to run, or is this duo to other reasons?
-does a c2600 owner has anything to gain from enabling the nss cores when he uses his c2600 purely as an accesspoint?
-are the nss cores powerfull enough to make a big difference in througput?
I hope im not being to blunt, but 3000+ posts i just too much of a read.

Unfortunately the R7800, that I use to test the 5.15-qsdk11-new-krait-cc build, has just crashed completely.
It didn't reboot and could not recover by itself. I had to completely cut the power to restart it.
It was not possible to make any connection to it. Web server, SSH, none of them worked.
@ACwifidude I hope you keep the current working master branch with 5.10 so we can at least have a working and I really hope very stable version.
I've switched to performance governor to check if it will crash again.

ipq806x NSS activation requires additional blobs as you eluded to. This community build has the additional patches for OpenWrt to be able to run the publicly available qca blobs.

NSS partially offloads wireless and allows for more performance. If you have fast enough internet it might be worth it. I use it on two r7800 access points.

Wireless Performance: (with the above settings on a R7800 using an iphone 2x2 client)

ath10k-ct, 5.10 Kernel with NSS Hardware Offloading
[SUM]   0.00-30.01  sec  2.30 GBytes   659 Mbits/sec                  receiver
[SUM]   0.00-30.01  sec  1.99 GBytes   569 Mbits/sec  189             sender

ath10k (OpenWrt with no offloading)
[SUM]   0.00-30.01  sec  1.60 GBytes   459 Mbits/sec                  receiver
[SUM]   0.00-30.01  sec  1.14 GBytes   326 Mbits/sec  699             sender

ath10k-ct (OpenWrt with no offloading)
[SUM]   0.00-30.01  sec  1.53 GBytes   437 Mbits/sec                  receiver
[SUM]   0.00-30.01  sec  1.21 GBytes   347 Mbits/sec  763             sender

@sppmaster unfortunately master has moved on to 5.15. 22.03 is still 5.10. If we can get 5.15 working with all the latest commits I’ll start building on 5.15. :sunglasses:

5 Likes

@ACwifidude I need several kmods for LTE modems and other purposes. Are there any technical barriers to make nss builds with CONFIG_ALL_KMODS=y?

There was an unrelated kmod several months back that was not being nice during the build process so I removed the config. It probably has been fixed by now so I can give the config with all kmods another try. I’ll probably try to build again this weekend. If you need it sooner than that you can build based off the steps in post #2 and include your needed packages. :sunglasses:

1 Like

you need to add the supply binding to the smb208 dtsi in 5.15
device already use the smb208 dtsi so you just need to fix that

After a while of being busy with work i return with my EA7500V1.

Unfortunately now both stable and master have random reboots, even with performance gov and playing with various parameters, removing services etc.
Also the memory like before seems to hit a hard wall at 143 MB used (trying to use more by placing stuff in /tmp simply results in oom triggering). Maybe it's the nss driver being loaded in memory? Still doesn't answer why stock owrt has less than a quarter of that usage.

What can there be tried? Do i wait for 5.15? Does the router simply not have enough RAM for the nss stuff, even thoguh 256 is considered "quite a lot" and oom doesn't trigger when it reboots?

Is it only wireless that gets offloaded? Is there benefit for me running openwrt strictly as a router without wifi with multiple openvpn client connections.

I've created some patches on @qosmio's branch and created a PR.
These can apply @ACwifidude's master branch.
I built it and started testing pppoe, ds-lite, l2tpv2 and irqbalance.

4 Likes

I managed to build snapshot with all necessary kmods, except gre (there were build errors with CONFIG_PACKAGE_luci-proto-gre=y option). Really, wireless performance increased by 15-20% with nss.

1 Like

There is more offloading to NSS cores; your Internet connection gets offloaded too. So running your router strictly as a router without WiFi will still be interesting. SQM offloading is also possible but only with fq_codel, not CAKE. It really depends on your ISP if you need SQM at all if you’ve got a fiber connection for instance.

Now on the OpenVPN part in combination with offloading, that’s not implemented (yet) I believe. So it depends on what you actually need in terms of throughput. Just give it a shot, remember to disable packet-steering, irqbalance, software offloading (in firewall settings) and either choose the performance governor or clamp your cpu frequency of both CPU’s to a fixed setting

2 Likes

Thanks for the detailed reply! I have my main r7800 with hnymans builds I've used forever and will be installing acwifidudes nss build on a spare r7800 as a clean flash to try out.

I have a fibre 500/500 PPPoE connection btw.

1 Like

I used hnymans build too before I switched from a 300/30 Mbit/s DOCSIS to a 500/500 Mbit/s fiber connection with PPPoE. The R7800 (or any ipq806x device for that matter) can't handle internet connections much faster than 400Mbit/s if you're not doing too much else on your router. Both CPU's will just max out to 100%. The R7800 is capable of about 940Mbit/s though with the factory firmware from Netgear. A NSS enabled build (like this one) will get you the possibilities of OpenWRT at just about the same speed as the factory image. It's pretty stable too, when you follow the best practices regarding irqbalance, packet steering, software offloading and fixating the CPU frequency. And as you can see by the number of replies in this topic; it's pretty popular too :sunglasses:

1 Like

The recommended configuration in the first few posts says

Irqbalance enabled, packet steering disabled

Is that out of date?

Yep. Currently it's out of date.
Irqbalance isn't even included in latest @ACwifidude master builds.

1 Like