Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2696694rdb; Wed, 15 Nov 2023 08:06:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1/oWzcPQvaT1VPwBps2qwzHqj+zkfn2rUGlG3duyZiGU5GUDeAdfy2bi6cCn8yIGd1Osm X-Received: by 2002:a05:6870:8456:b0:1ea:2c8b:e18e with SMTP id n22-20020a056870845600b001ea2c8be18emr17532182oak.8.1700064386160; Wed, 15 Nov 2023 08:06:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700064386; cv=none; d=google.com; s=arc-20160816; b=s59NHEwZ7j+zWnMCnkvI3uS54nEzi65Ejv8uCFp7gWuATDLK3ypITUOxfzQBXN+vbo CUqVOMfQogV8ZA7hP2lnPCOYFdZnvHKvBapElpKql3Id9sUUp39wsrzIJlD0G6+bniYG lWGFPdvVCS9WxIsHRAGLf3JLwhHc2UB76D8NpNYYXIOcR5/NxzLbO5f2KQkbyddqcLOd Gff+VkaQnNB+M2F8HQwxfZDBIw6cWuCXZvDJa2zea9UZ1We7k5TXyDGIyzvyt9ezz3CX 4Sq3aheO84VjtfIZ8Dp3XbsDkxePtHYoIpepranvyCqEj1tOeNaMf7HtIOvipyui5czb esQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=LlBxADBOMCacOTEJwmVAZfZjBPg3Nh1Vm92B1zZ3c+Q=; fh=LbOKWJHTo8IGkH9PGmpeU6ndo1Q5/V9bDrUebU2BHmk=; b=A65QHmQVhQ9BGZvy4iQ8fMdXte/uhR5Ao8hRwYU2JX/raoB0QD356MFbOwZIXumAPB ++2CT8wWzFVRS3w/kRKLG8DW7Z8WN0OzaSeIM4H6obBYXvg7uLviGOzcn9BgdX1U+zBh x/z+58Zjp9I63g/7EbnOEnt8q6zeekX/MoJQCod9UoJfSSSUpMZZDtFXUDCba+kn1aFf vCNdZM75eWlbrukjeb754TSqP0VrefmGejr0mqangKxBCKySn5QLAyc9JbaqsyELZsla AHr5rihaULBTMwgZ4QFvw0IMtb1vqYXXg1cguGQuz1B30IcQ5efOvKMdUBweyxlXzUtZ x7Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=OXJphSce; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id w5-20020a9d5385000000b006c47168b54bsi3664341otg.111.2023.11.15.08.06.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 08:06:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=OXJphSce; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E00DB8106799; Wed, 15 Nov 2023 08:06:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231996AbjKOQGQ (ORCPT + 53 others); Wed, 15 Nov 2023 11:06:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjKOQGP (ORCPT ); Wed, 15 Nov 2023 11:06:15 -0500 Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063B395 for ; Wed, 15 Nov 2023 08:06:11 -0800 (PST) X-Virus-Scanned: Proofpoint Essentials engine Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 512AFB80070; Wed, 15 Nov 2023 16:06:08 +0000 (UTC) Received: from [192.168.100.159] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 06CCE13C2B0; Wed, 15 Nov 2023 08:01:03 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 06CCE13C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1700064064; bh=EmimStlLWzZ1oPQ8Ea8Mt6uvMdSWobvDaIPHtDJdC9U=; h=Date:Subject:To:References:From:In-Reply-To:From; b=OXJphScecvcYCgneudNQk7maz6heMcrA1eiBh5nGfxRltFZuJ3apLXP/wP7P1TcTK PwB31S6VCpZpSK6vX3jnsDKhBKzMMihVkHHPgh5y29R0UGpoPpLHEdKQbRkZwqFFEl uxwLAHGOtUmI5jjRnup9m2TwNqClue9yyyUTkpa4= Message-ID: <7a76305b-dd42-b866-f64f-93b7c8811f97@candelatech.com> Date: Wed, 15 Nov 2023 08:01:01 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH] wifi: iwlwifi: Add debugging around scan failure warning. Content-Language: en-US To: Johannes Berg , linux-wireless@vger.kernel.org References: <20231114212309.2180281-1-greearb@candelatech.com> <9574407e2be4c97b1ef2d9f73b5eecb08791ff56.camel@sipsolutions.net> From: Ben Greear Organization: Candela Technologies In-Reply-To: <9574407e2be4c97b1ef2d9f73b5eecb08791ff56.camel@sipsolutions.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MDID: 1700064369-3TbTFP5nZzpd X-MDID-O: us5;at1;1700064369;3TbTFP5nZzpd;;b42792dba290a1257c3f0aaf1c60b0ff X-Spam-Status: No, score=-2.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 15 Nov 2023 08:06:16 -0800 (PST) On 11/15/23 00:57, Johannes Berg wrote: > On Tue, 2023-11-14 at 13:23 -0800, greearb@candelatech.com wrote: >> From: Ben Greear >> >> Provide additional information that may help debugging why >> the WARN_ON is seen. >> >> Signed-off-by: Ben Greear >> --- >> drivers/net/wireless/intel/iwlwifi/mvm/scan.c | 5 ++++- >> 1 file changed, 4 insertions(+), 1 deletion(-) >> >> diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c >> index 75c5c58e14a5..ec24ece7c877 100644 >> --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c >> +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c >> @@ -2356,7 +2356,10 @@ iwl_mvm_scan_umac_fill_general_p_v12(struct iwl_mvm *mvm, >> link_id = ffs(vif->active_links) - 1; >> >> link_info = scan_vif->link[link_id]; >> - if (!WARN_ON(!link_info)) >> + if (WARN_ON(!link_info)) >> + IWL_ERR(mvm, "scan failure: Cannot find link info for link-id: %d active-links: 0x%x\n", >> + link_id, vif->active_links); >> > > It would make sense to put the data *into* the warning, rather than > separately? Though I'm not sure I see so much value in the long string > (vs. just the data). I assume IWL_ERR will provide some extra context in systems with multiple radios, so more useful than what I could easily put into WARN_* directly. > > But honestly I'm not sure this really even is a problem at all? Some > confusion can happen during firmware restart here, and not sure we can > really fix that. Though maybe with the new locking we can. I see the splat, not sure why. It would be nice to know if link-id is corrupted somehow, or if active links is zero, etc. Thanks, Ben > > johannes > -- Ben Greear Candela Technologies Inc http://www.candelatech.com