Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1442497ybv; Fri, 7 Feb 2020 22:07:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyQWN7g/BUJ5jrLOcnfn618oCXkbnOqdBjdU7RVA2XbmU+ZI152QtmZMqj5x5bVGVfKG6vR X-Received: by 2002:aca:2419:: with SMTP id n25mr4583271oic.13.1581142069981; Fri, 07 Feb 2020 22:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581142069; cv=none; d=google.com; s=arc-20160816; b=b0JlqQ+cm5bK7V7T3hJiBcD8ixi08ao5NlQqXa7rebpMHoLCE3OcKBmuqcCMcXubdj uL4jLE/bCkWtih70xdam5iBUHFiuKBEN4hjnvNVNjOpvmJdEBiGKZmpL3DNV6Oph3Z/d 5QdIficmsb6ZN8D5YeXmpbUNHNsWw7Nu7ArfcTzToradw0PfaT4cf/KY8gI0rQ4cMD2g niFc3uPxsKDfP6u85Y+Gj0H2hi6r37PGwfFJQAAC16At5KoF6+ZHc+N44pvKkYS1fMla YLdxlZNPika4LbWCzbT3GXao+Mw+yfgXkq6iUcKPJGFlXsluKZrneR7vHbwv+aXgVOI2 sJiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KmgMzo2GSgxgq0rlSBREeJMX5GFJrDBNbfvYRvstxjg=; b=Q1DNjxymlcXUhLieN07JuN3ut2CdfY0O3OPOrkcnPK+zM83svwTE1i/04e0HwEW/pW WwjTwIYlMklJ9vI3CMEZxUS7nMoIblxCgH6vEtnJj3pQXccopj98IiHGQJWrPKZTKZSC HT4l3A//FUaI1JeOcK1Ez9voiSWNs7+ebCx7qfeq0gsngU3r+1UVbWrenTzGuk7YANXx j+64A5M+T9DF+eNvhoUoeOUNwgKxwij1T1xqEDhBh1LVrKu6Zw1TEbxGTYqV3L4zZePS oZJ9gurrQmWtBectIjIr+vgVl7GYDahrHYDIEhVRbVDSAfdOW94RKRmZbeYmN46mGrF+ 9vLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BWR85NN0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si987880otn.323.2020.02.07.22.07.37; Fri, 07 Feb 2020 22:07:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BWR85NN0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbgBHGEy (ORCPT + 99 others); Sat, 8 Feb 2020 01:04:54 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:45914 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgBHGEy (ORCPT ); Sat, 8 Feb 2020 01:04:54 -0500 Received: by mail-qk1-f195.google.com with SMTP id a2so904025qko.12; Fri, 07 Feb 2020 22:04:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KmgMzo2GSgxgq0rlSBREeJMX5GFJrDBNbfvYRvstxjg=; b=BWR85NN0UScm5s1eKLSgliRAXT0iYjjiWGwI97Kp19oynbUL3kTZGcj9elxn6+V9gg U6V/PX1uIugyeO83F0EC2Gk1h+Yix+ZKJRAowIquS2SZ8xBMBz+3KaFIz3x7Jp9Pkw9p rRk0rZD9jrfBeCK/ArhKO24vdeTmoOK+Tv1lrHohEKK9HrzSQKtEoL4Al4y/PzaxSwWR 3G5pg3n1u0I7uRfx/tv2F4FxMGIIWWyGL+ywO4f5lzOVxbW5COFOlMu+jhoK4HoMY0hC 4QLhzIQ2q38xqaowwr0eEjR08KZXwurIj92kEQrjcEZSQ9atRiTgLnbP4vY10afV8e1V kJiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KmgMzo2GSgxgq0rlSBREeJMX5GFJrDBNbfvYRvstxjg=; b=axJfSYATsBQRUetEzkNVsmh2uodb0ATgmViAmyCg515ADmc/te6r/knhAW9N8hrNUb +W+tv1lgQhtlYsbNGhtXvcXChFVAG5CDDoP5xLiaor9pb+itei1S/mkjiZS7SpifwFR6 4EbV1mrlweEU5u5G0flh9BcPK0C+/2Hp+bTSO3ro3aX27JzgC2EDZNrrbqFkmQI1guGz V6d2m8ozbb5icd329kT2wXj0qClvoc9iW5vM4lHgjLslEoPCeo63tHa/heN0mqV9CIVt 7GJip7uknEnmmBpeljSrkgIpAJDDVrHBhybybP7wOUZKj/E2KOwdGfhJXuraVEwURqnU BkLQ== X-Gm-Message-State: APjAAAUY1vwXL5A1F/jLAKXv0+WhawIl6bqM4vSRsFSLQzGUS+GvYWPm z1ouA+tkg4J5fpZi4gObSpk= X-Received: by 2002:a37:e211:: with SMTP id g17mr2265000qki.210.1581141891643; Fri, 07 Feb 2020 22:04:51 -0800 (PST) Received: from chirva-slack.chirva-slack (pool-68-133-6-220.bflony.fios.verizon.net. [68.133.6.220]) by smtp.gmail.com with ESMTPSA id t23sm2503614qtp.82.2020.02.07.22.04.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2020 22:04:51 -0800 (PST) Date: Sat, 8 Feb 2020 01:04:49 -0500 From: Stuart Little To: Johannes Berg , emmanuel.grumbach@intel.com, Luca Coelho Cc: kernel list , linuxwifi@intel.com, linux-wireless@vger.kernel.org Subject: Re: PROBLEM: Linux 5.5 fails to load firmware for Intel(R) Dual Band Wireless AC 3168 Message-ID: <20200208060449.GA1389@chirva-slack.chirva-slack> References: <20200208010903.GA1366@chirva-slack.chirva-slack> <20200208020248.GA1524@chirva-slack.chirva-slack> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200208020248.GA1524@chirva-slack.chirva-slack> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just for good measure: reverting commit b3f20e098293892388d6a0491d6bbb2efb46fbff iwlwifi: mvm: fix NVM check for 3168 devices right on top of the current tree does fix the issue (I'm on that kernel as we speak). On Fri, Feb 07, 2020 at 09:02:48PM -0500, Stuart Little wrote: > I have done the bisect on this issue. The log is attached, along with the end summary the bisect returned. The latter is also pasted here: > > --- cut here --- > > b3f20e098293892388d6a0491d6bbb2efb46fbff is the first bad commit > commit b3f20e098293892388d6a0491d6bbb2efb46fbff > Author: Luca Coelho > Date: Mon Nov 25 13:21:58 2019 +0200 > > iwlwifi: mvm: fix NVM check for 3168 devices > > We had a check on !NVM_EXT and then a check for NVM_SDP in the else > block of this if. The else block, obviously, could only be reached if > using NVM_EXT, so it would never be NVM_SDP. > > Fix that by checking whether the nvm_type is IWL_NVM instead of > checking for !IWL_NVM_EXT to solve this issue. > > Reported-by: Stefan Sperling > Signed-off-by: Luca Coelho > > :040000 040000 923b8f7ba8a5826190d4b1b52a00a2fca0304687 529cfe362357c9ec6d411a687d9e41ac86a94d91 M drivers > > --- end --- > > On Fri, Feb 07, 2020 at 08:09:03PM -0500, Stuart Little wrote: > > I am on an > > > > Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz > > > > with an Intel wifi card: > > > > Intel(R) Dual Band Wireless AC 3168, REV=0x220 > > > > The machine is running Slackware 14.2 with a custom-compiled 5.5 kernel (from source; commit d5226fa6dbae Linux 5.5). > > > > The issue: > > > > Booting into that kernel results in failure to load the wifi card firmware. The relevant dmesg portion is attached (these are all of the lines containing 'iwlwifi'). > > > > I have checked that it breaks between > > > > def9d2780727 Linux 5.5-rc7 (good) > > > > and > > > > d5226fa6dbae Linux 5.5 (bad) > > > > I will attempt a bisect to track down the precise faulty commit, but this is all I have for now. Please let me know if I can provide more info short of the bisect. > > > > P.S. > > > > I have checked that the very latest commit at the time of this writing (41dcd67e88688afbeb3b2bd23960eed5daec74e7 at Fri Feb 7 20:07:29 EST 2020) is still broken on this machine. > > > [ 1.210208] iwlwifi 0000:02:00.0: loaded firmware version 29.1654887522.0 op_mode iwlmvm > > [ 1.218505] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625. > > [ 1.223892] r8168 Copyright (C) 2019 Realtek NIC software team > > This program comes with ABSOLUTELY NO WARRANTY; for details, please see . > > This is free software, and you are welcome to redistribute it under certain conditions; see . > > [ 1.230349] xhci_hcd 0000:00:14.0: xHCI Host Controller > > [ 1.230500] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1 > > [ 1.231808] xhci_hcd 0000:00:14.0: hcc params 0x200077c1 hci version 0x100 quirks 0x0000000081109810 > > [ 1.232080] xhci_hcd 0000:00:14.0: cache line size of 64 is not supported > > [ 1.232486] hub 1-0:1.0: USB hub found > > [ 1.232640] hub 1-0:1.0: 12 ports detected > > [ 1.233280] xhci_hcd 0000:00:14.0: xHCI Host Controller > > [ 1.233440] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2 > > [ 1.233690] xhci_hcd 0000:00:14.0: Host supports USB 3.0 SuperSpeed > > [ 1.233883] AVX2 version of gcm_enc/dec engaged. > > [ 1.234067] AES CTR mode by8 optimization enabled > > [ 1.234279] hub 2-0:1.0: USB hub found > > [ 1.234446] hub 2-0:1.0: 6 ports detected > > [ 1.277853] iwlwifi 0000:02:00.0: Detected Intel(R) Dual Band Wireless AC 3168, REV=0x220 > > [ 1.297761] iwlwifi 0000:02:00.0: Can't parse phy_sku in B0, empty sections > > [ 1.297916] iwlwifi 0000:02:00.0: Failed to read NVM: -61 > > [ 1.298063] iwlwifi 0000:02:00.0: Collecting data: trigger 16 fired. > > [ 1.299371] iwlwifi 0000:02:00.0: Start IWL Error Log Dump: > > [ 1.299521] iwlwifi 0000:02:00.0: Status: 0x00000040, count: 6 > > [ 1.299673] iwlwifi 0000:02:00.0: Loaded firmware version: 29.1654887522.0 > > [ 1.299829] iwlwifi 0000:02:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN > > [ 1.299983] iwlwifi 0000:02:00.0: 0x000002F0 | trm_hw_status0 > > [ 1.300132] iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1 > > [ 1.300291] iwlwifi 0000:02:00.0: 0x0004171E | branchlink2 > > [ 1.300442] iwlwifi 0000:02:00.0: 0x000446B2 | interruptlink1 > > [ 1.300595] iwlwifi 0000:02:00.0: 0x000446B2 | interruptlink2 > > [ 1.300747] iwlwifi 0000:02:00.0: 0x00000000 | data1 > > [ 1.300895] iwlwifi 0000:02:00.0: 0x00000080 | data2 > > [ 1.301041] iwlwifi 0000:02:00.0: 0x07030000 | data3 > > [ 1.301190] iwlwifi 0000:02:00.0: 0x00000000 | beacon time > > [ 1.301341] iwlwifi 0000:02:00.0: 0x00001451 | tsf low > > [ 1.301491] iwlwifi 0000:02:00.0: 0x00000000 | tsf hi > > [ 1.301642] iwlwifi 0000:02:00.0: 0x00000000 | time gp1 > > [ 1.301793] iwlwifi 0000:02:00.0: 0x00001452 | time gp2 > > [ 1.301943] iwlwifi 0000:02:00.0: 0x00000009 | uCode revision type > > [ 1.302094] iwlwifi 0000:02:00.0: 0x0000001D | uCode version major > > [ 1.302245] iwlwifi 0000:02:00.0: 0x62A39462 | uCode version minor > > [ 1.302397] iwlwifi 0000:02:00.0: 0x00000220 | hw version > > [ 1.302548] iwlwifi 0000:02:00.0: 0x00C89200 | board version > > [ 1.302701] iwlwifi 0000:02:00.0: 0x00110188 | hcmd > > [ 1.302852] iwlwifi 0000:02:00.0: 0x00022000 | isr0 > > [ 1.303003] iwlwifi 0000:02:00.0: 0x00000000 | isr1 > > [ 1.303152] iwlwifi 0000:02:00.0: 0x00000002 | isr2 > > [ 1.303301] iwlwifi 0000:02:00.0: 0x004000C0 | isr3 > > [ 1.303448] iwlwifi 0000:02:00.0: 0x00000000 | isr4 > > [ 1.303596] iwlwifi 0000:02:00.0: 0x00110188 | last cmd Id > > [ 1.303746] iwlwifi 0000:02:00.0: 0x00000000 | wait_event > > [ 1.303897] iwlwifi 0000:02:00.0: 0x00000080 | l2p_control > > [ 1.304047] iwlwifi 0000:02:00.0: 0x00000000 | l2p_duration > > [ 1.304197] iwlwifi 0000:02:00.0: 0x00000000 | l2p_mhvalid > > [ 1.304346] iwlwifi 0000:02:00.0: 0x00000000 | l2p_addr_match > > [ 1.304496] iwlwifi 0000:02:00.0: 0x00000007 | lmpm_pmg_sel > > [ 1.304652] iwlwifi 0000:02:00.0: 0x16070617 | timestamp > > [ 1.304798] iwlwifi 0000:02:00.0: 0x00341018 | flow_handler > > [ 1.304966] iwlwifi 0000:02:00.0: Fseq Registers: > > [ 1.305139] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_ERROR_CODE > > [ 1.305306] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_TOP_INIT_VERSION > > [ 1.305475] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVIO_INIT_VERSION > > [ 1.305652] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_OTP_VERSION > > [ 1.305822] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_TOP_CONTENT_VERSION > > [ 1.305995] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_ALIVE_TOKEN > > [ 1.306175] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVI_ID > > [ 1.306356] iwlwifi 0000:02:00.0: 0x00000000 | FSEQ_CNVR_ID > > [ 1.306524] iwlwifi 0000:02:00.0: 0x00000000 | CNVI_AUX_MISC_CHIP > > [ 1.306695] iwlwifi 0000:02:00.0: 0x00000000 | CNVR_AUX_MISC_CHIP > > [ 1.306870] iwlwifi 0000:02:00.0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM > > [ 1.307135] iwlwifi 0000:02:00.0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR > > [ 1.307402] iwlwifi 0000:02:00.0: Firmware not running - cannot dump error > > [ 1.319717] iwlwifi 0000:02:00.0: Failed to run INIT ucode: -61 > > git bisect start > # bad: [d5226fa6dbae0569ee43ecfc08bdcd6770fc4755] Linux 5.5 > git bisect bad d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 > # good: [def9d2780727cec3313ed3522d0123158d87224d] Linux 5.5-rc7 > git bisect good def9d2780727cec3313ed3522d0123158d87224d > # bad: [722943a54de95343c97c2a9ad658253393632f97] Merge tag 'mlx5-fixes-2020-01-24' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux > git bisect bad 722943a54de95343c97c2a9ad658253393632f97 > # bad: [5169adbc982400f214bc0bcad1fcc076bd342987] Merge tag 'wireless-drivers-2020-01-23' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers > git bisect bad 5169adbc982400f214bc0bcad1fcc076bd342987 > # good: [d7f1b59655efb5a285d227c8f9853a98eab5c2fd] r8152: disable test IO for RTL8153B > git bisect good d7f1b59655efb5a285d227c8f9853a98eab5c2fd > # bad: [b9f726c94224e863d4d3458dfec2e7e1284a39ce] iwlwifi: mvm: fix SKB leak on invalid queue > git bisect bad b9f726c94224e863d4d3458dfec2e7e1284a39ce > # good: [c4a786b32621850775dedd1a329de0c060f9c904] iwlwifi: pcie: work around DMA hardware bug > git bisect good c4a786b32621850775dedd1a329de0c060f9c904 > # bad: [b3f20e098293892388d6a0491d6bbb2efb46fbff] iwlwifi: mvm: fix NVM check for 3168 devices > git bisect bad b3f20e098293892388d6a0491d6bbb2efb46fbff > # good: [a89c72ffd07369f5ccc74f0332d2785a7077241d] iwlwifi: pcie: allocate smaller dev_cmd for TX headers > git bisect good a89c72ffd07369f5ccc74f0332d2785a7077241d > # good: [4f565ee2999960d541854389e20b78e7105e3afc] iwlwifi: fix TLV fragment allocation loop > git bisect good 4f565ee2999960d541854389e20b78e7105e3afc > # first bad commit: [b3f20e098293892388d6a0491d6bbb2efb46fbff] iwlwifi: mvm: fix NVM check for 3168 devices > b3f20e098293892388d6a0491d6bbb2efb46fbff is the first bad commit > commit b3f20e098293892388d6a0491d6bbb2efb46fbff > Author: Luca Coelho > Date: Mon Nov 25 13:21:58 2019 +0200 > > iwlwifi: mvm: fix NVM check for 3168 devices > > We had a check on !NVM_EXT and then a check for NVM_SDP in the else > block of this if. The else block, obviously, could only be reached if > using NVM_EXT, so it would never be NVM_SDP. > > Fix that by checking whether the nvm_type is IWL_NVM instead of > checking for !IWL_NVM_EXT to solve this issue. > > Reported-by: Stefan Sperling > Signed-off-by: Luca Coelho > > :040000 040000 923b8f7ba8a5826190d4b1b52a00a2fca0304687 529cfe362357c9ec6d411a687d9e41ac86a94d91 M drivers