Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5575525rwb; Mon, 5 Dec 2022 00:40:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Bme8c5rhFj2BuAdSY0icY+/3FB5FActWgsuPyUmEgdQdboSs7deC0otRN7/7hropLjcL0 X-Received: by 2002:a05:6402:c8f:b0:46c:7f80:5417 with SMTP id cm15-20020a0564020c8f00b0046c7f805417mr6483861edb.353.1670229650059; Mon, 05 Dec 2022 00:40:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670229650; cv=none; d=google.com; s=arc-20160816; b=McME6pvR1Znh/cVUYuJ29OFuJ7zJ8bHk82ZG91qf1Rfa4IBq51jnzoGeczEDitKsGC khs4qxZ3y/83ckn3gQFuQMbnQOfXpqHZa2JxwY8KENI6nUQd0NT5ZD4F9lop6iKvyGrS w/YzMx/Sdx7npWwCzZaPfHR9HaUhsp06x2t1uIJch+5kX3k8otTatRN8iHDEjM5wPqRD UF9ayKflO1juD6nLS9yGw+EEUZa4RKRl1JrKfUF2VCWwohg2Utrye+OKr4Wonj1JIeeu 7FJPSHvEl4B9OuN1fQJeRSDFSmQ0bzoxozcSnPY/0c+X897+1tLExNHIWvEHc1VIcKeY oL1g== 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=0pZxsc94LNA18Lxu4nbRZmVY7gUTax+kVWOJRSw8ED4=; b=rEhGw9cwkwPfPgUfCuI5YB+u+zEFPZaJcv3xZaZtVLpzC2dZvzd90SUmdkEwR3wR1i BNr04Y+SAQDe5/0eeOx7zLTzP3KKNuQHKya5KPe5a6qb9PAqGfTrmYq0FZfi7zhiuzDZ pEUfbTgd6c9Ux28Do9ufd2S2uyBcimK8tzYLox+h+uzoLYhTMqUQdp0TMqthk+A92XYU 9NT5LQOjftLC6orMUeScGK3nduGbo7KkHcPpoSTkArv/aJVBU1zNgJeT1cp1fUCmeLkZ fLwiyXoOxbwhEq1VcMK74h0M16b1hk01iyCpZ7ffIuQFqqjI0EsqaC52H7PHbbgTWdfh D7pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hwKNJKE8; 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 d24-20020a056402401800b0046c6e7cd4a6si4261176eda.233.2022.12.05.00.40.33; Mon, 05 Dec 2022 00:40:50 -0800 (PST) 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=hwKNJKE8; 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 S232157AbiLEIgx (ORCPT + 66 others); Mon, 5 Dec 2022 03:36:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232064AbiLEIgj (ORCPT ); Mon, 5 Dec 2022 03:36:39 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF288167D5 for ; Mon, 5 Dec 2022 00:36:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670229398; x=1701765398; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9Bo8N8MZt9QrHd19vziMqepB+X0g7B3hFJ+RDzh5gVw=; b=hwKNJKE8PtuaDhEQy6woALtDf3puOvMNcyx87KX0DfjkG58eKlaun1oQ rtSuUDEvuuMPV1o7sF13XyvzC8NBAScN9bY6uXYawN+L3KeRwXOHMrZkc WbdD1N0uO7OnpV1/9FJMozqXMhJDFjpRAqGCg82Y49S9PffywkEftHQfj OqZ8hClDZoGYzOkzXrFAPr2vAn69ttMbCWjreykoSG3bidS4RzcyyEg1F Pq7RT/MUq531o1fojjnZDl8s5+QFOEJOSqkjzwqmpXVTcdH9kLs+lHGye nKABsybb2eiI/avXH9DtNKE7Fa1+QC3Uo7r83VqKKgjLgLcqdd2zMtLN6 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="316323196" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="316323196" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2022 00:36:38 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="752100450" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="752100450" Received: from eamit-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.181.23]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2022 00:36:36 -0800 From: gregory.greenman@intel.com To: kvalo@kernel.org, johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Mukesh Sisodiya , Gregory Greenman Subject: [PATCH 10/11] wifi: iwlwifi: dump: Update check for UMAC valid FW address Date: Mon, 5 Dec 2022 10:35:47 +0200 Message-Id: <20221205102808.e4b7fc650144.I46103baf400bb4ae69d82738e402a3903b17c030@changeid> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221205083548.236620-1-gregory.greenman@intel.com> References: <20221205083548.236620-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 The error dump base address check for UMAC need an update based on current hardware. Signed-off-by: Mukesh Sisodiya Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 0a41cd0ab243..0c6b49fcb00d 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -122,6 +122,9 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, u32 version = iwl_fw_lookup_notif_ver(mvm->fw, LEGACY_GROUP, UCODE_ALIVE_NTFY, 0); u32 i; + struct iwl_trans *trans = mvm->trans; + enum iwl_device_family device_family = trans->trans_cfg->device_family; + if (version == 6) { struct iwl_alive_ntf_v6 *palive; @@ -230,7 +233,8 @@ static bool iwl_alive_fn(struct iwl_notif_wait_data *notif_wait, if (umac_error_table) { if (umac_error_table >= - mvm->trans->cfg->min_umac_error_event_table) { + mvm->trans->cfg->min_umac_error_event_table || + device_family >= IWL_DEVICE_FAMILY_BZ) { iwl_fw_umac_set_alive_err_table(mvm->trans, umac_error_table); } else { -- 2.35.3