Bug 243992

Summary: iwm(4): iwm_pcie_load_section: Could not load the [0] uCode section (Intel Wireless-AC 9560)
Product: Base System Reporter: iron.udjin
Component: wirelessAssignee: freebsd-wireless mailing list <wireless>
Status: Open ---    
Severity: Affects Only Me CC: markj, vidwer+fbsdbugs
Priority: --- Keywords: IntelNetworking, needs-qa
Version: 12.1-STABLE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
patch none

Description iron.udjin 2020-02-08 21:24:27 UTC
Hello,

WIFI module is integrated to mainboard "Asus ROG MAXIMUS XI HERO (WI-FI)".

iwm0@pci0:0:20:3:	class=0x028000 card=0x00348086 chip=0xa3708086 rev=0x10 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Wireless-AC 9560 [Jefferson Peak]'
    class      = network

OS: 12.1-STABLE r357667

I tried both variants: compile kernel with built-in iwn support and iwn as a module. Result is the same.

In /boot/loader.conf:

if_iwm_load="YES"
iwm9260fw_load="YES"

In dmesg I see:
iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xa4334000-0xa4337fff irq 16 at device 20.3 on pci0
iwm0: fw chunk addr 0x404000 len 712 failed to load
iwm0: iwm_pcie_load_section: Could not load the [0] uCode section
iwm0: iwm_start_fw: failed 60
iwm0: Failed to start INIT ucode: 60

... and ifconfig doesn't how iwm interface.

Is there a way to make it work?

Thank you!
Comment 1 vidwer+fbsdbugs 2020-02-08 21:32:34 UTC
(In reply to iron.udjin from comment #0)
/etc/rc.conf should have settings like:

wlans_iwm0="wlan0"
ifconfig_wlan0="wpa dhcp"

Save rc.conf, followed by either a reboot or 'service netif restart'.
Comment 2 iron.udjin 2020-02-09 02:37:15 UTC
(In reply to vidwer+fbsdbugs from comment #1)

I added those lines inito /etc/rc.conf and restrted netif and got in logs:

Feb  9 04:31:21 IRON kernel: iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xa4334000-0xa4337fff irq 16 at device 20.3 on pci0
Feb  9 04:31:26 IRON kernel: iwm0: fw chunk addr 0x404000 len 712 failed to load
Feb  9 04:31:26 IRON kernel: iwm0: iwm_pcie_load_section: Could not load the [0] uCode section
Feb  9 04:31:26 IRON kernel: iwm0: iwm_start_fw: failed 60
Feb  9 04:31:26 IRON kernel: iwm0: Failed to start INIT ucode: 60
Feb  9 04:31:26 IRON dhclient[1188]: wlan0: not found
Feb  9 04:31:26 IRON dhclient[1188]: exiting.
Feb  9 04:31:26 IRON root[1191]: /etc/rc.d/dhclient: WARNING: failed to start dhclient
Comment 3 Mark Johnston freebsd_committer 2020-02-11 05:18:55 UTC
This chip should be using iwm9000fw, not iwm9260fw.  Does it work if you preload that instead?
Comment 4 iron.udjin 2020-02-11 07:28:16 UTC
(In reply to Mark Johnston from comment #3)
No, the same error:

iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xa4334000-0xa4337fff irq 16 at device 20.3 on pci0
iwm0: fw chunk addr 0x404000 len 712 failed to load
iwm0: iwm_pcie_load_section: Could not load the [0] uCode section
iwm0: iwm_start_fw: failed 60
iwm0: Failed to start INIT ucode: 60
Comment 5 Mark Johnston freebsd_committer 2020-03-27 18:27:36 UTC
Created attachment 212764 [details]
patch

This is a shot in the dark, but could anyone seeing the problem try the attached patch?
Comment 6 iron.udjin 2020-03-28 10:02:36 UTC
(In reply to Mark Johnston from comment #5)

Just tested your patch. It doesn't work:

iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xa4334000-0xa4337fff at device 20.3 on pci0
iwm0: fw chunk addr 0x404000 len 712 failed to load
iwm0: iwm_pcie_load_section: Could not load the [0] uCode section
iwm0: iwm_start_fw: failed 60
iwm0: Failed to start INIT ucode: 60