Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2850107rwl; Thu, 13 Apr 2023 11:42:56 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJacUuZ/FLDDfHNMtzy9JSNOnWflNmO3KtRPl9lOZQNwuINlZEyriG5FGtfP8OZoyCxy7x X-Received: by 2002:a17:903:1112:b0:1a5:1e7:86d7 with SMTP id n18-20020a170903111200b001a501e786d7mr3681154plh.52.1681411376282; Thu, 13 Apr 2023 11:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681411376; cv=none; d=google.com; s=arc-20160816; b=nQsbhQNFxy5M1snZM5zxIER47b2WlF1e2IEWWK2szi+LaM88U2d2rPSzM6Nk4+FnNL qEAGizo77cXf0GW5pG9TQxhjU6N7qEiueuEY2rzVey7Lj28k7CccL46YHziHdz/V1H7R C1rzMQ8ZEXgkMce2gK8ZWQ4BOjMu4ukxr3lEVlZcIlJ9wfmwKhnkDZm8P3M5ws6iPBhg yIdMfKrK+J/fU49WKXniZ2+e4/5YLcvWW4y3M/lR3BRRk//dBL1WBPlGfSwu2Et0gUJI VdD15LvcxRsKwEioWAWGO18otUQQAC1ZrKd+lvN4DxFo9ZUyZ2L/rXWuQhKdybU+OLtA sOgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wxH2fycRc6fHErL+0F7Qu8mwD9gUwiaXpgSjYy5nJ5w=; b=Mhkz/lSGEWig5gF2fgBK5TEGFJJ/WHy8K4f7bjaFVLZtcvD/mRICZnBCuOVOoMPbwx f59RGoCuEQcqW9SRFFosE3Y7vvVKPeqYSnNEbCU6kxHErftwn/bAxo608hKAG5LmMi6H b3jFwgXlX5+8CK2niMxcRT4tiwoagjCfu7Gq9f0hqYnLmWhUGQC3bLk1aukogRJCGIO1 DexjxVmYqk0LmDKVcD0wgQ4eh84L8qgifMnHOgfsLx24Ak6RSxEKclwSUJDkijlh6VO9 m7BbFXGQzyOf/TskeQ9+vjWffYB2jYoXRWYh9p4C/6KkPKI8MzW6hoo6Yo2i0GIW6sUz ZAuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yrk0FKLj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw24-20020a170903279800b001a664075202si2453424plb.542.2023.04.13.11.42.47; Thu, 13 Apr 2023 11:42:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Yrk0FKLj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjDMSlr (ORCPT + 61 others); Thu, 13 Apr 2023 14:41:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229879AbjDMSlp (ORCPT ); Thu, 13 Apr 2023 14:41:45 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2685049CE for ; Thu, 13 Apr 2023 11:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681411302; x=1712947302; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BBcyASEKRmSlAFwNcYnc6XKMHP7W85GZpBDY6YAMAvg=; b=Yrk0FKLjyYdkWl7l1qa0+O/Z/i8molu3oUg1uY1zp7m1l1SCK4RTscl4 3r4gdj3tMHyJrt4bWckiC3ZxvFkaPUdLLVL2dFGFatK0nbantE9upsbyY pQ44uo1oo64iT2LscrRuWgswcdeG4ERRnh9l+3nQ06vMzpswRM6RAMsv2 /8iQnQJ0YFPZwWJCEaLDecVyQ0GuMh99omH+8W8Vlgsiz2Y4LPZcQyziu zm3PvHc3+vy6a3VXkxQI6MEZpP6btAluRNhbbThkLeyI7g3jZGT+oVHtq 6kJTl7rbfjYDiv2AN6oTrx1fGFDAd3m5BY4SppfjNJkB2vAvTBLp5z7D4 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="372127081" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="372127081" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 11:41:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="719984396" X-IronPort-AV: E=Sophos;i="5.99,194,1677571200"; d="scan'208";a="719984396" Received: from apeled2-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.184.75]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 11:41:14 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya , Gregory Greenman Subject: [PATCH 11/15] wifi: iwlwifi: Fix the duplicate dump name Date: Thu, 13 Apr 2023 21:40:31 +0300 Message-Id: <20230413213309.6c987f820557.I924f2eae1eef2fe82c7a23be566551653d46f729@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230413184035.1140892-1-gregory.greenman@intel.com> References: <20230413184035.1140892-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Mukesh Sisodiya Driver is using the dump name generated first time in all generated dump in case of NMI. The validity of dump name should be with each dump created and need to reset after each use. Fixes: 834f920ef34b ("wifi: iwlwifi: yoyo: Add driver defined dump file name") Signed-off-by: Mukesh Sisodiya Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/fw/dbg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c index ca97f2fcb693..51cdbc13fbcd 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/dbg.c @@ -2345,6 +2345,8 @@ static u32 iwl_dump_ini_file_name_info(struct iwl_fw_runtime *fwrt, /* add the dump file name extension tlv to the list */ list_add_tail(&entry->list, list); + fwrt->trans->dbg.dump_file_name_ext_valid = false; + return entry->size; } -- 2.38.1