Closed mweinelt closed 6 years ago
We replaced kmod-ath10k-ct with kmod-ath10k which made the spamminess disappear.
It also reduced memory in-use from around 50% to 25% on an Archer C7 v2. 11s is still working.
nice, sounds almost too good to be true - and doesn't necessarily have to work for every ath10k device
@rotanid If it works it should work on every dualband AC device with a QCA9880. QCA9886 devices (Archer C58-C60) already use kmod-ath10k. We are planning to roll out this change as a test to our nodes based on Gluon master.
Some statistics: kmod-ath10k-ct
I have three more Archer C7 v2 to back up the memory usage reduction claims.
@mweinelt @blocktrron i'd say we apply this change in master, we still have enough time to revert it as the next release won't happen tomorrow. please open a pull request, thank you!
(btw. as ecsv asked on over at #1440: are your tests based on gluon master / openwrt?)
So sieht es bei einem Archer C2600 nach ein paar Tagen aus, immernoch alles sauber und aufgeräumt, allerdings sowohl mit ct Treiber als auch ct Firmware. Man beachte insbesondere diese Zeile, die wohl der OpenWRT 18.06 Upstream mitgebracht hat:
[ 30.381484] ath10k_pci 0001:01:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000
root@TL-ARCHER-C2600:~# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.54 (x@X) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7140+7-a7b2764879)) #0 SMP Thu Apr 12 05:50:02 2018
[ 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: TP-Link Archer C2600
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] On node 0 totalpages: 122880
[ 0.000000] free_area_init_node: node 0, pgdat c0b27b00, node_mem_map ddc39000
[ 0.000000] Normal zone: 960 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 122880 pages, LIFO batch:31
[ 0.000000] random: get_random_bytes called from start_kernel+0x88/0x40c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu @ddc01000 s29324 r8192 d23924 u61440
[ 0.000000] pcpu-alloc: s29324 r8192 d23924 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 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 root=mtd:rootfs rootfstype=squashfs
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 478384K/491520K available (4832K kernel code, 161K rwdata, 1280K rodata, 1024K init, 250K bss, 13136K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xde800000 - 0xff800000 ( 528 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xde000000 ( 480 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0208000 - 0xc07b80f0 (5825 kB)
[ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB)
[ 0.000000] .data : 0xc0b00000 - 0xc0b28400 ( 161 kB)
[ 0.000000] .bss : 0xc0b2a000 - 0xc0b68aec ( 251 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 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.000008] sched_clock: 32 bits at 6MHz, resolution 160ns, wraps every 343597383600ns
[ 0.000020] Switching to timer-based delay loop, resolution 160ns
[ 0.000237] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.50 BogoMIPS (lpj=62500)
[ 0.000258] pid_max: default: 32768 minimum: 301
[ 0.000379] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000396] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000960] CPU: Testing write buffer coherency: ok
[ 0.001689] Setting up static identity map for 0x42300000 - 0x42300060
[ 0.001841] Hierarchical SRCU implementation.
[ 0.002559] smp: Bringing up secondary CPUs ...
[ 0.004332] smp: Brought up 1 node, 2 CPUs
[ 0.004345] SMP: Total of 2 processors activated (25.00 BogoMIPS).
[ 0.004356] CPU: All CPU(s) started in SVC mode.
[ 0.015261] VFP support v0.3: implementor 51 architecture 64 part 4d variant 2 rev 0
[ 0.015419] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.015444] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.015559] pinctrl core: initialized pinctrl subsystem
[ 0.016540] NET: Registered protocol family 16
[ 0.016779] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.018115] cpuidle: using governor ladder
[ 0.018179] cpuidle: using governor menu
[ 0.038838] msm_bus_fabric_init_driver
[ 0.040230] usbcore: registered new interface driver usbfs
[ 0.040318] usbcore: registered new interface driver hub
[ 0.040417] usbcore: registered new device driver usb
[ 0.040474] pps_core: LinuxPPS API ver. 1 registered
[ 0.040487] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.040519] PTP clock support registered
[ 0.042373] clocksource: Switched to clocksource dg_timer
[ 0.045614] NET: Registered protocol family 2
[ 0.046203] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.046243] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.046296] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.046387] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.046412] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.046566] NET: Registered protocol family 1
[ 0.046613] PCI: CLS 0 bytes, default 64
[ 0.047730] No memory allocated for crashlog
[ 0.047964] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.053055] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.053070] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.061215] io scheduler noop registered
[ 0.061232] io scheduler deadline registered (default)
[ 0.062892] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda not found, using dummy regulator
[ 0.063014] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_phy not found, using dummy regulator
[ 0.063108] qcom-pcie 1b500000.pci: 1b500000.pci supply vdda_refclk not found, using dummy regulator
[ 0.063932] OF: PCI: host bridge /soc/pci@1b500000 ranges:
[ 0.063974] OF: PCI: IO 0x0fe00000..0x0fefffff -> 0x0fe00000
[ 0.063999] OF: PCI: MEM 0x08000000..0x0fdfffff -> 0x08000000
[ 0.171931] qcom-pcie 1b500000.pci: link up
[ 0.172108] qcom-pcie 1b500000.pci: PCI host bridge to bus 0000:00
[ 0.172132] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.172152] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff] (bus address [0xfe00000-0xfefffff])
[ 0.172167] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fdfffff]
[ 0.172183] pci_bus 0000:00: scanning bus
[ 0.172230] pci 0000:00:00.0: [17cb:0101] type 01 class 0x060400
[ 0.172323] pci 0000:00:00.0: calling pci_fixup_ide_bases+0x0/0x44
[ 0.172397] pci 0000:00:00.0: supports D1
[ 0.172407] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.172422] pci 0000:00:00.0: PME# disabled
[ 0.172789] pci_bus 0000:00: fixups for bus
[ 0.172811] PCI: bus0: Fast back to back transfers disabled
[ 0.172829] pci 0000:00:00.0: scanning [bus 01-ff] behind bridge, pass 0
[ 0.172953] pci_bus 0000:01: scanning bus
[ 0.173127] pci 0000:01:00.0: [168c:0040] type 00 class 0x028000
[ 0.173475] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.173943] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x44
[ 0.174586] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.174626] pci 0000:01:00.0: PME# disabled
[ 0.174961] pci_bus 0000:01: fixups for bus
[ 0.175031] PCI: bus1: Fast back to back transfers disabled
[ 0.175046] pci_bus 0000:01: bus scan returning with max=01
[ 0.175064] pci 0000:00:00.0: scanning [bus 01-ff] behind bridge, pass 1
[ 0.175080] pci_bus 0000:00: bus scan returning with max=ff
[ 0.175129] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x081fffff]
[ 0.175153] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x081fffff 64bit]
[ 0.175281] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 0.175306] pci 0000:00:00.0: bridge window [mem 0x08000000-0x081fffff]
[ 0.175342] pci 0000:00:00.0: calling qcom_pcie_fixup_final+0x0/0x94
[ 0.175537] pcieport 0000:00:00.0: assign IRQ: got 66
[ 0.175860] pcieport 0000:00:00.0: AER enabled with IRQ 34
[ 0.175981] pci 0000:01:00.0: calling qcom_pcie_fixup_final+0x0/0x94
[ 0.176426] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda not found, using dummy regulator
[ 0.176519] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_phy not found, using dummy regulator
[ 0.176623] qcom-pcie 1b700000.pci: 1b700000.pci supply vdda_refclk not found, using dummy regulator
[ 0.177421] OF: PCI: host bridge /soc/pci@1b700000 ranges:
[ 0.177457] OF: PCI: IO 0x31e00000..0x31efffff -> 0x31e00000
[ 0.177480] OF: PCI: MEM 0x2e000000..0x31dfffff -> 0x2e000000
[ 0.287390] qcom-pcie 1b700000.pci: link up
[ 0.287548] qcom-pcie 1b700000.pci: PCI host bridge to bus 0001:00
[ 0.287566] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 0.287580] pci_bus 0001:00: root bus resource [mem 0x2e000000-0x31dfffff]
[ 0.287593] pci_bus 0001:00: scanning bus
[ 0.287632] pci 0001:00:00.0: [17cb:0101] type 01 class 0x060400
[ 0.287707] pci 0001:00:00.0: calling pci_fixup_ide_bases+0x0/0x44
[ 0.287769] pci 0001:00:00.0: supports D1
[ 0.287778] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
[ 0.287792] pci 0001:00:00.0: PME# disabled
[ 0.288032] pci_bus 0001:00: fixups for bus
[ 0.288050] PCI: bus0: Fast back to back transfers disabled
[ 0.288067] pci 0001:00:00.0: scanning [bus 01-ff] behind bridge, pass 0
[ 0.288185] pci_bus 0001:01: scanning bus
[ 0.288370] pci 0001:01:00.0: [168c:0040] type 00 class 0x028000
[ 0.288741] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 0.289243] pci 0001:01:00.0: calling pci_fixup_ide_bases+0x0/0x44
[ 0.289936] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.289978] pci 0001:01:00.0: PME# disabled
[ 0.290321] pci_bus 0001:01: fixups for bus
[ 0.290397] PCI: bus1: Fast back to back transfers disabled
[ 0.290411] pci_bus 0001:01: bus scan returning with max=01
[ 0.290428] pci 0001:00:00.0: scanning [bus 01-ff] behind bridge, pass 1
[ 0.290445] pci_bus 0001:00: bus scan returning with max=ff
[ 0.290484] pci 0001:00:00.0: BAR 8: assigned [mem 0x2e000000-0x2e1fffff]
[ 0.290505] pci 0001:01:00.0: BAR 0: assigned [mem 0x2e000000-0x2e1fffff 64bit]
[ 0.290637] pci 0001:00:00.0: PCI bridge to [bus 01-ff]
[ 0.290657] pci 0001:00:00.0: bridge window [mem 0x2e000000-0x2e1fffff]
[ 0.290690] pci 0001:00:00.0: calling qcom_pcie_fixup_final+0x0/0x94
[ 0.290870] pcieport 0001:00:00.0: assign IRQ: got 99
[ 0.291166] pcieport 0001:00:00.0: AER enabled with IRQ 67
[ 0.291278] pci 0001:01:00.0: calling qcom_pcie_fixup_final+0x0/0x94
[ 0.293555] L2 @ QSB rate. Forcing new rate.
[ 0.293776] L2 @ 384000 KHz
[ 0.293945] CPU0 @ 800000 KHz
[ 0.293958] CPU1 @ QSB rate. Forcing new rate.
[ 0.294078] CPU1 @ 384000 KHz
[ 0.298016] gsbi 16300000.gsbi: GSBI port protocol: 6 crci: 0
[ 0.299400] gsbi 1a200000.gsbi: GSBI port protocol: 3 crci: 0
[ 0.300837] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.303598] msm_serial 16340000.serial: msm_serial: detected port #0
[ 0.303706] msm_serial 16340000.serial: uartclk = 7372800
[ 0.303787] 16340000.serial: ttyMSM0 at MMIO 0x16340000 (irq = 100, base_baud = 460800) is a MSM
[ 0.303822] msm_serial: console setup on port #0
[ 1.033202] console [ttyMSM0] enabled
[ 1.037904] msm_serial: driver initialized
[ 1.046550] loop: module loaded
[ 1.048054] spi_qup 1a280000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 1.049884] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[ 1.056160] 25 fixed-partitions partitions found on MTD device spi0.0
[ 1.060827] Creating 25 MTD partitions on "spi0.0":
[ 1.067239] 0x000000000000-0x000000020000 : "SBL1"
[ 1.072765] 0x000000020000-0x000000040000 : "MIBIB"
[ 1.077441] 0x000000040000-0x000000060000 : "SBL2"
[ 1.082231] 0x000000060000-0x000000090000 : "SBL3"
[ 1.087140] 0x000000090000-0x0000000a0000 : "DDRCONFIG"
[ 1.091854] 0x0000000a0000-0x0000000b0000 : "SSD"
[ 1.097055] 0x0000000b0000-0x0000000e0000 : "TZ"
[ 1.101858] 0x0000000e0000-0x000000100000 : "RPM"
[ 1.106620] 0x000000100000-0x000000170000 : "fs-uboot"
[ 1.111122] 0x000000170000-0x0000001b0000 : "uboot-env"
[ 1.116229] 0x0000001b0000-0x0000001f0000 : "radio"
[ 1.121297] 0x0000001f0000-0x0000005f0000 : "os-image"
[ 1.126247] 0x0000005f0000-0x000001ef0000 : "rootfs"
[ 1.131330] mtd: device 12 (rootfs) set to be root filesystem
[ 1.136579] 1 squashfs-split partitions found on MTD device rootfs
[ 1.141408] 0x0000008c0000-0x000001ef0000 : "rootfs_data"
[ 1.148842] 0x000001ef0000-0x000001ef0200 : "default-mac"
[ 1.154157] 0x000001ef0200-0x000001ef0400 : "pin"
[ 1.159408] 0x000001ef0400-0x000001f00000 : "product-info"
[ 1.164221] 0x000001f00000-0x000001f10000 : "partition-table"
[ 1.169483] 0x000001f10000-0x000001f20000 : "soft-version"
[ 1.175429] 0x000001f20000-0x000001f30000 : "support-list"
[ 1.180681] 0x000001f30000-0x000001f40000 : "profile"
[ 1.186284] 0x000001f40000-0x000001f50000 : "default-config"
[ 1.191258] 0x000001f50000-0x000001f90000 : "user-config"
[ 1.197118] 0x000001f90000-0x000001fd0000 : "qos-db"
[ 1.202309] 0x000001fd0000-0x000001fe0000 : "usb-config"
[ 1.207442] 0x000001fe0000-0x000002000000 : "log"
[ 1.214128] libphy: GPIO Bitbanged MDIO: probed
[ 1.240283] switch0: Atheros AR8337 rev. 2 switch registered on gpio-0
[ 2.139669] libphy: Fixed MDIO Bus: probed
[ 2.142201] ipq806x-gmac-dwmac 37200000.ethernet: PTP uses main clock
[ 2.143222] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 2.149188] ipq806x-gmac-dwmac 37200000.ethernet: Ring mode enabled
[ 2.154310] ipq806x-gmac-dwmac 37200000.ethernet: DMA HW capability register supported
[ 2.160302] ipq806x-gmac-dwmac 37200000.ethernet: Enhanced/Alternate descriptors
[ 2.168359] ipq806x-gmac-dwmac 37200000.ethernet: Enabled extended descriptors
[ 2.175919] ipq806x-gmac-dwmac 37200000.ethernet: RX Checksum Offload Engine supported
[ 2.182948] ipq806x-gmac-dwmac 37200000.ethernet: COE Type 2
[ 2.190766] ipq806x-gmac-dwmac 37200000.ethernet: TX Checksum insertion supported
[ 2.196660] ipq806x-gmac-dwmac 37200000.ethernet: Wake-Up On Lan supported
[ 2.204038] ipq806x-gmac-dwmac 37200000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.213344] ipq806x-gmac-dwmac 37400000.ethernet: PTP uses main clock
[ 2.219590] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 2.225760] ipq806x-gmac-dwmac 37400000.ethernet: Ring mode enabled
[ 2.230696] ipq806x-gmac-dwmac 37400000.ethernet: DMA HW capability register supported
[ 2.236869] ipq806x-gmac-dwmac 37400000.ethernet: Enhanced/Alternate descriptors
[ 2.244844] ipq806x-gmac-dwmac 37400000.ethernet: Enabled extended descriptors
[ 2.252311] ipq806x-gmac-dwmac 37400000.ethernet: RX Checksum Offload Engine supported
[ 2.259423] ipq806x-gmac-dwmac 37400000.ethernet: COE Type 2
[ 2.267326] ipq806x-gmac-dwmac 37400000.ethernet: TX Checksum insertion supported
[ 2.273136] ipq806x-gmac-dwmac 37400000.ethernet: Wake-Up On Lan supported
[ 2.280435] ipq806x-gmac-dwmac 37400000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 2.288252] i2c /dev entries driver
[ 2.297105] Calibration not found.
[ 2.299010] qcom-tsens 900000.thermal-sensor: tsens calibration failed
[ 2.304228] Speed bin: 0
[ 2.308981] PVS bin: 1
[ 2.313606] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[ 2.313949] cpuidle: enable-method property 'qcom,kpss-acc-v1' found operations
[ 2.321765] sdhci: Secure Digital Host Controller Interface driver
[ 2.328425] sdhci: Copyright(c) Pierre Ossman
[ 2.334675] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.341504] NET: Registered protocol family 10
[ 2.346943] Segment Routing with IPv6
[ 2.349124] NET: Registered protocol family 17
[ 2.352927] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.357610] 8021q: 802.1Q VLAN Support v1.8
[ 2.370347] Registering SWP/SWPB emulation handler
[ 2.391249] qcom_rpm 108000.rpm: RPM firmware 3.0.16777342
[ 2.405216] s1a: supplied by regulator-dummy
[ 2.405337] s1a: Bringing 0uV into 1050000-1050000uV
[ 2.408967] s1b: supplied by regulator-dummy
[ 2.413666] s1b: Bringing 0uV into 1050000-1050000uV
[ 2.418174] s2a: supplied by regulator-dummy
[ 2.422882] s2a: Bringing 0uV into 800000-800000uV
[ 2.427321] s2b: supplied by regulator-dummy
[ 2.431633] s2b: Bringing 0uV into 800000-800000uV
[ 2.442059] hctosys: unable to open rtc device (rtc0)
[ 2.449773] VFS: Mounted root (squashfs filesystem) readonly on device 31:12.
[ 2.450653] Freeing unused kernel memory: 1024K
[ 2.497576] random: fast init done
[ 3.147138] random: crng init done
[ 3.250359] init: Console is alive
[ 3.250485] init: - watchdog -
[ 5.189110] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.301954] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.305177] SCSI subsystem initialized
[ 5.311059] libata version 3.00 loaded.
[ 5.315590] ehci-platform: EHCI generic platform driver
[ 5.319560] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.320249] ohci-platform: OHCI generic platform driver
[ 5.459043] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 5.459139] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 5.463906] xhci-hcd xhci-hcd.0.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
[ 5.471103] xhci-hcd xhci-hcd.0.auto: irq 106, io mem 0x11000000
[ 5.480492] hub 1-0:1.0: USB hub found
[ 5.486100] hub 1-0:1.0: 1 port detected
[ 5.489679] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 5.493634] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 5.498849] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[ 5.506548] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.513405] hub 2-0:1.0: USB hub found
[ 5.521349] hub 2-0:1.0: 1 port detected
[ 5.525229] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 5.528976] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 5.534484] xhci-hcd xhci-hcd.1.auto: hcc params 0x0228f065 hci version 0x100 quirks 0x02010010
[ 5.541844] xhci-hcd xhci-hcd.1.auto: irq 107, io mem 0x10000000
[ 5.550971] hub 3-0:1.0: USB hub found
[ 5.556860] hub 3-0:1.0: 1 port detected
[ 5.560491] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 5.564449] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 5.569684] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 5.577366] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.584263] hub 4-0:1.0: USB hub found
[ 5.592182] hub 4-0:1.0: 1 port detected
[ 5.597402] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.601235] init: - preinit -
[ 7.808808] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[ 7.810063] dwmac1000: Master AXI performs any burst length
[ 7.817821] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[ 7.823352] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[ 7.833010] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 8.875273] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 8.875370] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 11.366097] jffs2: notice: (141) jffs2_build_xattr_subsystem: complete building xattr subsystem, 3 of xdatum (2 unchecked, 1 orphan) and 26 of xref (1 dead, 0 orphan) found.
[ 11.371608] mount_root: switching to jffs2 overlay
[ 11.411989] overlayfs: upper fs does not support tmpfile.
[ 11.430297] urandom-seed: Seeding with /etc/urandom.seed
[ 11.605242] procd: - early -
[ 11.605390] procd: - watchdog -
[ 12.241838] procd: - watchdog -
[ 12.242347] procd: - ubus -
[ 12.323790] procd: - init -
[ 12.668696] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.672127] tun: Universal TUN/TAP device driver, 1.6
[ 12.678030] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 12.978645] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 12.978692] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 12.999584] batman_adv: B.A.T.M.A.N. advanced 2018.1 (compatibility version 15) loaded
[ 13.003589] u32 classifier
[ 13.006379] input device check on
[ 13.009071] Actions configured
[ 13.014047] Mirror/redirect action on
[ 13.029477] Ebtables v2.0 registered
[ 13.030328] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 13.368975] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 13.583688] xt_time: kernel timezone is -0000
[ 13.593536] ath10k_pci 0000:01:00.0: assign IRQ: got 66
[ 13.593564] ath10k 4.13 driver, optimized for CT firmware, probing pci device: 0x40.
[ 13.594706] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 13.600442] ath10k_pci 0000:01:00.0: enabling bus mastering
[ 13.600984] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 13.778268] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0000:01:00.0.txt failed with error -2
[ 13.778303] ath10k_pci 0000:01:00.0: Falling back to user helper
[ 13.821621] firmware ath10k!fwcfg-pci-0000:01:00.0.txt: firmware_loading_store: map pages failed
[ 13.827690] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[ 13.829485] ath10k_pci 0000:01:00.0: Falling back to user helper
[ 13.890658] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[ 13.890935] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[ 13.898968] ath10k_pci 0000:01:00.0: Falling back to user helper
[ 13.942235] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[ 13.942554] ath10k_pci 0000:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[ 13.950572] ath10k_pci 0000:01:00.0: Falling back to user helper
[ 13.994325] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 15.030027] ath10k_pci 0000:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[ 15.030070] ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 1 testmode 0
[ 15.041392] ath10k_pci 0000:01:00.0: firmware ver 10.4-ct-9980-fW-011-cf79c7f api 5 features peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,cust-stats-CT crc32 2da81174
[ 15.104751] ath10k_pci 0000:01:00.0: board_file api 2 bmi_id 1:1 crc32 08fa09f2
[ 16.289736] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 16.289768] ath10k_pci 0000:01:00.0: msdu-desc: 2500 skid: 32
[ 16.365370] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0'
[ 16.366049] ath10k_pci 0000:01:00.0: wmi print 'free: 33100 iram: 16188 sram: 16448'
[ 16.512434] ath10k_pci 0000:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[ 16.636909] ath: EEPROM regdomain: 0x0
[ 16.636915] ath: EEPROM indicates default country code should be used
[ 16.636920] ath: doing EEPROM country->regdmn map search
[ 16.636928] ath: country maps to regdmn code: 0x3a
[ 16.636933] ath: Country alpha2 being used: US
[ 16.636936] ath: Regpair used: 0x3a
[ 16.640548] ath10k_pci 0001:01:00.0: assign IRQ: got 99
[ 16.640579] ath10k 4.13 driver, optimized for CT firmware, probing pci device: 0x40.
[ 16.643895] ath10k_pci 0001:01:00.0: enabling device (0140 -> 0142)
[ 16.647474] ath10k_pci 0001:01:00.0: enabling bus mastering
[ 16.648113] ath10k_pci 0001:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 16.835965] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/fwcfg-pci-0001:01:00.0.txt failed with error -2
[ 16.836004] ath10k_pci 0001:01:00.0: Falling back to user helper
[ 17.248214] firmware ath10k!fwcfg-pci-0001:01:00.0.txt: firmware_loading_store: map pages failed
[ 17.883186] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-5.bin failed with error -2
[ 17.883225] ath10k_pci 0001:01:00.0: Falling back to user helper
[ 17.929092] firmware ath10k!QCA99X0!hw2.0!ct-firmware-5.bin: firmware_loading_store: map pages failed
[ 17.929401] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/ct-firmware-2.bin failed with error -2
[ 17.937416] ath10k_pci 0001:01:00.0: Falling back to user helper
[ 17.979183] firmware ath10k!QCA99X0!hw2.0!ct-firmware-2.bin: firmware_loading_store: map pages failed
[ 17.979459] ath10k_pci 0001:01:00.0: Direct firmware load for ath10k/QCA99X0/hw2.0/firmware-6.bin failed with error -2
[ 17.987482] ath10k_pci 0001:01:00.0: Falling back to user helper
[ 18.034987] firmware ath10k!QCA99X0!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[ 18.035244] ath10k_pci 0001:01:00.0: qca99x0 hw2.0 target 0x01000000 chip_id 0x003b01ff sub 168c:0002
[ 18.042976] ath10k_pci 0001:01:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 1 testmode 0
[ 18.055061] ath10k_pci 0001:01:00.0: firmware ver 10.4-ct-9980-fW-011-cf79c7f api 5 features peer-flow-ctrl,txstatus-noack,wmi-10.x-CT,ratemask-CT,regdump-CT,txrate-CT,flush-all-CT,pingpong-CT,ch-regs-CT,nop-CT,set-special-CT,cust-stats-CT crc32 2da81174
[ 18.118431] ath10k_pci 0001:01:00.0: board_file api 2 bmi_id 1:2 crc32 08fa09f2
[ 19.306741] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 19.306768] ath10k_pci 0001:01:00.0: msdu-desc: 2500 skid: 32
[ 19.384268] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0'
[ 19.384962] ath10k_pci 0001:01:00.0: wmi print 'free: 33100 iram: 16188 sram: 16448'
[ 19.543749] ath10k_pci 0001:01:00.0: htt-ver 2.2 wmi-op 6 htt-op 4 cal pre-cal-file max-sta 32 raw 0 hwcrypto 1
[ 19.680671] ath: EEPROM regdomain: 0x0
[ 19.680682] ath: EEPROM indicates default country code should be used
[ 19.680690] ath: doing EEPROM country->regdmn map search
[ 19.680704] ath: country maps to regdmn code: 0x3a
[ 19.680715] ath: Country alpha2 being used: US
[ 19.680723] ath: Regpair used: 0x3a
[ 20.044540] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 25.556753] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 25.558011] dwmac1000: Master AXI performs any burst length
[ 25.565786] ipq806x-gmac-dwmac 37200000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 25.571229] ipq806x-gmac-dwmac 37200000.ethernet eth0: registered PTP clock
[ 25.586984] br-wan: port 1(eth0) entered blocking state
[ 25.587009] br-wan: port 1(eth0) entered disabled state
[ 25.592299] device eth0 entered promiscuous mode
[ 25.598840] br-wan: port 1(eth0) entered blocking state
[ 25.602205] br-wan: port 1(eth0) entered forwarding state
[ 25.607336] IPv6: ADDRCONF(NETDEV_UP): br-wan: link is not ready
[ 25.616693] IPv6: ADDRCONF(NETDEV_UP): local-node: link is not ready
[ 25.631614] Generic PHY fixed-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:01, irq=POLL)
[ 25.632312] dwmac1000: Master AXI performs any burst length
[ 25.640597] ipq806x-gmac-dwmac 37400000.ethernet eth1: IEEE 1588-2008 Advanced Timestamp supported
[ 25.646182] ipq806x-gmac-dwmac 37400000.ethernet eth1: registered PTP clock
[ 25.655097] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 25.668498] IPv6: ADDRCONF(NETDEV_CHANGE): local-node: link becomes ready
[ 25.671693] br-client: port 1(local-port) entered blocking state
[ 25.674620] br-client: port 1(local-port) entered disabled state
[ 25.680813] device local-port entered promiscuous mode
[ 25.693636] br-client: port 1(local-port) entered blocking state
[ 25.693664] br-client: port 1(local-port) entered forwarding state
[ 26.353678] br-client: port 1(local-port) entered disabled state
[ 26.354557] device local-port left promiscuous mode
[ 26.358823] br-client: port 1(local-port) entered disabled state
[ 26.395144] IPv6: ADDRCONF(NETDEV_UP): local-port: link is not ready
[ 26.401606] batman_adv: bat0: Adding interface: primary0
[ 26.401637] batman_adv: bat0: Interface activated: primary0
[ 26.494787] br-client: port 1(local-port) entered blocking state
[ 26.494816] br-client: port 1(local-port) entered disabled state
[ 26.500037] device local-port entered promiscuous mode
[ 26.520469] br-client: port 1(local-port) entered blocking state
[ 26.520495] br-client: port 1(local-port) entered forwarding state
[ 26.530717] 8021q: adding VLAN 0 to HW filter on device bat0
[ 26.534223] br-client: port 2(bat0) entered blocking state
[ 26.537342] br-client: port 2(bat0) entered disabled state
[ 26.572189] device bat0 entered promiscuous mode
[ 26.572284] br-client: port 2(bat0) entered blocking state
[ 26.575939] br-client: port 2(bat0) entered forwarding state
[ 26.585341] br-wan: port 1(eth0) entered disabled state
[ 26.603056] batman_adv: bat0: Interface deactivated: primary0
[ 26.605034] IPv6: ADDRCONF(NETDEV_UP): primary0: link is not ready
[ 26.608688] batman_adv: bat0: Interface activated: primary0
[ 26.632922] ipq806x-gmac-dwmac 37200000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 26.632977] br-wan: port 1(eth0) entered blocking state
[ 26.640802] br-wan: port 1(eth0) entered forwarding state
[ 26.660960] IPv6: ADDRCONF(NETDEV_CHANGE): br-wan: link becomes ready
[ 26.712767] ipq806x-gmac-dwmac 37400000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[ 26.712818] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 26.909090] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 26.909116] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 26.939870] ath: EEPROM regdomain: 0x8114
[ 26.939875] ath: EEPROM indicates we should expect a country code
[ 26.939879] ath: doing EEPROM country->regdmn map search
[ 26.939883] ath: country maps to regdmn code: 0x37
[ 26.939887] ath: Country alpha2 being used: DE
[ 26.939890] ath: Regpair used: 0x37
[ 26.939895] ath: regdomain 0x8114 dynamically updated by user
[ 26.939916] ath: EEPROM regdomain: 0x8114
[ 26.939919] ath: EEPROM indicates we should expect a country code
[ 26.939922] ath: doing EEPROM country->regdmn map search
[ 26.939925] ath: country maps to regdmn code: 0x37
[ 26.939928] ath: Country alpha2 being used: DE
[ 26.939931] ath: Regpair used: 0x37
[ 26.939935] ath: regdomain 0x8114 dynamically updated by user
[ 27.259111] batman_adv: bat0: Adding interface: eth1
[ 27.259134] batman_adv: bat0: The MTU of interface eth1 is too small (1500) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
[ 27.264709] batman_adv: bat0: Interface activated: eth1
[ 27.929272] batman_adv: bat0: Adding interface: mesh-vpn
[ 27.929297] batman_adv: bat0: The MTU of interface mesh-vpn is too small (1312) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
[ 27.935551] batman_adv: bat0: Interface activated: mesh-vpn
[ 28.779172] batman_adv: bat0: Changing gw mode from: off to: client
[ 28.779324] batman_adv: bat0: hop_penalty: Changing from: 30 to: 15
[ 28.784702] batman_adv: bat0: multicast_mode: Changing from: enabled to: disabled
[ 28.790623] batman_adv: bat0: orig_interval: Changing from: 1000 to: 5000
[ 29.382708] ath10k_pci 0001:01:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 29.382735] ath10k_pci 0001:01:00.0: msdu-desc: 2500 skid: 32
[ 29.460117] ath10k_pci 0001:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0'
[ 29.460814] ath10k_pci 0001:01:00.0: wmi print 'free: 33100 iram: 16188 sram: 16448'
[ 29.748207] IPv6: ADDRCONF(NETDEV_UP): mesh1: link is not ready
[ 30.381484] ath10k_pci 0001:01:00.0: NOTE: Firmware DBGLOG output disabled in debug_mask: 0x10000000
[ 31.083842] ath10k_pci 0000:01:00.0: 10.4 wmi init: vdevs: 16 peers: 48 tid: 96
[ 31.083869] ath10k_pci 0000:01:00.0: msdu-desc: 2500 skid: 32
[ 31.159244] ath10k_pci 0000:01:00.0: wmi print 'P 48/48 V 16 K 144 PH 176 T 186 msdu-desc: 2500 sw-crypt: 0'
[ 31.159905] ath10k_pci 0000:01:00.0: wmi print 'free: 33100 iram: 16188 sram: 16448'
[ 31.428405] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
[ 32.561055] IPv6: ADDRCONF(NETDEV_CHANGE): mesh1: link becomes ready
[ 34.210090] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
[ 34.407246] batman_adv: bat0: Adding interface: mesh1
[ 34.407275] batman_adv: bat0: Interface activated: mesh1
[ 34.615817] batman_adv: bat0: Adding interface: mesh0
[ 34.615846] batman_adv: bat0: Interface activated: mesh0
[ 36.692743] batman_adv: bat0: IGMP Querier appeared
[ 36.692781] batman_adv: bat0: MLD Querier appeared
[ 36.954040] NOHZ: local_softirq_pending 08
[ 118.873910] NOHZ: local_softirq_pending 08
[ 139.361140] NOHZ: local_softirq_pending 08
[ 200.794664] NOHZ: local_softirq_pending 08
[ 323.676150] NOHZ: local_softirq_pending 08
[ 344.157950] NOHZ: local_softirq_pending 08
[ 405.598623] NOHZ: local_softirq_pending 08
[ 548.960243] NOHZ: local_softirq_pending 08
[ 630.881595] NOHZ: local_softirq_pending 08
[ 692.322440] NOHZ: local_softirq_pending 08
root@TL-ARCHER-C2600:~#
Is the memory use just related to the ath10k-ct logging, which should be disabled by default in recent OpenWRT?
I personally don't own any ath10k devices, sorry.
For some reason we are using the -ct driver for ath10k in combination with a non-ct firmware. The logs below seem to result from ct modifications. Decoding them seems to be proprietary(?), as no tooling but a service is offered here: https://lists.openwrt.org/pipermail/openwrt-devel/2017-June/007877.html.
We should test if we can migrate to the stock kmod-ath10k driver instead.