From owner-freebsd-wireless@freebsd.org Tue Jan 14 18:13:22 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 527BF1F28F6 for ; Tue, 14 Jan 2020 18:13:22 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47xz8x5WNTz4V4j for ; Tue, 14 Jan 2020 18:13:21 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: by mailman.nyi.freebsd.org (Postfix) id BD45D1F28F5; Tue, 14 Jan 2020 18:13:21 +0000 (UTC) Delivered-To: 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 BD0561F28F4 for ; Tue, 14 Jan 2020 18:13:21 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47xz8x4f8Bz4V4h; Tue, 14 Jan 2020 18:13:21 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id EB8F1138A43; Tue, 14 Jan 2020 18:13:19 +0000 (UTC) Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id q6jLGnVKz5Fa; Tue, 14 Jan 2020 18:13:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.antonovs.family (Postfix) with ESMTP id 95D1F138A46; Tue, 14 Jan 2020 18:13:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.antonovs.family 95D1F138A46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=D65AA412-CB7F-11E9-A561-802C9D403B77; t=1579025599; bh=SkECdZNdn2X7dEoocFUFTqDxufDdnmPjenrAaqhvEyI=; h=Date:MIME-Version:To:From:Message-ID; b=kdd0oBQkIq071W5ZNGG/k9Iyctt0qMGh3HlwR/7nsVQ0Gg8oqcO1RaH3Vo0kbly/i jVGeLf47GS24jguRA40IYTuCOh/pkKUIJJ+jq5D/gCgbsOVaDVJANyBFgg8PDPAhJ4 RlYUsi8l2mSCgty7lqXXpHIbUfNFSTolUIfo0Tf8ud8gFFef7RbhOgFK4zas9xXkGn YmGTCiF/MIeovCLOZGsF9qCXYoi527bOOei6kv5zCejLKTdzywHviZBRnEKrn4BTuQ TuAfFML22A4L+KTDnbDRxsalgjbgY9aq9tANJmc380j0Z1xMeRq8odi47fbjOXcUk3 +s3+51rfM8PuQ== X-Virus-Scanned: amavisd-new at antonovs.family Received: from mail.antonovs.family ([127.0.0.1]) by localhost (mail.antonovs.family [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VELHooHfnJSs; Tue, 14 Jan 2020 18:13:19 +0000 (UTC) Received: from [10.6.34.193] (unknown [74.85.93.130]) by mail.antonovs.family (Postfix) with ESMTPSA id 42B05138A43; Tue, 14 Jan 2020 18:13:19 +0000 (UTC) Date: Tue, 14 Jan 2020 10:13:15 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <20200114160358.GF46791@raichu> References: <11444111.O9o76ZdvQC@t800> <20200114160358.GF46791@raichu> MIME-Version: 1.0 Subject: Re: Intel AC 9560 on Lenovo X1 Extreme To: Mark Johnston CC: wireless@freebsd.org From: Ihor Antonov Message-ID: <77F1EBF0-0092-4801-8564-94B437705A1F@antonovs.family> X-Rspamd-Queue-Id: 47xz8x4f8Bz4V4h X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.992,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 14 Jan 2020 18:13:22 -0000 On January 14, 2020 8:03:58 AM PST, Mark Johnston wr= ote: >On Mon, Jan 13, 2020 at 09:41:26PM -0800, Ihor Antonov wrote: >> Hi Mark >>=20 >> According to your >comment:https://bugs=2Efreebsd=2Eorg/bugzilla/show_bug=2Ecgi? >> id=3D227044#c39 >>=20 >> I have Lenovo X1 Extreme with 9560 card=2E >>=20 >> I am trying to install FreeBSD from latest snapshot [1] but I got no >wifi=2E >>=20 >> in dmesg I see: >>=20 >> iwm0: iwm_pcie_load_section: Could not load the [0] uCode section >> iwm0: iwm_start_fw: failed 60 >> iwm0: Failed to start INIT ucode: 60 >>=20 >> kldunload if_iwm results in automatic reloading of the module and the >error=20 >> appears again=2E >>=20 >> I am new to FreeBSD Please advice with further troubleshooting steps >or any=20 >> additional info I might provide > >Does iwm0 print any other messages during boot? Could you provide the >"pciconf -lv" entry for the iwm device? > >If you are willing to compile a new driver, it would be useful to see >what output you get with sc_debug set to 0xffffffff=2E We should >probably >make that a tunable=2E > >diff --git a/sys/dev/iwm/if_iwm=2Ec b/sys/dev/iwm/if_iwm=2Ec >index 4538a0a38113=2E=2E1ea003a3918a 100644 >--- a/sys/dev/iwm/if_iwm=2Ec >+++ b/sys/dev/iwm/if_iwm=2Ec >@@ -6021,6 +6021,8 @@ iwm_attach(device_t dev) > callout_init_mtx(&sc->sc_led_blink_to, &sc->sc_mtx, 0); > TASK_INIT(&sc->sc_es_task, 0, iwm_endscan_cb, sc); >=20 >+ sc->sc_debug =3D 0xffffffff; >+ > error =3D iwm_dev_check(dev); > if (error !=3D 0) > goto fail; Thanks for prompt reply=2E=20 I will try this within a few days, need to get an Ethernet adapter first t= o avoid rebooting to Linux all the time=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From owner-freebsd-wireless@freebsd.org Tue Jan 14 22:11:15 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 7A8E11F6D20 for ; Tue, 14 Jan 2020 22:11:15 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47y4RR0h6Gz3CVG for ; Tue, 14 Jan 2020 22:11:15 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: by mailman.nyi.freebsd.org (Postfix) id 175BD1F6D1F; Tue, 14 Jan 2020 22:11:15 +0000 (UTC) Delivered-To: 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 171FD1F6D1E for ; Tue, 14 Jan 2020 22:11:15 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) 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)) by mx1.freebsd.org (Postfix) with ESMTPS id 47y4RQ5fqGz3CVD; Tue, 14 Jan 2020 22:11:14 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 67EEF8D4A129; Tue, 14 Jan 2020 22:11:06 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id E3260E707CB; Tue, 14 Jan 2020 22:11:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 3aaM3cOcInMq; Tue, 14 Jan 2020 22:11:04 +0000 (UTC) Received: from [127.0.0.1] (unknown [IPv6:fde9:577b:c1a9:4902:7c24:dbc1:4f41:107d]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 062CEE707AD; Tue, 14 Jan 2020 22:11:03 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Mark Johnston" Cc: "Ihor Antonov" , wireless@freebsd.org Subject: Re: Intel AC 9560 on Lenovo X1 Extreme Date: Tue, 14 Jan 2020 22:11:03 +0000 X-Mailer: MailMate (2.0BETAr6146) Message-ID: <3D27322A-8512-4C17-9985-4047137AF3CE@lists.zabbadoz.net> In-Reply-To: <20200114160358.GF46791@raichu> References: <11444111.O9o76ZdvQC@t800> <20200114160358.GF46791@raichu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 47y4RQ5fqGz3CVD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 14 Jan 2020 22:11:15 -0000 On 14 Jan 2020, at 16:03, Mark Johnston wrote: > On Mon, Jan 13, 2020 at 09:41:26PM -0800, Ihor Antonov wrote: >> Hi Mark >> >> According to your >> comment:https://bugs.freebsd.org/bugzilla/show_bug.cgi? >> id=227044#c39 >> >> I have Lenovo X1 Extreme with 9560 card. >> >> I am trying to install FreeBSD from latest snapshot [1] but I got no >> wifi. >> >> in dmesg I see: >> >> iwm0: iwm_pcie_load_section: Could not load the [0] uCode section >> iwm0: iwm_start_fw: failed 60 >> iwm0: Failed to start INIT ucode: 60 >> >> kldunload if_iwm results in automatic reloading of the module and the >> error >> appears again. >> >> I am new to FreeBSD Please advice with further troubleshooting steps >> or any >> additional info I might provide > > Does iwm0 print any other messages during boot? Could you provide the > "pciconf -lv" entry for the iwm device? It would also be interesting to know which firmware is loaded (e.g., what is in loader.conf) and which exact version. Given it’s a ETIMEOUT it sounds like the firmware just never starts to run? > If you are willing to compile a new driver, it would be useful to see > what output you get with sc_debug set to 0xffffffff. We should > probably > make that a tunable. We should. I think I did that locally when I was testing your changes a while ago: @@ -5933,7 +6183,7 @@ iwm_attach(device_t dev) #ifdef IWM_DEBUG SYSCTL_ADD_INT(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "debug", - CTLFLAG_RW, &sc->sc_debug, 0, "control debugging"); + CTLFLAG_RWTUN, &sc->sc_debug, 0, "control debugging"); > > diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c > index 4538a0a38113..1ea003a3918a 100644 > --- a/sys/dev/iwm/if_iwm.c > +++ b/sys/dev/iwm/if_iwm.c > @@ -6021,6 +6021,8 @@ iwm_attach(device_t dev) > callout_init_mtx(&sc->sc_led_blink_to, &sc->sc_mtx, 0); > TASK_INIT(&sc->sc_es_task, 0, iwm_endscan_cb, sc); > > + sc->sc_debug = 0xffffffff; > + > error = iwm_dev_check(dev); > if (error != 0) > goto fail; > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org"