From owner-freebsd-wireless@freebsd.org Tue Jan 14 16:04:02 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 8EADD1EF951 for ; Tue, 14 Jan 2020 16:04:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47xwHk2LJ0z4KFx for ; Tue, 14 Jan 2020 16:04:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 504B41EF94F; Tue, 14 Jan 2020 16:04:02 +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 500FA1EF94E for ; Tue, 14 Jan 2020 16:04:02 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47xwHj5lHWz4KFw for ; Tue, 14 Jan 2020 16:04:01 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x742.google.com with SMTP id c16so12559028qko.6 for ; Tue, 14 Jan 2020 08:04:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=q5d7qMycy50dv3rm2cXWjcPgk+s2wgzIThM95Cssfi8=; b=r1crVHqbaJpVHK/mgQ5auoajdAzQd+0uLmIHRie3C/VkkPz5l/TAMQmbXAi1FlfI5a rYwMrT3lBT/R6MkrVdPJPF/WiXXJFl3WLiWRh+HmGiZ1La5pKEKLtTPQ2h1E9Ere1MKh 0lgpMgi0zwatcsjyrE/LR0h/FHMyRHghyG+KuwU+fRaq28HG8GSmBpHY3xbnU4wlbd9U PjS/NcIJSxyp0H1YyWS++4YFv7z20+NA+FEsxQQAGzhFwu5HC5thPug5ALj7k8KXT+cp dOaadylz3Y+DnaJi/flH9b0dbS6g2fJTa2RCaCQesckqve/fNoSaH2q9vKKwPS3s8zbX GWjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=q5d7qMycy50dv3rm2cXWjcPgk+s2wgzIThM95Cssfi8=; b=RdOwyLWC0AxcLFEj9otxzX/8hVN5YWY5NYlSGT84SZKXJjl2qQPoXjgmpGHQ0MVGJx rUF06M91jnRl60lVvjMEsVlX/EhQqiAaOnEzUd0X92ikousa4Uo7v/UUhmtTi8UkTD+h LeqV6ZGCMfyUYZgCxC9r/PCle781SIl439Yz/l4dmehubHDv0OIsrZBHI8gN3Z9/Q8zn tsx5YR44fCPH/pChoLGp4wKooeCsSc0MovPGRLAtpa4M9kE9EJPLny2CbCRO6cv+wMq0 5L+B97YQlZ4oHAVt56rorvhiHb65etfwgsOmCEG0uBswLXsv61dwwkdcS5C1uCF9eDzs ujcw== X-Gm-Message-State: APjAAAWiDbY8H3FceaA1ejnYV19dpLQ+//klG4QzLCDuu/Cz22ByX54d K85BFKJhCmvwLK0JuBNl6cVjm3tYZsE= X-Google-Smtp-Source: APXvYqxJEsfmsQWHy8hewlAOY6eWsOsiMVvqd7irRChTg1kofYyNXdZtGkqYhgNPTS6X8f7UHjT6Dw== X-Received: by 2002:a37:2f47:: with SMTP id v68mr16078077qkh.217.1579017840837; Tue, 14 Jan 2020 08:04:00 -0800 (PST) Received: from raichu (toroon0560w-lp130-05-69-158-183-252.dsl.bell.ca. [69.158.183.252]) by smtp.gmail.com with ESMTPSA id t7sm6789512qkm.136.2020.01.14.08.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 08:04:00 -0800 (PST) Sender: Mark Johnston Date: Tue, 14 Jan 2020 11:03:58 -0500 From: Mark Johnston To: Ihor Antonov Cc: wireless@freebsd.org Subject: Re: Intel AC 9560 on Lenovo X1 Extreme Message-ID: <20200114160358.GF46791@raichu> References: <11444111.O9o76ZdvQC@t800> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11444111.O9o76ZdvQC@t800> X-Rspamd-Queue-Id: 47xwHj5lHWz4KFw X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=r1crVHqb; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::742 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-1.98 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.993,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[wireless@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-0.29)[ip: (2.53), ipnet: 2607:f8b0::/32(-2.09), asn: 15169(-1.83), country: US(-0.05)]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RCVD_TLS_ALL(0.00)[] 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 16:04:02 -0000 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? 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. 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;