qosmio / nss-packages

QCA NSS Packages
GNU General Public License v2.0
75 stars 76 forks source link

nss-drv: Kernel panic loading firmware 11.4 (NSS.AK.11.4-10-R) #3

Closed qosmio closed 1 month ago

qosmio commented 2 years ago

Using QSDK 11.4 (drv, clients, and ecm)

First panic caused by 0005-nss-drv-rework-NSS_CORE_DMA_CACHE_MAINT-ops.patch

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.67 (xbmc@htpc) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r20352+315-ea7b3e301d) 12.2.0, GNU ld (GNU Binutils) 2.38) #0 SMP Fri Sep 9 22:25:45 2022
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Netgear Nighthawk X4S R7800
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] percpu: Embedded 16 pages/cpu s32844 r8192 d24500 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 454872K/491520K available (7541K kernel code, 880K rwdata, 1812K rodata, 18432K init, 246K bss, 36648K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 26036 entries in 77 pages
[    0.000000] ftrace: allocated 77 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000001] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000030] Switching to timer-based delay loop, resolution 160ns
[    0.000376] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000411] pid_max: default: 32768 minimum: 301
[    0.000613] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000648] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001425] CPU: Testing write buffer coherency: ok
[    0.001732] qcom_scm: convention: smc legacy
[    0.002854] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003038] rcu: Hierarchical SRCU implementation.
[    0.003981] smp: Bringing up secondary CPUs ...
[    0.005966] smp: Brought up 1 node, 2 CPUs
[    0.005995] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.006016] CPU: All CPU(s) started in SVC mode.
[    0.018062] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.018231] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018274] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.018386] pinctrl core: initialized pinctrl subsystem
[    0.020096] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.020410] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.021890] thermal_sys: Registered thermal governor 'step_wise'
[    0.023922] cpuidle: using governor ladder
[    0.023997] cpuidle: using governor menu
[    0.046730] qcom_rpm 108000.rpm: RPM firmware 3.0.16777364
[    0.083038] s1a: Bringing 0uV into 1050000-1050000uV
[    0.083297] s1a: supplied by regulator-dummy
[    0.083464] s1b: Bringing 0uV into 1050000-1050000uV
[    0.083689] s1b: supplied by regulator-dummy
[    0.083837] s2a: Bringing 0uV into 775000-775000uV
[    0.084056] s2a: supplied by regulator-dummy
[    0.084209] s2b: Bringing 0uV into 775000-775000uV
[    0.084421] s2b: supplied by regulator-dummy
[    0.085068] usbcore: registered new interface driver usbfs
[    0.085144] usbcore: registered new interface driver hub
[    0.085208] usbcore: registered new device driver usb
[    0.085267] pps_core: LinuxPPS API ver. 1 registered
[    0.085282] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.085318] PTP clock support registered
[    0.087482] clocksource: Switched to clocksource dg_timer
[    0.152751] NET: Registered PF_INET protocol family
[    0.152985] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.153780] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.153822] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.153850] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.153954] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.154017] TCP: Hash tables configured (established 4096 bind 4096)
[    0.154101] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154136] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154360] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.154416] PCI: CLS 0 bytes, default 64
[    0.155551] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.161570] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.161599] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.328162] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.328436] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.328565] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.328904] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.329023] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.329080] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.449645] qcom-pcie 1b500000.pci: iATU unroll: disabled
[    0.449680] qcom-pcie 1b500000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.550298] qcom-pcie 1b500000.pci: Link up
[    0.550523] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.550554] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.550585] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.550612] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.550703] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.550857] pci 0000:00:00.0: supports D1
[    0.550881] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.555952] PCI: bus0: Fast back to back transfers disabled
[    0.556383] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.556580] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.557433] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.562937] PCI: bus1: Fast back to back transfers disabled
[    0.563056] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.563094] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.563205] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.563236] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.564249] pcieport 0000:00:00.0: AER: enabled with IRQ 48
[    0.565479] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.565754] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.565887] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.566196] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.566306] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.566360] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    0.689633] qcom-pcie 1b700000.pci: iATU unroll: disabled
[    0.689669] qcom-pcie 1b700000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.790349] qcom-pcie 1b700000.pci: Link up
[    0.790570] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.790599] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.790630] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x31e00000-0x31e0ffff])
[    0.790656] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.790748] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.790904] pci 0001:00:00.0: supports D1
[    0.790927] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    0.796079] PCI: bus0: Fast back to back transfers disabled
[    0.796552] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    0.796767] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.797699] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    0.798144] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    0.803311] PCI: bus1: Fast back to back transfers disabled
[    0.803430] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.803469] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.803584] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.803615] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.804616] pcieport 0001:00:00.0: AER: enabled with IRQ 50
[    0.809005] L2 @ QSB rate. Forcing new rate.
[    0.809300] L2 @ 384000 KHz
[    0.809510] CPU0 @ 800000 KHz
[    0.809538] CPU1 @ QSB rate. Forcing new rate.
[    0.809838] CPU1 @ 384000 KHz
[    0.816534] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.818687] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.820020] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.820123] msm_serial 16340000.serial: uartclk = 7372800
[    0.820227] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 51, base_baud = 460800) is a MSM
[    0.820301] msm_serial: console setup on port #0
[    1.736353] printk: console [ttyMSM0] enabled
[    1.741882] msm_serial: driver initialized
[    1.753505] loop: module loaded
[    1.755639] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xa1
[    1.755693] nand: Micron MT29F1G08ABBEAH4
[    1.762176] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.766121] 8 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.773628] OF: Bad cell count for /soc/nand-controller@1ac00000/nand@0/partitions
[    1.780458] OF: Bad cell count for /soc/nand-controller@1ac00000/nand@0/partitions
[    1.789020] Creating 8 MTD partitions on "qcom_nand.0":
[    1.795323] 0x000000000000-0x000000c80000 : "qcadata"
[    1.822738] 0x000000c80000-0x000001180000 : "APPSBL"
[    1.832019] 0x000001180000-0x000001200000 : "APPSBLENV"
[    1.833630] 0x000001200000-0x000001340000 : "art"
[    1.839207] 0x000001340000-0x000001480000 : "artbak"
[    1.843792] 0x000001480000-0x000001880000 : "kernel"
[    1.853569] 0x000001880000-0x000007900000 : "ubi"
[    2.017994] 0x000007900000-0x000008000000 : "reserve"
[    2.829498] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.644123] ar8327: qca,phy-rgmii-en is not specified
[    3.645708] i2c_dev: i2c /dev entries driver
[    3.658973] sdhci: Secure Digital Host Controller Interface driver
[    3.659024] sdhci: Copyright(c) Pierre Ossman
[    3.664065] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.672348] NET: Registered PF_INET6 protocol family
[    3.676623] Segment Routing with IPv6
[    3.679348] In-situ OAM (IOAM) with IPv6
[    3.682882] NET: Registered PF_PACKET protocol family
[    3.686884] Bridge firewalling registered
[    3.692287] 8021q: 802.1Q VLAN Support v1.8
[    3.695723] Registering SWP/SWPB emulation handler
[    3.747915] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.763607] UBI: auto-attach mtd6
[    3.763664] ubi0: attaching mtd6
[    3.933902] random: crng init done
[    4.612259] ubi0: scanning is finished
[    4.623055] ubi0: attached mtd6 (name "ubi", size 96 MiB)
[    4.623080] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.627427] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.634258] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.641131] ubi0: good PEBs: 772, bad PEBs: 0, corrupted PEBs: 0
[    4.647879] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.654077] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1662715491
[    4.661182] ubi0: available PEBs: 0, total reserved PEBs: 772, PEBs reserved for bad PEB handling: 20
[    4.678067] ubi0: background thread "ubi_bgt0d" started, PID 83
[    4.678574] block ubiblock0_0: created from ubi0:0(rootfs)ÿ[    4.703990] Freeing unused kernel image (initmem) memory: 18432K
[    4.728211] Run /init as init process
[    6.533918] init: Console is alive
[    6.534061] init: - watchdog -
[    6.536279] init: Watchdog has previously reset the system
[    6.575503] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.612705] pstore: Using crash dump compression: deflate
[    6.612741] pstore: Registered ramoops as persistent store backend
[    6.617084] ramoops: using 0x40000@0x42100000, ecc: 0
[    6.625477] **********************************************************
[    6.628389] * Driver    :NSS GMAC Driver - RTL v(3.72a)
[    6.634709] * Version   :1.0
[    6.639894] * Copyright :Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
[    6.642957] **********************************************************
[    6.667928] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_FS(1)(0x3cd8): 0x8
[    6.667978] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC_CTL(1)(0x3cc0): 0x2
[    6.679741] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC0_MD(1)(0x3cc4): 0x7f0000
[    6.692816] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC1_MD(1)(0x3cc8): 0x7f0000
[    6.706687] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC0_NS(1)(0x3ccc): 0x142
[    6.720308] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC1_NS(1)(0x3cd0): 0x142
[    6.733584] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + CLK_HALT_NSSFAB0_NSSFAB1_STATEA(0x3c20): 0x5b00
[    6.746955] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_CTL(1)(0x3cd4): 0x50
[    6.761013] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdeb90000) + NSS_GMACn_CTL(1)(0x34): 0x90c0c
[    6.773946] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdeb90000) + NSS_ETH_CLK_DIV0(0xc): 0x100
[    6.784835] (unnamed net_device) (uninitialized): ioremap OK. Size 0x4000. reg_base 0x37200000. mac_base 0x066e22e7.
[    6.795965] (unnamed net_device) (uninitialized): mdio bus '37000000.mdio-mii' OK.
[    6.812386] ipq8064-mdio 37000000.mdio (unnamed net_device) (uninitialized): nss_gmac_ipc_offload_init: enable Rx checksum
[    6.814413] ipq8064-mdio 37000000.mdio eth0: Initialized NSS GMAC1 interface eth0: (base = 0x37200000, irq = 39, PhyId = 4, PollLink = 0)
[    6.825354] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_FS(2)(0x3cf8): 0x8
[    6.837273] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC_CTL(2)(0x3ce0): 0x2
[    6.849922] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC0_MD(2)(0x3ce4): 0x7f0000
[    6.863010] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC1_MD(2)(0x3ce8): 0x7f0000
[    6.876924] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC0_NS(2)(0x3cec): 0x142
[    6.890533] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_SRC1_NS(2)(0x3cf0): 0x142
[    6.903810] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + CLK_HALT_NSSFAB0_NSSFAB1_STATEA(0x3c20): 0x5b00
[    6.917182] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeba4000) + GMAC_COREn_CLK_CTL(2)(0x3cf4): 0x50
[    6.931248] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdeb90000) + NSS_GMACn_CTL(2)(0x38): 0x80c0c
[    6.944172] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdeb90000) + NSS_ETH_CLK_DIV0(0xc): 0x100
[    6.955015] (unnamed net_device) (uninitialized): nss_gmac_qsgmii_dev_init: QSGMII_PHY_SGMII_1_CTL(0x13c) - 0xc09c408f
[    6.966134] (unnamed net_device) (uninitialized): nss_gmac_qsgmii_dev_init: NSS_QSGMII_CLK_CTL(0x2c) - 0x0
[    6.976630] (unnamed net_device) (uninitialized): SGMII Specific Init for GMAC2 Done!
[    6.986297] (unnamed net_device) (uninitialized): ioremap OK. Size 0x4000. reg_base 0x37400000. mac_base 0xa8efdc46.
[    6.994242] (unnamed net_device) (uninitialized): mdio bus '37000000.mdio-mii' OK.
[    7.011133] ipq8064-mdio 37000000.mdio (unnamed net_device) (uninitialized): nss_gmac_ipc_offload_init: enable Rx checksum
[    7.012673] ipq8064-mdio 37000000.mdio eth1: Initialized NSS GMAC2 interface eth1: (base = 0x37400000, irq = 40, PhyId = 0, PollLink = 0)
[    7.052738] nss_driver - fw of size 621272  bytes copied to load addr: 40000000, nss_id : 0
[    7.053424] nss_driver - Turbo Support 1
[    7.059968] Supported Frequencies -
[    7.059972] 800Mhz
[    7.064062] 800Mhz
[    7.067619] 800Mhz
[    7.069514]
[    7.073747] bf21d100: set sdma c3331c00
[    7.075421] bf21d100: meminfo init succeed
[    7.082371] nss_driver - fw of size 221444  bytes copied to load addr: 40800000, nss_id : 1
[    7.083247] bf221040: set sdma c3331e00
[    7.091427] bf221040: meminfo init succeed
[    7.095200] debugfs: Directory 'dynamic_if' with parent 'stats' already present!
[    7.099384] debugfs: File 'n2h' in directory 'strings' already present!
[    7.102330] node size 1 # items 2
[    7.106862] debugfs: File 'drv' in directory 'strings' already present!
[    7.106869] debugfs: File 'c2c_tx' in directory 'strings' already present!
[    7.113273] memory: 0 0 (avl 613793792) items 2 active_cores 2
[    7.116673] debugfs: File 'c2c_rx' in directory 'strings' already present!
[    7.123233] addr/size storage words 1 1 # words 2 in DTS, ddr size 1000000
[    7.132085] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.135891] bf21d100: nss core 0 booted successfully
[    7.147046] SCSI subsystem initialized
[    7.150030] NSS core 0 signal COREDUMP COMPLETE 4000
[    7.164793] bf21d100: Starting NSS-FW logbuffer dump for core 0
[    7.169942] bf21d100: Warn: trap[813]: Trap on CHIP ID 00050000
[    7.175523] bf21d100: Warn: trap[620]: Trapped: TRAP_TD(00000004) DCAPT(3C000080)
[    7.181500] bf21d100: Warn: trap[645]: Trapped: Thread: 2, reason: 00001000, PC: 400501A8, previous PC: 40050154
[    7.181506] bf21d100: Warn: trap[594]: A0_3: 3F02FAAC 459F7740 3F02F8AC 40096800
[    7.181509] bf21d100: Warn: trap[594]: A4_7: 40096800 4004E5E0 3F00C0A8 3F00AF30
[    7.181513] bf21d100: Warn: trap[599]: D0_3: 00000000 27FFFFFC FFFFFFFF 00000000
[    7.181516] bf21d100: Warn: trap[599]: D4_7: 00000001 00000000 00000000 00000000
[    7.196189] bf21d100: Warn: trap[599]: D8_11: 00000000 00000000 00000000 00000000
[    7.213769] bf21d100: Warn: trap[599]: D12_15: 00000000 00000000 00000000 00000000
[    7.228555] bf21d100: Warn: trap[649]: Thread_2 has non-recoverable trap
[    7.242658] Internal error: Oops - undefined instruction: 0 [#1] SMP ARM
[    7.257296] Modules linked in:
[    7.265525] scsi host0: ahci
[    7.270316]  ahci_platform(+) libahci_platform libahci libata scsi_mod scsi_common ehci_hcd qca_nss_drv qca_nss_gmac ramoops reed_solomon pstore gpio_button_hotplug ext4 mbcache jbd2 crc32c_generic
[    7.270368] CPU: 0 PID: 11 Comm: ksoftirqd/0 Not tainted 5.15.67 #0
[    7.270376] Hardware name: Generic DT based system
[    7.270379] PC is at nss_core_send_cmd+0x428/0xe2c [qca_nss_drv]
[    7.277629] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 32
[    7.285679] LR is at arm_dma_sync_single_for_device+0xb8/0xec
[    7.348961] pc : [<bf12c74c>]    lr : [<c0314990>]    psr: 80000013
[    7.354776] sp : c252fe30  ip : c0317c68  fp : c3204200
[    7.360851] r10: fffffbff  r9 : bf221658  r8 : 00000000
[    7.366059] r7 : bf22a0c0  r6 : 00000400  r5 : 000007c0  r4 : bf221040
[    7.371270] r3 : 4e52522e  r2 : 00000000  r1 : c3204400  r0 : c3204400
[    7.377868] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.384380] Control: 10c5787d  Table: 45a0406a  DAC: 00000051
[    7.391582] Register r0 information: slab kmalloc-512 start c3204400 pointer offset 0 size 512
[    7.397316] Register r1 information: slab kmalloc-512 start c3204400 pointer offset 0 size 512
[    7.405822] Register r2 information: NULL pointer
[    7.414410] Register r3 information: non-paged memory
[    7.419184] Register r4 information: 318-page vmalloc region starting at 0xbf127000 allocated at load_module+0xc20/0x29c0
[    7.424227] Register r5 information: non-paged memory
[    7.435158] Register r6 information: non-paged memory
[    7.440192] Register r7 information: 318-page vmalloc region starting at 0xbf127000 allocated at load_module+0xc20/0x29c0
[    7.445234] Register r8 information: NULL pointer
[    7.456163] Register r9 information: 318-page vmalloc region starting at 0xbf127000 allocated at load_module+0xc20/0x29c0
[    7.460860] Register r10 information: non-paged memory
[    7.471788] Register r11 information: slab kmalloc-512 start c3204200 pointer offset 0 size 512
[    7.476830] Register r12 information: non-slab/vmalloc memory
[    7.485418] Process ksoftirqd/0 (pid: 11, stack limit = 0xdb80d918)
[    7.491323] Stack: (0xc252fe30 to 0xc2530000)
[    7.497397] fe20:                                     dda03500 c2543f40 c252fe54 c0353f48
[    7.501917] fe40: c2543f40 c039a8c8 c1ef1500 c039a7d8 c2016624 dd9fcc80 dd9fcc80 ffff8dae
[    7.510077] fe60: 00000000 c1f03d00 ffffffff bf221668 00000040 bf221040 bf22a0c0 00000000
[    7.518237] fe80: bf221658 fffffbff c252fef8 bf12d304 ffff8d9c 00000122 c252e000 00004400
[    7.526397] fea0: 00000001 00000001 bf221668 00000040 c252feef c1ef1e40 1bb12000 c1f03d00
[    7.534556] fec0: c252fef8 c0896a4c bf221668 0000012c dda03e40 c252fef0 c1ef1e40 c0896e0c
[    7.542716] fee0: 00000000 ffff8da6 c1ef1500 00ffe000 c252fef0 c252fef0 c252fef8 c252fef8
[    7.550876] ff00: 00000002 c1f0308c 00000002 00000003 00000100 c1f0c400 c252e000 000000a2
[    7.559035] ff20: c252ff28 c03012dc 00000000 1bb12000 0000000a c1ef10c0 ffff8da5 04208040
[    7.567195] ff40: c252e000 00000000 00000000 c24dac00 c252e000 c1f0c400 ffffe000 c24daca0
[    7.575355] ff60: 00000000 c0329870 00000000 c034d030 c24dac40 c24dac80 c034cf40 c24dac00
[    7.583515] ff80: 00000000 c2519e50 c24daca0 c0349074 c24dac40 c0348f44 00000000 00000000
[    7.591674] ffa0: 00000000 00000000 00000000 c0300130 00000000 00000000 00000000 00000000
[    7.599833] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.607992] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    7.616159] [<bf12c74c>] (nss_core_send_cmd [qca_nss_drv]) from [<bf12d304>] (nss_core_handle_napi+0x170/0x2e4 [qca_nss_drv])
[    7.624318] [<bf12d304>] (nss_core_handle_napi [qca_nss_drv]) from [<c0896a4c>] (__napi_poll+0x64/0x22c)
[    7.635603] [<c0896a4c>] (__napi_poll) from [<c0896e0c>] (net_rx_action+0xdc/0x270)
[    7.645143] [<c0896e0c>] (net_rx_action) from [<c03012dc>] (__do_softirq+0xf4/0x398)
[    7.652526] [<c03012dc>] (__do_softirq) from [<c0329870>] (run_ksoftirqd+0x3c/0x54)
[    7.660510] [<c0329870>] (run_ksoftirqd) from [<c034d030>] (smpboot_thread_fn+0xf0/0x1b4)
[    7.667890] [<c034d030>] (smpboot_thread_fn) from [<c0349074>] (kthread+0x130/0x154)
[    7.676222] [<c0349074>] (kthread) from [<c0300130>] (ret_from_fork+0x14/0x24)
[    7.684032] Exception stack(0xc252ffb0 to 0xc252fff8)
[    7.691061] ffa0:                                     00000000 00000000 00000000 00000000
[    7.696186] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.704347] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    7.712508] Code: e5945b54 0a000002 e3510a01 0a000075 (e7f001f2)
[    7.718929] ---[ end trace ce780f55d3d00b34 ]---
[    7.730219] Kernel panic - not syncing: Fatal exception in interrupt
[    7.730248] CPU1: stopping
[    7.736196] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           5.15.67 #0
[    7.738720] Hardware name: Generic DT based system
[    7.746270] [<c031198c>] (unwind_backtrace) from [<c030c4e4>] (show_stack+0x1c/0x28)
[    7.750875] [<c030c4e4>] (show_stack) from [<c065c9fc>] (dump_stack_lvl+0x40/0x4c)
[    7.758774] [<c065c9fc>] (dump_stack_lvl) from [<c030fd44>] (do_handle_IPI+0x2a8/0x324)
[    7.766152] [<c030fd44>] (do_handle_IPI) from [<c030fde0>] (ipi_handler+0x20/0x34)
[    7.774051] [<c030fde0>] (ipi_handler) from [<c03803e8>] (handle_percpu_devid_irq+0x98/0x220)
[    7.781693] [<c03803e8>] (handle_percpu_devid_irq) from [<c03796f0>] (handle_domain_irq+0x6c/0xa0)
[    7.790286] [<c03796f0>] (handle_domain_irq) from [<c0676be8>] (gic_handle_irq+0x88/0xbc)
[    7.799140] [<c0676be8>] (gic_handle_irq) from [<c0300b7c>] (__irq_svc+0x5c/0x78)
[    7.807383] Exception stack(0xc2515f18 to 0xc2515f60)
[    7.814847] 5f00:                                                       00000000 00000001
[    7.819886] 5f20: 1bb22000 dda13500 00000000 c3984040 ccc22e00 00000000 dda12770 00000001
[    7.828046] 5f40: 00000000 cc9a5100 0005a280 c2515f68 c081fce8 c081fd08 60000013 ffffffff
[    7.836207] [<c0300b7c>] (__irq_svc) from [<c081fd08>] (cpuidle_enter_state+0x1ac/0x42c)
[    7.844366] [<c081fd08>] (cpuidle_enter_state) from [<c081ffe8>] (cpuidle_enter+0x44/0x64)
[    7.852523] [<c081ffe8>] (cpuidle_enter) from [<c035a620>] (do_idle+0x204/0x294)
[    7.860597] [<c035a620>] (do_idle) from [<c035a9d8>] (cpu_startup_entry+0x24/0x28)
[    7.868148] [<c035a9d8>] (cpu_startup_entry) from [<42301610>] (0x42301610)
[    8.880710] Rebooting in 1 seconds..

