RFC mac80211/iwlwifi: quiesce before restart hw
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest5 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Revert "mac80211: cleanup suspend/resume on mesh mode"net/ net/ net/ +2 more | +97 | 0 replies | |
| 2/5 | Revert "mac80211: cleanup suspend/resume on ibss mode"net/ net/ | +32 | 0 replies | |
| 3/5 | Revert "mac80211: cleanup suspend/resume on managed mode"net/ net/ | +64 | 0 replies | |
| 4/5 | mac80211: add generic quiesce procedureinclude/ net/ net/ +3 more | +61 | 2 replies | |
| 5/5 | iwlwifi: quiesce mac80211 before fw restartdrivers/ drivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC 0/5] mac80211/iwlwifi: quiesce before restart hw
Here is continuation of short discussion I started here:
http://marc.info/?l=linux-wireless&m=137724899704012&w=2
I made patches which do quiesce and that can be used by iwlwifi restart procedure to avoid calling iwlwifi methods by mac80211 while firmware is not alive.
But honestly, I'm not happy with that work. It does not fix root of the problem (microcode errors/hangs) and seems to be just to much complication to avoid warnings, which are consequence of firmware malfunction. So I just prefer to remove WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE) and replace it by ordinary IWL_WARN(), which does not generate auto bug reports.
Regarding firmware problems debugging, perhaps ftrace can be used for that. iwlwifi has already tracing capabilities. Allow to gather log using trace-cmd and call tracing_off() when firmware error will happen, perhaps will allow to debug firmware problems efficiently. If you think that's right we could add WARN_ONCE on firmware error to have automatic bug reports. Then we could ask user for the trace to debug and solve the issue. Would that work for you?
Stanislaw Gruszka (5):
Revert "mac80211: cleanup suspend/resume on mesh mode" Revert "mac80211: cleanup suspend/resume on ibss mode" Revert "mac80211: cleanup suspend/resume on managed mode"
mac80211: add generic quiesce procedure
iwlwifi: quiesce mac80211 before fw restart
drivers/net/wireless/iwlwifi/dvm/mac80211.c | 1 + drivers/net/wireless/iwlwifi/dvm/main.c | 4 +- include/net/mac80211.h | 10 +++++ net/mac80211/ibss.c | 27 +++++++++++- net/mac80211/ieee80211_i.h | 9 ++++ net/mac80211/main.c | 33 +++++++++++++++ net/mac80211/mesh.c | 55 +++++++++++++++++++++++- net/mac80211/mesh.h | 12 ++++++ net/mac80211/mesh_plink.c | 27 +++++++++++- net/mac80211/mlme.c | 65 +++++++++++++++++++++++++++-- net/mac80211/sta_info.h | 2 + net/mac80211/util.c | 19 ++++++++- 12 files changed, 254 insertions(+), 10 deletions(-)
Signature · 1 line
1.8.3.1