From nobody Mon Dec 19 22:07:50 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 4NbYjm2x3nz1FxKC for ; Mon, 19 Dec 2022 22:07:56 +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 4NbYjm2W8rz3G94; Mon, 19 Dec 2022 22:07:56 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671487676; 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=Z5xKtnJBog2CXCvigIMeBZpxoSKDFYAZmCMwxcCGgkg=; b=qyYPeU8igAO2QYqNdEMEz+gpaFy09LhYH7Qh38+N1nIicpb5lPkF2E/2dLkZonYXOWx9Ym QZNE16NsxgVcmZzrBsjcnZKNIzMZ7r+8E/BvV4ACURok0QzUG7aIdlYqsNe6tDc85TtNWI P5DMXzkA4bqDrJOe0+ab8TDNale0uHR6it6w1ayM0t0aWSQbTQkEGcTTYDgr3w0Se0xtUS Op3Txjwzzz5+EyI6sqt9jdnjdJdJXjbq2aNfcxURoIY3puHllsbDGC8yTrCKL413VvlNHq CdPVTTTrC+gaX4fMT/5yJN6fczngqGRLzleK5aM/T3kboBxcu3lhxdC3cTPuoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671487676; 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=Z5xKtnJBog2CXCvigIMeBZpxoSKDFYAZmCMwxcCGgkg=; b=Dar0J7MaW6k4R56sFhNe/RzcwKpSrPPPcW+2YSH5fxsLIdmOW0UFvNzqYhu0tUkQESNqo8 EA87mwdTpezwzxZFDRCt5fj4zVD+TnOZYZRC5hRMX5QI2BSwh03FfLZcysBgsvSH5AbATW epVU8cr+7vvfjuMHvD+s8Ya/+dkmebFZLUXNsCqFkrjQuF0NL3ZR5MSc/Yi03scuHRwD+H lwyOlFnpAJYSlD8OZ7OJqkG6d8I3UJ+H2qKaAO87qeUj8/wvcd73wUUostJUIEo+jXS1Yg fIB6wFZ8jaR3tP5wegz7hO6yytFeNfw7Uhm0GGwVM8FC8ejB/WvfdZobIc/miQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671487676; a=rsa-sha256; cv=none; b=Z4xvQoH+fatA9gQGR7oIV9Xkxmkn+1427JYsjrIj6+ZLo5OZGnNifidSkQgqybmoxzf26n fBo3GNmtSgZG6oshr+afE/6+N42R9KWJlcp4hnA0BeJpaWdT5aD2KbIDUi2ztpfrb00eJQ 3t6d+lYX1ZrWnj6iz1MbKlr5fr3qrstsZJE3F30zk9CVgaWVhMu9u3J0PsLLKJVmTjsgir svzxebrbnu4pxKJPrUT6S2nS+C/R+M4aEFNpvwmGIt9xsLiOqWzlDy/T7yNvQYEa/FNSqA 1fAQ9fzIegbqtXud6omAoLsqXa3V2O6Sn7VFqEDC2loJnDlwBXPAVhMqsp8X5w== 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 4NbYjl75DlzsBd; Mon, 19 Dec 2022 22:07:55 +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 7C7698D4A212; Mon, 19 Dec 2022 22:07:54 +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 C10965C3A876; Mon, 19 Dec 2022 22:07:53 +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 eYNEPtvVFTNq; Mon, 19 Dec 2022 22:07:51 +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 50DE65C3A833; Mon, 19 Dec 2022 22:07:51 +0000 (UTC) Date: Mon, 19 Dec 2022 22:07:50 +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 09:25:28PM +0000, you (Marco) sent the following to [freebsd-wireless] : >> 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 > > Forgot to mention that despite the IO error, pciconf does list > pci0:0:20:3 to be attached to iwlwifi0 > > [~] d pciconf -lBbcevV iwlwifi0 > iwlwifi0@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, disabled > cap 01[c8] = powerspec 3 supports D0 D3 current D3 > cap 05[d0] = MSI supports 1 message, 64 bit > 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 > > And /var/log/messages contains: > > Dec 19 21:17:46 harbinger rtsold[80587]: interface wlan0 removed > Dec 19 21:17:46 harbinger wpa_supplicant[51703]: Error reading packet, has device disappeared? > Dec 19 21:17:46 harbinger syslogd: last message repeated 1 times > Dec 19 21:17:46 harbinger kernel: [811025] pid 52018 (wpa_supplicant), jid 0, uid 0: exited on signal 11 (core dumped) > Dec 19 21:17:47 harbinger kernel: [811026] wlan0: link state changed to DOWN > Dec 19 21:17:47 harbinger kernel: [811026] iwm0: detached > Dec 19 21:17:47 harbinger kernel: [811026] pci0:0:20:3: Transition from D0 to D3 > Dec 19 21:17:47 harbinger root[77895]: /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. > Dec 19 21:18:05 harbinger kernel: [811044] iwlwifi0: mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0 > Dec 19 21:18:05 harbinger kernel: [811044] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues? > Dec 19 21:18:05 harbinger kernel: [811044] device_attach: iwlwifi0 attach returned 5 You could try a devctl reset ... between detach and set driver. Also you could try to stop the iwm0 (wlan0) before detaching and see if that gets a clean(er) shutdown (service netif destroy wlan0 && devctl detach ...) /bz -- Bjoern A. Zeeb r15:7