Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150126321
D6081.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D6081.id.diff
View Options
Index: head/sys/dev/iwm/if_iwm.c
===================================================================
--- head/sys/dev/iwm/if_iwm.c
+++ head/sys/dev/iwm/if_iwm.c
@@ -4344,7 +4344,6 @@
handled |= (r1 & (IWM_CSR_INT_BIT_ALIVE /*| IWM_CSR_INT_BIT_SCD*/));
if (r1 & IWM_CSR_INT_BIT_SW_ERR) {
-#ifdef IWM_DEBUG
int i;
struct ieee80211com *ic = &sc->sc_ic;
struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
@@ -4364,13 +4363,21 @@
" rx ring: cur=%d\n", sc->rxq.cur);
device_printf(sc->sc_dev,
" 802.11 state %d\n", vap->iv_state);
-#endif
- device_printf(sc->sc_dev, "fatal firmware error\n");
- iwm_stop(sc);
- rv = 1;
- goto out;
+ /* Don't stop the device; just do a VAP restart */
+ IWM_UNLOCK(sc);
+ if (vap == NULL) {
+ printf("%s: null vap\n", __func__);
+ return;
+ }
+
+ device_printf(sc->sc_dev, "%s: controller panicked, iv_state = %d; "
+ "restarting\n", __func__, vap->iv_state);
+
+ /* XXX TODO: turn this into a callout/taskqueue */
+ ieee80211_restart_all(ic);
+ return;
}
if (r1 & IWM_CSR_INT_BIT_HW_ERR) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 2:51 PM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30589925
Default Alt Text
D6081.id.diff (1 KB)
Attached To
Mode
D6081: allow to restart iwm automatically
Attached
Detach File
Event Timeline
Log In to Comment