From nobody Wed Dec 28 21:51:31 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 4Nj4wm69tdz1LsMQ for ; Wed, 28 Dec 2022 21:51:36 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4Nj4wm5b3Nz3DnQ; Wed, 28 Dec 2022 21:51:36 +0000 (UTC) (envelope-from bz@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672264296; 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=FMbtYjUctmZtUZhzBxM9t/qyE5/RVQ8TAsa8vVQrGbA=; b=xc5Ue4xAzVWqyhT6eGMdVnqkP0eU1ubdwpi7bnElyxCkWpDx/OEpAllNwuseduoxWE1cUY nLSY1MXf+3u01bIkfPQL86/YwGrSva/EAHDgKO7Lh/P+xID/WO87nLtHiGakpiDEC9+4YL NJ6l5AAwyQItPYUrvQuio5/+OzzgBawqALfG3IuBbgJf7Rxfk/mEF5jf1VtFTqR00sch97 HIkywRVp7cAegWsn64Ijr6F+hspHiZvhnp7w7m//7eJG8Zjcd7BgzLHlCsZtsFN2hvBX5O 7JenAm/rfDpdblMd7K4slnId41zgMQMHSQDwSugSVwb/DkFYwAM6Bd/6UTMYyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672264296; 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=FMbtYjUctmZtUZhzBxM9t/qyE5/RVQ8TAsa8vVQrGbA=; b=IdnYcVXRI0JMMesihUxBQCGpEfd9WkiP6QEzqQX8Wc3SzmBSqW38+HkIqj9rYiwYdespzL 3iYTmAoYC2g+LjVDkjIi3IL3b/t4yY5rRJGJQvvokOPT59bUmfuDKVzV0p/0IB2ewfehAK AvEL+9qK8E1eMn7b2apaRcnb9OjDl0jJUaPKXTXFgFGUR2ah1XqJBhT51rDF2FUNELDTX4 I/qNXRdQFzZaUHY5xXB12uR7OxV0bU0Rl9APyQ0GAGCXDcuwsMeCxq22X66FgtXJ3X/kzH T76x1aNkrqfnZLRdOPrFQx8eMlL0FmAg2Qc6gUrskaToIFaKcVlzM6pDkgIdEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672264296; a=rsa-sha256; cv=none; b=sFesjZgnK3FrgIaLi7S6U38xbflRJjPvZPdq2o9O7P+xZi1MzoSanJEG8F1X8L1/uKs+rA KMcsxQtKBh6Gu5XoC5LrHSvXqNqjb7Wd91TjhjvzgBlzVM5ckeWe+wo45YvtoUdwhhKbKq kAzVFuN4B2MGa4pl6rbamfvVcwdALQ/SwK1G9wkN8X7z1rRovntg+dcbX6kOmK/GFRDtL3 GSjvzhXL7w3gu1OU5/h7IwHc2Lyi+d81Wpu8s9QD1kB5mDkQrHwjYnWq39CJ31YbSgWFkd I2RyTLZKMwFQBth2J6aFDPmEOG7GYpV+byVEJXUHOz/XTDewdAYm1yQQakMhfA== Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (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 4Nj4wm3SnPzZD7; Wed, 28 Dec 2022 21:51:36 +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 910BB8D4A169; Wed, 28 Dec 2022 21:51:34 +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 BE2155C3A833; Wed, 28 Dec 2022 21:51:33 +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 4g2XReo3mIPE; Wed, 28 Dec 2022 21:51:32 +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 ED4EC5C3A830; Wed, 28 Dec 2022 21:51:31 +0000 (UTC) Date: Wed, 28 Dec 2022 21:51:31 +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: <69oq98r0-4r8-16s6-3779-82q158sp044@mnoonqbm.arg> References: <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 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. So you by any chance have any power saving sysctl (or tunables) set? I see two transiotions from D0 to D3 logged but nothing taking the device out of D3 gets logged (could be an omission elsewhere). Can you show a pciconf -lBbcevV iwlwifi0 or pciconf -lBbcevV pci0:0:20:3 (which ever one works in that state)? /bz -- Bjoern A. Zeeb r15:7