* iwlwifi micorcode errors and hardware resets problems
@ 2013-08-23 9:08 Stanislaw Gruszka
2013-08-24 11:52 ` Luca Coelho
0 siblings, 1 reply; 3+ messages in thread
From: Stanislaw Gruszka @ 2013-08-23 9:08 UTC (permalink / raw)
To: ilw; +Cc: linux-wireless
We have those bug reports on RH bugzilla, and various other iwlwifi
problems, but those have some common scenario:
https://bugzilla.redhat.com/show_bug.cgi?id=979873
https://bugzilla.redhat.com/show_bug.cgi?id=990536
https://bugzilla.redhat.com/show_bug.cgi?id=994322
https://bugzilla.redhat.com/show_bug.cgi?id=996502
https://bugzilla.redhat.com/show_bug.cgi?id=969610
https://bugzilla.redhat.com/show_bug.cgi?id=999053
First there is Microcode error or other firmware problem, what make we
do iwl_trans_stop_device() which set trans->state to IWL_TRANS_NO_FW.
If mac80211 has some pending works/timers i.e. ieee80211_sta_work(),
it calls drv and we trigger on of those warnings
WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
"%s bad state = %d", __func__, trans->state);
on some trans operation.
I think this can be fixed by first do quiesce on mac80211 (for example
by ieee80211_sta_quiesce() procedure, which I removed but can be added
back) and then do iwlagn_prepare_restart() & ieee80211_restart_hw().
Though I'm not sure if it's worth to do this since those warnings are
indicator for malfunctioning iwlwifi firmware (or driver not correctly
communicating with firmware), which will be unnoticed if not reported
automatically by tool like ABRT. But perhaps we could add WARN_ONCE on
Microcode error condition ?
Additionally I wonder if there is good way to debug those microcode
problems (I mean root of the problem), since most of them happen at
random after hours or days uptime?
Thoughts?
Stanislaw
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: iwlwifi micorcode errors and hardware resets problems
2013-08-23 9:08 iwlwifi micorcode errors and hardware resets problems Stanislaw Gruszka
@ 2013-08-24 11:52 ` Luca Coelho
2013-08-25 8:21 ` [Ilw] " Grumbach, Emmanuel
0 siblings, 1 reply; 3+ messages in thread
From: Luca Coelho @ 2013-08-24 11:52 UTC (permalink / raw)
To: Stanislaw Gruszka; +Cc: ilw, linux-wireless
On Fri, 2013-08-23 at 11:08 +0200, Stanislaw Gruszka wrote:
> We have those bug reports on RH bugzilla, and various other iwlwifi
> problems, but those have some common scenario:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=979873
> https://bugzilla.redhat.com/show_bug.cgi?id=990536
> https://bugzilla.redhat.com/show_bug.cgi?id=994322
> https://bugzilla.redhat.com/show_bug.cgi?id=996502
> https://bugzilla.redhat.com/show_bug.cgi?id=969610
> https://bugzilla.redhat.com/show_bug.cgi?id=999053
>
> First there is Microcode error or other firmware problem, what make we
> do iwl_trans_stop_device() which set trans->state to IWL_TRANS_NO_FW.
> If mac80211 has some pending works/timers i.e. ieee80211_sta_work(),
> it calls drv and we trigger on of those warnings
>
> WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
> "%s bad state = %d", __func__, trans->state);
>
> on some trans operation.
>
> I think this can be fixed by first do quiesce on mac80211 (for example
> by ieee80211_sta_quiesce() procedure, which I removed but can be added
> back) and then do iwlagn_prepare_restart() & ieee80211_restart_hw().
>
> Though I'm not sure if it's worth to do this since those warnings are
> indicator for malfunctioning iwlwifi firmware (or driver not correctly
> communicating with firmware), which will be unnoticed if not reported
> automatically by tool like ABRT. But perhaps we could add WARN_ONCE on
> Microcode error condition ?
I think that, if the quiesce really helps with this, we should do it.
This WARN is a side-effect of the problem and not the problem itself.
If you want to catch the FW problem, there should be a WARN elsewhere.
I'm not saying that this WARN should be removed and I also think it's a
good idea to change it to WARN_ON_ONCE(). I just think that, if there's
anything the driver can do to keep things running nicely, we should do
it.
In any case, I'll leave this for Johannes, Emmanuel or some of the other
guys with more experience in iwlwifi to comment. ;)
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [Ilw] Re: iwlwifi micorcode errors and hardware resets problems
2013-08-24 11:52 ` Luca Coelho
@ 2013-08-25 8:21 ` Grumbach, Emmanuel
0 siblings, 0 replies; 3+ messages in thread
From: Grumbach, Emmanuel @ 2013-08-25 8:21 UTC (permalink / raw)
To: Luca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ZSBmaXJtd2FyZSBnZXR0aW5nIHN0dWNrIGV0Yy4uLiAgQWZ0
ZXIgYWxsIHRoaXMgaXMgd2h5IHdlIGhhdmUgYSByZXN0YXJ0IGZsb3csIGZvciB0aGVzZSBpc3N1
ZXMgdGhhdCBkb24ndCBoYXBwZW4gZnJlcXVlbnRseSBidXQgYXJlIHNvbHZhYmxlIGJ5IGEgcmVz
ZXQuIFNpbmNlIHdlIHN0aWxsIHdhbnQgdG8ga25vdyB3aGVuIHRoaXMga2luZCBvZiB0aGluZ3Mg
aGFwcGVuLCBhZGRpbmcgYSBXQVJOX09OX09OQ0Ugc291bmRzIGdvb2QuDQo=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-25 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-23 9:08 iwlwifi micorcode errors and hardware resets problems Stanislaw Gruszka
2013-08-24 11:52 ` Luca Coelho
2013-08-25 8:21 ` [Ilw] " Grumbach, Emmanuel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox