From owner-freebsd-wireless@freebsd.org Sun Jul 5 10:13:02 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7BB1A367EA3 for ; Sun, 5 Jul 2020 10:13:02 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B04Jt15Wvz3WfS; Sun, 5 Jul 2020 10:13:01 +0000 (UTC) (envelope-from vidwer@gmail.com) Received: by mail-oi1-x241.google.com with SMTP id k4so29878886oik.2; Sun, 05 Jul 2020 03:13:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GkF07oc4CYQlP45TXFWhjKo0mu9ZwUS7O9KelAoEuZ8=; b=tcS/UFQkBxTXm0KqPIpsW75d4laXX3Z0OjXtFEmJ2x/+17Vdlx1VUvaAIuRExlzDms DNI7XGxr4ahi8AY2QHnuwIYU/G0peOxbvRBT6KMkbtqNaE4pJC/1/Am0oc+NjXYLKSni lcznS/jw6HMSEvO0n9KA255RQj+JKuhNNybRxQT9KsmJg/X05r40rzoEpmUPkWCBBgTk llgnMTHavLYVPrP9Zf7LcDeexE1vlx1NQUqMIy9mBaz2aMOXFTuhTjLaQilzGxmRUItn tSZGe9ncmZA46Y+fte9IwG/iobMNVrS9KfjtwN4reMJuWH/DMOM/Uw4BB/UUktNCMRzf j3dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GkF07oc4CYQlP45TXFWhjKo0mu9ZwUS7O9KelAoEuZ8=; b=hfRHRFpYW3nFHpnBtreP//jvd39d7xiG4ZHm8dnkhCFx72pBVe8ghbJHAha/5bbPdH eDpezAT8kwsG4DnBbtQTUuxeq5ngetskHPwto5BPp9KtvoF9WiIFalmpKvO14QKztcnY EC/HSjMIRhP9/kXdZmiP0EJaz3Asz5mtlfOnDm2ZTbI6Iv4ozmypUOPAZs6JlpnI/kcc HgZVl4bTuktZ3PRQgNDP7vACA1476ABdlHIavom6b2jUKw66aLYjbYNGLUQuWQj7mzfr IoO2n+VwYBdRbZXv0xYS7Nk4H27V/YD6Tv84mRTe+5IjF9jOg/9BWJivPm6s+GV9G817 w48A== X-Gm-Message-State: AOAM532Y2d9zL1wYMO9pne9dnVygPH1P7V6tzOUtSQCuPf2UUhoPu+8R zn76ak8/6o7yXfwnlm0yfp/Jz3+IggO+cvTG2D0PH/l/ X-Google-Smtp-Source: ABdhPJwINTJBHIeT6kEq3xBR23E+r2yGhrQ1IAVzQQ4cN3oDsU4IorQBlCQdvRfsYYF0CIOVXDQC+H6YGSml5bRRJaI= X-Received: by 2002:aca:de08:: with SMTP id v8mr29977776oig.3.1593943980432; Sun, 05 Jul 2020 03:13:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Idwer Vollering Date: Sun, 5 Jul 2020 12:12:48 +0200 Message-ID: Subject: Re: status-report 11ac, Intel - request for testing Intel Wireless PCI attach To: "Bjoern A. Zeeb" Cc: freebsd-wireless Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4B04Jt15Wvz3WfS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; REPLY(-4.00)[] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 10:13:02 -0000 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 : > > 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: 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: 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"