Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jul 2020 12:12:48 +0200
From:      Idwer Vollering <vidwer@gmail.com>
To:        "Bjoern A. Zeeb" <bz@freebsd.org>
Cc:        freebsd-wireless <freebsd-wireless@freebsd.org>
Subject:   Re: status-report 11ac, Intel - request for testing Intel Wireless PCI attach
Message-ID:  <CAPp9Or=S7cT-dwaU6NoNLnBGKTsffk1-0=Wmn0w7GwMwXopuZA@mail.gmail.com>
In-Reply-To: <E236651C-0E4B-418D-A41E-B598A9FF755B@FreeBSD.org>
References:  <E236651C-0E4B-418D-A41E-B598A9FF755B@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Bjoern,

You promised to explain why the attempt to port if_iwx [1] from
OpenBSD, to have a native driver, couldn't load firmware.

https://reviews.freebsd.org/D24421

With kind regards,

Idwer

Op za 4 jul. 2020 om 17:34 schreef Bjoern A. Zeeb <bz@freebsd.org>:
>
> Hi,
>
> it=E2=80=99s about time for an update on the Intel WiFi and 11ac client
> project.
>
> As you can read in the 2020Q2 status report [2] (once its out) as well,
> the decision was to port over the dual-licensed native Linux driver
> under BSD license and using linuxkpi rather than extending iwm(4) as
> a first step.
>
> By now most of the lower bits work fine enough so that we attach, can
> load and run the firmware.  There is NO WIFI in this snapshot yet.
>
> If you currently have a supported iwm(4) or unsupported Intel Wireless
> card of the 7k/8k/9k/22k series (not the iwn(4) models) and want to help
> testing you can use the branch at
>
> https://github.com/bzfbd/freebsd-base/tree/iwlwifi
>
> which is a FreeBSD CURRENT from July 4th, or download the last two
> commit
> from there and apply them locally to your tree, compile, install, and
> boot the new kernel, and then
>
> kldload if_iwl
>
> The driver will not be loaded automatically for you as we already do for
> other drivers to avoid problems or conflicts.  Firmware will be loaded
> automatically for you when you load the driver.  You=E2=80=99ll hopefully=
 see
> a
> message (with a typo or two) like:
>
> # kldload if_iwl
> HOORAY IWLWIFI LOADED. Check dmesg for:
>    iwlwifi0: loaded firmware version ...ucode op_mode iwlmvm
>    iwlwifi0: Detected..
>    iwlwifi0: base HW address..
> lines. If you cannot find them please report back.
> #
>
> If you don=E2=80=99t get this printed something went wrong.  If everythin=
g
> goes
> well, you=E2=80=99ll find your hardware address at the end of dmesg print=
ed
> out,
> which means the card was detected, a firmware loaded, and we can talk to
> the hardware.  That also means if your card was not yet supported,
> it=E2=80=99ll
> be once the WiFi parts are done.
>
> I have two sample dmesg outputs at the end of the email for you.  There
> are a few =E2=80=9CFailed=E2=80=9D/=E2=80=9CTODO=E2=80=9D messages in the=
re which you can ignore
> at this
> time.  It=E2=80=99ll also try to load some firmware which doesn=E2=80=99t=
 exist and
