From nobody Mon Dec 19 23:01:08 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 4NbZvF1V87z1G4kf for ; Mon, 19 Dec 2022 23:01:13 +0000 (UTC) (envelope-from freebsd-wireless@lordsith.net) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NbZvD1Pyjz3M1c for ; Mon, 19 Dec 2022 23:01:12 +0000 (UTC) (envelope-from freebsd-wireless@lordsith.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-wireless@lordsith.net designates 185.233.34.20 as permitted sender) smtp.mailfrom=freebsd-wireless@lordsith.net; dmarc=none Received: from smtp.freedom.nl (c04smtp-lb01.int.sover.in [10.10.4.74]) (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 outbound.soverin.net (Postfix) with ESMTPS id 4NbZvB1SsGzKy for ; Mon, 19 Dec 2022 23:01:10 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.108]) by freedom.nl (Postfix) with ESMTPSA id 4NbZvB0YD6zFB for ; Mon, 19 Dec 2022 23:01:10 +0000 (UTC) Date: Mon, 19 Dec 2022 23:01:08 +0000 X-Soverin-Authenticated: true From: Marco To: "freebsd-wireless@freebsd.org" Subject: Re: New laptop: AC 9461/9560: iwm or iwlwifi? Message-ID: Reply-To: marco Mail-Followup-To: marco , "freebsd-wireless@freebsd.org" References: <537f4871-5184-394e-1f93-bf625dc088cf@netfence.it> 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 Content-Disposition: inline In-Reply-To: Organization: lordsith.net X-Operating-System: FreeBSD 13.1-STABLE amd64 X-Unix: Use Unix or die X-Uptime: 10:49PM up 2 mins, 1 user, load averages: 0.41, 0.19, 0.08 X-Spamd-Result: default: False [-2.39 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; R_SPF_ALLOW(-0.20)[+ip4:185.233.34.20]; RCVD_IN_DNSWL_LOW(-0.10)[185.233.34.20:from]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_REPLYTO(0.00)[freebsd-wireless@lordsith.net]; DMARC_NA(0.00)[lordsith.net]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:211993, ipnet:185.233.34.0/24, country:NL]; REPLYTO_ADDR_EQ_FROM(0.00)[]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-wireless@freebsd.org]; HAS_ORG_HEADER(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; R_DKIM_NA(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NbZvD1Pyjz3M1c X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Mon, Dec 19, 2022 at 10:07:50PM +0000, you (Bjoern A. Zeeb) sent the following to [freebsd-wireless] : > 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 ...) I rebooted with both wlans_ entries in rc.conf but not having any devmatch_blocklist active. wlan0 got autocreated with iwm0 as parent and is fuctioning. So at least having 2 wlans_ entries doesn't seem to hurt. Also if_iwlwifi.ko is listed in the kldstat output: # kldstat | grep -e wlan -e wi-fi -e wifi -e iwm 3 1 0xffffffff82141000 3130 wlan_xauth.ko 17 1 0xffffffff850c7000 880c8 if_iwlwifi.ko 18 1 0xffffffff85150000 17310 if_iwm.ko 21 1 0xffffffff85200000 28fee8 iwm9000fw.ko I stopped wlan0 and performed the devctl reset in between the detach and set driver steps but still wasn't successful: # service netif stop wlan0 && devctl detach pci0:0:20:3 && devctl reset pci0:0:20:3 && devctl set driver pci0:0:20:3 iwlwifi wlan0 got destroyed and the following was logged in /var/log/messages: Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-DISCONNECTED bssid=72:a7:41:9b:4f:da reason=3 locally_generated=1 Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-DSCP-POLICY clear_all Dec 19 22:31:42 harbinger syslogd: last message repeated 1 times Dec 19 22:31:42 harbinger wpa_supplicant[73966]: wlan0: CTRL-EVENT-TERMINATING Dec 19 22:31:42 harbinger kernel: [680] wlan0: link state changed to DOWN Dec 19 22:31:42 harbinger rtsold[63523]: interface wlan0 removed Dec 19 22:31:42 harbinger kernel: [680] iwm0: detached Dec 19 22:31:42 harbinger kernel: [680] pci0:0:20:3: Transition from D0 to D3 Dec 19 22:31:42 harbinger root[97472]: /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. Dec 19 22:31:42 harbinger kernel: [681] pci0:0:20:3: Transition from D0 to D3 Dec 19 22:31:42 harbinger kernel: [681] iwlwifi0: mem 0xea238000-0xea23bfff irq 16 at device 20.3 on pci0 Dec 19 22:31:42 harbinger kernel: [681] iwlwifi0: HW_REV=0xFFFFFFFF, PCI issues? Dec 19 22:31:42 harbinger kernel: [681] device_attach: iwlwifi0 attach returned 5 Despite pci0:0:20:3 seeemingly "attached" to iwlwifi0 I can't seem to get wlan0 created using iwlwifi as parent. HTH -- Marco van Lienen -- FreeBSD enthusiast https://keybase.io/scarcry , GnuPG fingerprint: A025 D8AA AC1B D2FC 380D 4FC1 8EA0 0BA8 8580 E6CB "The Tuck Pendleton machine...zero defects."