Skip to content
Permalink
Carl-Huang/ath…
Switch branches/tags

Commits on Feb 8, 2022

  1. ath11k: support GTK rekey offload

    Host sets GTK related info to firmware before WoW is enabled, and
    gets rekey replay_count and then disables GTK rekey when WoW quits.
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022
  2. ath11k: support ARP and NS offload

    Support ARP and NS offload in WoW state.
    
    Tested this way: put machine A with QCA6390 to WoW state,
    ping/ping6 machine A from another machine B, check sniffer to see
    any ARP response and Neighbour advertisement from machine A.
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022
  3. ath11k: purge rx pktlog when entering WoW

    This change is to purge rx pktlog when entering WoW and reap
    the mon_status buffer to keep it empty. When leaving WoW, host
    restarts the reap timer. In WoW state, it's not allowed to feed
    into mon_status rings per firmware team's recommendation.
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022
  4. ath11k: implement hardware data filter

    Host needs to set hardware data filter before entering WoW to
    let firmware drop needless broadcast/mulitcast frames to avoid
    frequent wakeup. Host clears hardware data filter when leaving WoW.
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022
  5. ath11k: Add WoW net-detect functionality

    Implement net-detect feature by setting flag
    WIPHY_WOWLAN_NET_DETECT if firmware supports this
    feature. Driver sets the related PNO configuration
    to firmware before entering WoW and firmware then
    scans periodically and wakes up host if a specific
    SSID is found.
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022
  6. ath11k: Add basic WoW functionalities

    Implement basic WoW functionalities such as magic-packet, disconnect
    and pattern. The logic is very similar to ath10k.
    
    When WoW is configured, ath11k_core_suspend and ath11k_core_resume
    are skipped as WoW configuration and hif suspend/resume are done in
    ath11k_wow_op_suspend() and ath11k_wow_op_resume().
    
    Tested-on: QCA6390 hw2.0 PCI WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1
    
    Signed-off-by: Carl Huang <quic_cjhuang@quicinc.com>
    Signed-off-by: Baochen Qiang <quic_bqiang@quicinc.com>
    Signed-off-by: Wen Gong <quic_wgong@quicinc.com>
    Carl Huang authored and intel-lab-lkp committed Feb 8, 2022

Commits on Feb 3, 2022

  1. Add localversion-wireless-testing-ath

    Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
    Kalle Valo committed Feb 3, 2022
  2. Merge remote-tracking branch 'mhi/mhi-next'

    Kalle Valo committed Feb 3, 2022
  3. Merge branch 'ath-next'

    Kalle Valo committed Feb 3, 2022
  4. wcn36xx: clean up some inconsistent indenting

    Eliminate the follow smatch warnings:
    drivers/net/wireless/ath/wcn36xx/main.c:1394 wcn36xx_get_survey() warn:
    inconsistent indenting
    drivers/net/wireless/ath/wcn36xx/txrx.c:379 wcn36xx_rx_skb() warn:
    inconsistent indenting
    
    Reported-by: Abaci Robot <abaci@linux.alibaba.com>
    Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
    Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
    Link: https://lore.kernel.org/r/20220201041548.18464-1-yang.lee@linux.alibaba.com
    Yang Li authored and Kalle Valo committed Feb 3, 2022

