Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync 9/8 #151

Merged
Merged

Commits on Aug 1, 2024

  1. generic: 6.6: update block nvmem patchset

    While discussions are still ongoing, update the block NVMEM provider
    patchset to the level submitted upstream to allow testing and validation.
    
    Link: https://patchwork.kernel.org/project/linux-block/list/?series=875202
    Signed-off-by: Daniel Golle <[email protected]>
    dangowrt committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    9778174 View commit details
    Browse the repository at this point in the history
  2. netifd: update to git HEAD

     68c8a4f system-linux: re-apply ethtool on phy attachment
     890929b wireless: add support for defining wifi interfaces via procd service data
     b57e40b wireless: use blobmsg_parse_attr
     7a6532f proto-shell: add proto property for skipping device config
     33ec3da CMake: bump the minimum required CMake version to 3.5
    
    Signed-off-by: Daniel Golle <[email protected]>
    dangowrt committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    ee8c05f View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. mediatek: refresh patches

    CI says patches need to be refreshed, so do so.
    
    Fixes: 6bb334c ("mediatek: fix u-boot env layout NVMEM definitions")
    Link: openwrt#16051
    Signed-off-by: Robert Marko <[email protected]>
    robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    a8ecd8a View commit details
    Browse the repository at this point in the history
  2. layerscape: switch to 6.6 kernel

    Let's start wide tests 6.6 kernel.
    
    Signed-off-by: Pawel Dembicki <[email protected]>
    Link: openwrt#16037
    Signed-off-by: Robert Marko <[email protected]>
    CHKDSK88 authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    633341c View commit details
    Browse the repository at this point in the history
  3. layerscape: remove kernel 6.1 support

    Layerscape was switched to 6.6 kernel. Now is time to remove 6.1
    support.
    
    Signed-off-by: Pawel Dembicki <[email protected]>
    Link: openwrt#16037
    Signed-off-by: Robert Marko <[email protected]>
    CHKDSK88 authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    f20987c View commit details
    Browse the repository at this point in the history
  4. generic: 6.6: backport upstream RealTek PHY patches

    Replace downstream RealTek PHY patches with backported ones.
    
    Signed-off-by: Álvaro Fernández Rojas <[email protected]>
    Noltari authored and dangowrt committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    ca44690 View commit details
    Browse the repository at this point in the history
  5. Revert "ath79: remove GPIO driver earlier registration hack"

    This reverts commit f444dea.
    
    It seems that some devices using GPIO WDT have really short WDT timeouts
    and when using module_platform_driver registration it happens too late
    and thus WDT will timeout and reset the board.
    
    So, for now lets return the postcore_initcall hack for now.
    
    Fixes: f444dea ("ath79: remove GPIO driver earlier registration hack")
    Signed-off-by: Joan Moreau <[email protected]>
    Link: openwrt#16035
    Signed-off-by: Robert Marko <[email protected]>
    grosjo authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    226af7a View commit details
    Browse the repository at this point in the history
  6. ipq40xx: Drop nand features from Chromium image

    This target doesn't actually use NAND.
    
    Signed-off-by: Brian Norris <[email protected]>
    Link: openwrt#16001
    Signed-off-by: Robert Marko <[email protected]>
    computersforpeace authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    d7f3a1c View commit details
    Browse the repository at this point in the history
  7. mvebu: 6.6: Backport Turris Omnia MCU patches from 6.11

    This backports patches
      dt-bindings: firmware: add cznic,turris-omnia-mcu binding
      platform: cznic: Add preliminary support for Turris Omnia MCU
      platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs
      platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup
      platform: cznic: turris-omnia-mcu: Add support for MCU watchdog
      platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG
      ARM: dts: turris-omnia: Add MCU system-controller node
      ARM: dts: turris-omnia: Add GPIO key node for front button
      platform: cznic: turris-omnia-mcu: Depend on OF
      platform: cznic: turris-omnia-mcu: Depend on WATCHDOG
      platform: cznic: turris-omnia-mcu: fix Kconfig dependencies
    that will be released in 6.11 into mvebu/patches-6.6.
    
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#13799
    Signed-off-by: Robert Marko <[email protected]>
    elkablo authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    35aa385 View commit details
    Browse the repository at this point in the history
  8. gpio-button-hotplug: add vendor button handling

    Handle the KEY_VENDOR key in gpio-button-hotplug driver. This is used
    by Turris Omnia.
    
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#13799
    Signed-off-by: Robert Marko <[email protected]>
    elkablo authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    cbc8d07 View commit details
    Browse the repository at this point in the history
  9. mvebu: Add kmod-turris-omnia-mcu

    Add support for the MCU driver on CZ.NIC's Turris Omnia. This adds
    the ability to do a true board poweroff, and to configure various
    features (for example the user may configure that after poweroff, the
    router should automatically wake up at a specific time).
    
    Signed-off-by: Marek Mojík <[email protected]>
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#13799
    Signed-off-by: Robert Marko <[email protected]>
    lixkel authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    9129a67 View commit details
    Browse the repository at this point in the history
  10. firmware: Add CZ.NIC Turris Omnia MCU firmware

    Add a new package, omnia-mcu-firmware, containing firmware binaries for
    the microcontroller on the Turris Omnia router.
    
    Signed-off-by: Marek Mojík <[email protected]>
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#13799
    Signed-off-by: Robert Marko <[email protected]>
    lixkel authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    56706d3 View commit details
    Browse the repository at this point in the history
  11. utils: Add the omnia-mcutool utility

    Add a new utility, omnia-mcutool, which main purpose is to upgrade the
    firmware on the microcontroller on the Turris Omnia router. Depends on
    omnia-mcu-firmware, and the upgrade process is pretty simple:
    
      omnia-mcutool --upgrade
    
    Besides firmware upgrade, the utility can be used to show and configure
    various firmware settings.
    
    Signed-off-by: Marek Mojík <[email protected]>
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#13799
    Signed-off-by: Robert Marko <[email protected]>
    lixkel authored and robimarko committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    17ecd37 View commit details
    Browse the repository at this point in the history
  12. hostapd: fix SAE H2E security vulnerability

    This patch backports fixes for a security vulnerability impacting the
    hostapd implementation of SAE H2E.
    
    As upgrading hostapd would require more testing, the second mitigation
    step which involves backporting several patches was adopted as outlined
    in the official advisory[1].
    
    An explanation of the impact of the vulnerability is provided from the
    advisory[1]:
    
    This vulnerability allows the attacker to downgrade the negotiated group
    to another enabled group if both the AP and STA have enabled SAE H2E and
    multiple groups. It should be noted that the H2E option is not enabled
    by default and the attack is not applicable to the default option, i.e.,
    hunting-and-pecking, since it does not have any downgrade protection for
    group negotiation. In addition, the default configuration for enabled
    SAE groups in hostapd is to enable only a single group, so the
    vulnerability is not applicable unless hostapd has been explicitly
    configured to enable more groups for SAE.
    
    [1]: https://w1.fi/security/2024-2/sae-h2h-and-incomplete-downgrade-protection-for-group-negotiation.txt
    
    Signed-off-by: Rany Hany <[email protected]>
    Link: openwrt#16042
    Signed-off-by: Hauke Mehrtens <[email protected]>
    rany2 authored and hauke committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    db7f70f View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. zynq: use kernel 6.6 by default

    Switch to Linux kernel version 6.6.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#16030
    Signed-off-by: Robert Marko <[email protected]>
    namiltd authored and robimarko committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    6e122b0 View commit details
    Browse the repository at this point in the history
  2. zynq: drop 6.1 support

    Drop config for Linux 6.1.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#16030
    Signed-off-by: Robert Marko <[email protected]>
    namiltd authored and robimarko committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d8f64fe View commit details
    Browse the repository at this point in the history
  3. kernel: add missing symbol

    Enabling KERNEL_DEBUG_INFO_BTF and KERNEL_KPROBE_EVENTS on 6.6 exposes
    CONFIG_PROBE_EVENTS_BTF_ARGS in the kernel config. Add a build option
    for it to fix build failures with KERNEL_DEBUG_INFO_BTF and
    KERNEL_KPROBE_EVENTS enabled on targets using the 6.6 kernel.
    
    Signed-off-by: Stijn Tintel <[email protected]>
    stintel committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    d604b26 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. kernel: rtl8367: use realtek,extif property

    Use realtek,extif property instead of realtek,extif0 and realtek,extif1
    by extending it with the cpu_port parameter.
    The extif number is automatically calculated based on cpu_port.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#15749
    Signed-off-by: Hauke Mehrtens <[email protected]>
    namiltd authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    343f4f3 View commit details
    Browse the repository at this point in the history
  2. kernel: rtl8367b: remove rlvid analysis

    Remove the rlvid analysis because for the rtl8367b family chips supported
    by the driver (rtl8367rb and rtl8367r-vb), rlvid is always equal to 1.
    So the code for rlvid equal to 0 is completely unnecessary.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#15749
    Signed-off-by: Hauke Mehrtens <[email protected]>
    namiltd authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    c30e0eb View commit details
    Browse the repository at this point in the history
  3. kernel: rtl8367b: store chip in smi->rtl8367b_chip

    Store the chip type in smi->rtl8367b_chip
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#15749
    Signed-off-by: Hauke Mehrtens <[email protected]>
    namiltd authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    34976c7 View commit details
    Browse the repository at this point in the history
  4. kernel: rtl8367b: use realtek,extif property

    Use realtek,extif property instead of realtek,extif0 to extif2
    by extending it with the cpu_port parameter.
    The extif number is automatically calculated based on cpu_port.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#15749
    Signed-off-by: Hauke Mehrtens <[email protected]>
    namiltd authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    c0e50eb View commit details
    Browse the repository at this point in the history
  5. kernel: Add kmod-mfd-test

    6.6.44 introduced breakage complaining about missing mtd_test.ko
    for some targets.
    
    Signed-off-by: John Audia <[email protected]>
    Link: openwrt#16061
    Signed-off-by: Hauke Mehrtens <[email protected]>
    graysky2 authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    26df88a View commit details
    Browse the repository at this point in the history
  6. kernel: bump 6.6 to 6.6.44

    Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.44
    
    Removed upstreamed:
    	rockchip/patches-6.6/044-v6.11-arm64-dts-rockchip-Add-sdmmc-related-properties-on-r.patch[1]
    	rockchip/patches-6.6/045-v6.11-arm64-dts-rockchip-Add-pinctrl-for-UART0-to-rk3308-r.patch[2]
    	rockchip/patches-6.6/046-v6.11-arm64-dts-rockchip-Add-mdio-and-ethernet-phy-nodes-t.patch[3]
    	rockchip/patches-6.6/048-v6.11-arm64-dts-rockchip-Update-WIFi-BT-related-nodes-on-r.patch[4]
    	rockchip/patches-6.6/310-PCI-dw-rockchip-Fix-initial-PERST-GPIO-value.patch[5]
    
    Manually rebased:
    	bcm27xx/patches-6.6/950-0526-mfd-Add-rp1-driver.patch
    	ramips/patches-6.6/810-uvc-add-iPassion-iP2970-support.patch
    
    All other patches automatically rebased.
    
    1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=96155dc8c99e76a0e58932ca5f88148a37af3617
    2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=30ee9e5ecc5fd6854a1690ab11e6e6b4851ac9ab
    3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=0c4c1b7daf23bccf0da5b65b3cd5b32bfa5a5af4
    4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=a86a5685675834732789df202e73153db59d8dcc
    5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.44&id=a30211c6704899de0616ac0f97601122d899c86d
    
    Build system: x86/64
    Build-tested: x86/64/AMD Cezanne
    Run-tested: x86/64/AMD Cezanne
    
    Signed-off-by: John Audia <[email protected]>
    Link: openwrt#16061
    Signed-off-by: Hauke Mehrtens <[email protected]>
    graysky2 authored and hauke committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    b733b6a View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. fix bss transition firmware crash

    fixes: ath11k: fix peer addition/deletion error on sta band migration: d673cb6fe6c03b2be157cc6c5db40481828d282d
    
    the fix for sta band migration raises a new bug which causes the wifi
    firmware to crash if you switch between 2 bssid's on the same band. this is
    usually caused since the firmware observes 2 stations with the same
    bss
    
    Signed-off-by: Sebastian Gottschall <[email protected]>
    BrainSlayer committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    99bbaf2 View commit details
    Browse the repository at this point in the history
  2. utils: omnia-mcutool: Bump to 0.3-rc3

    Bump omnia-mcutool to 0.3-rc3:
    
    * The `--upgrade` option will now work even if MCU is in bootloader (for
      example if previous upgrade was aborted).
    
    * On boards with GD32 MCUs, `omnia-mcutool` will now refuse to upgrade
      application firmware to version lower than 4.1 if bootloader version
      is 2.0 (the original for first batch of boards with GD32 MCUs) since
      these versions of application and bootloader are not compatible.
    
      If user already upgraded to such a combination, an upgrade of
      bootloader firmware is required.
    
      The `--upgrade` option will inform about this and will automatically
      upgrade bootloader firmware if the `--force` option is given.
    
      (Note that version 4.1 of the MCU firmware was will be released soon,
       once it is properly tested.)
    
    * Various other improvements.
    
    Signed-off-by: Marek Behún <[email protected]>
    Link: openwrt#16086
    Signed-off-by: Robert Marko <[email protected]>
    elkablo authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    38f2d26 View commit details
    Browse the repository at this point in the history
  3. kernel: Add kmod-mfd-test for kernel 6.6 only

    Compilation of mtd_test.ko should be added only for kernel 6.6 or above.
    
    Fixes 26df88a ("kernel: Add kmod-mfd-test")
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#16085
    Signed-off-by: Robert Marko <[email protected]>
    namiltd authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    ce6145b View commit details
    Browse the repository at this point in the history
  4. generic: 6.6: add backported bmips CBR patches

    Move v6.11 backported bmips CBR patches from bmips target to generic.
    
    Signed-off-by: Álvaro Fernández Rojas <[email protected]>
    Noltari committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    c11adb4 View commit details
    Browse the repository at this point in the history
  5. base-files: improve Dell EMC Edge620 (x86) product support

    This adds auto-configuration of network ports on Dell EMC Edge620 (x86) product.
    It is similar in specs/features to some of the Sophos x86-based appliances, but:
    
    1. Serial console terminal is built in and requires just the micro-USB cable
    2. Comes with both MMC (16Gb) and SSD (256Gb) installed
    3. Comes with 6 ethernet ports all 6 are functional when no SFP is used
    4. Comes with two SFP cages and not one, like some of revision 3 Sophos products
    5. Unlike Sophos devices, there are no non-wireless models of Edge 620,
       it comes with Qualcomm Atheros QCA9880 radio
    
    These devices can be now found both second-hand and new at online marketplaces below
    (sometimes well below) US $100, I believe they make great candidates for running OpenWrt.
    
    The ethernet network ports on the case are marked GE1 thru to GE6 with the
    following mapping once booted into OpenWrt:
    
    ```
    GE1: eth2: pci0000:00/0000:00:0b.0/0000:02:00.2
    GE2: eth3: pci0000:00/0000:00:0b.0/0000:02:00.3
    GE3: eth0: pci0000:00/0000:00:0b.0/0000:02:00.0
    GE4: eth1: pci0000:00/0000:00:0b.0/0000:02:00.1
    GE5: eth7: pci0000:00/0000:00:17.0/0000:07:00.1
    GE6: eth6: pci0000:00/0000:00:17.0/0000:07:00.0
    ```
    
    Dell's instructions for [standard configuration](https://infohub.delltechnologies.com/en-us/l/dell-emc-edge-620-advanced-activation-guide/dell-emc-sd-wan-edge-620-standard-configuration/)
    recommend using GE3, GE4, GE5, or GE6 for WAN, I've selected the GE6 as the sole
    WAN port under OpenWrt with the rest of ethernet ports assigned to LAN.
    
    Please merge before 24.xx is forked and if possible, cherry-pick for 23.05
    if there's no ETA for 24.xx forking.
    
    PS. @Hurricos I'm struggling with ixgbe mappings on Sophos devices which use
    very similar hardware to Dell EMC, so even tho I know the sys paths for ethernet ports,
    I'd prefer to do a separate commit to properly map ethernet ports to match the case markings
    for this device at some point later.
    
    Signed-off-by: Stan Grishin <[email protected]>
    stangri authored and aparcar committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    aeb9028 View commit details
    Browse the repository at this point in the history
  6. apk: switch to index-trust branch

    Initially APK would sign packages and package index and verify
    signatures individually. With the latest change, all packages inside a
    trusted index are automatically trusted.
    
    This is important within the OpenWrt eco-system since signing the index
    happens on another machine than the package creation.
    
    Signed-off-by: Paul Spooren <[email protected]>
    aparcar committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    ef8c1ad View commit details
    Browse the repository at this point in the history
  7. bcm27xx: update to latest RPi patches

    The patches were generated from the RPi repo with the following command:
    git format-patch v6.6.44..rpi-6.6.y
    
    Signed-off-by: Álvaro Fernández Rojas <[email protected]>
    Noltari committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    0171157 View commit details
    Browse the repository at this point in the history
  8. mpc85xx: switch to kernel 6.6

    It's time for wide tests.
    
    Signed-off-by: Pawel Dembicki <[email protected]>
    Link: openwrt#16087
    Signed-off-by: Robert Marko <[email protected]>
    CHKDSK88 authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    ed4b434 View commit details
    Browse the repository at this point in the history
  9. mpc85xx: remove 6.1 kernel support

    mpc85xx was switched to 6.6. We can remove 6.1 support now.
    
    Signed-off-by: Pawel Dembicki <[email protected]>
    Link: openwrt#16087
    Signed-off-by: Robert Marko <[email protected]>
    CHKDSK88 authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    eda9509 View commit details
    Browse the repository at this point in the history
  10. mvebu: GL-MV1000: add custom boot script

    This allows booting from internal eMMC or SD card just changing the
    U-Boot mmc_dev variable.
    In particular, setting mmc_dev to 1 will result in booting from the SD card.
    Setting the variable to 0 will result in internal eMMC boot (the default).
    Should the variable be unset or an error condition occur while reading
    from SD card, internal MMC booting will be tried.
    
    Signed-off-by: Enrico Mioso <[email protected]>
    mrkiko authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    2aa760a View commit details
    Browse the repository at this point in the history
  11. mvebu: enable CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE=y config option

    Enable the CONFIG_MTD_SPI_NOR_USE_VARIABLE_ERASE kernel option to allow for
    U-Boot environment writing. This might be hiding a problem somewhere else,
    since the w25q128fw chip supports 32K erases, still this change makes it
    much easier to switch the GL-MV1000 boot media without an UART cable
    connection.
    
    Thanks to @robimarko and @hacks for the precious hints and suggesting a
    better approach.
    
    Signed-off-by: Enrico Mioso <[email protected]>
    mrkiko authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    2d71202 View commit details
    Browse the repository at this point in the history
  12. mvebu: GL-MV1000: let u-boot-env be writable again

    Allows easily changing boot media for GL-MV1000.
    
    Signed-off-by: Enrico Mioso <[email protected]>
    mrkiko authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    769c933 View commit details
    Browse the repository at this point in the history
  13. kernel: switch crc32 implementation back to default

    Commit ec88579 switched the crc32 implementation from default to
    byte-at-a-time algorithm, which runs slower but consumes less memory.
    A decade has passed, and we have already abandoned targets that had
    small memory, so switch it back to default for faster speed.
    
    Signed-off-by: Qingfang Deng <[email protected]>
    LGA1150 authored and robimarko committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    e5dc16e View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. kernel: bump 6.1 to 6.1.103

    https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.103
    
    Removed upstreamed:
    generic/backport-6.1/412-v6.3-01-spidev-Add-Silicon-Labs-EM3581-device-compatible.patch
    
    See: See: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.103&id=c6c419ed94788ca13334b4acd50167b7f6d00a06
    
    All other patches automatically rebased.
    
    Build system: bcm4908 bcm53xx
    
    Signed-off-by: Zxl hhyccc <[email protected]>
    Link: openwrt#16093
    Signed-off-by: Robert Marko <[email protected]>
    zxlhhyccc authored and robimarko committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    88068dd View commit details
    Browse the repository at this point in the history
  2. kernel: mtdtests: update for 6.1 as well

    6.1.103 and 6.6.44 introduced breakage complaining about missing mtd_test.ko
    for some targets.
    
    Signed-off-by: Zxl hhyccc <[email protected]>
    Link: openwrt#16093
    Signed-off-by: Robert Marko <[email protected]>
    zxlhhyccc authored and robimarko committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    58a8b88 View commit details
    Browse the repository at this point in the history
  3. archs38: enable features rootfs-part

    target/linux/archs38/image/Makefile calls gen_axs10x_sdcard_img.sh
    with $(CONFIG_TARGET_ROOTFS_PARTSIZE).
    Make sure a rootfs partition is built and usable.
    
    Signed-off-by: Thomas Weißschuh <[email protected]>
    Link: openwrt#16098
    Signed-off-by: Robert Marko <[email protected]>
    t-8ch authored and robimarko committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    7993a52 View commit details
    Browse the repository at this point in the history
  4. libunistring: update to 1.2

    Release notes:
      https://git.savannah.gnu.org/gitweb/?p=libunistring.git;a=blob_plain;f=NEWS
    
    Signed-off-by: Aleksey Vasilenko <[email protected]>
    Link: openwrt#16065
    Signed-off-by: Robert Marko <[email protected]>
    krant authored and robimarko committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    f8ed299 View commit details
    Browse the repository at this point in the history
  5. bcm27xx: align and enable hwmon/thermal symbols

    - Enable CONFIG_HWMON and CONFIG_THERMAL_HWMON on all subtargets.
    - Drop kmod-thermal from bcm2712.
    - Add CONFIG_SENSORS_RASPBERRYPI_HWMON generic symbol.
    
    Signed-off-by: Álvaro Fernández Rojas <[email protected]>
    Noltari committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    f98f953 View commit details
    Browse the repository at this point in the history
  6. bmips: refactor Inteno XG6846 device tree

    Refactor Inteno XG6846 device tree to be in line with other bmips devices.
    Also expose USB LED automatically.
    
    Signed-off-by: Álvaro Fernández Rojas <[email protected]>
    Noltari committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    21a5b3b View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. toolchain: mold: Update to 2.33.0

    Update mold to 2.33.0
    Link: https://github.com/rui314/mold/releases/tag/v2.33.0
    
    Signed-off-by: Carsten Schuette <[email protected]>
    Link: openwrt#16048
    Signed-off-by: Robert Marko <[email protected]>
    schuettecarsten authored and robimarko committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    06b81f5 View commit details
    Browse the repository at this point in the history
  2. kernel: rtl8367b: restore rlvid definitions

    Restore RTL8367B_CHIP_VER_RLVID_SHIFT and RTL8367B_CHIP_VER_RLVID_MASK definitions
    removed in commit c30e0eb.
    
    Signed-off-by: Mieczyslaw Nalewaj <[email protected]>
    Link: openwrt#16108
    Signed-off-by: Hauke Mehrtens <[email protected]>
    namiltd authored and hauke committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    48d9a0b View commit details
    Browse the repository at this point in the history
  3. mediatek: increase phy assert time for jdcloud re-cp-03

    According to RTL8221B's datasheet, the PHY requires at least 10ms
    for assert and 68ms (recommended) for de-assert. So increase the
    assert/de-assert time to 15ms and 68ms respectively.
    
    Fixes: c0c3234 ("mediatek: add support for JDCloud RE-CP-03")
    Signed-off-by: Tianling Shen <[email protected]>
    Link: openwrt#16106
    Signed-off-by: Hauke Mehrtens <[email protected]>
    1715173329 authored and hauke committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    d1954aa View commit details
    Browse the repository at this point in the history
  4. rockchip: rock 3a: fix image check failed

    Fixes the image check failed on system upgrade
      "Image check failed:
       upgrade: Device radxa,rock3a not supported by this image
       upgrade: Supported devices: radxa,rock-3a"
    
    Signed-off-by: Tomas Lara <[email protected]>
    Link: openwrt#16064
    Signed-off-by: Hauke Mehrtens <[email protected]>
    TLarg authored and hauke committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    3ac9c4a View commit details
    Browse the repository at this point in the history
  5. qualcommax: ipq60xx: add support for Cambium Networks XE3-4

    Cambium Networks XE3-4 is a tri-radio Wi-Fi 6/6E 4×4/2×2 AP.
    
    Hardware:
        Model:    Cambium Networks XE3-4
        CPU:      IPQ6010/AP-CP01-C3, SoC Version: 1.0 @ 800 MHz
        Memory:   1 GiB
        Flash:    512 MiB Macronix MX30UF2G18AC + W25Q128FW
        Ethernet: 1x 1 GbE   (QCA8072)
                  1x 2.5 GbE (QCA8081)
        Buttons:  1x Reset
        Serial:   TX, RX, GND
        Baudrate: 115200
        Radios:   Qualcomm Atheros IPQ6018 802.11ax - 2x2 - 2GHz
                  Qualcomm Atheros IPQ6018 802.11ax - 2x2 - 5GHz
                  Qualcomm Atheros QCN9074 802.11ax - 4x4 - 5GHz or 6GHz
                  BLE 4.1
        Power:    32.0W 802.3bt5 PoE++
                  25.5W 802.3at with USB, BT disabled
        Size:     215mm x 215mm
        Ports:    1x USB 2.0
        Antenna:  6 GHz: 6.29 dBi, Omni    30 dBm
                  5 GHz: 6.12 dBi, Omni    31 dBm
                  2.4 GHz: 4.85 dBi, Omni  29 dBm
        LEDs:     Multi-color status LEDs
        Mounting: Wall, ceiling or T-bar
    
    Installation: Serial connection
    1. Open the AP to get access to the board. Connect RX, TX and GND.
    2. Power on the AP, and short the CS pin of the SPI flash with
       one of the APs GND pins.
    3. Transfer the initramfs image with TFTP
       (Default server IP is 192.168.0.120)
       # tftpboot factory.ubi
    4. Flash the rootfs partition
       # flash rootfs
    5. Reboot the AP
       # reset
    
    Signed-off-by: Kristian Skramstad <[email protected]>
    Link: openwrt#15633
    Signed-off-by: Robert Marko <[email protected]>
    skramstad authored and robimarko committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    d62648d View commit details
    Browse the repository at this point in the history
  6. tools: firmware-utils: update to Git HEAD (2024-08-09)

    26c7f05 nec-usbatermfw: add tool for NEC "USB ATERM" format
    
    Signed-off-by: Hauke Mehrtens <[email protected]>
    hauke committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    7455353 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. feeds: Add nss-packages repo

    feeds: Switch to fork that requires nss qdisc
    
    Without it, NSS based SQM doesn't work.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    1169bdb View commit details
    Browse the repository at this point in the history
  2. nat46: patches for QCA NSS ECM

    Signed-off-by: bitthief <[email protected]>
    
    package: kernel: nat46: add kernel 6.1 support
    
    Signed-off-by: bitthief <[email protected]>
    Co-Developed-by: Sean Khan <[email protected]>
    bitthief authored and qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b66c8bd View commit details
    Browse the repository at this point in the history
  3. package: kernel: nat46: use standard build functions

    Instead of 'install', 'cp', use standard build functions
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b8320d4 View commit details
    Browse the repository at this point in the history
  4. iproute2: add NSS QDISC support

    Signed-off-by: bitthief <[email protected]>
    Co-Developed-by: Sean Khan <[email protected]>
    bitthief authored and qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    60b5206 View commit details
    Browse the repository at this point in the history
  5. qualcommax: dts: add NSS nodes to IPQ807x devices

    Signed-off-by: bitthief <[email protected]>
    
    qualcommax: dts: provide label for NSS reserved-memory
    
    Provide a label for the NSS reserved-memory node so it can be easily passed
    to the NSS DRV instead of having to global match by name which is fragile.
    
    Signed-off-by: bitthief <[email protected]>
    bitthief authored and qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    73636ee View commit details
    Browse the repository at this point in the history
  6. qualcommax: net: QCA NSS igs support

    Signed-off-by: bitthief <[email protected]>
    bitthief authored and qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    a7b82b0 View commit details
    Browse the repository at this point in the history
  7. qualcommax: net: QCA NSS qdisc ifb support

    Signed-off-by: bitthief <[email protected]>
    bitthief authored and qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3cab3d1 View commit details
    Browse the repository at this point in the history
  8. ath11k-nss: Add NSS WiFi feature

    Attempt at getting NSS WiFi Offload working on kernel 6.1 (backport 6.5)
    
    These patches are a mix of @Ansuel branch for 5.15 (ipq807x-5.15-ecm-wifi)
    Ansuel@3ecaee7
    
    And QUIC's upstream NSS patches on [NHSS.QSDK.12.4.5.r3](https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open.git)
    For the actual package setup (Makfiles,ath.mk) Qualcomm's branch is under 'wlan-open/NHSS.QSDK.12.4.5.r3'
    
    Looks like they've swtiched to using backports 6.5-rc3, and figured to
    use a mix of their patches on 'NHSS.QSDK.12.4.5.r3' (nss)
    'wlan-open/NHSS.QSDK.12.4.5.r3' (syncing with openwrt main).
    
    Booting with "nss_offload=1 frame_mode=2"
    
    Logs show:
    [   16.606282] WARNING: CPU: 2 PID: 3524 at ath11k_nss_tx+0x1d4/0x1e0 [ath11k]
    [   16.611060] Modules linked in: ecm pppoe ppp_async nft_fib_inet nf_flow_table_inet ath11k_ahb ath11k pptp pppox ppp_generic nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_masq nft_log nft_limit nft_hash nft_fullcone nft_flow_offload nft_fib_ipv6 nft_fib_ipv4 nft_fib nft_ct nft_compat nft_chain_nat nf_tables nf_nat nf_flow_table nf_conntrack_netlink nf_conntrack mac80211 iptable_mangle iptable_filter ipt_REJECT ipt_ECN ip_tables cfg80211 xt_time xt_tcpudp xt_tcpmss xt_statistic xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY x_tables wireguard slhc sch_cake qrtr_smd qrtr qmi_helpers nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv4 mhi libcrc32c libchacha20poly1305 compat sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact qca_nss_cfi_cryptoapi
    [   16.611215]  qca_nss_crypto qca_nss_qdisc qca_nss_wifi_meshmgr qca_nss_gre ledtrig_usbport qca_mcs bonding ip6_gre ip_gre gre ifb nat46 nf_defrag_ipv6 sit qca_nss_drv ip6_tunnel tunnel6 tunnel4 nls_utf8 nls_iso8859_1 nls_cp437 vxlan seqiv michael_mic uas usb_storage leds_gpio xhci_plat_hcd xhci_pci xhci_hcd dwc3 dwc3_qcom qca_nss_dp qca_ssdk ramoops reed_solomon pstore gpio_button_hotplug ext4 mbcache jbd2 aquantia hwmon crc_ccitt crc32c_generic
    [   16.721723] CPU: 2 PID: 3524 Comm: hostapd Not tainted 6.1.68 #0
    [   16.743958] Hardware name: Dynalink DL-WRX36 (DT)
    [   16.750032] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [   16.754635] pc : ath11k_nss_tx+0x1d4/0x1e0 [ath11k]
    [   16.761403] lr : ath11k_nss_tx+0x1bc/0x1e0 [ath11k]
    [   16.766264] sp : ffffffc00b1db790
    [   16.771122] x29: ffffffc00b1db790 x28: 0000000000000038 x27: 0000000000000000
    [   16.774602] x26: ffffff8006dd7430 x25: ffffff8007ea9dc8 x24: 0000000060000012
    [   16.781719] x23: ffffff8005c6a060 x22: ffffff8005c6a060 x21: ffffff80072f12d8
    [   16.788837] x20: ffffff8007ea9dc8 x19: ffffff8006082800 x18: 0000000000000005
    [   16.795957] x17: 6976312065707974 x16: 207061636e652062 x15: 6b73207874207373
    [   16.803075] x14: ffffffc00a0dd518 x13: 000000000000018b x12: 000000000000018b
    [   16.810192] x11: 00000000ffffffea x10: ffffffc00a135518 x9 : 0000000000000001
    [   16.817310] x8 : 0000000000000001 x7 : 0000000000017fe8 x6 : c0000000ffffefff
    [   16.824429] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
    [   16.831547] x2 : ffffff80072f1370 x1 : 0000000000000000 x0 : 0000000000000001
    [   16.838665] Call trace:
    [   16.845774]  ath11k_nss_tx+0x1d4/0x1e0 [ath11k]
    [   16.848035]  ath11k_mac_tx_mgmt_pending_free+0x3034/0x9600 [ath11k]
    [   16.852551]  ieee80211_handle_wake_tx_queue+0x68/0xb10 [mac80211]
    [   16.858801]  ieee80211_probereq_get+0xca4/0x11f0 [mac80211]
    [   16.865049]  ieee80211_tx_prepare_skb+0x1dc/0x240 [mac80211]
    [   16.870432]  ieee80211_xmit+0xcc/0x120 [mac80211]
    [   16.876333]  __ieee80211_subif_start_xmit+0x2b8/0x380 [mac80211]
    [   16.880937]  ieee80211_subif_start_xmit+0x40/0x3b0 [mac80211]
    [   16.887013]  ieee80211_subif_start_xmit_8023+0xb8/0x430 [mac80211]
    [   16.892656]  dev_hard_start_xmit+0x8c/0x110
    [   16.898728]  __dev_queue_xmit+0x1f0/0xbc0
    [   16.902808]  dev_queue_xmit+0x14/0x20
    [   16.906975]  packet_sendmsg+0x768/0x1260
    [   16.910620]  __sys_sendto+0xdc/0x140
    [   16.914613]  __arm64_sys_sendto+0x28/0x40
    [   16.918174]  invoke_syscall.constprop.0+0x5c/0x110
    [   16.922081]  do_el0_svc+0x58/0x170
    [   16.926765]  el0_svc+0x18/0x60
    [   16.930149]  el0t_64_sync_handler+0x114/0x120
    [   16.933190]  el0t_64_sync+0x174/0x178
    [   16.933197] ---[ end trace 0000000000000000 ]---
    [   16.933230] ath11k c000000.wifi: failed to transmit frame -22
    [   17.041495] ath11k c000000.wifi: encap mismatch in nss tx skb encap type 1vif encap type 2
    [   17.041578] ath11k c000000.wifi: failed to transmit frame -22
    
    Which is confusing since the parameter is definitley set to '2'.
    ➤ cat /sys/module/ath11k/parameters/frame_mode
    2
    
    Booting with either "nss_offload=1 frame_mode=3" (RAW), or "nss_offload=1 frame_mode=1" (Native Wifi)
    Results in:
    
    [   15.644742] ath11k c000000.wifi: peer not found for nss peer delete
    [   15.744742] ath11k c000000.wifi: peer not found for nss peer delete
    [   15.745742] ath11k c000000.wifi: peer not found for nss peer delete
    [   15.746682] ath11k c000000.wifi: peer not found for nss peer delete
    
    Clients connect and then are immediately kicked off, stuck in a loop.
    
    ath11k-nss: Wifi offloading working (unstable)
    
    Wifi offloading seems to be working, however it is not stable. Logs will
    initially show a lot of flooding.
    
    ```
    [Sun Dec 17 02:43:25 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:28 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:30 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:32 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:34 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:40 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:41 2023] ath11k c000000.wifi: peer not found for nss peer delete
    [Sun Dec 17 02:43:46 2023] ath11k c000000.wifi: peer not found for nss peer delete
    ```
    
    But eventually ends up subsiding. Needs heavy testing...
    
    ath11k_nss: Add mac address to debug `nss peer delete` warnings
    
    also delete ath10k patch, and refresh.
    
    ath11k_nss: FIX `nss peer delete` + encap errors
    
    This should hopefullly fix the following errors:
    
    ```
    [Sun Dec 24 22:03:21 2023] ath11k c000000.wifi: encap mismatch in nss tx skb encap type 1vif encap type 2
    [Sun Dec 24 22:03:21 2023] ath11k c000000.wifi: failed to transmit frame -22
    [Sun Dec 24 22:08:25 2023] ath11k c000000.wifi: encap mismatch in nss tx skb encap type 1vif encap type 2
    [Sun Dec 24 22:08:25 2023] ath11k c000000.wifi: failed to transmit frame -22
    ```
    
    Clients should also be able to switch between 2Ghz and 5Ghz AP, as well
    as join using password (no longer required to boot with NSS off first,
    connect the client to acquire PSK, and reboot back with nss wifi offload
    enabled).
    
    Uptime has been 5 hours and so far no issues.
    
    ath11k_nss: Remove unecessary clang-tidy formatting
    
    ath11k_nss: add 'debug_mode' flag quiet warnings
    
    Will properly handle:
    ```
    [Mon Dec 25 16:51:34 2023] ath11k c000000.wifi: encap mismatch in nss tx skb encap type 1 vif encap type 2
    ```
    
    should take the path for native wifi encap
    
    ath11k_nss: Rework depends, make `nss_redirect` optional
    
    1.) Added a reworked `qca-nss-pbuf` init script from QSDK that will set sysctl
        NSS `n2hcfg` wifi options based on board type and available
        RAM.
    
    2.) ath11k is fully capable of offloading wifi, it does not need
        mac80211 to create any NSS vifs. This lowers overhead and has actually
        shown considerable speed improvements for CPU programs on the router
        side (i.e. SMB). I believe ax3600's IoT (ath10k) would require it
        for offloading.
    
        I've added 2 new makemenu options, `MAC80211_NSS_SUPPORT` which enables
        NSS related features, and `MAC80211_NSS_REDIRECT` which provides the option to
        autoload the module on boot with `nss_redirect=1`.
    
    3.) Reverted the option that deafulted `ATH11K_MEM_PROFILE_512M` to
        true. This was not required for platforms with 1GB or more memory
        (which is most of them). The default is 1GB. Select for platforms
        like Xiaomi AX3600.
    
    ath11k_nss: remove requirement for '/sys/kernel/debug/ath11k'
    
    ath11k_nss: set default values lower to avoid eating up memory
    
    ath11k_nss: Add NSS VLAN support + improvements
    
    1) tweaked qca-nss-pbuf script to better handle different board configs
    2) added some QSDK NSS patches for dynamic vlan, WDS.
    3) added QSDK fixes for beacon, and bt-coex
    
    For devices that keep getting disconnected (mostly on 2G). It is
    recommended to use the following settings for wifi. Change for your
    country.
    
    config wifi-device 'radio0'
    	option type 'mac80211'
    	option path 'platform/soc/c000000.wifi'
    	option band '5g'
    	option txpower '24'
    	option country 'PA'
    	option channel '100'
    	option htmode 'HE160'
    	option cell_density '0'
    
    config wifi-iface 'default_radio0'
    	option device 'radio0'
    	option network 'lan'
    	option mode 'ap'
    	option encryption 'psk2'
    	option key 'SOME_PASSWORD'
    	option ssid 'EXAMPLE_5G'
    	option dtim_period '3'
    	option max_inactivity '86400'
    	option disassoc_low_ack '0'
    
    config wifi-device 'radio1'
    	option type 'mac80211'
    	option path 'platform/soc/c000000.wifi+1'
    	option band '2g'
    	option htmode 'HT20'
    	option channel '1'
    	option txpower '36'
    	option country 'PA'
    	option cell_density '0'
    
    config wifi-iface 'default_radio1'
    	option device 'radio1'
    	option network 'lan'
    	option mode 'ap'
    	option ssid 'EXAMPLE_2G'
    	option encryption 'psk2'
    	option key 'SOME_PASSWORD'
    	option max_inactivity '86400'
    	option dtim_period '3'
    	option disassoc_low_ack '0'
    
    WPA3 should be disabled, and left as WPA2. Experimenting with max_inactivity, dtim_period, and disassoc_low_ack to hopefully resolve the deauth disconnects.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b1f3f02 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    cce0f14 View commit details
    Browse the repository at this point in the history
  10. ath11k_nss: fix ordering of sysctl values

    `dev.nss.n2hcfg.n2h_wifi_pool_buf` must be set BEFORE setting
    `dev.nss.n2hcfg.n2h_high_water_core0`, otherwise it resets the value.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    c17f9bd View commit details
    Browse the repository at this point in the history
  11. ath11k_nss: bugfix overwriting high watermark

    ath11k_nss: bugfix change start order
    
    value 'dev.nss.n2hcfg.n2h_wifi_pool_buf' was not getting set, wait till
    after qca-nss-drv is loaded.
    
    ath11k_nss: finally fix n2hcfg values not being set
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    833269e View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a7054c7 View commit details
    Browse the repository at this point in the history
  13. ath11k_nss: Add support to account memory stats

      Memory allocations in the driver & mac80211 are logged
      and populate those values to the user space via debugfs.
      This stats will give the snapshot of the memory being
      used by the driver at the time of dumping these
      memory stats.
    
      Command:
      cat /sys/kernel/debug/ath11k/ipq8074\ hw2.0/memory_stats
    
      Sample output of the stats
      MEMORY STATS IN BYTES:
      malloc size : 6287583
      ce_ring_alloc size: 109308
      dma_alloc size:: 10831860
      htc_skb_alloc size: 3840
      wmi alloc size: 0
      per peer object: 4644
      rx_post_buf size: 5091840
      Total size: 22329075
    
      User can disable/enable the memory stats accounting with
      the below command.
    
      echo N > /sys/kernel/debug/ath11k/ipq8074\ hw2.0/enable_memory_stats
      where N = 0 to disable logging, 1 to enable the logging.
    
      Note: This should be enabled/disabled only after wifi is down.
      User shouldn't enable/disable when the wifi is up to avoid
      accounting the negative values which cause incorrect values
      in the memory stats.
    
      Command:
    
      cat /sys/kernel/debug/ieee80211/phyX/memory_stats
      memory stats: malloc_size: 108
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    5d714d8 View commit details
    Browse the repository at this point in the history
  14. ath11k_nss: allow specifying pbuf 'memory_profile'

    In case you want to specify the memory profile to use rather than
    letting it autodetect. The following new uci option is introduced.
    pbuf.
    
    config general opt
      option memory_profile ''
    
    choices are 1gb, 512mb, 256mb. Delete option to let it autodetect.
    
    NOTE: You must reboot after changing these settings, for it to
    autoapply.
    
    ath11k_nss: fix compilation and rename some patches
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    4bbd719 View commit details
    Browse the repository at this point in the history
  15. ath11k_nss: ath11k support dynamic vlan

    also support offload for the following:
    
      mac80211:
        * vlan
        * mesh (partial)
      ath11k:
        * vlan
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    4996790 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fbf3c61 View commit details
    Browse the repository at this point in the history
  17. ath11k_nss: bugfix NSS memleak + enhancements

    bugfixes:
      * Rreverted patch `105-ath11k-fix-monitor-crash-if-tx-offload-is-enabled.patch`.
        Initial test show lower memory use. `ieee80211_tx_status_8023` was
        also removed upstream for a reason as it wasn't being used, and the
        logic behind it was flawed.
        See https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]
    
      * Mmemory profile for '256M' was missing logic that was in 512/1G.
        Should build correctly now
    
      * added more qsdk related patches to nss/offload
    
    ath11k_nss: fix up patches
    
    ath11k_nss: revert m3, fix coredump when rebooting
    
    M3 SSR dump logic makes the router coredump. Just putting dummy case to
    skip warning.
    
    [12394.072384] Hardware name: Dynalink DL-WRX36 (DT)
    [12394.079758] Call trace:
    [12394.084354]  dump_backtrace.part.0+0xbc/0xd0
    [12394.086614]  show_stack+0x18/0x30
    [12394.091127]  dump_stack_lvl+0x6c/0x88
    [12394.094339]  dump_stack+0x18/0x34
    [12394.097985]  bad_page+0xe0/0x110
    [12394.101282]  __free_pages_ok+0x33c/0x360
    [12394.104582]  __free_pages+0xbc/0xe0
    [12394.108487]  dma_direct_free+0xd0/0x140
    [12394.111701]  dma_free_attrs+0x90/0xb0
    [12394.115519]  ath11k_qmi_fwreset_from_cold_boot+0x9e0/0xa10 [ath11k]
    [12394.119343]  ath11k_qmi_deinit_service+0x64/0x21d0 [ath11k]
    [12394.125419]  ath11k_core_deinit+0xa4/0xc0 [ath11k]
    [12394.130974]  0xffffffc000fb3600
    [12394.135831]  platform_shutdown+0x24/0x40
    [12394.138871]  device_shutdown+0x14c/0x240
    [12394.143037]  kernel_restart+0x40/0xb0
    [12394.146944]  __do_sys_reboot+0xcc/0x200
    [12394.150502]  __arm64_sys_reboot+0x24/0x30
    [12394.154148]  invoke_syscall.constprop.0+0x5c/0x110
    [12394.158317]  do_el0_svc+0x58/0x170
    [12394.163001]  el0_svc+0x18/0x60
    [12394.166386]  el0t_64_sync_handler+0x114/0x120
    [12394.169426]  el0t_64_sync+0x174/0x178
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    13bfe92 View commit details
    Browse the repository at this point in the history
  18. ath11k_nss: set pbuf script off by default

    uci option pbuf.opt.memory_profile must be explicity set to auto, 1gb,
    512m, 256m to run.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    4bed2ac View commit details
    Browse the repository at this point in the history
  19. ath11k_nss: Refresh patches

    ath11k_nss: fix build for 256/1G mem, and ath10k
    
    ath11k_nss: bump release version '8'
    
    mac80211: refactor NSS patches
    
    Since NSS requires patches to subsys, and ath*k directories. Move
    patches into a subset of nss for better tracking against QSDK,
    and modularization.
    
    ath11k_nss: rename patches
    
    ath11k_nss: clean up optional patches
    
    To reduce bug tracking headaches, I've remove the following patches, as
    they are not required for NSS offload and have been around the last 2-3
    years without ever being upstreamed.
    
    nss/ath11k/235-001-ath11k-Add-support-for-beacon-tx-mode.patch
    nss/ath11k/237-002-ath11k-Add-provision-to-configure-rx-hashmap.patch
    nss/ath11k/902-020-ath11k-add-btcoex-config.patch
    nss/ath11k/902-022-ath11k-add-ap-ps-support.patch
    nss/ath11k/907-068-ath11k-add-rx-histogram-stats.patch
    nss/ath11k/907-108-ath11k-enable-ul-ofdma-ru-allocation-in-peer-stats.patch
    nss/ath11k/911-373-ath11k-Add-retry-mechanism-for-update_rx_qu.patch
    nss/ath11k/913-353-ath11k-ignore-frags-from-uninitialized-peer-in-dp.patch
    nss/ath11k/913-356-ath11k-invalid-desc-sanity-check.patch
    nss/ath11k/913-374-ath11k-Check-skb_headroom-before-using-skb_push.patch
    nss/ath11k/913-830-ath11k-Avoiding-memset-of-ppdu-info-for-next-skb.patch
    nss/subsys/235-002-mac80211-Add-support-for-beacon-tx-mode.patch
    nss/subsys/913-726-mac80211-fix-crash-when-accessing-null-pointer.patch
    
    ath11k_nss: Remove superfluous patches
    
    Remove patches unrelated to NSS offloading to minimize bloat and better
    track NSS related issues.
    
    ath11k_nss: Refactor patches to use upstream names
    
    Reworked patches to use upstream QSDK names. Allows for better tracking
    
    ath11k_nss: align wifi offload with qca-nss-drv
    
    The option in qca-nss-drv is actually 'NSS_DRV_WIFIOFFLOAD_ENABLE' use
    the same syntax.
    
    ath10k-ct: fix compile with NSS wifi
    
    ath11k_nss: Merge every NSS related feature + more
    
    * Added macro to disable NSS mesh offload
    * Added menuconfig option "ATH11K_NSS_MESH_SUPPORT" to selectivley build mesh support,
    	as well it's depenacndy on nss-drv-wifimeshmgr.
    * Added option to disable HTT Stats, and STA stats (stations).
    * Reducing footprint by ~210KB. Debugfs minimal is still enabled.
    * Reworked a TON of patches, some my own, hopefully there should be a far less amount of WOA2/WPA3 connection issues.
    * Updated the /etc/init.d/pbuf script to be more robust. (handles tweaking ath11k and NSS settings better)
    
    NOTES: Although mesh package builds (nss-drv-wifimeshmgr), ath11k doesn't seem to support it yet.
    Not sure if NSS requires 3 radios to work, I'm at a dead end currently with that route.
    
    ATTENTION:
    the ptch `37-006-ath11k-Allow-fast-rx-by-bypassing-stats-update.patch`
    works well on nss with frame_mode=2.
    And on `ath11k frame_mode=1 nss_offload=0`
    
    And on `ath11k frame_mode=2 nss_offload=1`
    
    if you set nss_offload=off and frame_mode=2, it will CRASH
    if you set nss_offload=on and frame_mode=2, it will  RUN
    if you set nss_offload=off and frame_mode=1, it will RUN
    
    ath11k_nss: fix n2h high_water_core0/wifi_pool_buf
    
    These were commented out, but looks like they are needed to prevent lock
    ups with heavy usage apps (users report in torrenting)
    
    ath11k_nss: Renumber ath11k patches in the range
    
    commit 3c7cc4b725ea406f19b736427034e3bdb436aedc
    Author:     Yuvasree Sivasankaran <[email protected]>
    AuthorDate: Thu Jan 4 11:25:56 2024 +0530
    Commit:     Yuvasree Sivasankaran <[email protected]>
    CommitDate: Wed Jan 3 22:53:51 2024 -0800
    
        wifi: ath11k: Renumber ath11k patches in the range
    
        In ath11k, patches are not maintained in the range and not sequential.
        Renumber the patches sequential and in the range.
    
        Change-Id: I77c51c0f5bf9f94863db4ef364b156e14465a60c
        Signed-off-by: Yuvasree Sivasankaran <[email protected]>
    
    ath11k_nss: Add mac hw flag to avoid tx queue in mac80211
    
    commit 4e9b5f7f0d1ed40dbf3208f7ed4448e49b4a4ac1
    Author:     Yuvasree Sivasankaran <[email protected]>
    AuthorDate: Wed Dec 6 12:20:59 2023 +0530
    Commit:     Yuvasree Sivasankaran <[email protected]>
    CommitDate: Mon Dec 18 12:52:33 2023 +0530
    
        wifi: mac80211: Add mac hw flag to avoid tx queue in mac80211
    
        Queue SKB in mac80211 become mandatory from latest 6.1 kernel. Because of
        this queuing, there will be performance degradation. Add hw flag option
        to enable tx queue in Driver/Hardware.
    
        Driver/hardware can register for HAS_TX_QUEUE HW flag and avoid tx queuing
        in mac80211.
    
        Add same HW flag checks to avoid accessing skb queues which will be
        NULL or invalid and also NULL checks for sta txqs for NULL or invalid
        access.
    
    ath11k_nss: add the HTC+ / iPhone fix
    
    commit ccdca73cd65723c3cb63c17edc95c4c43318cb38
    Author:     John Crispin <[email protected]>
    AuthorDate: Sun Jul 9 17:12:34 2023 +0200
    Commit:     John Crispin <[email protected]>
    CommitDate: Thu Aug 31 16:08:34 2023 +0200
    
        mac80211: add the HTC+ / iPhone fix
    
        Signed-off-by: John Crispin <[email protected]>
    
    ath11k_nss: ath-next fix connection failure due to unexpected peer delete
    
    Currently ath11k_mac_op_unassign_vif_chanctx() deletes peer but
    ath11k_mac_op_assign_vif_chanctx() doesn't create it. This results in
    connection failure if MAC80211 calls drv_unassign_vif_chanctx() and
    drv_assign_vif_chanctx() during AUTH and ASSOC, see below log:
    
    [  102.372431] wlan0: authenticated
    [  102.372585] ath11k_pci 0000:01:00.0: wlan0: disabling HT/VHT/HE as WMM/QoS is not supported by the AP
    [  102.372593] ath11k_pci 0000:01:00.0: mac chanctx unassign ptr ffff895084638598 vdev_id 0
    [  102.372808] ath11k_pci 0000:01:00.0: WMI vdev stop id 0x0
    [  102.383114] ath11k_pci 0000:01:00.0: vdev stopped for vdev id 0
    [  102.384689] ath11k_pci 0000:01:00.0: WMI peer delete vdev_id 0 peer_addr 20:e5:2a:21:c4:51
    [  102.396676] ath11k_pci 0000:01:00.0: htt peer unmap vdev 0 peer 20:e5:2a:21:c4:51 id 3
    [  102.396711] ath11k_pci 0000:01:00.0: peer delete resp for vdev id 0 addr 20:e5:2a:21:c4:51
    [  102.396722] ath11k_pci 0000:01:00.0: mac removed peer 20:e5:2a:21:c4:51  vdev 0 after vdev stop
    [  102.396780] ath11k_pci 0000:01:00.0: mac chanctx assign ptr ffff895084639c18 vdev_id 0
    [  102.400628] wlan0: associate with 20:e5:2a:21:c4:51 (try 1/3)
    [  102.508864] wlan0: associate with 20:e5:2a:21:c4:51 (try 2/3)
    [  102.612815] wlan0: associate with 20:e5:2a:21:c4:51 (try 3/3)
    [  102.720846] wlan0: association with 20:e5:2a:21:c4:51 timed out
    
    The peer delete logic in ath11k_mac_op_unassign_vif_chanctx() is
    introduced by commit b4a0f54156ac ("ath11k: move peer delete after
    vdev stop of station for QCA6390 and WCN6855") to fix firmware
    crash issue caused by unexpected vdev stop/peer delete sequence.
    
    Actually for a STA interface peer should be deleted in
    ath11k_mac_op_sta_state() when STA's state changes from
    IEEE80211_STA_NONE to IEEE80211_STA_NOTEXIST, which also coincides
    with current peer creation design that peer is created during
    IEEE80211_STA_NOTEXIST -> IEEE80211_STA_NONE transition. So move
    peer delete back to ath11k_mac_op_sta_state(), also stop vdev before
    deleting peer to fix the firmware crash issue mentioned there. In
    this way the connection failure mentioned here is also fixed.
    
    Also do some cleanups in patch "wifi: ath11k: remove invalid peer
    create logic", and refactor in patches "wifi: ath11k: rename
    ath11k_start_vdev_delay()" and "wifi: ath11k: avoid forward declaration
    of ath11k_mac_start_vdev_delay()".
    
    Tested this patch set using QCA6390 and WCN6855 on both STA and SAP
    interfaces. Basic connection and ping work well.
    
    Baochen Qiang (4):
      wifi: ath11k: remove invalid peer create logic
      wifi: ath11k: rename ath11k_start_vdev_delay()
      wifi: ath11k: avoid forward declaration of
        ath11k_mac_start_vdev_delay()
      wifi: ath11k: fix connection failure due to unexpected peer delete
    
     drivers/net/wireless/ath/ath11k/mac.c | 564 +++++++++++++-------------
     1 file changed, 288 insertions(+), 276 deletions(-)
    
    ath11k_nss: Revert support for beacon_tx_mode
    
    ath11k_nss: Update release fix dependancies
    
    ath11k_nss: mgmt and data ack rssi update
    
    Data ACK RSSI :
    
          Advertise NL80211_EXT_FEATURE_ACK_SIGNAL_SUPPORT feature support
    for accounting and notifying "last ack signal" and "avg ack signal" to
    user space through NL interface.
    
          Enabled data ack rssi support for ethernet mode.
    
    Mgmt ACK RSSI:
    
          Enabled support for Tx-ACK RSSI in HTT over Management packets.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    8ba584d View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    03d599d View commit details
    Browse the repository at this point in the history
  21. ath11k_nss: FW Initiated Dynamic MU-EDCA

    Implementing the updating of firmware initiated dynamic MU-EDCA
    parameters in Beacon IE. Firmware routinely checks its clients and
    updates its MU-EDCA values every 3 seconds. Firmware is tuning
    MU-EDCA parameters to improve performance. As part of this process,
    the firmware informs host about new MU-EDCA values utilizing
    WMI_MUEDCA_PARAMS_CONFIG_EVENTID. FW expectation is that host will
    update MU-EDCA parameters in the Beacon IE.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    9bbe2f0 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    4595f34 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    2d64d75 View commit details
    Browse the repository at this point in the history
  24. qualcommax: remove uneeded btcoex dts

    not needed for NSS offload and helps save some memory
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    9cf1ca0 View commit details
    Browse the repository at this point in the history
  25. ath11k_nss: Revert setting fw_mem_mode for IPQ807x

    Leave it set to '0', as it will kernel panic with 2K skb patch. This
    flag was incorrectly assumed to save memory on 1G platforms.
    
    ath11k_nss: remove leftover max_tx_ring
    
    it was not removed when applying patch to replace it with 'max_tx_ring =
    DP_TCL_NUM_RING_MAX +1'
    
    ath11k_nss: Import bugfix patches
    
    ath11k_nss: Experimental build for IPQ6018
    
    This will require setting the correct `ATH11K_MEM_PROFILE_XXX` for your
    platform. Setting it to value lower/higher than physically available
    will cause NULL virtual address kernel panics.
    
    I believe this setting was not originally meant to reduce memory
    footprint of 1G+ platforms, but to account for platforms that were
    512M or less.
    
    Will require tweaking to allow for the old behvaior on 1G+ IPQ807x,
    while still saving memory for platforms <= 512M.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    94ade49 View commit details
    Browse the repository at this point in the history
  26. ath11k_nss: Introduce skbuff_recycle for performance

    QSDK NSS builds utilize skbuff recycling for better handling of memory.
    
    On a Dynalink DL-WRX36 (pbuf script should be set to 'auto') a significant drop in
    memory usage was observed as well consistent sustained RX/TX speeds.
    
    BEFORE:
    echo 3 >! /proc/sys/vm/drop_caches
    
    free -m
                   total        used        free      shared  buff/cache   available
    Mem:             867         338         547          90         101         528
    Swap:              0           0           0
    
    AFTER:
                   total        used        free      shared  buff/cache   available
    Mem:             867         242         594           1          81         624
    Swap:              0           0           0
    
    NOTE:
    
    For 512MB platforms, users need to test with the following scenarios,
    as the patch `999-233-ath11k-Disable-rx_header-tlv-for-2K-SKB.patch` is
    really only testable on platforms with 512M or less RAM.
    
    1.) Explicitly setting 'ATH11K_MEM_PROFILE_512M' on and see if system
        crashes on boot.
    
    2.) Explicitly setting 'ATH11K_MEM_PROFILE_1G'
    
    3.) Remove patches
        999-233-ath11k-Disable-rx_header-tlv-for-2K-SKB.patch
        999-311-ath11k-configure-nss-thread-priority-during-pdev_ini.patch
    
        And re-test with #1 and #2
    
    It was incorrectly assumed that setting a 512M for 1G platforms would save
    memory, instead it needs to be explicitly set to know proper memory
    regions, otherwise it would cause fw crash.
    
    ath11k_nss: fix typo in 512M memory profile
    
    ath11k_nss: remove SFE patch 718-e-mac80211-Deliver-the-frame-to-driver-tx-ops-directly
    
    It is not relevant to NSS builds and only meant for SFE.
    
    ath11k_nss: remove unecessary patches
    
    Color collision should be left on by default, as it's a primary feature
    of 802.11AX.
    
    ath11k_nss: fix spacing
    
    ath11k_nss: Remove unnecessary TKIP bloat
    
    Remove TKIP patches that are not being used as 99% of folks are running
    modern encryption (AES-CCMP,SAE,etc).
    
    ath11k_nss: parameterize DP_RXDMA_REFILL_RING_SIZE memory profile
    
    ath11k_nss: Remove SFE related code
    
    Cleanup SFE (shortcut fe) related code as we're not using it on NSS
    
    ath11k_nss: idr, ampdu, and skb headroom check optimizations
    
    ath11k_nss: get valid last_rate for rx_bitrate from cpu stats
    
    ath11k_nss: Fix BCCA counter for EMA
    
    Currently BCCA counter is updated to FW via csa counter offs and
    beacon with new countdown is updated for every beacon tx completion event.
    For EMA, all EMA beacons are updated in one shot, and counter update for
    every tx event will mess up the actual sequence of countdown sent over the air.
    
    Allow FW to update the countdown till 1 and finalize the color
    change.
    
    ath11k_nss: Fix compile for TRACE feature
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    0050084 View commit details
    Browse the repository at this point in the history
  27. qualcommax: Move QCE to user selectable module

    The performance of Qualcomm Crypto Engine is 10x slower than kernel
    based encryption via ARMv8 crypto extensions. Rather than building it
    into the kernel allow users to select it as module which can be tested with
    other HW based crypto APIs via cryptodev-linux.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3edda92 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4d69426 View commit details
    Browse the repository at this point in the history
  29. ath11k_nss: set pbuf to 'auto'

    Since SKB recycler was merged into main nss-wifi branch, it is not
    necessary to manually tinker with pbuf script. Memory is now properly
    managed between NSS driver allocating/deallocating SKBs. For optimal
    wifi performance, especially upload, it is advised to leave the script
    to 'auto'.
    
    Users who use sysupgrade should manually set the uci config
    '/etc/config/pbuf' as it will not overwrite existing configuration.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    e642d6a View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    26ab530 View commit details
    Browse the repository at this point in the history
  31. feeds: NSS: point to 6.x branch

    This will now be the default NSS branch, and will cover
    both kernel 6.1 and 6.6 related changes going forward.
    
    qualcommax: NSS: fix up 'nss_region'
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    995b66f View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    7b16446 View commit details
    Browse the repository at this point in the history
  33. qualcommax: disable swiotlb for 64mb in saving.

    Disable software input output translation lookaside buffer (swiotlb) as
    it wastes memory on low memory platforms (512m or less)
    
    qualcommax: only disable swiotlb for platforms <= 512M
    
    Disabling swiotlb is only required for platforms with 512M or less to save
    64mb.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    17d51cc View commit details
    Browse the repository at this point in the history
  34. qualcommax: qca-mcs support for kernel >= 6.6.29

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    8898e95 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    becf54e View commit details
    Browse the repository at this point in the history
  36. ath11k_nss: fix invalid access to memory

    In ath11k_dp_rx_msdu_coalesce(), rxcb is fetched from skb and bool
    is_continuation is part of rxcb.
    
    Currently, after freeing the skb, the rxcb->is_continuation accessed
    again which is wrong since the memory is already freed.
    
    Hence fix the issue by locally defining bool is_continuation from rxcb,
    so that after freeing skb also we can use is_continuation.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    45ca159 View commit details
    Browse the repository at this point in the history
  37. qualcommax: NSS: Add support for all ipq807x targets

    NSS offload feature should be available for all IPQ807x/IPQ817x targets.
    
    * Arcadyan AW1000
    * CMCC RM2-6
    * Linksys MX4200 V1/V2
    * Linksys MX5300
    * Sagemcom Fast 5285 Spectrum SAXV1V1S
    * Yuncore AX880
    * ZBT Z800AX
    * ZTE MF269
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    c765e61 View commit details
    Browse the repository at this point in the history
  38. ath11k_nss: revert AMPDU in radiotap header

    Causes issues with rate stats on IPQ9074
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    2e5eaec View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    355d70a View commit details
    Browse the repository at this point in the history
  40. iproute2: Fixup NSS patches for GCC 14.x

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    6e8ed5a View commit details
    Browse the repository at this point in the history
  41. ath11k_nss: mac80211 fix pending airtime

    On platforms using ath10k with mac80211 'nss_redirect' enabled,
    a warning `ieee80211_sta_update_pending_airtime` is observered
    whenever traffic load is high (iperf3).
    
    Don't offload if pending queue > 1000
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    fa6a5dc View commit details
    Browse the repository at this point in the history
  42. ath11k_nss: mac80211: remove STA txq pending airtime underflow warning

    This warning can trigger if there is a mismatch between frames that were
    sent with the sta pointer set vs tx status frames reported for the sta address.
    
    This can happen due to race conditions on re-creating stations, or even
    in the case of .sta_add/remove being used instead of .sta_state, which can cause
    frames to be sent to a station that has not been uploaded yet.
    
    If there is an actual underflow issue, it should show up in the device airtime
    warning below, so it is better to remove this one.
    
    Signed-off-by: Felix Fietkau <nbd@xxxxxxxx>
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    f6a7a7d View commit details
    Browse the repository at this point in the history
  43. ath11k_nss: change warning levels

    This is mostly a cosmetic change for users running NSS firmware 11.4
    with mesh setups. Rather than fill up kernel logs with warnings, move log
    warnings to debug.
    
    The stats are still captured in '/sys/kernel/debug/qca-nss-drv/stats/*'
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    c0e60f5 View commit details
    Browse the repository at this point in the history
  44. ath11k_nss: fix incorrect tx/rx stats WDS

    Should be 'rx'
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    66bf851 View commit details
    Browse the repository at this point in the history
  45. ath11k_nss: correctly free skb using ieee80211_free_txskb()

    While freeing skb in tx completion path for status reinject, inspect
    or vdevid mismatch, dev_kfree_skb_any() is used but when a function
    is using functions from mac80211 to free an skb then it should do
    it consistently and not switch to the generic dev_kfree_skb_any.
    Otherwise, mac80211 will not be aware of the freed skb and thus
    not clean up related information in its internal data structures.
    
    Hence fix the issue by properly using ieee80211_free_txskb().
    
    Signed-off-by: Sarika Sharma <[email protected]>
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    234f645 View commit details
    Browse the repository at this point in the history
  46. ath11k_nss: Add lock when accessing idr_pool of tx_ring

    Lock is missed while accessing idr_pool of tx_ring which
    causes Use after free crash in dp_free path when unloading
    the module.
    
    Fix this by adding tx_idr_lock when accessing idr_pool
    of tx_ring.
    
    Signed-off-by: Aishwarya R <[email protected]>
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    bc46b61 View commit details
    Browse the repository at this point in the history
  47. ath11k_nss: mac80211 Use C99 flexible arrays instead of zero-length a…

    …rrays
    
    Fixes compile issues on GCC 13.3+
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    a947a1e View commit details
    Browse the repository at this point in the history
  48. qualcommax: NSS: Add support for sxk80, mx8500

    Adding NSS support for:
    
    Linksys MX8500
    Netgear SXR80/SXS80 (SXK80 - router and satellite)
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    48c0a24 View commit details
    Browse the repository at this point in the history
  49. qualcommax: NSS: Add DTS entries for nss-macsec

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3cde836 View commit details
    Browse the repository at this point in the history
  50. qualcommax: NSS: ECM: Fixes for Bridge VLAN Filtering

    1. Fix function to check for bridge master status while checking
    for Bridge VLAN filter feature is enabled on bridge slave ports.
    2. Disable default PVID for bridges during device registration in
    the system.
    
    Change-Id: Ibea6559c1b0700a2300b60e20d57b7818e23a8a8
    Signed-off-by: Vishnu Vardhan Bantanahal <[email protected]>
    
    bridge: Fix Bridge VLAN stats update
    This patch fixes Bridge VLAN stats update for both bridge master
    and bridge slave.
    Change-Id: Ia26f4c71e83e27dd83336815cda5c05c8c3f24ff
    Signed-off-by: Vishnu Vardhan Bantanahal <[email protected]>
    
    bridge: Add bridge VLAN filter APIs for offload for 6.1 Kernel
    
    Change-Id: I54e44c26664f86ae024f54605a032713a9a3eee5
    Signed-off-by: Vishnu Vardhan Bantanahal <[email protected]>
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    98ce040 View commit details
    Browse the repository at this point in the history
  51. ath11k_nss: Fix IPQ6018 wifi offloading

    This patch was mostly cosmetic for ipq8074 to supress warnings about
    invalid memory region. In this case the M3 dump region. This isn't
    necessary for operation or offloading, and is used for firmware
    debugging.
    
    However due to the memory layout of ipq6018 it was causing issues of NSS
    offloading properly loading. 'idx' shouldn't be incremented, and instead
    should just break.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    ce74bee View commit details
    Browse the repository at this point in the history
  52. qualcommax: add ramoops memory region

    This patch adds support for allocating 1MB of reserved memory
    for ramoops on IPQ807x and IPQ6018 platforms.
    
    This is required to get PSTORE option working.
    
    Tested with the following options:
    
    ```
    CONFIG_PACKAGE_kmod-pstore=y
    CONFIG_PACKAGE_kmod-ramoops=y
    CONFIG_PACKAGE_kmod-reed-solomon=y
    ```
    
    dmesg output
    ```
    ➤ dmesg | grep -Ei "psto|ramo"
    
    [Sun Jun  9 23:22:01 2024] OF: reserved mem: 0x0000000051200000..0x00000000512fffff (1024 KiB) map non-reusable ramoops@51200000
    [Sun Jun  9 23:22:05 2024] pstore: Using crash dump compression: deflate
    [Sun Jun  9 23:22:05 2024] pstore: Registered ramoops as persistent store backend
    [Sun Jun  9 23:22:05 2024] ramoops: using 0x100000@0x51200000, ecc: 0
    ```
    
    Triggering kernel panic
    
    ```
    sh -c 'echo 10 > /proc/sys/kernel/panic; echo c > /proc/sysrq-trigger'
    ```
    
    After rebooting
    
    ```
    mkdir -p /tmp/ramoops
    mount -t pstore pstore /tmp/ramoops
    ```
    
    ```
    ➤ l /tmp/ramoops
    drwxr-x---    2 root     root           0 Jun  9 23:02 .
    drwxr-xr-x    8 root     root        4.0K Jun  9 23:23 ..
    -r--r--r--    1 root     root        6.6K Jun  9 23:21 dmesg-ramoops-0
    ```
    
    Truncated output
    ```
    Panic#1 Part1
    <6>[   21.656119] remoteproc remoteproc0: remote processor cd00000.q6v5_wcss is now up
    <14>[   21.657910] kmodloader: done loading kernel modules from /etc/modules.d/*
    <6>[   21.710545] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
    <6>[   21.710594] ath11k c000000.wifi: fw_version 0x270204a5 fw_build_timestamp 2022-08-04 13:05 fw_build_id WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1
    <6>[   91.416867] br-lan: topology change detected, sending tcn bpdu
    <6>[ 1256.023874] sysrq: Trigger a crash
    <0>[ 1256.023911] Kernel panic - not syncing: sysrq triggered crash
    <4>[ 1256.026176] CPU: 2 PID: 2842 Comm: sh Tainted: G           O       6.6.32 #0
    <4>[ 1256.031993] Hardware name: Linksys MX5300 (DT)
    <4>[ 1256.039106] Call trace:
    <4>[ 1256.043354]  dump_backtrace+0xb0/0x10c
    <4>[ 1256.045701]  show_stack+0x18/0x24
    <4>[ 1256.049519]  dump_stack_lvl+0x48/0x60
    <4>[ 1256.052906]  dump_stack+0x18/0x24
    <4>[ 1256.056550]  panic+0x2d0/0x31c
    <4>[ 1256.059848]  sysrq_handle_moom+0x0/0x30
    <4>[ 1256.062800]  __handle_sysrq+0xe4/0x1e0
    <4>[ 1256.066534]  write_sysrq_trigger+0xbc/0xfc
    <4>[ 1256.070354]  proc_reg_write+0xb0/0xf8
    <4>[ 1256.074434]  vfs_write+0xa4/0x298
    <4>[ 1256.078165]  ksys_write+0x5c/0xe0
    <4>[ 1256.081464]  __arm64_sys_write+0x1c/0x28
    <4>[ 1256.084763]  invoke_syscall.constprop.0+0x5c/0x100
    <4>[ 1256.088758]  do_el0_svc+0x40/0xc8
    <4>[ 1256.093355]  el0_svc+0x30/0xb8
    <4>[ 1256.096740]  el0t_64_sync_handler+0x120/0x12c
    <4>[ 1256.099694]  el0t_64_sync+0x178/0x17c
    <2>[ 1256.104122] SMP: stopping secondary CPUs
    <0>[ 1256.107773] Kernel Offset: disabled
    <0>[ 1256.111759] CPU features: 0x0,00000000,00000000,0000400b
    <0>[ 1256.114975] Memory Limit: none
    ```
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    50ffe1f View commit details
    Browse the repository at this point in the history
  53. ath11k_nss: modularize nss-pbuf options

    The following options can now be specified in `pbuf` uci config.
    
    1.) auto_scale (bool) - enable or disable NSS CPU auto-scaling.
                            default: 'off'.
    
                            NOTE: Recommended to leave off, as it locks
                            NSS core to it's full 1.7Ghz speed. In the past
                            auto_scaling has been unstable, often causing
                            kernel panics or connection drops. Qualcomm
                            themselves disables scaling in QSDK for
                            ath11k/ath12k/qca-wifi.
    
                            It is provided to allow users wanting more
                            control over power usage. Setting to 'on' also
                            fixes NSS CPU stats updating properly.
    
    2.) n2h_queue_limit_core0 (int) - set queue limits for CORE 0 and 1.
                                      default: '2048'
    
                                      For users on low memory systems (<=512M),
                                      that are experiencing issues can try lowering
                                      to the driver default of '256'.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    2fdb2ab View commit details
    Browse the repository at this point in the history
  54. ath11k_nss: Organize patch order and formatting

    NSS patches should always get applied last as to avoid fuzzing issues
    with upstream patches.
    
    Also cleanup patches that introduced spaces as indents vs. tabs
    
    Signed-off-by: Sean Khan <[email protected]>
    
    ath11k_nss: drop upstreamed patch
    
    A variation of this patch 'wifi: mac80211: Use flexible array in struct ieee80211_tim_ie'
    was upstreamed in commit 'e6e4d90b69027d74ba7e9a0a586b95a5714e10c0'.
    Remove it to avoid compilation issues.
    
    Signed-off-by: Sean Khan <[email protected]>
    
    ath11k_nss: Fix patch conflict
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d9a91c3 View commit details
    Browse the repository at this point in the history
  55. ath11k_nss: Drop unnecessary iphone fix patch

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    cbe8579 View commit details
    Browse the repository at this point in the history
  56. wifi_nss: Add threaded NAPI for ath10k and ath11k

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3e94442 View commit details
    Browse the repository at this point in the history
  57. ath11k_nss: Add mac80211 based AQL support

    Add wake_tx_queue mac op to support AQL and support
    txq dequeueing from mac80211. Also implement a
    simple scheduler for pulling all skbs from txqs
    of all AC's at the end of tx completion NAPI.
    
    Tested-on: IPQ5018 hw1.0 AHB WLAN.HK.2.6.0.1-00861-QCAHKSWPL_SILICONZ-1
    
    Signed-off-by: Tamizh Chelvam Raja <[email protected]>
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d058ef9 View commit details
    Browse the repository at this point in the history
  58. qualcommax: Fix threaded NAPI scheduling

    Revert to using the default kernel timer (CONFIG_HZ_100).
    
    Setting the timer to 1000hz is unecessary and just adds CPU overhead. It
    also causes atomic scheduling issues in various threaded tasks,
    especially when using threaded NAPI.
    
    When the kernel timer frequency is set to 1000 Hz, it generates interrupts
    1000 times per second. This increased frequency can lead to more
    frequent context switches and interrupt handling, which can
    interfere with other kernel activities.
    
    Since network packet processing is offloaded to the NSS cores, the main CPU
    does not need high-resolution timer interrupts to manage network
    traffic efficiently. The NSS cores handle this independently.
    
    This is the setting used and recommended by Qualcomm for all their IPQ
    platforms.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    59bde48 View commit details
    Browse the repository at this point in the history
  59. qualcommax: clean up kernel config, align with QSDK

    Cleaned up erronous settings for disabled features. The syntax should be
    "# CONFIG_SOME_OPTION is not set", rather than simply commenting it out.
    
    Removed left over config options from 5.15, and enabled features
    recommended by QSDK:
    
    ```
    CONFIG_IRQ_TIME_ACCOUNTING=y
    CONFIG_MULTI_IRQ_HANDLER=y
    CONFIG_HANDLE_DOMAIN_IRQ=y
    CONFIG_HZ_FIXED=0
    CONFIG_NO_HZ=y
    ```
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    ffc9e27 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    e8fcaf0 View commit details
    Browse the repository at this point in the history
  61. wifi_nss: Use NAPI threaded helper functions

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    4dfcae9 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    248ac9a View commit details
    Browse the repository at this point in the history
  63. qualcommax: NSS: Add default packages drv, ecm, bridge-mgr

    These packages are required for basic NSS offloading. So ensure they're
    selected for all qualcommax targets.
    
      * kmod-qca-nss-ecm (Enhanced Connection Manager)
      * kmod-qca-nss-drv (NSS Driver)
      * kmod-qca-nss-drv-bridge-mgr (NSS Manager for Bridges)
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    19448bd View commit details
    Browse the repository at this point in the history
  64. ath10k-ct: Bump patch for 6.4 to 6.7

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    dc6ac49 View commit details
    Browse the repository at this point in the history
  65. ath10k-ct: Use NAPI threaded helper functions

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    df1bdca View commit details
    Browse the repository at this point in the history
  66. ath11k_nss: add tracing for update_muedca_params_event

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    84850e9 View commit details
    Browse the repository at this point in the history
  67. Revert "qualcommax: NSS: introduce helper functions for NAPI threading"

    This reverts commit 5cf32cfe3edca047b7347236496c275bc23ae7fb.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    42cb8b2 View commit details
    Browse the repository at this point in the history
  68. wifi_nss: Revert using napi threaded helper function

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    e7119eb View commit details
    Browse the repository at this point in the history
  69. ath11k_nss: fix monitor mode

    commit 072327212c033baf96365a5045673c5981eb0bdf (HEAD -> next, origin/next)
    Author:     John Crispin <[email protected]>
    AuthorDate: Fri Jul 5 15:42:24 2024 +0200
    Commit:     John Crispin <[email protected]>
    CommitDate: Fri Jul 5 15:42:40 2024 +0200
    
        ath11k: fix monitor mode
    
        Enabling CPTCFG_ATH11K_MEM_PROFILE_512M will change the layout of
        struct hal_rx_desc_ipq8074. This broke monitor mode. Fix it by not modifying
        the struct even if the 512MB profile is enabled.
    
        Fixes: WIFI-12102
        Signed-off-by: John Crispin <[email protected]>
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    e55c834 View commit details
    Browse the repository at this point in the history
  70. hostapd: handle updated MU-EDCA params from driver

    This patch handles the updating of MU-EDCA parameters indicated by
    driver. Driver requests to update the parameters and Parameter Set
    Update Count in beacon frames. This patch addresses only AP mode.
    
    Three actions are taken to successfully update MU-EDCA parameters
    in beacon:
    	(1) Update MU-EDCA parameters stored in hostapd
    	    The following Access Categories (AC) are updated:
    	      VO: Voice
    	      VI: Video
    	      BE: Best Effort
    	      BK: Background
    
    	(2) Increment Parameter Set Update Count
    	(3) Update beacon with new parameters
    
    There aren't any options to configure, hostapd simply updates MU-EDCA
    published by ath11k driver.
    
    To verify params are getting updated, set log_level to '1' and check
    logger
    
    i.e. `uci set wireless.radio0.log_level=1`
    
    ```
    Sat Jul  6 15:36:10 2024 daemon.debug hostapd: phy0-ap0: IEEE 802.11 MU-EDCA: Updated MU-EDCA parameters for AC 0: BE: 3, BK: 7, VI: 2, VO: 2
    Sat Jul  6 15:36:10 2024 daemon.debug hostapd: phy0-ap0: IEEE 802.11 MU-EDCA: Updated MU-EDCA parameters for AC 1: BE: 164, BK: 164, VI: 67, VO: 50
    Sat Jul  6 15:36:10 2024 daemon.debug hostapd: phy0-ap0: IEEE 802.11 MU-EDCA: Updated MU-EDCA parameters for AC 2: BE: 255, BK: 2, VI: 255, VO: 255
    ```
    
    Requires the following patches applied to 'ath11k/subsys'
    
    commit ce7f1ad354869d85abdf8e8ed8d36599e057ba5d
    Author:     Sean Khan <[email protected]>
    AuthorDate: Tue Feb 27 00:45:32 2024 -0500
    Commit:     Sean Khan <[email protected]>
    CommitDate: Sat Jul 6 15:19:26 2024 -0400
    
        ath11k_nss: FW Initiated Dynamic MU-EDCA
    
        package/kernel/mac80211/patches/nss/ath11k/203-mac80211-ath11k-fw-dynamic-muedca.patch
        package/kernel/mac80211/patches/nss/subsys/203-mac80211-ath11k-fw-dynamic-muedca.patch
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    558cae7 View commit details
    Browse the repository at this point in the history
  71. Revert "ath11k_nss: Add mac80211 based AQL support"

    This reverts commit b1b446335beee744c7a74770d7383618d9cc3202.
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b43bfd4 View commit details
    Browse the repository at this point in the history
  72. ath11k_nss: add missing NL80211_ATTR_HE_MUEDCA_PARAMS

    Signed-off-by: Sean Khan <[email protected]>
    
    ath11k_nss: fix missing semicolon ';'
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d388607 View commit details
    Browse the repository at this point in the history
  73. qualcommax: add coherent_pool=2M swiotlb=noforce

    Add them for all current qualcommax platforms
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    58e5e61 View commit details
    Browse the repository at this point in the history
  74. qualcommax: skbuff_recycle: allow specifiying max size

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    fb0e024 View commit details
    Browse the repository at this point in the history
  75. qualcommax: NSS: Enable NSS for Asus RT-AX89X

    NSS offload feature enablement for Asus RT-AX89X
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    f0c17d7 View commit details
    Browse the repository at this point in the history
  76. ath11k_nss: Refresh patches

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    43f96f7 View commit details
    Browse the repository at this point in the history
  77. ath11k_nss: Check for NSS FW 11.4 and build accordingly

    Some features are not available in NSS firmware 11.4.0.5
    * `NSS_WIFI_VDEV_EXT_DATA_PKT_TYPE_4ADDR`
    
    This was introduced in `NHSS.QSDK.11.5`. To avoid unexpected issues,
    disable the case check for `NSS_WIFI_VDEV_EXT_DATA_PKT_TYPE_4ADDR` if
    `CONFIG_NSS_FIRMWARE_VERSION_11_4` is selected.
    
    Signed-off-by: Sean Khan <[email protected]>
    
    ath11k_nss: rename '*.patch.patch' to '.patch'
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    a573c29 View commit details
    Browse the repository at this point in the history
  78. ath11k_nss: Bump version 6.6.15 to 6.9.9

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    db35321 View commit details
    Browse the repository at this point in the history
  79. ath11k_nss: optimize qca-nss-pbuf init script

    New:
    * Add UCI option to /etc/config/pbuf
      1. `stats_disable` - Allows disabling extended stats
         collection. (Default: '1')
    
      2. `scaling_governor` - Allow specifying CPU governor.
         (Default: disabled )
    
         Choices depend on what your system is compiled with. Can be found
         using:
    
         ```sh
         cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
         ondemand performance schedutil
         ```
    
    Changes:
    
    * Rather than hardcode every device model's memory profile. Simply read the
      memory available from `/proc/meminfo`.
    * Scaling governor is no longer forced as `performance`. It is now user
      configurable.
    * Hash bitmap is now calculated from number of CPUs rather than hardcoded to `15`
    * Limit `n2h_queue_limit_core` to `256`. This was set to `2048` which is
      too high when NSS wifi is also enabled.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d3fb430 View commit details
    Browse the repository at this point in the history
  80. qualcommax: Switch to upstream default config

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    a6eeacf View commit details
    Browse the repository at this point in the history
  81. qualcommax: Add new menu item for IPQ settings

    Rather mess with target 'config-*' files, introduce a custom menu item
    that consolidates all IPQ related kernel settings in one menu.
    
    Most of these can be left as default since the options are derived from the
    initial NSS fork for 'config-6.6'.
    
    Options include:
    1) enable or disable building `skbuff_recycle`
    2) enable or disable preemption
    3) select IPQ memory profile
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    7e9b136 View commit details
    Browse the repository at this point in the history
  82. qualcommax: skbuff_recycle: add proc option to enable/disable

    There are instances where `skbuff_recycle` messes up skb headers causing
    various issues in network related activities. This was initially meant
    to resolve issues with memory usage issues on 6.1.
    
    Introduce a proc option to enable or disable skbuff_recycle. The default
    is to have it enabled. Users on 512M platforms should test if memory
    leaks still occur with this option disabled.
    
    echo 0 > /proc/net/skb_recycler/skb_recycler_enable
    
    echo 1 > /proc/net/skb_recycler/skb_recycler_enable
    
    NOTE: There is a new script in `qca-nss-drv` that will automatically
    manage this as an UCI configurable option.
    
    commit 217a4fa43ba2ad0a02e8080dfde11ad23534aa8c (HEAD -> NSS-12.5-K6.x)
    Author:     Sean Khan <[email protected]>
    AuthorDate: Sat Jul 13 18:43:52 2024 -0400
    Commit:     Sean Khan <[email protected]>
    CommitDate: Sat Jul 13 18:43:52 2024 -0400
    
        nss-drv: add skb_recycler init script
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    07dc584 View commit details
    Browse the repository at this point in the history
  83. qualcommax: skbuff: at latest changes from QSDK

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    39d809b View commit details
    Browse the repository at this point in the history
  84. iproute2: NSS: sync patch from QSDK 12.5

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    3e46195 View commit details
    Browse the repository at this point in the history
  85. qualcommax: enable skb_recycle for IPQ > 256M

    Also set SKB_FIXED_SIZE_2K if IPQ memory profile is < 512M
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    eb17856 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    387c779 View commit details
    Browse the repository at this point in the history
  87. qualcommax: NSS: Refresh patches against 6.6.41

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    c2a352e View commit details
    Browse the repository at this point in the history
  88. ath11k_nss: Revert logic from coconut branch in NSS redirect

    There was logic that was initially included in the coconut branch of
    QSDK for older mac80211 NSS implementation. It was brought over to
    address an issue with ath10k where during heavy traffic, AP would trigger
    `failed to increase tx pending count: -16, dropping`.
    
    The issue was actually caused by `skb_recyler` malforming some packets.
    Disabling `skb_recyler` fixed the error, and therefore the logic
    regarding `skb_queue_len(&local->pending[q]) >= 1000` can be reverted to
    match what is currently upstream with QSDK.
    
    Alsi refreshed remaning patches after rebase.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    38a43d0 View commit details
    Browse the repository at this point in the history
  89. ath11k_nss: Possible fix for WDS

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    f6c2baa View commit details
    Browse the repository at this point in the history
  90. ath11k_nss: WAR for association failure issue with WDS

    Every 100 milliseconds, the station sends an "association request" and
    the AP adds the peer and the AP responds to the station with an
    "association response".
    
    But "association response" takes time to reach the station. Because of
    this, the station sends another "association request" to the AP.
    
    In the second associate request, the AP removes the peer and re-adds
    the station. Meanwhile, "association response" is reached to station
    and station sends "QoS NULL" frame to AP.
    
    The moment the station sends a QoS NULL frame to the ap, the peer on
    the AP is deleted and the AP sends a de-authentication to the station.
    
    To fix this issue, increased the assoc timeout period from 100 milli-
    seconds to 500 milli seconds.
    
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    d6b90e3 View commit details
    Browse the repository at this point in the history
  91. ath11k_nss: Fix RX thermal throttling on newer 2.12 firmware

    There is an issue when enabling thermal support on newer ath11k firmware.
    TX/RX rates are being limited, often times 50% of client's HE
    capabilities.
    
    The issue stems from a mismatch in WMI API structure. The range to
    throttle is currently "-100°C" to "150°C", this essentially means
    "always" throttle.
    
    Integrate patch from dd-wrt which adds missing WMI structures and
    proper thermal ranges for IPQ5018, IPQ807x, and QCN9000.
    
    Patch-by: Sebastian Gottschall <[email protected]>
    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    9041347 View commit details
    Browse the repository at this point in the history
  92. Update 999-900-bss-transition-handling.patch

    Signed-off-by: qosmio <[email protected]>
    qosmio authored Aug 9, 2024
    Configuration menu
    Copy the full SHA
    dbecf87 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    1dcce89 View commit details
    Browse the repository at this point in the history
  94. ath11k_nss: utilize existing function to get arvif from dev

    Signed-off-by: Sean Khan <[email protected]>
    qosmio committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    e9dcf8d View commit details
    Browse the repository at this point in the history