Bug 206025 - iwlwifi: AC 9461 keeps restarting after upgrade kernel to 5.4 due to scan cmd bug
Summary: iwlwifi: AC 9461 keeps restarting after upgrade kernel to 5.4 due to scan cmd...
Status: CLOSED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 high
Assignee: DO NOT USE - assign "network-wireless-intel" component instead
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-31 05:34 UTC by jian-hong
Modified: 2020-05-07 08:18 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.4
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Full dmesg (541.36 KB, text/plain)
2019-12-31 05:34 UTC, jian-hong
Details
Inserted some debug messages (2.02 KB, patch)
2019-12-31 08:07 UTC, jian-hong
Details | Diff
The full debug dmesg of comment #3 (448.41 KB, text/plain)
2019-12-31 08:12 UTC, jian-hong
Details

Description jian-hong 2019-12-31 05:34:34 UTC
Created attachment 286529 [details]
Full dmesg

We have an ASUS E406MA laptop equipped with Intel(R) Dual Band Wireless AC 9461.  The WiFi is fine with kernel 5.3.  But, after the kernel is upgraded to 5.4 and 5.5, the WiFi keeps restarting and showing the error messages:

[    4.652755] iwlwifi 0000:00:0c.0: enabling device (0000 -> 0002)
[    4.744764] iwlwifi 0000:00:0c.0: Found debug destination: EXTERNAL_DRAM
[    4.744767] iwlwifi 0000:00:0c.0: Found debug configuration: 0
[    4.745242] iwlwifi 0000:00:0c.0: loaded firmware version 46.6bf1df06.0 op_mode iwlmvm
[    4.781636] iwlwifi 0000:00:0c.0: Detected Intel(R) Dual Band Wireless AC 9461, REV=0x318
[    4.791077] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    4.791716] iwlwifi 0000:00:0c.0: Allocated 0x00400000 bytes for firmware monitor.
[    4.847812] iwlwifi 0000:00:0c.0: base HW address: 7c:76:35:8b:a7:0e
[    4.892035] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    4.892283] thermal thermal_zone1: failed to read out thermal zone (-61)
[    5.241376] broken atomic modeset userspace detected, disabling atomic
[    5.636349] r8152 2-1:1.0 enx002432168f82: renamed from eth0
[    5.942933] IPv6: ADDRCONF(NETDEV_CHANGE): enx002432168f82: link becomes ready
[    5.943151] r8152 2-1:1.0 enx002432168f82: carrier on
[    6.196998] iwlwifi 0000:00:0c.0 wlo1: renamed from wlan0
[    6.244775] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    6.336805] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    6.401880] iwlwifi 0000:00:0c.0: FW already configured (0) - re-configuring
[    6.409409] iwlwifi 0000:00:0c.0: Conflict between TLV & NVM regarding enabling LAR (TLV = enabled NVM =disabled)
[    6.609491] iwlwifi 0000:00:0c.0: Microcode SW error detected. Restarting 0x0.
[    6.609562] iwlwifi 0000:00:0c.0: Start IWL Error Log Dump:
[    6.609564] iwlwifi 0000:00:0c.0: Status: 0x00000040, count: 6
[    6.609565] iwlwifi 0000:00:0c.0: Loaded firmware version: 46.6bf1df06.0
[    6.609567] iwlwifi 0000:00:0c.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL    
[    6.609568] iwlwifi 0000:00:0c.0: 0x00A022F1 | trm_hw_status0
[    6.609569] iwlwifi 0000:00:0c.0: 0x00000000 | trm_hw_status1
[    6.609570] iwlwifi 0000:00:0c.0: 0x004882DA | branchlink2
[    6.609571] iwlwifi 0000:00:0c.0: 0x0047932A | interruptlink1
[    6.609572] iwlwifi 0000:00:0c.0: 0x0000B0D0 | interruptlink2
[    6.609573] iwlwifi 0000:00:0c.0: 0x0001A83E | data1
[    6.609574] iwlwifi 0000:00:0c.0: 0x00001000 | data2
[    6.609575] iwlwifi 0000:00:0c.0: 0xF0000008 | data3
[    6.609576] iwlwifi 0000:00:0c.0: 0x00000000 | beacon time
[    6.609577] iwlwifi 0000:00:0c.0: 0x00038F0D | tsf low
[    6.609578] iwlwifi 0000:00:0c.0: 0x00000000 | tsf hi
[    6.609579] iwlwifi 0000:00:0c.0: 0x00000000 | time gp1
[    6.609580] iwlwifi 0000:00:0c.0: 0x00038F0E | time gp2
[    6.609581] iwlwifi 0000:00:0c.0: 0x00000001 | uCode revision type
[    6.609582] iwlwifi 0000:00:0c.0: 0x0000002E | uCode version major
[    6.609583] iwlwifi 0000:00:0c.0: 0x6BF1DF06 | uCode version minor
[    6.609584] iwlwifi 0000:00:0c.0: 0x00000312 | hw version
[    6.609585] iwlwifi 0000:00:0c.0: 0x00C89008 | board version
[    6.609586] iwlwifi 0000:00:0c.0: 0x001E0177 | hcmd
[    6.609587] iwlwifi 0000:00:0c.0: 0x00122080 | isr0
[    6.609588] iwlwifi 0000:00:0c.0: 0x00000000 | isr1
[    6.609590] iwlwifi 0000:00:0c.0: 0x08001802 | isr2
[    6.609591] iwlwifi 0000:00:0c.0: 0x404001C0 | isr3
[    6.609592] iwlwifi 0000:00:0c.0: 0x00000000 | isr4
[    6.609593] iwlwifi 0000:00:0c.0: 0x001E0177 | last cmd Id
[    6.609594] iwlwifi 0000:00:0c.0: 0x0001A83E | wait_event
[    6.609595] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_control
[    6.609596] iwlwifi 0000:00:0c.0: 0x00000820 | l2p_duration
[    6.609597] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_mhvalid
[    6.609598] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_addr_match
[    6.609599] iwlwifi 0000:00:0c.0: 0x0000000D | lmpm_pmg_sel
[    6.609600] iwlwifi 0000:00:0c.0: 0x08081425 | timestamp
[    6.609601] iwlwifi 0000:00:0c.0: 0x0000183C | flow_handler
[    6.609632] iwlwifi 0000:00:0c.0: Start IWL Error Log Dump:
[    6.609633] iwlwifi 0000:00:0c.0: Status: 0x00000040, count: 7
[    6.609635] iwlwifi 0000:00:0c.0: 0x20000034 | NMI_INTERRUPT_WDG
[    6.609636] iwlwifi 0000:00:0c.0: 0x00000000 | umac branchlink1
[    6.609637] iwlwifi 0000:00:0c.0: 0xC008885E | umac branchlink2
[    6.609638] iwlwifi 0000:00:0c.0: 0x80454D04 | umac interruptlink1
[    6.609639] iwlwifi 0000:00:0c.0: 0xC00842AC | umac interruptlink2
[    6.609640] iwlwifi 0000:00:0c.0: 0x00000400 | umac data1
[    6.609641] iwlwifi 0000:00:0c.0: 0xC00842AC | umac data2
[    6.609642] iwlwifi 0000:00:0c.0: 0xDEADBEEF | umac data3
[    6.609643] iwlwifi 0000:00:0c.0: 0x0000002E | umac major
[    6.609644] iwlwifi 0000:00:0c.0: 0x6BF1DF06 | umac minor
[    6.609645] iwlwifi 0000:00:0c.0: 0x00038EF4 | frame pointer
[    6.609646] iwlwifi 0000:00:0c.0: 0xC0886B5C | stack pointer
[    6.609647] iwlwifi 0000:00:0c.0: 0x001F010C | last host cmd
[    6.609648] iwlwifi 0000:00:0c.0: 0x00000000 | isr status reg
[    6.609663] iwlwifi 0000:00:0c.0: Fseq Registers:
[    6.609669] iwlwifi 0000:00:0c.0: 0xD47FC354 | FSEQ_ERROR_CODE
[    6.609676] iwlwifi 0000:00:0c.0: 0x00000000 | FSEQ_TOP_INIT_VERSION
[    6.609682] iwlwifi 0000:00:0c.0: 0x3B1CF78F | FSEQ_CNVIO_INIT_VERSION
[    6.609689] iwlwifi 0000:00:0c.0: 0x0000A384 | FSEQ_OTP_VERSION
[    6.609695] iwlwifi 0000:00:0c.0: 0x7E89024E | FSEQ_TOP_CONTENT_VERSION
[    6.609701] iwlwifi 0000:00:0c.0: 0xD2C4CFDC | FSEQ_ALIVE_TOKEN
[    6.609707] iwlwifi 0000:00:0c.0: 0x8F57133D | FSEQ_CNVI_ID
[    6.609714] iwlwifi 0000:00:0c.0: 0xF6F0E2AF | FSEQ_CNVR_ID
[    6.609720] iwlwifi 0000:00:0c.0: 0x01000100 | CNVI_AUX_MISC_CHIP
[    6.609728] iwlwifi 0000:00:0c.0: 0x00000201 | CNVR_AUX_MISC_CHIP
[    6.609736] iwlwifi 0000:00:0c.0: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[    6.609784] iwlwifi 0000:00:0c.0: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[    6.609801] iwlwifi 0000:00:0c.0: Collecting data: trigger 2 fired.[    4.652755] iwlwifi 0000:00:0c.0: enabling device (0000 -> 0002)
[    4.744764] iwlwifi 0000:00:0c.0: Found debug destination: EXTERNAL_DRAM
[    4.744767] iwlwifi 0000:00:0c.0: Found debug configuration: 0
[    4.745242] iwlwifi 0000:00:0c.0: loaded firmware version 46.6bf1df06.0 op_mode iwlmvm
[    4.781636] iwlwifi 0000:00:0c.0: Detected Intel(R) Dual Band Wireless AC 9461, REV=0x318
[    4.791077] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    4.791716] iwlwifi 0000:00:0c.0: Allocated 0x00400000 bytes for firmware monitor.
[    4.847812] iwlwifi 0000:00:0c.0: base HW address: 7c:76:35:8b:a7:0e
[    4.892035] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    4.892283] thermal thermal_zone1: failed to read out thermal zone (-61)
[    5.241376] broken atomic modeset userspace detected, disabling atomic
[    5.636349] r8152 2-1:1.0 enx002432168f82: renamed from eth0
[    5.942933] IPv6: ADDRCONF(NETDEV_CHANGE): enx002432168f82: link becomes ready
[    5.943151] r8152 2-1:1.0 enx002432168f82: carrier on
[    6.196998] iwlwifi 0000:00:0c.0 wlo1: renamed from wlan0
[    6.244775] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    6.336805] iwlwifi 0000:00:0c.0: Applying debug destination EXTERNAL_DRAM
[    6.401880] iwlwifi 0000:00:0c.0: FW already configured (0) - re-configuring
[    6.409409] iwlwifi 0000:00:0c.0: Conflict between TLV & NVM regarding enabling LAR (TLV = enabled NVM =disabled)
[    6.609491] iwlwifi 0000:00:0c.0: Microcode SW error detected. Restarting 0x0.
[    6.609562] iwlwifi 0000:00:0c.0: Start IWL Error Log Dump:
[    6.609564] iwlwifi 0000:00:0c.0: Status: 0x00000040, count: 6
[    6.609565] iwlwifi 0000:00:0c.0: Loaded firmware version: 46.6bf1df06.0
[    6.609567] iwlwifi 0000:00:0c.0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL    
[    6.609568] iwlwifi 0000:00:0c.0: 0x00A022F1 | trm_hw_status0
[    6.609569] iwlwifi 0000:00:0c.0: 0x00000000 | trm_hw_status1
[    6.609570] iwlwifi 0000:00:0c.0: 0x004882DA | branchlink2
[    6.609571] iwlwifi 0000:00:0c.0: 0x0047932A | interruptlink1
[    6.609572] iwlwifi 0000:00:0c.0: 0x0000B0D0 | interruptlink2
[    6.609573] iwlwifi 0000:00:0c.0: 0x0001A83E | data1
[    6.609574] iwlwifi 0000:00:0c.0: 0x00001000 | data2
[    6.609575] iwlwifi 0000:00:0c.0: 0xF0000008 | data3
[    6.609576] iwlwifi 0000:00:0c.0: 0x00000000 | beacon time
[    6.609577] iwlwifi 0000:00:0c.0: 0x00038F0D | tsf low
[    6.609578] iwlwifi 0000:00:0c.0: 0x00000000 | tsf hi
[    6.609579] iwlwifi 0000:00:0c.0: 0x00000000 | time gp1
[    6.609580] iwlwifi 0000:00:0c.0: 0x00038F0E | time gp2
[    6.609581] iwlwifi 0000:00:0c.0: 0x00000001 | uCode revision type
[    6.609582] iwlwifi 0000:00:0c.0: 0x0000002E | uCode version major
[    6.609583] iwlwifi 0000:00:0c.0: 0x6BF1DF06 | uCode version minor
[    6.609584] iwlwifi 0000:00:0c.0: 0x00000312 | hw version
[    6.609585] iwlwifi 0000:00:0c.0: 0x00C89008 | board version
[    6.609586] iwlwifi 0000:00:0c.0: 0x001E0177 | hcmd
[    6.609587] iwlwifi 0000:00:0c.0: 0x00122080 | isr0
[    6.609588] iwlwifi 0000:00:0c.0: 0x00000000 | isr1
[    6.609590] iwlwifi 0000:00:0c.0: 0x08001802 | isr2
[    6.609591] iwlwifi 0000:00:0c.0: 0x404001C0 | isr3
[    6.609592] iwlwifi 0000:00:0c.0: 0x00000000 | isr4
[    6.609593] iwlwifi 0000:00:0c.0: 0x001E0177 | last cmd Id
[    6.609594] iwlwifi 0000:00:0c.0: 0x0001A83E | wait_event
[    6.609595] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_control
[    6.609596] iwlwifi 0000:00:0c.0: 0x00000820 | l2p_duration
[    6.609597] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_mhvalid
[    6.609598] iwlwifi 0000:00:0c.0: 0x00000000 | l2p_addr_match
[    6.609599] iwlwifi 0000:00:0c.0: 0x0000000D | lmpm_pmg_sel
[    6.609600] iwlwifi 0000:00:0c.0: 0x08081425 | timestamp
[    6.609601] iwlwifi 0000:00:0c.0: 0x0000183C | flow_handler
[    6.609632] iwlwifi 0000:00:0c.0: Start IWL Error Log Dump:
[    6.609633] iwlwifi 0000:00:0c.0: Status: 0x00000040, count: 7
[    6.609635] iwlwifi 0000:00:0c.0: 0x20000034 | NMI_INTERRUPT_WDG
[    6.609636] iwlwifi 0000:00:0c.0: 0x00000000 | umac branchlink1
[    6.609637] iwlwifi 0000:00:0c.0: 0xC008885E | umac branchlink2
[    6.609638] iwlwifi 0000:00:0c.0: 0x80454D04 | umac interruptlink1
[    6.609639] iwlwifi 0000:00:0c.0: 0xC00842AC | umac interruptlink2
[    6.609640] iwlwifi 0000:00:0c.0: 0x00000400 | umac data1
[    6.609641] iwlwifi 0000:00:0c.0: 0xC00842AC | umac data2
[    6.609642] iwlwifi 0000:00:0c.0: 0xDEADBEEF | umac data3
[    6.609643] iwlwifi 0000:00:0c.0: 0x0000002E | umac major
[    6.609644] iwlwifi 0000:00:0c.0: 0x6BF1DF06 | umac minor
[    6.609645] iwlwifi 0000:00:0c.0: 0x00038EF4 | frame pointer
[    6.609646] iwlwifi 0000:00:0c.0: 0xC0886B5C | stack pointer
[    6.609647] iwlwifi 0000:00:0c.0: 0x001F010C | last host cmd
[    6.609648] iwlwifi 0000:00:0c.0: 0x00000000 | isr status reg
[    6.609663] iwlwifi 0000:00:0c.0: Fseq Registers:
[    6.609669] iwlwifi 0000:00:0c.0: 0xD47FC354 | FSEQ_ERROR_CODE
[    6.609676] iwlwifi 0000:00:0c.0: 0x00000000 | FSEQ_TOP_INIT_VERSION
[    6.609682] iwlwifi 0000:00:0c.0: 0x3B1CF78F | FSEQ_CNVIO_INIT_VERSION
[    6.609689] iwlwifi 0000:00:0c.0: 0x0000A384 | FSEQ_OTP_VERSION
[    6.609695] iwlwifi 0000:00:0c.0: 0x7E89024E | FSEQ_TOP_CONTENT_VERSION
[    6.609701] iwlwifi 0000:00:0c.0: 0xD2C4CFDC | FSEQ_ALIVE_TOKEN
[    6.609707] iwlwifi 0000:00:0c.0: 0x8F57133D | FSEQ_CNVI_ID
[    6.609714] iwlwifi 0000:00:0c.0: 0xF6F0E2AF | FSEQ_CNVR_ID
[    6.609720] iwlwifi 0000:00:0c.0: 0x01000100 | CNVI_AUX_MISC_CHIP
[    6.609728] iwlwifi 0000:00:0c.0: 0x00000201 | CNVR_AUX_MISC_CHIP
[    6.609736] iwlwifi 0000:00:0c.0: 0x0000485B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[    6.609784] iwlwifi 0000:00:0c.0: 0xA5A5A5A2 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[    6.609801] iwlwifi 0000:00:0c.0: Collecting data: trigger 2 fired.

