From nobody Mon Dec 19 21:32:49 2022 X-Original-To: freebsd-wireless@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NbXxL71qbz1H6F8 for ; Mon, 19 Dec 2022 21:32:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbXxL6b3Nz4Qfs; Mon, 19 Dec 2022 21:32:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671485574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xU3nB71aUcEBCTV/hfirORuHZFhIiWP9E3HCRgITxTk=; b=M8v9wWQNUjP6+fv6kXI1Hbq1TgYMTDFGPzeaLeC9Jz97T7n73w9u6G5jCdwgU6/LOejXCx w8G0I/7bajQ5uocqPXgYIEFkE5obpgmX0jUkWsRXHETTAiE29r+xqq8DVrrXBO1SGVO4sz 56PzxKq2jey6b+R6JtHNJ/1kUt+OpgqbSCTOQBfAG237myBNB6O3pRFPp65k49Q23zzlDi JPUoi8Von9lC7RZoHLKTAQZ2uadnDDctlSU/S2humdKwPqqTgsgNlkN+Xj1thovMVjHPir VgLkJ33GBTHR12ReldIcIB5g2bwt1lVDYq/FtxiUU7vfxrRzi5BMyBZcEVy/dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671485574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xU3nB71aUcEBCTV/hfirORuHZFhIiWP9E3HCRgITxTk=; b=ROfUG0qxGDxhTbrciIY0RthtzpZ/l5gtLwlCPZ3tC6JOkaIrtaKcw+3Rz3xLeIsQehZO9u 9FL8vLPIa2AAehJR9uHfHihRXKhxHD56qp7mxx50T0p/b4nns/7DB90aTaCfwnaO0tFVHS LTEsqgjXupIwdhhUduEX6N1+mwxvgUL9F6K48VdwoHkqQ4c0FdAFcs/EAIEOUti3xbaZhy 2m5AosEHoxz7U/quV/C3AoEmhsQ1bQ54SCT/7snGXXJBQcBQimbtgSOObBsPfWP5WIOd5C rvEX5/97UDEheIuMdM+AKagEJozhAsjh9QHa8vRlbKchTFlXkMItw1VPl8mk6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671485574; a=rsa-sha256; cv=none; b=KqHxY8VY4QNBSq9HcHJCBwAsPPY2Evh+HqFaxl3JpO1keZcVzJhpUTEn+AC7wbFQ8YvpZY Nmch3qmifjmoWl0HYUq4Ua1JpuzV+GsQr+6rkg2tG86fpYwhTZLoxiedjYeki+NECPXhYt HcfL3JSEXHF7S1EzbkHLW82WKFY81WzCVAhBqQ/90PUQTsfMAp7L/jpPaHcQ3JGuDOtF63 BtkOA1obt/WMaY3tsm8S2MUe889yC8hqTg/saWaYTFCuuxgnnQdeZQQs7CRqqWs7d++CgX ju6kxFeBrr60Pw/C4/IxRmGGM0mtzRhAOiWNahXFdfx8zHY5/EPhZtplDYr+Ig== Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) (Authenticated sender: bz/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4NbXxL4NstzpsC; Mon, 19 Dec 2022 21:32:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 303108D4A212; Mon, 19 Dec 2022 21:32:53 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 8E82A5C3A876; Mon, 19 Dec 2022 21:32:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id LPyJb0y_aqAx; Mon, 19 Dec 2022 21:32:50 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 875955C3A830; Mon, 19 Dec 2022 21:32:50 +0000 (UTC) Date: Mon, 19 Dec 2022 21:32:49 +0000 (UTC) From: "Bjoern A. Zeeb" To: Marco cc: "freebsd-wireless@freebsd.org" Subject: Re: New laptop: AC 9461/9560: iwm or iwlwifi? In-Reply-To: Message-ID: References: <2e3618b7-646b-02be-eb19-8a58aaf3619f@netfence.it> <537f4871-5184-394e-1f93-bf625dc088cf@netfence.it> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-wireless List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-ThisMailContainsUnwantedMimeParts: N On Mon, 19 Dec 2022, Marco wrote: > On Mon, Dec 19, 2022 at 08:56:02PM +0000, you (Marco) sent the following to [freebsd-wireless] : >> On Sat, Dec 17, 2022 at 10:40:25PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] : >>> >>> Did you try again to switch back to iwlwifi? >>> >>> What happens if you are on a running iwm setup and then do the devctl >>> detach, set driver dance? > > So on my current running iwm setup without changing anything else I did > the devtl detach, set driver dance which failed as follows: > > [~] doas pciconf -lBbcevV iwm0 > iwm0@pci0:0:20:3: class=0x028000 rev=0x11 hdr=0x00 vendor=0x8086 device=0x9df0 subvendor=0x8086 subdevice=0x0030 > vendor = 'Intel Corporation' > device = 'Cannon Point-LP CNVi [Wireless-AC]' > class = network > bar [10] = type Memory, range 64, base 0xea238000, size 16384, enabled > cap 01[c8] = powerspec 3 supports D0 D3 current D0 > cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message > cap 10[40] = PCI-Express 2 root endpoint max data 128(128) FLR RO NS > max read 128 > cap 11[80] = MSI-X supports 16 messages > Table in map 0x10[0x2000], PBA in map 0x10[0x3000] > ecap 0000[100] = unknown 0 > ecap 0018[14c] = LTR 1 > ecap 000b[164] = Vendor [1] ID 0010 Rev 0 Length 20 > > [~] kldstat | grep -e wlan -e wi-fi -e wifi -e iwm > 3 1 0xffffffff82d4c000 290cc0 iwm9000fw.ko > 6 1 0xffffffff82fe6000 3130 wlan_xauth.ko > 7 1 0xffffffff82fea000 2e870 if_iwm.ko > > [~] doas kldload /boot/kernel/if_iwlwifi.ko > [~] kldstat | grep -e wlan -e wi-fi -e wifi -e iwm > 3 1 0xffffffff82d4c000 290cc0 iwm9000fw.ko > 6 1 0xffffffff82fe6000 3130 wlan_xauth.ko > 7 1 0xffffffff82fea000 2e870 if_iwm.ko > 39 1 0xffffffff85565000 880c8 if_iwlwifi.ko > > [~] doas devctl detach pci0:0:20:3 > [~] doas pciconf -lBbcevV iwm0 > pciconf: Device not found > > [~] doas devctl set driver pci0:0:20:3 iwlwifi > devctl: Failed to set pci0:0:20:3 driver to iwlwifi: Input/output error You got an error here. Was there anything else logged? > [~] ifconfig lagg0 > lagg0: flags=8843 metric 0 mtu 1500 > options=800000<> > ether f8:75:a4:fa:9d:bf > inet6 fe80::fa75:a4ff:fefa:9dbf%lagg0/64 scopeid 0x4 > inet6 2a10:3781:41f:1:fa75:a4ff:fefa:9dbf/64 autoconf > inet6 2a10:3781:41f:1:4df2:19b7:b73e:17bc/64 deprecated autoconf temporary > inet6 2a10:3781:41f:1:6ce0:18a5:8fdb:52ab/64 autoconf temporary > inet 192.168.3.114/24 broadcast 192.168.3.255 > laggproto failover lagghash l2,l3,l4 > laggport: em0 flags=5 > groups: lagg > media: Ethernet autoselect > status: active > nd6 options=23 > > [~] ifconfig wlan0 > ifconfig: interface wlan0 does not exist > > My next action could be to define both wlans_ entries in rc.conf and set > the devmatch_blocklist to if_iwm and reboot the laptop (without > rebuilding world and/or kernel) ? I think we should first figure out why you get an error above. If in hte current state you set the driver back to iwm, will that just come back and work again? -- Bjoern A. Zeeb r15:7