Skip to content

wifi: ath9k_htc: cope with lost WMI reads

Nerijus Bendžiūnas linux-wireless lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Drop the length-drop counter patch from the series; it is sent on its own, it has nothing to do with WMI reads.
- Patch 2: the counter is named "Issued", it counts commands that were handed to the device.
- Add Assisted-by, rewrite the commit messages, rebase onto ath-next.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2wifi: ath9k_htc: derive the PHY error filter bits from software statedrivers/net/wireless/ath/ath9k/htc_drv_txrx.c+5 -70 replies
2/2wifi: ath9k_htc: count WMI commands and timeouts in debugfsdrivers/net/wireless/ath/ath9k/htc_drv_debug.c drivers/net/wireless/ath/ath9k/wmi.c drivers/net/wireless/ath/ath9k/wmi.h+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] wifi: ath9k_htc: cope with lost WMI reads

On the USB devices every register read is a WMI round trip that can time out, and ath9k_regread() reports a timeout as -1, the same as an all-ones register. Two patches already on the list handle the reads that caused the most damage: the spectral trigger no longer reads the filter back [1], and a failed multi-read returns all ones [2].

Patch 1 stops ath9k_htc_calcrxfilter() reading AR_RX_FILTER and AR_PHY_ERR back to find out whether a spectral scan set the PHY error bits, and sets them from spec_priv instead. Patch 2 counts WMI commands issued and timed out in a new debugfs file, so a timeout can be seen on a kernel without debug output.

[1] https://lore.kernel.org/linux-wireless/[email protected]/
[2] https://lore.kernel.org/linux-wireless/[email protected]/

Changes in v2:
- Drop the length-drop counter patch from the series; it is sent on its own, it has nothing to do with WMI reads.
- Patch 2: the counter is named "Issued", it counts commands that were handed to the device.
- Add Assisted-by, rewrite the commit messages, rebase onto ath-next.

Nerijus Bendžiūnas (2):
wifi: ath9k_htc: derive the PHY error filter bits from software state
wifi: ath9k_htc: count WMI commands and timeouts in debugfs

 .../net/wireless/ath/ath9k/htc_drv_debug.c    | 25 +++++++++++++++++++
 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 12 ++++-----
 drivers/net/wireless/ath/ath9k/wmi.c          |  2 ++
 drivers/net/wireless/ath/ath9k/wmi.h          |  2 ++
 4 files changed, 34 insertions(+), 7 deletions(-)

base-commit: 1d8e73163ef933624341075f576e2f36ef9133f7

Signature · 1 line
2.55.0