[Bug 243992] iwm(4): iwm_pcie_load_section: Could not load the [0] uCode section (Intel Wireless-AC 9560)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 05 Sep 2021 08:24:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243992

Vasile Buruiana <bvasea@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bvasea@gmail.com

--- Comment #21 from Vasile Buruiana <bvasea@gmail.com> ---

I found a way to re-create the problem:

########  how to become happy with your FreeBSD ###########

Boot *win, make sure WiFi is working through Intel AC9560 Wireless adapter.

Shut it down (start-shutdown) [OPTIONALLY: remove power cable from PSU, count
10 seconds, insert power cable]. Turn on the system. If FreeBSD is on another
hard drive, enter your favorite mainboard firmware interface (BIOS/UEFI),
change primary boot device to FreeBSD hard drive, save and exit.  Boot FreeBSD.
Surprise - iwm0 is loading:


iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xb4518000-0xb451bfff at device
20.3 on pci0
iwm0: hw rev 0x310, fw ver 34.3125811985.0, address 28:7f:cf:f1:47:71

kldstat says:
41    1 0xffffffff84ff1000    16c20 if_iwm.ko
42    1 0xffffffff85008000   28df7f iwm9000fw.ko

dhclient works fine. However the data rate is around 3 MBytes/second - meaning
it transfers around 2 x 8", 1.2MB ancient floppy disks every single second, or
the same speed as a SCSI 1.2" 9-track open reel-to-reel tape drive. Anyway,
better than the situation described below.


########  how to become sad ############

Boot *win, test your wifi connection.

RESTART it (no shut down). If FreeBSD is on another hard drive, enter
BIOS/UEFI, change boot device to FreeBSD, save and exit.  Boot FreeBSD.

Surprise:

iwm0: <Intel(R) Dual Band Wireless AC 9560> mem 0xea238000-0xea23bfff 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

##############################################
#  read from the beginning to be happy again #
############################################## 

This should be something related to the firmware memory area not being released
properly under *win when restarting, but properly released when *win is
shutting down. FreeBSD is unable to transfer the uCode because AC9560 does not
accept - there is already a firmware loaded inside. 


Please recreate this experiment to confirm.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.