Opened 9 months ago

Closed 2 weeks ago

#14546 closed bug (fixed)

R1/beta1 rc1: Some Wifi cards not loading in UEFI boot.

Reported by: return_0e Owned by: waddlesplash
Priority: normal Milestone: Unscheduled
Component: Drivers/Network/idualwifi7260 Version: R1/Development
Keywords: UEFI, wifi Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

I tested both the BIOS and UEFI RC1 images on one of my machines with a Intel Wireless 3165 card and I noticed something odd. The idualwifi7260 driver loads fine when booted in BIOS mode but not in UEFI.

The machine I used is a LattePanda Alpha - https://www.kickstarter.com/projects/139108638/lattepanda-alpha-soul-of-a-macbook-in-a-pocket-siz

Attachments (6)

syslog-biosboot-normal-wifi (487.4 KB) - added by return_0e 9 months ago.
syslog-efiboot-no-wifi (203.3 KB) - added by return_0e 9 months ago.
loaded-drivers-x86_64-biosboot-r1-beta1-rc1.txt (2.0 KB) - added by return_0e 9 months ago.
loaded-drivers-x86_64-efiboot-r1-beta1-rc1.txt (1.9 KB) - added by return_0e 9 months ago.
syslog-uefi-boot-x64-hrev52738-no-wifi.txt (102.7 KB) - added by return_0e 5 months ago.
syslog-bios-boot-x64-hrev52738-wifi-no-connect.txt (283.4 KB) - added by return_0e 5 months ago.

Download all attachments as: .zip

Change History (17)

Changed 9 months ago by return_0e

Attachment: syslog-biosboot-normal-wifi added

Changed 9 months ago by return_0e

Attachment: syslog-efiboot-no-wifi added

Changed 9 months ago by return_0e

Changed 9 months ago by return_0e

comment:1 Changed 9 months ago by diver

Component: - GeneralDrivers/Network/idualwifi7260
Owner: changed from nobody to waddlesplash

(iwm) Failed to start INIT ucode: -2147483634

~> error -2147483634
0x8000000e: Device/File/Resource busy

comment:2 Changed 9 months ago by cb88

I have the opposite happening on realtekwifi... BIOS is broken but EFI works.

I should probably attach syslogs from the working boot to my ticket for that.

comment:3 Changed 5 months ago by waddlesplash

Please retest after hrev52722.

comment:4 Changed 5 months ago by kim1963

rev 52745

KERN: [idualwifi7260] (iwm) bus_alloc_resource(3, [16], 0x0, 0xffffffff, 0x1,0x2) KERN: add_memory_type_range(2067, 0xa2100000, 0x2000, 0) KERN: set MTRRs to: KERN: mtrr: 0: base: 0x8a000000, size: 0x2000000, type: 0 KERN: mtrr: 1: base: 0xa0000000, size: 0x20000000, type: 0 KERN: mtrr: 2: base: 0xc0000000, size: 0x40000000, type: 0 KERN: mtrr: 3: base: 0x90000000, size: 0x10000000, type: 1 KERN: allocate_io_interrupt_vectors: allocated 1 vectors starting from 18 KERN: msi_allocate_vectors: allocated 1 vectors starting from 18 KERN: [idualwifi7260] (iwm) bus_alloc_resource(1, [1], 0x0, 0xffffffff, 0x1,0x2) KERN: msi enabled: 0x0081 KERN: [idualwifi7260] (iwm) iwm_read_firmware: unknown firmware section 512, abort KERN: [idualwifi7260] (iwm) firmware parse error -2147483643, section type 512 KERN: [idualwifi7260] (iwm) iwm_read_firmware: failed -2147483643 KERN: [idualwifi7260] (iwm) Failed to start INIT ucode: -2147483643

comment:5 Changed 5 months ago by waddlesplash

kim1963, is this on a 32-bit or 64-bit build? If it's on a 32-bit build, please try 64-bit instead.

comment:6 Changed 5 months ago by waddlesplash

Indeed, this seems to be some sort of bug in the iwm code, it happens on FreeBSD too: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219683

comment:7 Changed 5 months ago by return_0e

I have tried 64 bit hrev52738 build on the same machine (LattePanda Alpha). idualwifi7260 doesn't load when booting on UEFI and I get a similar issue in this ticker such as:

KERN: [idualwifi7260] (iwm) iwm_start_fw: Unable to init nic
KERN: [idualwifi7260] (iwm) iwm_start_fw: failed -2147483634
KERN: [idualwifi7260] (iwm) Failed to start INIT ucode: -2147483634

I tested on BIOS boot and idualwifi7260 wifi does scan for networks, but I can't connect to any. It repeats this message after attempting to connect to a wifi network. I'll attach a newer syslog here.

KERN: wlan_control: 9235, 16
KERN: wlan_control: 9235, 17
KERN: wlan_control: 9235, 26
KERN: wlan_control: 9235, 98
KERN: wlan_control: 9235, 15
KERN: wlan_control: 9235, 76
Last edited 5 months ago by return_0e (previous) (diff)

Changed 5 months ago by return_0e

comment:8 Changed 5 months ago by waddlesplash

hrev52792 includes some changes to PCI power management in idualwifi7260 that might help here. Please retest.

comment:9 Changed 2 weeks ago by waddlesplash

Please retest after hrev53174.

comment:10 Changed 2 weeks ago by return_0e

With the changes in hrev53174, I can connect to wifi networks when booting from a BIOS or a UEFI install on x86_64.

I tested an Intel Wireless 8265 AC card with my NUC and a Intel Wireless 3165 using a LattePanda Alpha board and both PCs can connect to open and protected wireless networks. So the idualwifi7260 driver is loaded and functioning correctly, regardless of booting from BIOS/UEFI.

comment:11 Changed 2 weeks ago by waddlesplash

Resolution: fixed
Status: newclosed

Hooray!

Note: See TracTickets for help on using tickets.