Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7946974rwb; Wed, 23 Nov 2022 13:04:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XKzP5NrLjWOJvYcmvdSwqvvzrc+gQOpUcPRKsrPx3F03pkYRe1GpXhweJd/0f8pa/DMmf X-Received: by 2002:a17:90b:378d:b0:218:9ea5:b081 with SMTP id mz13-20020a17090b378d00b002189ea5b081mr21433089pjb.105.1669237449007; Wed, 23 Nov 2022 13:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669237449; cv=none; d=google.com; s=arc-20160816; b=U4RQdtFZfsHXyRs+BVhYaEeTp2gQLFrWZH8A3CiqB9zE7bJCYd95bFdBo5u0lM5G3F E3bQb1Vf7MOnpbvohdZOaCL6F5jqmjCc52z+4frEZ4+lSdWJlmYXXDxwXWLmx8unjQJp mUcXu2r2mbXwOm1Nb2IE8oZgD4g2FuyoCbGhOUSnBNYMgPduMyxgE9wItSI3UikyIP9f PB7s5vGmgLmcTSRO39E9fpYjRVL4raTDa9caszEGTT0QcHo0lC1/38mAxSojzPjViEq4 xlXJohW3iFhCpJJHjahE6hQalUUctzqzTOMYka5m8GPbnTLq4bSxrs5TKf3xkuVPfKoW 8eCw== 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=TEGR/Q+nRkMXLKjJ/1YXjw+ywO3urYIXZ4MgJLotxnM=; b=C5QHhkLmJyfeDMJsCoufsWMk8swOqke6hRD85CWTdd9U7qrJ5OT3CZ13hcItj+QYeN XjotqsOpFulRjxhUu+8d3jcGNtNF51dmgpx6vhNv3cnSGm3XvrE94aNmvmYMKSbQys82 3en2gwlF+OUfRpT+9EfW5fgu2Z7TFRgfyv6dBxczDRFitm8ft7WR1jFQDTpRJbhAe4ne uMFwy/hWUPbbZJx48NUEbO06C+IKNBZ1uiRfpDcP2TkAqoOvPAqnCysEs0yyKUPwqNEy RgVcLDSHS+J3S2Xp01ITuBEkl1t4AqYFN1uTsdw3kr8jv7N6DGRaYrUXzR6hHSx05EFb ijmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PaOawmDH; 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 n20-20020a170902d0d400b00188881adcd7si14803338pln.550.2022.11.23.13.04.00; Wed, 23 Nov 2022 13:04:08 -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=PaOawmDH; 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 S236558AbiKWVD3 (ORCPT + 68 others); Wed, 23 Nov 2022 16:03:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235823AbiKWVD1 (ORCPT ); Wed, 23 Nov 2022 16:03:27 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2CC22A430 for ; Wed, 23 Nov 2022 13:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669237406; x=1700773406; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iJPZL3JOccOn4mpzTpiiWBOXFJgmhr41/b/tkoxvqJY=; b=PaOawmDHXxQqcKcgtwe2PN2j2kEUjtPvDCFmYEUcKNHfeuI9UzuCyWSr hg6DqmcO5Mw7/wA3U6WEaKzsDCrN6TC1ASUTGy2jF7lcQHJvkW/PTs2jZ Yv82NoVOvRFrkgp66Jxk4ulEKERv1h62h+RRLJiYO+CnBRrYLfRwPz5pR Z3gzJFYW0VAoqDuo4brbUQI5nbAs339i9QN3H5ca9DPY+1z6pOBTs/Bw3 13MaGPI923hcB+AucpkXhCjf1bX5gUaw0nKl2QGugb66yElo2z7AQ6WTe q24DMWNYez9MpqNZ9QbRdtL4zl69NswOv7aDBETMkkCKMpHXmOm6Tv/zZ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="294546380" X-IronPort-AV: E=Sophos;i="5.96,187,1665471600"; d="scan'208";a="294546380" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2022 13:03:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="619761574" X-IronPort-AV: E=Sophos;i="5.96,187,1665471600"; d="scan'208";a="619761574" Received: from stopaz-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.194.175]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Nov 2022 13:03:24 -0800 From: gregory.greenman@intel.com To: kvalo@kernel.org, johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Daniel Gabay , Gregory Greenman Subject: [PATCH 1/5] wifi: iwlwifi: mvm: print OTP info after alive Date: Wed, 23 Nov 2022 23:02:05 +0200 Message-Id: <20221123225313.a5ae3679491b.Ic618934df084a9b269e56d892665523c79e40eee@changeid> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221123210209.2941641-1-gregory.greenman@intel.com> References: <20221123210209.2941641-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, 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: Daniel Gabay These are register values which are needed for debug regardless of alive fail/success. Signed-off-by: Daniel Gabay Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index ef43f6971cd9..b3101d12a0a1 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -354,6 +354,18 @@ static int iwl_mvm_load_ucode_wait_alive(struct iwl_mvm *mvm, */ ret = iwl_wait_notification(&mvm->notif_wait, &alive_wait, MVM_UCODE_ALIVE_TIMEOUT); + + if (mvm->trans->trans_cfg->device_family == + IWL_DEVICE_FAMILY_AX210) { + /* print these registers regardless of alive fail/success */ + IWL_INFO(mvm, "WFPM_UMAC_PD_NOTIFICATION: 0x%x\n", + iwl_read_umac_prph(mvm->trans, WFPM_ARC1_PD_NOTIFICATION)); + IWL_INFO(mvm, "WFPM_LMAC2_PD_NOTIFICATION: 0x%x\n", + iwl_read_umac_prph(mvm->trans, WFPM_LMAC2_PD_NOTIFICATION)); + IWL_INFO(mvm, "WFPM_AUTH_KEY_0: 0x%x\n", + iwl_read_umac_prph(mvm->trans, SB_MODIFY_CFG_FLAG)); + } + if (ret) { struct iwl_trans *trans = mvm->trans; -- 2.35.3