> that
> is fine as well.
>
>
> If you test and this does not work, that=E2=80=99s what I am really inter=
ested
> in
> at the moment.  In that case can you please make sure to have
> bootverbose
> enabled [1] and send me the output of dmesg and `pciconf -lvBbceV` for
> the
> Intel wireless card entry.
>
>
> We are currently still leaking PCI resources on module unload, so you if
> you unload and try to load another driver or reload if_iwl.ko it=E2=80=99=
ll
> fail.
> I suggest to do a reboot to clear up the test and then use FreeBSD as
> you
> normally would.
>
>
> Just to repeat again, there is no WiFi working yet in this snapshot, so
> please don=E2=80=99t expect it yet.  I=E2=80=99ll update-you when there i=
s more to
> test
> for that.
>
>
> Thanks you any feedback!
>
> Bjoern
>
>
> [1]
> https://www.freebsd.org/doc/handbook/boot-introduction.html#boot-kernel
> [2] https://www.freebsd.org/news/status/
>
>
> dmesg sample outputs:
>
>
> If you check dmesg you=E2=80=99ll see something along the lines of:
>
> sysctl_warn_reuse: can't re-use a leaf (compat.linuxkpi.debug)!
> Intel(R) Wireless WiFi driver for FreeBSD
> iwlwifi0: <iwlwifi> mem 0x9e200000-0x9e203fff at device 0.0 on pci2
> iwlwifi0: Failed to set affinity mask for IRQ 1
> iwlwifi0: Failed to set affinity mask for IRQ 2
> iwlwifi0: Failed to set affinity mask for IRQ 3
> iwlwifi0: Failed to set affinity mask for IRQ 4
> iwlwifi0: Failed to set affinity mask for IRQ 5
> iwlwifi0: Failed to set affinity mask for IRQ 6
> iwlwifi0: Failed to set affinity mask for IRQ 7
> iwlwifi0: Failed to set affinity mask for IRQ 8
> iwlwifi0: Failed to set affinity mask for IRQ 9
> iwlwifi0: Failed to set affinity mask for IRQ 10
> iwlwifi0: Failed to set affinity mask for IRQ 11
> iwlwifi0: Failed to set affinity mask for IRQ 12
> iwlwifi-cc-a0-56.ucode: could not load firmware image, error 2
> iwlwifi0: File size way too small!
> iwlwifi0: api flags index 2 larger than supported by driver
> iwlwifi0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
> iwlwifi0: Found debug destination: EXTERNAL_DRAM
> iwlwifi0: Found debug configuration: 0
> iwlwifi0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode
> iwlmvm
> iwl-debug-yoyo.bin: could not load firmware image, error 2
> iwl_mvm_rate_control_register XXX TODO
> iwlwifi0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=3D0x340
> iwlwifi0: base HW address: xx:xx:xx:xx:xx:xx
> ng_ubt: HCI command 0xfc05 timed out
>
>
> or (another card) on a machine with bootverbose=3D1 on the console you=E2=
=80=99d
> see:
>
> # kldload if_iwl
> sysctl_warn_reuse: can't re-use a leaf (compat.linuxkpi.debug)!
> pci0: driver added
> found-> vendor=3D0x8086, dev=3D0x2930, revid=3D0x02
>          domain=3D0, bus=3D0, slot=3D31, func=3D3
>          class=3D0c-05-00, hdrtype=3D0x00, mfdev=3D0
>          cmdreg=3D0x0003, statreg=3D0x0280, cachelnsz=3D0 (dwords)
>          lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 n=
s)
>          intpin=3Dc, irq=3D18
> pci0:0:31:3: reprobing on driver added
> pci1: driver added
> found-> vendor=3D0x8086, dev=3D0x2723, revid=3D0x1a
>          domain=3D0, bus=3D1, slot=3D0, func=3D0
>          class=3D02-80-00, hdrtype=3D0x00, mfdev=3D0
>          cmdreg=3D0x0006, statreg=3D0x0010, cachelnsz=3D8 (dwords)
>          lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 n=
s)
>          intpin=3Da, irq=3D16
>          powerspec 3  supports D0 D3  current D0
>          MSI supports 1 message, 64 bit
>          MSI-X supports 16 messages in map 0x10
> pci0:1:0:0: reprobing on driver added
> iwlwifi0: <iwlwifi> mem 0xfe8fc000-0xfe8fffff irq 16 at device 0.0 on
> pci1
> iwlwifi0: attempting to allocate 6 MSI-X vectors (16 supported)
> msi: routing MSI-X IRQ 46 to local APIC 0 vector 55
> msi: routing MSI-X IRQ 47 to local APIC 2 vector 52
> msi: routing MSI-X IRQ 48 to local APIC 0 vector 56
> msi: routing MSI-X IRQ 49 to local APIC 2 vector 53
> msi: routing MSI-X IRQ 50 to local APIC 0 vector 57
> msi: routing MSI-X IRQ 51 to local APIC 2 vector 54
> iwlwifi0: using IRQs 46-51 for MSI-X
> iwlwifi0: Failed to set affinity mask for IRQ 1
> iwlwifi0: Failed to set affinity mask for IRQ 2
> iwlwifi0: Failed to set affinity mask for IRQ 3
> iwlwifi0: Failed to set affinity mask for IRQ 4
> iwlwifi-cc-a0-56.ucode: could not load firmware image, error 2
> iwlwifi0: File size way too small!
> firmware: 'iwlwifi-cc-a0-55.ucode' version 55: 1219356 bytes loaded at
> 0xffffffff823a3000
> iwlwifi0: api flags index 2 larger than supported by driver
> iwlwifi0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.22
> iwlwifi0: Found debug destination: EXTERNAL_DRAM
> iwlwifi0: Found debug configuration: 0
> iwlwifi0: loaded firmware version 55.d9698065.0 cc-a0-55.ucode op_mode
> iwlmvm
> iwl-debug-yoyo.bin: could not load firmware image, error 2
> pci2: driver added
> pci3: driver added
> pci4: driver added
> iwl_mvm_rate_control_register XXX TODO
> Hiwlwifi0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=3D0x340
> OORAY IWLWIFI LOADED. Check dmesg for:
>    iwlwifi0: loaded firmware version ...ucode op_mode iwlmvm
>    iwlwifi0: Detcted..
>    iwlwifi0: base HW address..
> lines. If you cannot find them please report back.
> iwlwifi0: base HW address: xx:xx:xx:xx:xx:xx
>
>
>
> _______________________________________________
> freebsd-wireless@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or=
g"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPp9Or=S7cT-dwaU6NoNLnBGKTsffk1-0=Wmn0w7GwMwXopuZA>