Commits on Feb 1, 2022

  1. Add localversion to identify builds from this tree

    Signed-off-by: Bob Copeland <me@bobcopeland.com>
    bcopeland committed Feb 1, 2022
  2. Merge branch 'lan966x-ptp'

    Horatiu Vultur says:
    
    ====================
    net: lan966x: Add PTP Hardward Clock support
    
    Add support for PTP Hardware Clock (PHC) for lan966x. The switch supports
    both PTP 1-step and 2-step modes.
    
    v1->v2:
    - fix commit messages
    - reduce the scope of the lock ptp_lock inside the function
      lan966x_ptp_hwtstamp_set
    - the rx timestamping is always enabled for all packages
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Feb 1, 2022
  3. net: lan966x: Implement get_ts_info

    Implement the function get_ts_info in ethtool_ops which is needed to get
    the HW capabilities for timestamping.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  4. net: lan966x: Add support for ptp interrupts

    When doing 2-step timestamping the HW will generate an interrupt when it
    managed to timestamp a frame. It is the SW responsibility to read it
    from the FIFO.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  5. net: lan966x: Update extraction/injection for timestamping

    Update both the extraction and injection to do timestamping of the
    frames. The extraction is always doing the timestamping while for
    injection is doing the timestamping only if it is configured.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  6. net: lan966x: Implement SIOCSHWTSTAMP and SIOCGHWTSTAMP

    Implement the ioctl callbacks SIOCSHWTSTAMP and SIOCGHWTSTAMP to allow
    to configure the ports to enable/disable timestamping for TX. The RX
    timestamping is always enabled. The HW is capable to run both 1-step
    timestamping and 2-step timestamping.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  7. net: lan966x: Add support for ptp clocks

    The lan966x has 3 PHC. Enable each of them, for now all the
    timestamping is happening on the first PHC.
    
    Acked-by: Richard Cochran <richardcochran@gmail.com>
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  8. net: lan966x: Add registers that are use for ptp functionality

    Add the registers that will be used to configure the PHC in the HW.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  9. dt-bindings: net: lan966x: Extend with the ptp interrupt

    Extend dt-bindings for lan966x with ptp interrupt. This is generated
    when doing 2-step timestamping and the timestamp can be read from the
    FIFO.
    
    Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    HoratiuVultur authored and davem330 committed Feb 1, 2022
  10. selftests: fib rule: Don't echo modified sysctls

    Run sysctl in quiet mode. Echoing the modified sysctl doesn't bring any
    useful information.
    
    Signed-off-by: Guillaume Nault <gnault@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guillaume Nault authored and davem330 committed Feb 1, 2022
  11. selftests: fib rule: Log test description

    All callers of fib_rule6_test_match_n_redirect() and
    fib_rule4_test_match_n_redirect() pass a third argument containing a
    description of the test being run. Instead of ignoring this argument,
    let's use it for logging instead of printing a truncated version of the
    command.
    
    Signed-off-by: Guillaume Nault <gnault@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guillaume Nault authored and davem330 committed Feb 1, 2022
  12. selftests: fib rule: Drop erroneous TABLE variable

    The fib_rule6_del_by_pref() and fib_rule4_del_by_pref() functions use
    an uninitialised $TABLE variable. They should use $RTABLE instead.
    This doesn't alter the result of the test, as it just makes the grep
    command less specific (but since the script always uses the same table
    number, that doesn't really matter).
    
    Let's fix it anyway and, while there, specify the filtering parameters
    directly in 'ip -X rule show' to avoid the extra grep command entirely.
    
    Signed-off-by: Guillaume Nault <gnault@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guillaume Nault authored and davem330 committed Feb 1, 2022
  13. selftests: fib rule: Make 'getmatch' and 'match' local variables

    Let's restrict the scope of these variables to avoid possible
    interferences.
    
    Signed-off-by: Guillaume Nault <gnault@redhat.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Guillaume Nault authored and davem330 committed Feb 1, 2022
  14. Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git…

    …/tnguy/next
    
    -queue
    
    Tony Nguyen says:
    
    ====================
    10GbE Intel Wired LAN Driver Updates 2022-01-31
    
    Alexander Lobakin says:
    
    This is an interpolation of [0] to other Intel Ethernet drivers
    (and is (re)based on its code).
    The main aim is to keep XDP metadata not only in case with
    build_skb(), but also when we do napi_alloc_skb() + memcpy().
    
    All Intel drivers suffers from the same here:
     - metadata gets lost on XDP_PASS in legacy-rx;
     - excessive headroom allocation on XSK Rx to skbs;
     - metadata gets lost on XSK Rx to skbs.
    
    Those get especially actual in XDP Hints upcoming.
    I couldn't have addressed the first one for all Intel drivers due to
    that they don't reserve any headroom for now in legacy-rx mode even
    with XDP enabled. This is hugely wrong, but requires quite a bunch
    of work and a separate series. Luckily, ice doesn't suffer from
    that.
    igc has 1 and 3 already fixed in [0].
    
    [0] https://lore.kernel.org/netdev/163700856423.565980.10162564921347693758.stgit@firesoul
    ====================
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    davem330 committed Feb 1, 2022
  15. brcmfmac: pcie: Read the console on init and shutdown

    This allows us to get console messages if the firmware crashed during
    early init, or if an operation failed and we're about to shut down.
    
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-10-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  16. brcmfmac: fwil: Constify iovar name arguments

    Make all the iovar name arguments const char * instead of just char *.
    
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-9-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  17. brcmfmac: of: Use devm_kstrdup for board_type & check for errors

    This was missing a NULL check, and we can collapse the strlen/alloc/copy
    into a devm_kstrdup().
    
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-8-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  18. brcmfmac: pcie: Fix crashes due to early IRQs

    The driver was enabling IRQs before the message processing was
    initialized. This could cause IRQs to come in too early and crash the
    driver. Instead, move the IRQ enable and hostready to a bus preinit
    function, at which point everything is properly initialized.
    
    Fixes: 9e37f04 ("brcmfmac: Adding PCIe bus layer support.")
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-7-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  19. brcmfmac: pcie: Replace brcmf_pcie_copy_mem_todev with memcpy_toio

    The alignment check was wrong (e.g. & 4 instead of & 3), and the logic
    was also inefficient if the length was not a multiple of 4, since it
    would needlessly fall back to copying the entire buffer bytewise.
    
    We already have a perfectly good memcpy_toio function, so just call that
    instead of rolling our own copy logic here. brcmf_pcie_init_ringbuffers
    was already using it anyway.
    
    Fixes: 9e37f04 ("brcmfmac: Adding PCIe bus layer support.")
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-6-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  20. brcmfmac: pcie: Declare missing firmware files in pcie.c

    Move one of the declarations from sdio.c to pcie.c, since it makes no
    sense in the former (SDIO support is optional), and add missing ones.
    
    Fixes: 75729e1 ("brcmfmac: expose firmware config files through modinfo")
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-5-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  21. brcmfmac: firmware: Allocate space for default boardrev in nvram

    If boardrev is missing from the NVRAM we add a default one, but this
    might need more space in the output buffer than was allocated. Ensure
    we have enough padding for this in the buffer.
    
    Fixes: 46f2b38 ("brcmfmac: insert default boardrev in nvram data if missing")
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-3-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
  22. brcmfmac: pcie: Release firmwares in the brcmf_pcie_setup error path

    This avoids leaking memory if brcmf_chip_get_raminfo fails. Note that
    the CLM blob is released in the device remove path.
    
    Fixes: 82f93cf ("brcmfmac: get chip's default RAM info during PCIe setup")
    Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
    Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Hector Martin <marcan@marcan.st>
    Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20220131160713.245637-2-marcan@marcan.st
    marcan authored and Kalle Valo committed Feb 1, 2022
Older