[BUG] iwlwifi: card unusable after firmware crash

From: Rui Salvaterra
Date: Tue Dec 08 2020 - 06:28:58 EST


Hi, everyone,

I'm running Linux 5.10-rc7 with this firmware/hardware:

[ 1.431878] iwlwifi 0000:02:00.0: loaded firmware version
29.198743027.0 7265D-29.ucode op_mode iwlmvm
[ 1.431899] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band
Wireless AC 3165, REV=0x210

Most of the time, after disabling/enabling Wi-Fi (or, say, rebooting
the router), the card dies and only comes back after reboot. This is
the relevant dmesg output:

[ 3174.003910] iwlwifi 0000:02:00.0: RF_KILL bit toggled to disable radio.
[ 3174.003913] iwlwifi 0000:02:00.0: reporting RF_KILL (radio disabled)
[ 3174.040788] iwlwifi 0000:02:00.0: iwlwifi transaction failed,
dumping registers
[ 3174.040790] iwlwifi 0000:02:00.0: iwlwifi device config registers:
[ 3174.041008] iwlwifi 0000:02:00.0: 00000000: 31668086 00100406
02800099 00000010 c1100004 00000000 00000000 00000000
[ 3174.041010] iwlwifi 0000:02:00.0: 00000020: 00000000 00000000
00000000 42108086 00000000 000000c8 00000000 000001ff
[ 3174.041011] iwlwifi 0000:02:00.0: 00000040: 00020010 10008ec0
00100c10 0046e811 10110142 00000000 00000000 00000000
[ 3174.041013] iwlwifi 0000:02:00.0: 00000060: 00000000 00080812
00000005 00000000 00010001 00000000 00000000 00000000
[ 3174.041014] iwlwifi 0000:02:00.0: 00000080: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041016] iwlwifi 0000:02:00.0: 000000a0: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041017] iwlwifi 0000:02:00.0: 000000c0: 00000000 00000000
c823d001 0d000000 00814005 fee00318 00000000 00000000
[ 3174.041019] iwlwifi 0000:02:00.0: 000000e0: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041020] iwlwifi 0000:02:00.0: 00000100: 14010001 00000000
00000000 00462031 00000000 00002000 00000000 00000000
[ 3174.041022] iwlwifi 0000:02:00.0: 00000120: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041023] iwlwifi 0000:02:00.0: 00000140: 14c10003 ff75a50d
e09467ff 15410018 10031003 0001001e 00f01e1f 6003000b
[ 3174.041024] iwlwifi 0000:02:00.0: iwlwifi device memory mapped registers:
[ 3174.041075] iwlwifi 0000:02:00.0: 00000000: 00800000 00000000
00000080 00000000 00000000 00000000 00000000 00000000
[ 3174.041076] iwlwifi 0000:02:00.0: 00000020: 00000001 080003d8
00000210 d55555d5 00000000 d55555d5 80008040 00080042
[ 3174.041088] iwlwifi 0000:02:00.0: iwlwifi device AER capability structure:
[ 3174.041112] iwlwifi 0000:02:00.0: 00000000: 14010001 00000000
00000000 00462031 00000000 00002000 00000000 00000000
[ 3174.041113] iwlwifi 0000:02:00.0: 00000020: 00000000 00000000 00000000
[ 3174.041114] iwlwifi 0000:02:00.0: iwlwifi parent port
(0000:00:1c.5) config registers:
[ 3174.041198] iwlwifi 0000:00:1c.5: 00000000: 9d158086 00100407
060400f1 00810010 00000000 00000000 00020200 200000f0
[ 3174.041200] iwlwifi 0000:00:1c.5: 00000020: c110c110 0001fff1
00000000 00000000 00000000 00000040 00000000 000202ff
[ 3174.041201] iwlwifi 0000:00:1c.5: 00000040: 01428010 00008001
00110000 06724813 70110042 002cb200 01400000 00000000
[ 3174.041203] iwlwifi 0000:00:1c.5: 00000060: 00000000 00000037
00000000 0000000e 00010003 00000000 00000000 00000000
[ 3174.041204] iwlwifi 0000:00:1c.5: 00000080: 00019005 fee00258
00000000 00000000 0000a00d 382a17aa 00000000 00000000
[ 3174.041206] iwlwifi 0000:00:1c.5: 000000a0: c8030001 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041207] iwlwifi 0000:00:1c.5: 000000c0: 00000000 00000000
00000000 00000000 07001001 00001842 8b1e0008 00000000
[ 3174.041209] iwlwifi 0000:00:1c.5: 000000e0: 00630300 00000000
00100006 00000000 00000050 4c000000 08230fb3 02000004
[ 3174.041210] iwlwifi 0000:00:1c.5: 00000100: 14000000 00000000
00000000 00060011 00000001 00002000 00000000 00000000
[ 3174.041211] iwlwifi 0000:00:1c.5: 00000120: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041213] iwlwifi 0000:00:1c.5: 00000140: 2001000d 0000000f
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041214] iwlwifi 0000:00:1c.5: 00000160: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041216] iwlwifi 0000:00:1c.5: 00000180: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041217] iwlwifi 0000:00:1c.5: 000001a0: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041218] iwlwifi 0000:00:1c.5: 000001c0: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041220] iwlwifi 0000:00:1c.5: 000001e0: 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000
[ 3174.041221] iwlwifi 0000:00:1c.5: 00000200: 2201001e 0028281f 6003280b

I also had this problem with the previous firmware version. Any ideas
about what could be causing it?

Thanks,
Rui