Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6870146ybn; Mon, 30 Sep 2019 05:14:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpcjH26r6TDjx5+noaxUMlnTSuxkz1fp5QPmU2jg54+lTTREDJ4PtwGikFZreCsPCmLu8F X-Received: by 2002:a50:eb44:: with SMTP id z4mr18732935edp.207.1569845647690; Mon, 30 Sep 2019 05:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569845647; cv=none; d=google.com; s=arc-20160816; b=aZGYjNgcBz/XHbFMlcBykvUkqSoGy6fl6lRSzp9wU9zxpfggxxQQF+mXp3ij9HITtS m4GTf08kn2nR66B076QEbL5wjS4UMWl8JFHkTZYCmdkSmbr3AJCg4nVaBd7jV46mvmxO SzXUtzTSEfeUqhWf6PYShcpqfFCh5JVUNNtFanqEHhXmXPrYS59enO2/6RtGjuN81eqZ mjmeFao2h2tdCCUB0ZxRoBTA8oVdqFjToi8t2lR7a0UcQDh2sy1cr6ytgzRErsLpwkJQ 59KqgeygKBjbmSpG2t9Be0s3sPhUiFVPKKlS5b90ujlHquwxeEquG6MN5Fmf+oewe7y5 Z9yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :mime-version:user-agent:references:in-reply-to:date:cc:to:from :message-id; bh=1IiXSjK7T14kzP50BOaB9it3rAeOIzYNCDCarB7AKEs=; b=Etti3oiy3MIfUi/Xiten/Y9s2pdIm93uqbhe9HeZe4nbtip8UfuG6yNCaZfNuO3xBm A6r3r66acckZomtfdWZ/h1eYCus9fk2IYSc4pHSe5hINK6m7+X2yTyuvzV+ZfQBDWLGH MkjUlDEG3ZNczWL6EiW4gkEYORvx0IO8nhk1WOCVz4YsGYtOVzONJV+slnydwdJFQ7Ec pmpJsFTTr/D/eCtJN47lVOk5mc09C9iOTRWu+4dMoLqAkIdUAkIWP71ZTU2PjNBrp4uL XfxsErRJbtEmxKkM/qeqob/MntNvmAoEy5FlRJ+nqoi/zUsTxTGL1IQ6tJSLBCufts+q FMtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y54si7572805edb.217.2019.09.30.05.13.42; Mon, 30 Sep 2019 05:14:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729984AbfI3MMY (ORCPT + 99 others); Mon, 30 Sep 2019 08:12:24 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:45704 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726314AbfI3MMX (ORCPT ); Mon, 30 Sep 2019 08:12:23 -0400 Received: from [91.156.6.193] (helo=redipa) by farmhouse.coelho.fi with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92) (envelope-from ) id 1iEuXI-00006G-V5; Mon, 30 Sep 2019 15:12:17 +0300 Message-ID: <0a4d46d6cb811c82fc1221bc6c6c9a5ee89fac5b.camel@coelho.fi> From: Luca Coelho To: Matteo Croce , Haim Dreyfuss Cc: Kalle Valo , linux-wireless@vger.kernel.org Date: Mon, 30 Sep 2019 15:12:15 +0300 In-Reply-To: References: <20190628092008.11049-1-luca@coelho.fi> <20190628092008.11049-9-luca@coelho.fi> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH 08/20] iwlwifi: mvm: Add log information about SAR status Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2019-09-30 at 14:06 +0200, Matteo Croce wrote: > On Fri, Jun 28, 2019 at 11:20 AM Luca Coelho wrote: > > From: Haim Dreyfuss > > > > Inform users when SAR status is changing. > > > > Signed-off-by: Haim Dreyfuss > > Signed-off-by: Luca Coelho > > --- > > drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 3 +++ > > drivers/net/wireless/intel/iwlwifi/mvm/nvm.c | 9 +++++++++ > > 2 files changed, 12 insertions(+) > > > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > > index b27be2e3eca2..41a98cf01d0e 100644 > > --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > > @@ -850,6 +850,9 @@ int iwl_mvm_sar_select_profile(struct iwl_mvm *mvm, int prof_a, int prof_b) > > return -ENOENT; > > } > > > > + IWL_DEBUG_INFO(mvm, > > + "SAR EWRD: chain %d profile index %d\n", > > + i, profs[i]); > > IWL_DEBUG_RADIO(mvm, " Chain[%d]:\n", i); > > for (j = 0; j < ACPI_SAR_NUM_SUB_BANDS; j++) { > > idx = (i * ACPI_SAR_NUM_SUB_BANDS) + j; > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c > > index 7bdbd010ae6b..719f793b3487 100644 > > --- a/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c > > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/nvm.c > > @@ -620,6 +620,7 @@ void iwl_mvm_rx_chub_update_mcc(struct iwl_mvm *mvm, > > enum iwl_mcc_source src; > > char mcc[3]; > > struct ieee80211_regdomain *regd; > > + u32 wgds_tbl_idx; > > > > lockdep_assert_held(&mvm->mutex); > > > > @@ -643,6 +644,14 @@ void iwl_mvm_rx_chub_update_mcc(struct iwl_mvm *mvm, > > if (IS_ERR_OR_NULL(regd)) > > return; > > > > + wgds_tbl_idx = iwl_mvm_get_sar_geo_profile(mvm); > > + if (wgds_tbl_idx < 0) > > + IWL_DEBUG_INFO(mvm, "SAR WGDS is disabled (%d)\n", > > + wgds_tbl_idx); > > + else > > + IWL_DEBUG_INFO(mvm, "SAR WGDS: geo profile %d is configured\n", > > + wgds_tbl_idx); > > + > > regulatory_set_wiphy_regd(mvm->hw->wiphy, regd); > > kfree(regd); > > } > > -- > > 2.20.1 > > > > Hi all, > > this patch seems to cause a long microcode dump: > > [ 16.792357] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM > [ 16.939172] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM > [ 17.019127] iwlwifi 0000:04:00.0: FW already configured (0) - re-configuring > [ 17.053395] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM > [ 17.200436] iwlwifi 0000:04:00.0: Applying debug destination EXTERNAL_DRAM > [ 17.280572] iwlwifi 0000:04:00.0: FW already configured (0) - re-configuring > [ 20.822983] iwlwifi 0000:04:00.0: Microcode SW error detected. > Restarting 0x82000000. > [ 20.823153] iwlwifi 0000:04:00.0: Start IWL Error Log Dump: > [ 20.823155] iwlwifi 0000:04:00.0: Status: 0x00000080, count: 6 > [ 20.823157] iwlwifi 0000:04:00.0: Loaded firmware version: 36.77d01142.0 > [ 20.823158] iwlwifi 0000:04:00.0: 0x00000038 | BAD_COMMAND [...] > Reverting the patch fixes it, this is my card: > $ lspci -d ::280 > 04:00.0 Network controller: Intel Corporation Wireless 8260 (rev 3a) Thanks for reporting! But this bug was already reported and fixed. Please check this: https://bugzilla.kernel.org/show_bug.cgi?id=204151#c15 (specifically comment 15) HTH. -- Cheers, Luca.