After removing patch, still crashing but now a more generic error.

Bytes transferred = 21731029 (14b96d5 hex)
   Image Name:   ARM OpenWrt Linux-5.15.67
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    21730965 Bytes = 20.7 MiB
   Load Address: 42208000
   Entry Point:  42208000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
mtdparts variable not set, see 'help mtdparts'
no partitions defined

defaults:
mtdids  : nand0=msm_nand
mtdparts: none
info: "mtdparts" not set
Using machid 0x136c from environment

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.67 (xbmc@htpc) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 12.2.0 r20352+315-ea7b3e301d) 12.2.0, GNU ld (GNU Binutils) 2.38) #0 SMP Fri Sep 9 22:25:45 2022
[    0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Netgear Nighthawk X4S R7800
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000042000000-0x000000005fffffff]
[    0.000000] percpu: Embedded 16 pages/cpu s32844 r8192 d24500 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 121920
[    0.000000] Kernel command line:
[    0.000000] Bootloader command line (ignored): console=ttyHSL1,115200n8
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 454872K/491520K available (7541K kernel code, 880K rwdata, 1812K rodata, 18432K init, 246K bss, 36648K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] ftrace: allocating 26036 entries in 77 pages
[    0.000000] ftrace: allocated 77 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: dg_timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 305801671480 ns
[    0.000001] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[    0.000030] Switching to timer-based delay loop, resolution 160ns
[    0.000376] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[    0.000410] pid_max: default: 32768 minimum: 301
[    0.000612] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000646] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001420] CPU: Testing write buffer coherency: ok
[    0.001730] qcom_scm: convention: smc legacy
[    0.002848] Setting up static identity map for 0x42300000 - 0x42300060
[    0.003035] rcu: Hierarchical SRCU implementation.
[    0.003981] smp: Bringing up secondary CPUs ...
[    0.005963] smp: Brought up 1 node, 2 CPUs
[    0.005991] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[    0.006012] CPU: All CPU(s) started in SVC mode.
[    0.018056] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[    0.018227] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018270] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.018380] pinctrl core: initialized pinctrl subsystem
[    0.020089] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.020403] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.021873] thermal_sys: Registered thermal governor 'step_wise'
[    0.023912] cpuidle: using governor ladder
[    0.023988] cpuidle: using governor menu
[    0.046699] qcom_rpm 108000.rpm: RPM firmware 3.0.16777364
[    0.083027] s1a: Bringing 0uV into 1050000-1050000uV
[    0.083281] s1a: supplied by regulator-dummy
[    0.083448] s1b: Bringing 0uV into 1050000-1050000uV
[    0.083674] s1b: supplied by regulator-dummy
[    0.083820] s2a: Bringing 0uV into 775000-775000uV
[    0.084039] s2a: supplied by regulator-dummy
[    0.084192] s2b: Bringing 0uV into 775000-775000uV
[    0.084406] s2b: supplied by regulator-dummy
[    0.085055] usbcore: registered new interface driver usbfs
[    0.085130] usbcore: registered new interface driver hub
[    0.085196] usbcore: registered new device driver usb
[    0.085254] pps_core: LinuxPPS API ver. 1 registered
[    0.085271] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.085306] PTP clock support registered
[    0.087465] clocksource: Switched to clocksource dg_timer
[    0.152801] NET: Registered PF_INET protocol family
[    0.153033] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.153843] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.153884] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.153912] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.154016] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.154079] TCP: Hash tables configured (established 4096 bind 4096)
[    0.154165] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154200] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154423] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.154479] PCI: CLS 0 bytes, default 64
[    0.155621] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.161636] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.161663] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.328317] qcom-pcie 1b500000.pci: supply vdda not found, using dummy regulator
[    0.328587] qcom-pcie 1b500000.pci: supply vdda_phy not found, using dummy regulator
[    0.328717] qcom-pcie 1b500000.pci: supply vdda_refclk not found, using dummy regulator
[    0.329051] qcom-pcie 1b500000.pci: host bridge /soc/pci@1b500000 ranges:
[    0.329171] qcom-pcie 1b500000.pci:       IO 0x000fe00000..0x000fe0ffff -> 0x000fe00000
[    0.329229] qcom-pcie 1b500000.pci:      MEM 0x0008000000..0x000fdfffff -> 0x0008000000
[    0.449613] qcom-pcie 1b500000.pci: iATU unroll: disabled
[    0.449649] qcom-pcie 1b500000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.550265] qcom-pcie 1b500000.pci: Link up
[    0.550492] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[    0.550522] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.550555] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0xfe00000-0xfe0ffff])
[    0.550582] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[    0.550676] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.550835] pci 0000:00:00.0: supports D1
[    0.550858] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.555910] PCI: bus0: Fast back to back transfers disabled
[    0.556345] pci 0000:01:00.0: [168c:0046] type 00 class 0x028000
[    0.556542] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.557396] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.562871] PCI: bus1: Fast back to back transfers disabled
[    0.562992] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[    0.563032] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[    0.563142] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.563172] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x081fffff]
[    0.564181] pcieport 0000:00:00.0: AER: enabled with IRQ 48
[    0.565416] qcom-pcie 1b700000.pci: supply vdda not found, using dummy regulator
[    0.565689] qcom-pcie 1b700000.pci: supply vdda_phy not found, using dummy regulator
[    0.565820] qcom-pcie 1b700000.pci: supply vdda_refclk not found, using dummy regulator
[    0.566124] qcom-pcie 1b700000.pci: host bridge /soc/pci@1b700000 ranges:
[    0.566234] qcom-pcie 1b700000.pci:       IO 0x0031e00000..0x0031e0ffff -> 0x0031e00000
[    0.566287] qcom-pcie 1b700000.pci:      MEM 0x002e000000..0x0031dfffff -> 0x002e000000
[    0.699719] qcom-pcie 1b700000.pci: iATU unroll: disabled
[    0.699754] qcom-pcie 1b700000.pci: Detected iATU regions: 8 outbound, 8 inbound
[    0.798191] qcom-pcie 1b700000.pci: Link up
[    0.798417] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[    0.798446] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.798479] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x31e00000-0x31e0ffff])
[    0.798507] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[    0.798599] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[    0.798761] pci 0001:00:00.0: supports D1
[    0.798786] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[    0.803920] PCI: bus0: Fast back to back transfers disabled
[    0.804395] pci 0001:01:00.0: [168c:0046] type 00 class 0x028000
[    0.804607] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.805548] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[    0.805866] pci 0001:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s PCIe x1 link at 0001:00:00.0 (capable of 4.000 Gb/s with 5.0 GT/s PCIe x1 link)
[    0.811062] PCI: bus1: Fast back to back transfers disabled
[    0.811183] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[    0.811224] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[    0.811340] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[    0.811374] pci 0001:00:00.0:   bridge window [mem 0x2e000000-0x2e1fffff]
[    0.812378] pcieport 0001:00:00.0: AER: enabled with IRQ 50
[    0.816612] L2 @ QSB rate. Forcing new rate.
[    0.816909] L2 @ 384000 KHz
[    0.817125] CPU0 @ 800000 KHz
[    0.817151] CPU1 @ QSB rate. Forcing new rate.
[    0.817449] CPU1 @ 384000 KHz
[    0.824247] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[    0.826261] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.827661] msm_serial 16340000.serial: msm_serial: detected port #0
[    0.827759] msm_serial 16340000.serial: uartclk = 7372800
[    0.827976] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 51, base_baud = 460800) is a MSM
[    0.828050] msm_serial: console setup on port #0
[    1.744185] printk: console [ttyMSM0] enabled
[    1.749633] msm_serial: driver initialized
[    1.761169] loop: module loaded
[    1.763282] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xa1
[    1.763336] nand: Micron MT29F1G08ABBEAH4
[    1.769862] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.773786] 8 fixed-partitions partitions found on MTD device qcom_nand.0
[    1.781285] OF: Bad cell count for /soc/nand-controller@1ac00000/nand@0/partitions
[    1.788108] OF: Bad cell count for /soc/nand-controller@1ac00000/nand@0/partitions
[    1.796590] Creating 8 MTD partitions on "qcom_nand.0":
[    1.803082] 0x000000000000-0x000000c80000 : "qcadata"
[    1.830147] 0x000000c80000-0x000001180000 : "APPSBL"
[    1.839467] 0x000001180000-0x000001200000 : "APPSBLENV"
[    1.841075] 0x000001200000-0x000001340000 : "art"
[    1.846449] 0x000001340000-0x000001480000 : "artbak"
[    1.851346] 0x000001480000-0x000001880000 : "kernel"
[    1.860932] 0x000001880000-0x000007900000 : "ubi"
[    2.025404] 0x000007900000-0x000008000000 : "reserve"
[    2.837908] switch0: Atheros AR8337 rev. 2 switch registered on 37000000.mdio-mii
[    3.653870] ar8327: qca,phy-rgmii-en is not specified
[    3.655463] i2c_dev: i2c /dev entries driver
[    3.668663] sdhci: Secure Digital Host Controller Interface driver
[    3.668719] sdhci: Copyright(c) Pierre Ossman
[    3.673758] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.681997] NET: Registered PF_INET6 protocol family
[    3.686344] Segment Routing with IPv6
[    3.689032] In-situ OAM (IOAM) with IPv6
[    3.692573] NET: Registered PF_PACKET protocol family
[    3.696581] Bridge firewalling registered
[    3.701810] 8021q: 802.1Q VLAN Support v1.8
[    3.705418] Registering SWP/SWPB emulation handler
[    3.757770] thermal thermal_zone0: failed to read out thermal zone (-110)
[    3.773923] UBI: auto-attach mtd6
[    3.773981] ubi0: attaching mtd6
[    4.094629] random: crng init done
[    4.773131] ubi0: scanning is finished
[    4.784151] ubi0: attached mtd6 (name "ubi", size 96 MiB)
[    4.784175] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.788581] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.795295] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.802204] ubi0: good PEBs: 772, bad PEBs: 0, corrupted PEBs: 0
[    4.808977] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.815174] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1662715491
[    4.822296] ubi0: available PEBs: 0, total reserved PEBs: 772, PEBs reserved for bad PEB handling: 20
[    4.838057] ubi0: background thread "ubi_bgt0d" started, PID 83
[    4.838267] block ubiblock0_0: created from ubi0:0(rooô[    4.863702] Freeing unused kernel image (initmem) memory: 18432K
[    4.888196] Run /init as init process
[    5.932010] init: Console is alive
[    5.932156] init: - watchdog -
[    5.934370] init: Watchdog has previously reset the system
[    5.968556] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.004596] pstore: Using crash dump compression: deflate
[    6.004640] pstore: Registered ramoops as persistent store backend
[    6.009088] ramoops: using 0x40000@0x42100000, ecc: 0
[    6.019512] **********************************************************
[    6.020184] * Driver    :NSS GMAC Driver - RTL v(3.72a)
[    6.026603] * Version   :1.0
[    6.031821] * Copyright :Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
[    6.034854] **********************************************************
[    6.077903] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_FS(1)(0x3cd8): 0x8
[    6.077955] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC_CTL(1)(0x3cc0): 0x2
[    6.089671] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC0_MD(1)(0x3cc4): 0x7f0000
[    6.102784] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC1_MD(1)(0x3cc8): 0x7f0000
[    6.116656] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC0_NS(1)(0x3ccc): 0x142
[    6.130308] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC1_NS(1)(0x3cd0): 0x142
[    6.143562] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + CLK_HALT_NSSFAB0_NSSFAB1_STATEA(0x3c20): 0x5b00
[    6.156924] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_CTL(1)(0x3cd4): 0x50
[    6.171015] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdead0000) + NSS_GMACn_CTL(1)(0x34): 0x90c0c
[    6.183915] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdead0000) + NSS_ETH_CLK_DIV0(0xc): 0x100
[    6.194804] (unnamed net_device) (uninitialized): ioremap OK. Size 0x4000. reg_base 0x37200000. mac_base 0x8706779c.
[    6.205956] (unnamed net_device) (uninitialized): mdio bus '37000000.mdio-mii' OK.
[    6.224165] ipq8064-mdio 37000000.mdio (unnamed net_device) (uninitialized): nss_gmac_ipc_offload_init: enable Rx checksum
[    6.224912] ipq8064-mdio 37000000.mdio eth0: Initialized NSS GMAC1 interface eth0: (base = 0x37200000, irq = 39, PhyId = 4, PollLink = 0)
[    6.235350] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_FS(2)(0x3cf8): 0x8
[    6.247248] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC_CTL(2)(0x3ce0): 0x2
[    6.259900] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC0_MD(2)(0x3ce4): 0x7f0000
[    6.273011] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC1_MD(2)(0x3ce8): 0x7f0000
[    6.286883] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC0_NS(2)(0x3cec): 0x142
[    6.300502] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_SRC1_NS(2)(0x3cf0): 0x142
[    6.313780] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + CLK_HALT_NSSFAB0_NSSFAB1_STATEA(0x3c20): 0x5b00
[    6.327161] (unnamed net_device) (uninitialized): nss_gmac_clk_ctl_dev_init: ctx->clk_ctl_base(0xdeac8000) + GMAC_COREn_CLK_CTL(2)(0x3cf4): 0x50
[    6.341240] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdead0000) + NSS_GMACn_CTL(2)(0x38): 0x80c0c
[    6.354141] (unnamed net_device) (uninitialized): nss_gmac_dev_init: nss_base(0xdead0000) + NSS_ETH_CLK_DIV0(0xc): 0x100
[    6.365014] (unnamed net_device) (uninitialized): nss_gmac_qsgmii_dev_init: QSGMII_PHY_SGMII_1_CTL(0x13c) - 0xc09c408f
[    6.376103] (unnamed net_device) (uninitialized): nss_gmac_qsgmii_dev_init: NSS_QSGMII_CLK_CTL(0x2c) - 0x0
[    6.386639] (unnamed net_device) (uninitialized): SGMII Specific Init for GMAC2 Done!
[    6.396267] (unnamed net_device) (uninitialized): ioremap OK. Size 0x4000. reg_base 0x37400000. mac_base 0x8c5d449e.
[    6.404204] (unnamed net_device) (uninitialized): mdio bus '37000000.mdio-mii' OK.
[    6.420657] ipq8064-mdio 37000000.mdio (unnamed net_device) (uninitialized): nss_gmac_ipc_offload_init: enable Rx checksum
[    6.422499] ipq8064-mdio 37000000.mdio eth1: Initialized NSS GMAC2 interface eth1: (base = 0x37400000, irq = 40, PhyId = 0, PollLink = 0)
[    6.462249] nss_driver - fw of size 621272  bytes copied to load addr: 40000000, nss_id : 0
[    6.462944] nss_driver - Turbo Support 1
[    6.469529] Supported Frequencies -
[    6.469533] 800Mhz
[    6.473587] 800Mhz
[    6.477144] 800Mhz
[    6.479045]
[    6.483274] bf22f100: set sdma c3330c00
[    6.484945] bf22f100: meminfo init succeed
[    6.493876] nss_driver - fw of size 221444  bytes copied to load addr: 40800000, nss_id : 1
[    6.494075] bf233040: set sdma c3330e00
[    6.501155] bf233040: meminfo init succeed
[    6.504911] debugfs: Directory 'dynamic_if' with parent 'stats' already present!
[    6.509105] debugfs: File 'n2h' in directory 'strings' already present!
[    6.511873] node size 1 # items 2
[    6.516571] debugfs: File 'drv' in directory 'strings' already present!
[    6.516578] debugfs: File 'c2c_tx' in directory 'strings' already present!
[    6.523009] memory: 0 0 (avl 613703680) items 2 active_cores 2
[    6.526380] debugfs: File 'c2c_rx' in directory 'strings' already present!
[    6.528426] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.532967] addr/size storage words 1 1 # words 2 in DTS, ddr size 1000000
[    6.544041] SCSI subsystem initialized
[    6.545591] bf22f100: nss core 0 booted successfully
[    6.559402] NSS core 0 signal COREDUMP COMPLETE 4000
[    6.569612] bf22f100: Starting NSS-FW logbuffer dump for core 0
[    6.579664] bf22f100: Warn: trap[813]: Trap on CHIP ID 00050000
[    6.592347] bf22f100: Warn: trap[620]: Trapped: TRAP_TD(00000004) DCAPT(3C000080)
[    6.605116] bf22f100: Warn: trap[645]: Trapped: Thread: 2, reason: 00001000, PC: 400501A8, previous PC: 40050154
[    6.620025] bf22f100: Warn: trap[594]: A0_3: 3F02FAAC 49007740 3F02F8AC 40096800
[    6.635832] bf22f100: Warn: trap[594]: A4_7: 40096800 4004E5E0 3F00C0A8 3F00AF30
[    6.644670] scsi host0: ahci
[    6.651702] bf22f100: Warn: trap[599]: D0_3: 00000000 27FFFFFC FFFFFFFF 00000000
[    6.659937] ata1: SATA max UDMA/133 mmio [mem 0x29000000-0x2900017f] port 0x100 irq 32
[    6.667348] bf22f100: Warn: trap[599]: D4_7: 00000001 00000000 00000000 00000000
[    6.685416] bf22f100: Warn: trap[599]: D8_11: 00000000 00000000 00000000 00000000
[    6.692944] bf22f100: Warn: trap[599]: D12_15: 00000000 00000000 00000000 00000000
[    6.700332] bf22f100: Warn: trap[649]: Thread_2 has non-recoverable trap
[    6.707916] node size 1 # items 2
[    6.714589] memory: 0 0 (avl 613703680) items 2 active_cores 2
[    6.717938] addr/size storage words 1 1 # words 2 in DTS, ddr size 1000000
[    6.723559] bf233040: nss core 1 booted successfully
[    6.730894] NSS core 1 signal COREDUMP COMPLETE 4000
[    6.735502] bf233040: Starting NSS-FW logbuffer dump for core 1
[    6.740528] Kernel panic - not syncing: NSS FW coredump: bringing system down
[    6.746103] CPU1: stopping
[    6.753379] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.67 #0
[    6.755983] Hardware name: Generic DT based system
[    6.762159] [<c031198c>] (unwind_backtrace) from [<c030c4e4>] (show_stack+0x1c/0x28)
[    6.766756] [<c030c4e4>] (show_stack) from [<c065c9fc>] (dump_stack_lvl+0x40/0x4c)
[    6.774655] [<c065c9fc>] (dump_stack_lvl) from [<c030fd44>] (do_handle_IPI+0x2a8/0x324)
[    6.782032] [<c030fd44>] (do_handle_IPI) from [<c030fde0>] (ipi_handler+0x20/0x34)
[    6.789929] [<c030fde0>] (ipi_handler) from [<c03803e8>] (handle_percpu_devid_irq+0x98/0x220)
[    6.797572] [<c03803e8>] (handle_percpu_devid_irq) from [<c03796f0>] (handle_domain_irq+0x6c/0xa0)
[    6.806167] [<c03796f0>] (handle_domain_irq) from [<c0676be8>] (gic_handle_irq+0x88/0xbc)
[    6.815020] [<c0676be8>] (gic_handle_irq) from [<c0300b7c>] (__irq_svc+0x5c/0x78)
[    6.823262] Exception stack(0xc2515f18 to 0xc2515f60)
[    6.830727] 5f00:                                                       00000000 00000001
[    6.835771] 5f20: 1bb22000 dda13500 00000000 c3984040 92193aa0 00000000 dda12770 00000001
[    6.843932] 5f40: 00000000 919c2100 00059e20 c2515f68 c081fce8 c081fd08 60000013 ffffffff
[    6.852086] [<c0300b7c>] (__irq_svc) from [<c081fd08>] (cpuidle_enter_state+0x1ac/0x42c)
[    6.860247] [<c081fd08>] (cpuidle_enter_state) from [<c081ffe8>] (cpuidle_enter+0x44/0x64)
[    6.868403] [<c081ffe8>] (cpuidle_enter) from [<c035a620>] (do_idle+0x204/0x294)
[    6.876479] [<c035a620>] (do_idle) from [<c035a9d8>] (cpu_startup_entry+0x24/0x28)
[    6.884028] [<c035a9d8>] (cpu_startup_entry) from [<42301610>] (0x42301610)
[    7.110128] Rebooting in 1 seconds..
regae commented 5 months ago

