From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>,
Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.12] wifi: iwlwifi: be less noisy if the NIC is dead in S3
Date: Mon, 23 Dec 2024 09:35:35 -0500 [thread overview]
Message-ID: <20241223093130-c43ea648ac07fcc0@stable.kernel.org> (raw)
In-Reply-To: <20241223121359.65312-1-emmanuel.grumbach@intel.com>
[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: 0572b7715ffd2cac20aac00333706f3094028180
Status in newer kernel trees:
6.12.y | Not found
Note: The patch differs from the upstream commit:
---
1: 0572b7715ffd ! 1: b10ffc08e8ba wifi: iwlwifi: be less noisy if the NIC is dead in S3
@@ Metadata
## Commit message ##
wifi: iwlwifi: be less noisy if the NIC is dead in S3
+ commit 0572b7715ffd2cac20aac00333706f3094028180 upstream
+
If the NIC is dead upon resume, try to catch the error earlier and exit
earlier. We'll print less error messages and get to the same recovery
path as before: reload the firmware.
@@ Commit message
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241028135215.3a18682261e5.I18f336a4537378a4c1a8537d7246cee1fc82b42c@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-
- ## drivers/net/wireless/intel/iwlwifi/fw/dump.c ##
-@@ drivers/net/wireless/intel/iwlwifi/fw/dump.c: bool iwl_fwrt_read_err_table(struct iwl_trans *trans, u32 base, u32 *err_id)
- /* cf. struct iwl_error_event_table */
- u32 valid;
- __le32 err_id;
-- } err_info;
-+ } err_info = {};
-+ int ret;
-
- if (!base)
- return false;
-
-- iwl_trans_read_mem_bytes(trans, base,
-- &err_info, sizeof(err_info));
-+ ret = iwl_trans_read_mem_bytes(trans, base,
-+ &err_info, sizeof(err_info));
-+
-+ if (ret)
-+ return true;
-+
- if (err_info.valid && err_id)
- *err_id = le32_to_cpu(err_info.err_id);
-
+ Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219597
## drivers/net/wireless/intel/iwlwifi/iwl-trans.h ##
@@ drivers/net/wireless/intel/iwlwifi/iwl-trans.h: int iwl_trans_read_config32(struct iwl_trans *trans, u32 ofs,
@@ drivers/net/wireless/intel/iwlwifi/iwl-trans.h: int iwl_trans_read_config32(stru
u64 src_addr, u32 byte_cnt);
## drivers/net/wireless/intel/iwlwifi/mvm/d3.c ##
-@@ drivers/net/wireless/intel/iwlwifi/mvm/d3.c: static void iwl_mvm_d3_disconnect_iter(void *data, u8 *mac,
- ieee80211_resume_disconnect(vif);
- }
+@@ drivers/net/wireless/intel/iwlwifi/mvm/d3.c: static bool iwl_mvm_rt_status(struct iwl_trans *trans, u32 base, u32 *err_id)
+ /* cf. struct iwl_error_event_table */
+ u32 valid;
+ __le32 err_id;
+- } err_info;
++ } err_info = {};
++ int ret;
+
+ if (!base)
+ return false;
+
+- iwl_trans_read_mem_bytes(trans, base,
+- &err_info, sizeof(err_info));
++ ret = iwl_trans_read_mem_bytes(trans, base,
++ &err_info, sizeof(err_info));
++
++ if (ret)
++ return true;
++
+ if (err_info.valid && err_id)
+ *err_id = le32_to_cpu(err_info.err_id);
--
- static bool iwl_mvm_check_rt_status(struct iwl_mvm *mvm,
- struct ieee80211_vif *vif)
- {
@@ drivers/net/wireless/intel/iwlwifi/mvm/d3.c: int iwl_mvm_fast_resume(struct iwl_mvm *mvm)
iwl_fw_dbg_read_d3_debug_data(&mvm->fwrt);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.12.y | Success | Success |
next prev parent reply other threads:[~2024-12-23 14:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-23 12:13 [PATCH 6.12] wifi: iwlwifi: be less noisy if the NIC is dead in S3 Emmanuel Grumbach
2024-12-23 14:35 ` Sasha Levin [this message]
2024-12-23 15:25 ` Grumbach, Emmanuel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241223093130-c43ea648ac07fcc0@stable.kernel.org \
--to=sashal@kernel.org \
--cc=emmanuel.grumbach@intel.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.