mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH AUTOSEL 6.1 01/12] wifi: mac80211: wake the queues in case of failure in resume
@ 2024-12-20 17:13 Sasha Levin
  2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 02/12] drm/amdkfd: Correct the migration DMA map direction Sasha Levin
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Sasha Levin @ 2024-12-20 17:13 UTC (permalink / raw)
  To: linux-kernel, stable
  Cc: Emmanuel Grumbach, Miri Korenblit, Johannes Berg, Sasha Levin,
	johannes, linux-wireless

From: Emmanuel Grumbach <emmanuel.grumbach@intel.com>

[ Upstream commit 220bf000530f9b1114fa2a1022a871c7ce8a0b38 ]

In case we fail to resume, we'll WARN with
"Hardware became unavailable during restart." and we'll wait until user
space does something. It'll typically bring the interface down and up to
recover. This won't work though because the queues are still stopped on
IEEE80211_QUEUE_STOP_REASON_SUSPEND reason.
Make sure we clear that reason so that we give a chance to the recovery
to succeed.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219447
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241119173108.cd628f560f97.I76a15fdb92de450e5329940125f3c58916be3942@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 net/mac80211/util.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 738f1f139a90..e8326e09d1b3 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2436,6 +2436,9 @@ int ieee80211_reconfig(struct ieee80211_local *local)
 			WARN(1, "Hardware became unavailable upon resume. This could be a software issue prior to suspend or a hardware issue.\n");
 		else
 			WARN(1, "Hardware became unavailable during restart.\n");
+		ieee80211_wake_queues_by_reason(hw, IEEE80211_MAX_QUEUE_MAP,
+						IEEE80211_QUEUE_STOP_REASON_SUSPEND,
+						false);
 		ieee80211_handle_reconfig_failure(local);
 		return res;
 	}
-- 
2.39.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-12-20 17:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-20 17:13 [PATCH AUTOSEL 6.1 01/12] wifi: mac80211: wake the queues in case of failure in resume Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 02/12] drm/amdkfd: Correct the migration DMA map direction Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 03/12] btrfs: flush delalloc workers queue before stopping cleaner kthread during unmount Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 04/12] ALSA: hda/realtek: Add new alc2xx-fixup-headset-mic model Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 05/12] sound: usb: enable DSD output for ddHiFi TC44C Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 06/12] sound: usb: format: don't warn that raw DSD is unsupported Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 07/12] bpf: fix potential error return Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 08/12] ksmbd: retry iterate_dir in smb2_query_dir Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 09/12] net: usb: qmi_wwan: add Telit FE910C04 compositions Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 10/12] Bluetooth: hci_core: Fix sleeping function called from invalid context Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 11/12] irqchip/gic: Correct declaration of *percpu_base pointer in union gic_base Sasha Levin
2024-12-20 17:13 ` [PATCH AUTOSEL 6.1 12/12] ARC: build: Try to guess GCC variant of cross compiler Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®