i think i got my tplink,onhub working with 11.4 firmware (23.05 branch), i don't know much, i just love tinkering.

memory node from /sys/firmware/fdt

    memory {
        device_type = "memory";
        reg = <0x41500000 0x18a00000 0x5a000000 0x26000000>;
    };

i need to make sure memory starts from 0x40000000,

--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
@@ -406,6 +406,7 @@

    memory {
        device_type = "memory";
+       linux,usable-memory = <0x40000000 0x38000000>;
        reg = <0x0 0x0>;
    };
--- a/nss_core.c
+++ b/nss_core.c
@@ -506,6 +506,7 @@ static void nss_get_ddr_info(struct nss_mmu_ddr_info *mmu, char *name)
    long cached;
    struct sysinfo vals;
    struct device_node *node;
+   const __be32 *ppp;

    si_meminfo(&vals);
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0))
@@ -528,7 +529,10 @@ static void nss_get_ddr_info(struct nss_mmu_ddr_info *mmu, char *name)
    if (node) {
        int isize = 0;
        int n_items;
-       const __be32 *ppp = (__be32 *)of_get_property(node, "reg", &n_items);
+       ppp = (__be32 *)of_get_property(node, "linux,usable-memory", &n_items);
+       if (ppp == NULL) {
+           ppp = (__be32 *)of_get_property(node, "reg", &n_items);
+       }

        n_items /= sizeof(ppp[0]);
        nss_info_always("node size %d # items %d\n",

with those patch i no longer get this log in qca-nss-drv: "incorrect memory info %px items %d" (caused by n_items=16) in kernel log before: OF: fdt: Ignoring memory range 0x41500000 - 0x42000000 after: OF: fdt: Ignoring memory range 0x40000000 - 0x42000000

no random reboots, no TRAP, no kernel panic related to qca-nss so far this 4 days.

i don't know for sure if those patch are the reason to be able to boot, since i have a lot of patches i got from linux-ipq-5.4-QSDK-12.0. let's see in a couple of days

[   16.098234] ssdk_switch_device_num_init[1160]:INFO:ess-switch dts node number: 1
[   16.098385] ssdk_dt_get_switch_node[967]:WARN:cannot find ess-switch node
[   16.104702] ssdk_plat_init start
[   16.111605] ssdk_driver_register[2586]:INFO:Register QCA PHY driver
[   16.420857] f1_phy_api_ops_init[1517]:INFO:qca probe f1 phy driver succeeded!
[   16.423906] regi_init[3635]:INFO:qca-ssdk module init succeeded!
[   16.539555] **********************************************************
[   16.539591] * Driver    :NSS GMAC Driver - RTL v(3.72a)
[   16.544974] * Version   :1.0
[   16.550197] * Copyright :Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
[   16.553225] **********************************************************
[   16.676642] nss-gmac 37000000.ethernet eth0: Initialized NSS GMAC0 mode: rgmii, interface eth0: (base = 0x37000000, irq = 40, PhyId = 1, PollLink = 1)
[   16.694390] nss-gmac 37400000.ethernet eth1: Initialized NSS GMAC2 mode: sgmii, interface eth1: (base = 0x37400000, irq = 41, PhyId = 0, PollLink = 0)
[   16.838141] nss_driver - fw of size 622784  bytes copied to load addr: 40000000, nss_id : 0
[   16.839021] nss_driver - Turbo No Support 0
[   16.845407] Supported Frequencies - 
[   16.845416] 110Mhz 
[   16.849469] 275Mhz 
[   16.853287] 550Mhz 
[   16.855108] 
[   16.859360] bf615180: set sdma c6863800
[   16.861090] bf615180: meminfo init succeed
[   16.868709] debugfs: Directory 'wifi_mesh' with parent 'strings' already present!
[   16.868749] debugfs: Directory 'wifi_mesh' with parent 'stats' already present!
[   16.903682] nss_driver - fw of size 221452  bytes copied to load addr: 40800000, nss_id : 1
[   16.903955] node size 1 # items 2
[   16.903972] bf6190c0: set sdma c6863400
[   16.910899] memory: 40000000 939524096 (avl 902029312) items 2 active_cores 2
[   16.910928] addr/size storage words 1 1 # words 2 in DTS, ddr size 1000000
[   16.910938] bf615180: nss core 0 booted successfully
[   16.914348] bf6190c0: meminfo init succeed
[   16.937286] debugfs: Directory 'dynamic_if' with parent 'stats' already present!
[   16.941063] debugfs: File 'n2h' in directory 'strings' already present!
[   16.948680] debugfs: File 'drv' in directory 'strings' already present!
[   16.954945] debugfs: File 'c2c_tx' in directory 'strings' already present!
[   16.961602] debugfs: File 'c2c_rx' in directory 'strings' already present!
[   16.972020] node size 1 # items 2
[   16.981168] memory: 40000000 939524096 (avl 902098944) items 2 active_cores 2
[   16.984654] addr/size storage words 1 1 # words 2 in DTS, ddr size 1000000
[   17.040175] QCA multicast snooping installed successfully
[   17.088857] nss_lag_init[352]:LAG Manager Installed
[   17.107930] <NSS-CRYPTO>:module loaded (platform - IPQ806x, build - Build_ID - 05/29/24, 15:59:35)
[   17.108218] <NSS-CRYPTO>:Register with NSS driver-
[   17.237315] <NSS-CRYPTO>:NSS Firmware initialized
[   17.237538] <NSS-CRYPTO>:probing engine - 0
[   17.241004] <NSS-CRYPTO>:Device Tree node found
[   17.245125] <NSS-CRYPTO>:init completed for Pipe Pair[0]
[   17.249608] <NSS-CRYPTO>:init completed for Pipe Pair[1]
[   17.278696] <NSS-CRYPTO>:probing engine - 1
[   17.278726] <NSS-CRYPTO>:Device Tree node found
[   17.281759] <NSS-CRYPTO>:init completed for Pipe Pair[0]
[   17.286314] <NSS-CRYPTO>:init completed for Pipe Pair[1]
[   17.305733] <NSS-CRYPTO>:probing engine - 2
[   17.305761] <NSS-CRYPTO>:Device Tree node found
[   17.308812] <NSS-CRYPTO>:init completed for Pipe Pair[0]
[   17.313245] <NSS-CRYPTO>:init completed for Pipe Pair[1]
[   17.335598] <NSS-CRYPTO>:probing engine - 3
[   17.335628] <NSS-CRYPTO>:Device Tree node found
[   17.338666] <NSS-CRYPTO>:init completed for Pipe Pair[0]
[   17.343111] <NSS-CRYPTO>:init completed for Pipe Pair[1]
qosmio commented 5 months ago

That's amazing! I was bashing my head over it for weeks, and then just sort of accepted that 11.1 was going to be as far as I'd go with IPQ806x. I had since moved onto IPQ807x since they're super cheap to come by now.

i need to make sure memory starts from 0x40000000,

--- a/arch/arm/boot/dts/qcom-ipq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi
@@ -406,6 +406,7 @@

  memory {
      device_type = "memory";
+     linux,usable-memory = <0x40000000 0x38000000>;
      reg = <0x0 0x0>;
  };

I knew it was something to do with the load address, didn't even think to try the same address as the one for IPQ807x. Makes sense since the UBI32 cores share similar codebase.

I have my r7800 in storage somewhere, I'll need to try it out.

Are any of your changes available in a repo somewhere?

regae commented 5 months ago

changes are in here

BrainSlayer commented 4 months ago

i tried it on the r7800. but the r7800 wont boot with that change. in addition. btw i can provide a 12.0 nss firmware for NSS.AK

regae commented 4 months ago

i tried it on the r7800. but the r7800 wont boot with that change. in addition. btw i can provide a 12.0 nss firmware for NSS.AK

did you try it in kernel 6.1+ or 5.15? did you change the mem size for r7800? in my testing with kernel 6.6 i had to use the old hack

as for 12.0.r2, i think its still using the old code, i haven't tried 12.0.r2 using newer version of nss-drv

BrainSlayer commented 4 months ago

i used 6.1. for testing. the "old hack" you mentioned was already in my tree. just adding the linux,usable-memory property leads to the kernel not booting anymore. if i remove it, it works again just curious that all devices except for the onhub device have a additional memory@0 node maybe its related to that

BrainSlayer commented 4 months ago

but i think the issue is easy to resolve 0x3e000000 length is for 1gb devices. the 7800 has just 512 mb ram

regae commented 4 months ago

but i think the issue is easy to resolve 0x3e000000 length is for 1gb devices. the 7800 has just 512 mb ram

so are you able to boot now?

BrainSlayer commented 4 months ago

still compiling :-)

BrainSlayer commented 4 months ago

works. running 12.0 firmware now on r7800

edit: 12.0 fw doesnt work. still crashes. will now try 11.4 edit: 10.4 doesnt work either. i will tomorrow connect my serial to a test device todo some more research. i hope i find a solution. but thank you for the hint with the addressing range

regae commented 4 months ago

maybe this could be a hint also, for stability in my case https://github.com/regae/openwrt/commit/e3b59d45163abc704ae3740b91f89405010e298e

BrainSlayer commented 4 months ago

thx. i will check tomorrow with serial attached whats going on and how i can solve it. i will report my findings

BrainSlayer commented 4 months ago

everything is working. i just had a typo in the dts. i tested 11.4, 11.5 and 12.0

qosmio commented 4 months ago

That's awesome news! I will take another stab at seeing if I can get a build going too for my R7800.

regae commented 4 months ago

i am just curious, could you try igs module? i think igs is not supported for AK. nss_dynamic_interface_alloc_node(NSS_DYNAMIC_INTERFACE_TYPE_IGS) returns nothing

qosmio commented 4 months ago

i am just curious, could you try igs module? i think igs is not supported for AK. nss_dynamic_interface_alloc_node(NSS_DYNAMIC_INTERFACE_TYPE_IGS) returns nothing

That's correct, all of the nss-hosts Makefiles for qca-nss-drv-qdisc-igs limit that to IPQ807x/6018/5018 and higher. You would have to use the older nss-ifb module for shaping.

regae commented 4 months ago

i am just curious, could you try igs module? i think igs is not supported for AK. nss_dynamic_interface_alloc_node(NSS_DYNAMIC_INTERFACE_TYPE_IGS) returns nothing

That's correct, all of the nss-hosts Makefiles for qca-nss-drv-qdisc-igs limit that to IPQ807x/6018/5018 and higher. You would have to use the older nss-ifb module for shaping.

fortunately this onhub i'm using is in dumb ap mode, good to know.