Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2897500pxb; Fri, 12 Feb 2021 04:26:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxm/I3x0Cv+AAaXrMTzimaxj5fGBUfuzCieVKbDxQeZgF0dhpolosK/cwSlToJNlGy7IB0L X-Received: by 2002:aa7:da17:: with SMTP id r23mr2999599eds.176.1613132770863; Fri, 12 Feb 2021 04:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613132770; cv=none; d=google.com; s=arc-20160816; b=R74T7/uxnQb9MySR/H1m08X2uDtgNcyQnClb+ZWRyQjz3WG74uErC3Shc7P4mGgqEB lfn8Lf4guzMPhJesDwY6R/MRy/gLDlfiL6SOeInQd68lERqZuPY6sdR6CaZ5oGlfI0h6 eXn5TAEXyeDXkAeJoUkb+ULzjsltm0cbhsb/Pn7O3DMe1YDLIp+Os63yABnug/EU65bT 35RZSfX3lH1oGYFhD38kynQj0tbvRciNMIunDRGhvQwVUZpvdlLtg845Cjc4d9I3AmSw wY3ULsoYjKcMMg/ixW0sKNMPMCbq2psuJxd1THYTwuRCdSGG3qmgOEI1A2qVKpp38H4U hMUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=7v+isZ1HzqPqMtgkVpF3iPYeHEgq5H5IHJlPqlYTwaU=; b=qnrawX1seERo7xgBhv882ipVsn3mFLeAx5reE8B1xdj24QM6sTyKJ4xRIUvySU4riJ wgqGIS15uXLKPKNGhSuXlZabmXfqa5SUkZ+TaS10KIqdUkoB8bW1bcnpajRxfBYYJ0op 8Twfn4oQtbpuFPaYIms4gzOY8TkeroAIBMO7Di6aHzgHafjAYO4u1Oowms3Tk7h4DVQD zbsotnYdE4Fqb7+V8sV0PzNSIKayg2Xz1egR/H/cSajGa0LHFMSV3jUbzG9xERyMIrUk ilm22eef04Fcp3sBnNPsKqB7GCfBoSORWfLrXelHwdIlGIekAddJNiD74dmZHSgvMPIW Bp/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KtgwWQv+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si5963769edp.327.2021.02.12.04.25.40; Fri, 12 Feb 2021 04:26:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KtgwWQv+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231131AbhBLMY0 (ORCPT + 99 others); Fri, 12 Feb 2021 07:24:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:52116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231303AbhBLMWH (ORCPT ); Fri, 12 Feb 2021 07:22:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8BF7F61493; Fri, 12 Feb 2021 12:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613132486; bh=3/e0uqCUNK+uT/4Wl1CSSkaVDyTjJR4bSGmamakO2Jg=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=KtgwWQv+Q+vcXTrdc5UkNPYOXGF567R5euQLLzdTswlHmlSasEyQtZzjxsCd9rwbX L11Rt8fevEZvt8lF0yohO9VG9IXGoJN1HUs7POWBrYYWt4Mi1PthQoG5PIINhszjmm TWJKtu8wBHYwU/GzLwIKLmmzfvh0Hk0xs8MS71F56PsXQaKIpJKrY0BMDRHa+3B4kW U0nMhLJanRlr3RXJNjJuJTP4+OyXd20+ybyPA5So+BIarQvQXTaFrUQY7Ld7160pw2 ifcfdwEfrlj3tAnaunK41Dcth1VZLgbdgDc5z9tsIpf8RhC41smwIM+wgB1Iq4mM5i MtvualghHwDJg== Subject: Re: Today's linux-next iwlwifi broken To: Luca Coelho Cc: linux-wireless@vger.kernel.org References: <582d5521f31a49e3518d15811ca7d5a79837a70e.camel@coelho.fi> From: Heiner Kallweit Message-ID: <8c19a363-6701-750a-bd63-8b7a1db27a1d@kernel.org> Date: Fri, 12 Feb 2021 13:21:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <582d5521f31a49e3518d15811ca7d5a79837a70e.camel@coelho.fi> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 11.02.2021 21:23, Luca Coelho wrote: > On Thu, 2021-02-11 at 17:10 +0100, Heiner Kallweit wrote: >> Today's linux-next has a bunch of issues, at least with my AX210 (0024) card. >> >> First I got a GPF in iwl_request_firmware(), cfg->fw_name_pre was invalid. >> After some digging into it I found that 6f60fb03c8e7 ("iwlwifi: move SnJ >> and So rules to the new tables") removed the entries for some cards. >> Obviously 5febcdef3090 and 9b15596c5006 weren't synced with some parallel >> development. >> After adding the entry for 0024 I now get the following lockdep warning. >> Isn't there any regression testing with lockdep enabled? >> Also warning "api flags index 2 larger than supported by driver" is still >> there, IIRC we talked about this weeks ago. >> >> >> [ 4.561774] iwlwifi 0000:01:00.0: enabling device (0000 -> 0002) >> [ 4.630849] iwlwifi 0000:01:00.0: Direct firmware load for iwlwifi-ty-a0-gf-a0-61.ucode failed with error -2 >> [ 4.639817] iwlwifi 0000:01:00.0: api flags index 2 larger than supported by driver >> [ 4.640062] iwlwifi 0000:01:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 93.8.73.28 >> [ 4.642138] iwlwifi 0000:01:00.0: loaded firmware version 60.84d9abea.0 ty-a0-gf-a0-60.ucode op_mode iwlmvm >> [ 4.760541] iwlwifi 0000:01:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420 >> [ 4.942350] irq/131-iwlwifi/2094 just changed the state of lock: >> [ 4.942358] ffffa3fc07f080b0 (&rxq->lock){+.-.}-{2:2}, at: iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.942504] 1 lock held by irq/131-iwlwifi/2094: >> [ 4.942511] #0: ffffa3fc0855c170 (sync_cmd_lockdep_map){+.+.}-{0:0}, at: iwl_pcie_irq_rx_msix_handler+0x47/0x100 [iwlwifi] >> [ 4.943219] _iwl_pcie_rx_init+0x208/0x6e0 [iwlwifi] >> [ 4.943242] iwl_pcie_gen2_rx_init+0x20/0x30 [iwlwifi] >> [ 4.943264] iwl_trans_pcie_gen2_start_fw+0x1e3/0x350 [iwlwifi] >> [ 4.943289] iwl_mvm_load_ucode_wait_alive+0xfc/0x440 [iwlmvm] >> [ 4.943329] iwl_run_unified_mvm_ucode+0xa5/0x250 [iwlmvm] >> [ 4.943360] iwl_run_init_mvm_ucode+0x292/0x370 [iwlmvm] >> [ 4.943391] iwl_op_mode_mvm_start+0x7f4/0xb60 [iwlmvm] >> [ 4.943424] _iwl_op_mode_start.isra.0+0x42/0x80 [iwlwifi] >> [ 4.943446] iwl_opmode_register+0x70/0xe0 [iwlwifi] >> [ 4.943467] iwl_mvm_init+0x35/0x1000 [iwlmvm] >> [ 4.943588] _iwl_pcie_rx_init+0x140/0x6e0 [iwlwifi] >> [ 4.943612] iwl_pcie_gen2_rx_init+0x20/0x30 [iwlwifi] >> [ 4.943635] iwl_trans_pcie_gen2_start_fw+0x1e3/0x350 [iwlwifi] >> [ 4.943662] iwl_mvm_load_ucode_wait_alive+0xfc/0x440 [iwlmvm] >> [ 4.943695] iwl_run_unified_mvm_ucode+0xa5/0x250 [iwlmvm] >> [ 4.943728] iwl_run_init_mvm_ucode+0x292/0x370 [iwlmvm] >> [ 4.943760] iwl_op_mode_mvm_start+0x7f4/0xb60 [iwlmvm] >> [ 4.943793] _iwl_op_mode_start.isra.0+0x42/0x80 [iwlwifi] >> [ 4.943816] iwl_opmode_register+0x70/0xe0 [iwlwifi] >> [ 4.943838] iwl_mvm_init+0x35/0x1000 [iwlmvm] >> [ 4.943954] iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.943978] iwl_pcie_napi_poll_msix+0x2a/0x90 [iwlwifi] >> [ 4.944063] iwl_pcie_irq_rx_msix_handler+0xbc/0x100 [iwlwifi] >> [ 4.944147] _iwl_pcie_rx_init+0x140/0x6e0 [iwlwifi] >> [ 4.944170] iwl_pcie_gen2_rx_init+0x20/0x30 [iwlwifi] >> [ 4.944194] iwl_trans_pcie_gen2_start_fw+0x1e3/0x350 [iwlwifi] >> [ 4.944220] iwl_mvm_load_ucode_wait_alive+0xfc/0x440 [iwlmvm] >> [ 4.944255] iwl_run_unified_mvm_ucode+0xa5/0x250 [iwlmvm] >> [ 4.944287] iwl_run_init_mvm_ucode+0x292/0x370 [iwlmvm] >> [ 4.944319] iwl_op_mode_mvm_start+0x7f4/0xb60 [iwlmvm] >> [ 4.944352] _iwl_op_mode_start.isra.0+0x42/0x80 [iwlwifi] >> [ 4.944375] iwl_opmode_register+0x70/0xe0 [iwlwifi] >> [ 4.944397] iwl_mvm_init+0x35/0x1000 [iwlmvm] >> [ 4.944493] ... key at: [] __key.12+0x0/0xffffffffffff0f40 [iwlwifi] >> [ 4.944547] iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.944569] iwl_pcie_napi_poll_msix+0x2a/0x90 [iwlwifi] >> [ 4.944643] iwl_pcie_irq_rx_msix_handler+0xbc/0x100 [iwlwifi] >> [ 4.944705] CPU: 0 PID: 2094 Comm: irq/131-iwlwifi Not tainted 5.11.0-rc7-next-20210211+ #1 >> [ 4.944786] ? iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.944825] ? iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.944847] iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] >> [ 4.944878] iwl_pcie_napi_poll_msix+0x2a/0x90 [iwlwifi] >> [ 4.944949] ? iwl_pcie_irq_rx_msix_handler+0xab/0x100 [iwlwifi] >> [ 4.944981] iwl_pcie_irq_rx_msix_handler+0xbc/0x100 [iwlwifi] > > Thanks for reporting! > > We made a bunch of fixes in this area and Kalle just pulled them to > wireless-drivers-next. I believe these changes will be in tomorrow's > linux-next. Can you retry it then? > I tested today's linux-next: The lockdep warning is still there and occurs w/o any traffic on boot. No CI machine on your side w/ lockdep enabled? [ 5.845931] ======================================================== [ 5.845938] WARNING: possible irq lock inversion dependency detected [ 5.845946] 5.11.0-rc7-next-20210212+ #1 Not tainted [ 5.845954] -------------------------------------------------------- [ 5.845961] irq/131-iwlwifi/2132 just changed the state of lock: [ 5.845969] ffff8ca6c88600b0 (&rxq->lock){+.-.}-{2:2}, at: iwl_pcie_rx_handle+0x7c/0x8b0 [iwlwifi] [ 5.846011] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 5.846019] (napi_hash_lock){+.+.}-{2:2} [ 5.846023] and interrupts could create inverse lock ordering between them. [ 5.846039] other info that might help us debug this: [ 5.846047] Possible interrupt unsafe locking scenario: [ 5.846055] CPU0 CPU1 [ 5.846061] ---- ---- [ 5.846066] lock(napi_hash_lock); [ 5.846074] local_irq_disable(); [ 5.846081] lock(&rxq->lock); [ 5.846090] lock(napi_hash_lock); [ 5.846099] [ 5.846103] lock(&rxq->lock); [ 5.846110] *** DEADLOCK *** "api flags index 2 larger than supported by driver" is also still there 0024 AX210 version is now detected. When I disable the entry I don't get a GPF any longer but a WARN() is triggered. Not sure why a WARN() was chosen because the call trace provides no benefit here. More helpful would be a simple error message stating: "dev id foo: unknown dev sub id bar. Contact maintainers." > -- > Cheers, > Luca. > Heiner