Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2020 10:13:15 -0800
From:      Ihor Antonov <ihor@antonovs.family>
To:        Mark Johnston <markj@freebsd.org>
Cc:        wireless@freebsd.org
Subject:   Re: Intel AC 9560 on Lenovo X1 Extreme
Message-ID:  <77F1EBF0-0092-4801-8564-94B437705A1F@antonovs.family>
In-Reply-To: <20200114160358.GF46791@raichu>
References:  <11444111.O9o76ZdvQC@t800> <20200114160358.GF46791@raichu>

next in thread | previous in thread | raw e-mail | index | archive | help


On January 14, 2020 8:03:58 AM PST, Mark Johnston <markj@freebsd=2Eorg> 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: <owner-freebsd-wireless@freebsd.org>
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 <freebsd-wireless@mailman.nyi.freebsd.org>;
 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 <freebsd-wireless@freebsd.org>; 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 <wireless@mailman.nyi.freebsd.org>; 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" <bzeeb-lists@lists.zabbadoz.net>
To: "Mark Johnston" <markj@freebsd.org>
Cc: "Ihor Antonov" <ihor@antonovs.family>, 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." <freebsd-wireless.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-wireless>, 
 <mailto:freebsd-wireless-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-wireless/>;
List-Post: <mailto:freebsd-wireless@freebsd.org>
List-Help: <mailto:freebsd-wireless-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-wireless>, 
 <mailto:freebsd-wireless-request@freebsd.org?subject=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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77F1EBF0-0092-4801-8564-94B437705A1F>