The WiFi becomes unusable.
Comment 1 jian-hong 2019-12-31 05:35:59 UTC
Here is the WiFi information

00:0c.0 Network controller [0280]: Intel Corporation Device [8086:31dc] (rev 03)
	Subsystem: Intel Corporation Device [8086:0264]
	Flags: bus master, fast devsel, latency 0, IRQ 44
	Memory at a1214000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [80] MSI-X: Enable+ Count=16 Masked-
	Capabilities: [100] #00
	Capabilities: [14c] Latency Tolerance Reporting
	Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
Comment 2 jian-hong 2019-12-31 05:37:43 UTC
I bisected between kernel 5.3 and 5.4.  Got result at the commit

06eb547c4ae4382e70d556ba213d13c95ca1801b is the first bad commit
commit 06eb547c4ae4382e70d556ba213d13c95ca1801b
Author: Beker Ayala <ayala.beker@intel.com>
Date:   Sun Jun 2 13:55:44 2019 +0300

    iwlwifi: mvm: fix scan config command size
    
    Use the actual length of channels array and not the max capable length.
    
    Signed-off-by: Beker Ayala <ayala.beker@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>

If this commit is reverted, then this issue is gone.
Comment 3 jian-hong 2019-12-31 08:07:45 UTC
Created attachment 286537 [details]
Inserted some debug messages

