brcmfmac: replace WARNING on timeout with a simple error message
PATCH 1/1 brcmfmac: replace WARNING on timeout with a simple error message
From: Rafał Miłecki <[email protected]>
Even with timeout increased to 950 ms we get WARNINGs from time to time. It mostly happens on A-MPDU stalls (e.g. when station goes out of range). It may take up to 5-10 secods for the firmware to recover and for that time it doesn't process packets.
It's still useful to have a message on time out as it may indicate some firmware problem and incorrect key update. Raising a WARNING however wasn't really that necessary, it doesn't point to any driver bug anymore and backtrace wasn't much useful.
--- drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +2 -1
@@ -1161,7 +1161,8 @@ int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp) !brcmf_get_pend_8021x_cnt (ifp), MAX_WAIT_FOR_8021X_TX); -WARN_ON (!err); +if (!err) +brcmf_err ("Timed out waiting for no pending 802.1x packets\n" );return !err; }
Signature · 1 line
2.9.3
Quoted 11 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Even with timeout increased to 950 ms we get WARNINGs from time to time. It mostly happens on A-MPDU stalls (e.g. when station goes out of range). It may take up to 5-10 secods for the firmware to recover and for that time it doesn't process packets.
It's still useful to have a message on time out as it may indicate some firmware problem and incorrect key update. Raising a WARNING however wasn't really that necessary, it doesn't point to any driver bug anymore and backtrace wasn't much useful.
Indeed the interesting part would be in another context. So:
Quoted 20 lines
Signed-off-by Rafał Miłecki <[email protected]>--- drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c +2
-1@@ -1161,7 +1161,8 @@ int brcmf_netdev_wait_pend8021x(struct brcmf_if *ifp) !brcmf_get_pend_8021x_cnt (ifp), MAX_WAIT_FOR_8021X_TX); -WARN_ON (!err); +if (!err) +brcmf_err ("Timed out waiting for no pending 802.1x packets\n" );return !err; }
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
Even with timeout increased to 950 ms we get WARNINGs from time to time. It mostly happens on A-MPDU stalls (e.g. when station goes out of range). It may take up to 5-10 secods for the firmware to recover and for that time it doesn't process packets.
Quoted 7 lines
It's still useful to have a message on time out as it may indicate some firmware problem and incorrect key update. Raising a WARNING however wasn't really that necessary, it doesn't point to any driver bug anymore and backtrace wasn't much useful.
Signed-off-by Rafał Miłecki <[email protected]>Acked-by Arend van Spriel <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
2f0e56fa37cc brcmfmac: replace WARNING on timeout with a simple error message
Signature · 6 lines
https://patchwork.kernel.org/patch/9351657/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches