Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795025568; b=v0dpOwPKFQ7kRt+HJ64nU4GhGcQQg8hOCY06oxfeIpaAabG52SlhugSO+u3uvpbjXy8G at3CPc8akYq8FJrxcamIVVh8FZLOzwo7fgfrk7kz1Soca9n+E2YyTrKLQoqT+1mKYBfN+ vMjmi/+plNIaVpIPjdNxsRepDJfFf+XIkQjgVELbWQ0vZ0Sg18cbo1efW4rQpufSno3aZ MNYNjKOakvKuZVZfGCPRsK2GzGcqPGGpR32jo4+yL0GDOrg7DsfnH9vlUyqaDTPf9+x07 GWLKemApeTb990o57QkvDxw0AL3BpkThVgxkTBIp8aFRTMODYpyAr8qtc1sIkMdboyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795025568; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=5j60J+QpwGFP1rn8CiHEaumhtvSKzAA2pbxQpJiVAvY=; b=LnBoh/FAdzR5pFIGSWe9cwM03QOWzOPMxjkeHzCCIbJS08ZX4HwJPNEBJnPNvdH8cBkK tOkPE+gLLxoQsp2Moov5i9NQWALs7sonFCK41PwMDGTpvNO4T1s5zVfm0I3FLubi+tqjR qjAylRUdLdfXBmXvcVvAlnl/GlZOg/y/ERpK8Y8c1amWhMwDJhW83eZWaCpB8n6AZRcyC YNJsqD9l7awzJv/992gCx5OKqSkit00JGQ75xEHtPa4CFrwH8dYpt4jXeGurcXMGUvqV3 iqBQO4lwTEi/I/ThnjtO6lPk2VsvKGZshx1xFxSMRT1OSZkwTUdeYDpVk2pY90VcIbg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jkmSh+RA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AD45606A320; Wed, 18 Nov 2026 18:12:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=jkmSh+RA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 679701F000C4; Wed, 18 Nov 2026 18:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795025567; bh=5j60J+QpwGFP1rn8CiHEaumhtvSKzAA2pbxQpJiVAvY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jkmSh+RAoiNJ0FeaOX543fw6fFtnwcBKUON2CVQocIQkUJ6odvBYYuA32obDm5LKm JxmTWqnuQtAd4pmq2ZBXIDDMNKxo5o9HPIiT/lYxYCdbc+5ShvGWCMJMOdCKRg4pk7 WFmD8YFoI4Ha5ArrvUg2St/tb8HQ4xVxYxJjSSoA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marek Szyprowski , Julius Bairaktaris , Baochen Qiang , Rameshkumar Sundaram , Jeff Johnson , Sasha Levin Subject: [PATCH 6.18 1108/2151] wifi: ath11k: fix unbalanced IRQ enable/disable during suspend/resume Date: Wed, 18 Nov 2026 15:47:23 +0100 Message-ID: <20261118150202.605137260@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150121.603863898@linuxfoundation.org> References: <20261118150121.603863898@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Baochen Qiang [ Upstream commit e56c9d429ba004d5416b03091fd7656187cdcaf1 ] Commit f7a74e131d3f ("wifi: ath11k: disable interrupts during firmware crash recovery") added an unconditional ath11k_hif_irq_disable()/ ath11k_hif_ce_irq_disable() pair inside ath11k_core_reconfigure_on_crash(), guarded by "if (!ab->is_reset)", to stop the DP NAPI from touching rings that have just been torn down. That fixes AHB device recovery, but breaks PCI device suspend/resume. During suspend, IRQs are disabled once in ath11k_core_suspend_late(). Then during resume, ath11k_core_reconfigure_on_crash() sees ab->is_reset clear and disables them a second time. Those IRQs are enabled only once during the following reinitialization, leaving the IRQ lines masked. As a result, HTC control responses never arrive, and resume fails: failed to receive control response completion, polling.. failed to connect to HTT: -110 failed to reconfigure driver on crash recovery failed to resume core: -110 Fix this by disabling the IRQs unconditionally at the top of ath11k_core_reconfigure_on_crash(), and instead drop the disable calls from the two places that already disable IRQs before this function can run: ath11k_core_suspend_late() and ath11k_core_reset(). This keeps a single disable per recovery/suspend cycle regardless of which path (recovery or suspend) triggers it, so the refcount on PCI parts stays balanced while AHB parts keep getting the disable that the original commit needed. Fixes: f7a74e131d3f ("wifi: ath11k: disable interrupts during firmware crash recovery") Reported-by: Marek Szyprowski Closes: https://lore.kernel.org/linux-wireless/a068a857-a549-4cc2-ae0f-3ef119d3a859@samsung.com/ Tested-by: Marek Szyprowski Tested-by: Julius Bairaktaris Signed-off-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram Link: https://patch.msgid.link/20260928-ath11k-unbalanced-irq-enable-disable-v1-1-75166f534763@oss.qualcomm.com Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath11k/core.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index e8b130cd71d49..38ac5b820a2ce 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -1254,9 +1254,6 @@ int ath11k_core_suspend_late(struct ath11k_base *ab) if (ab->actual_pm_policy == ATH11K_PM_WOW) return 0; - ath11k_hif_irq_disable(ab); - ath11k_hif_ce_irq_disable(ab); - ath11k_hif_power_down(ab, true); return 0; @@ -2303,17 +2300,9 @@ static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab) int ret; mutex_lock(&ab->core_lock); + ath11k_hif_irq_disable(ab); + ath11k_hif_ce_irq_disable(ab); ath11k_thermal_unregister(ab); - - /* - * ath11k_core_reset() already disabled the interrupts on the reset - * path; only the firmware crash path reaches here with them live. - */ - if (!ab->is_reset) { - ath11k_hif_irq_disable(ab); - ath11k_hif_ce_irq_disable(ab); - } - ath11k_dp_pdev_free(ab); ath11k_spectral_deinit(ab); ath11k_ce_cleanup_pipes(ab); @@ -2574,9 +2563,6 @@ static void ath11k_core_reset(struct work_struct *work) time_left = wait_for_completion_timeout(&ab->recovery_start, ATH11K_RECOVER_START_TIMEOUT_HZ); - ath11k_hif_irq_disable(ab); - ath11k_hif_ce_irq_disable(ab); - ath11k_hif_power_down(ab, false); ath11k_hif_power_up(ab); -- 2.53.0