I tried to learn where does the bug come from with the debug message as the attachment.

The "cfg" command makes the "STATUS_FW_ERROR":

[    6.420171] iwl_mvm_legacy_config_scan: mvm->fw->ucode_capa.n_scan_channels=52, num_channels=38
[    6.620230] iwlwifi 0000:00:0c.0: Microcode SW error detected. Restarting 0x0.
...
[    6.620542] iwlwifi 0000:00:0c.0: Firmware error during reconfiguration - reprobe!
[    6.620570] iwl_trans_send_cmd: STATUS_FW_ERROR
[    6.620572] iwlwifi 0000:00:0c.0: LED command failed: -5
[    6.620588] iwlwifi 0000:00:0c.0: FW error in SYNC CMD SCAN_CFG_CMD
[    6.620592] CPU: 1 PID: 719 Comm: wpa_supplicant Not tainted 5.5.0-rc4+ #13
[    6.620592] Hardware name: ASUSTeK COMPUTER INC. VivoBook_ASUS Laptop E406MA_E406MA/E406MA, BIOS E406MA.303 07/12/2018
[    6.620593] Call Trace:
[    6.620603]  dump_stack+0x50/0x70
[    6.620604] iwl_trans_send_cmd: STATUS_FW_ERROR
[    6.620611]  iwl_trans_pcie_send_hcmd+0x418/0x420 [iwlwifi]
[    6.620613] iwlwifi 0000:00:0c.0: LED command failed: -5
[    6.620618]  ? wait_woken+0x80/0x80
[    6.620623]  iwl_trans_send_cmd+0x4e/0xc0 [iwlwifi]
[    6.620632]  iwl_mvm_send_cmd+0xd/0x30 [iwlmvm]
[    6.620638]  iwl_mvm_legacy_config_scan.cold.49+0x215/0x3a6 [iwlmvm]
[    6.620645]  iwl_mvm_config_scan+0x108/0x110 [iwlmvm]
[    6.620651]  iwl_mvm_up+0x7aa/0x8a0 [iwlmvm]
[    6.620656]  __iwl_mvm_mac_start+0x21/0x210 [iwlmvm]
[    6.620662]  iwl_mvm_mac_start+0x1e/0x30 [iwlmvm]
[    6.620666]  drv_start+0x38/0xe0
[    6.620669]  ieee80211_do_open+0x2d2/0x840
[    6.620672]  __dev_open+0xc2/0x150
[    6.620674]  __dev_change_flags+0x175/0x1e0
[    6.620676]  dev_change_flags+0x1c/0x50
[    6.620679]  devinet_ioctl+0x526/0x6c0
[    6.620682]  inet_ioctl+0x8c/0x140
[    6.620685]  ? import_iovec+0x54/0xb0
[    6.620688]  ? netdev_name_node_lookup_rcu+0x59/0x70
[    6.620689]  ? dev_get_by_name_rcu+0x5/0x10
[    6.620691]  sock_do_ioctl+0x38/0x130
[    6.620693]  sock_ioctl+0x21c/0x370
[    6.620695]  ? selinux_file_ioctl+0x17a/0x220
[    6.620698]  do_vfs_ioctl+0x9c/0x640
[    6.620700]  ksys_ioctl+0x5b/0x90
[    6.620702]  __x64_sys_ioctl+0x11/0x20
[    6.620704]  do_syscall_64+0x3d/0x140
[    6.620707]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    6.620709] RIP: 0033:0x7fc74f6ca777
[    6.620711] Code: 00 00 90 48 8b 05 19 a7 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e9 a6 0c 00 f7 d8 64 89 01 48
[    6.620712] RSP: 002b:00007ffdca5d90d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[    6.620714] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc74f6ca777
[    6.620714] RDX: 00007ffdca5d90e0 RSI: 0000000000008914 RDI: 0000000000000008
[    6.620715] RBP: 0000000000000008 R08: 00007ffdca5d90ef R09: 0000557fa8285820
[    6.620716] R10: 0000000000000007 R11: 0000000000000246 R12: 00007ffdca5d90e0
[    6.620716] R13: 0000557fa8288010 R14: 0000000000000001 R15: 0000000000000000
[    6.620719] iwl_mvm_legacy_config_scan: ret=-5

According to "mvm->fw->ucode_capa.n_scan_channels", the firmware may need more memory space in "cfg" command for the channels, not only "num_channels".

The full debug dmesg will be attached as following.
Comment 4 jian-hong 2019-12-31 08:12:39 UTC
Created attachment 286539 [details]
The full debug dmesg of comment #3
Comment 5 Luca Coelho 2019-12-31 08:51:36 UTC
This is fixed with this patch:

https://patchwork.kernel.org/patch/11313069/

Note You need to log in before you can comment on or make changes to this bug.