From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87FD57482; Mon, 23 Jun 2025 21:21:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713692; cv=none; b=bXO4o6SKb7h49XTVJ7mLuiq7lXnhS58NHuvKt88xSIkrQAAioqwYzOYS5TW6D6KiFoRFpLNFWDVa7Xzr+uw6lWxAfAAe8pLX9H+hd8j994XhSX18R3pd7a5JcCK8zZ5Le6vjcU+XKvO8y90dINsOpaVXrznQKnw6UVW6eVZLvUo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750713692; c=relaxed/simple; bh=Uven7V7A8mP6HJGJboSQLNjLm9FnMvzvJNTJcqs7sF4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cjlenpVygERdhSibXbtyt0PC1C6WntGrti+u5TXuMq3+/J+opj6hDUJEZzdl67qH3EfVk/gWXQSThP6KLnEXFPYVppzqdS1oTPal+fCBx/WtWezSqYL3xbCcRbuWlO0lO9DuNDzNbAOJuZdEHp+3M2PQ4PVYns1LxxZN2fHEEcM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GphC41K7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GphC41K7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E5F3C4CEEA; Mon, 23 Jun 2025 21:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750713692; bh=Uven7V7A8mP6HJGJboSQLNjLm9FnMvzvJNTJcqs7sF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GphC41K7wfW3s+61ZOLuY6+XP4061ek/JFcg8qVxzKq/uJdS94tQ9i/Ag73JRMhXn 1k8EtXe43vRGIdCJxsHCKOgwZyYYWh00IpwxCrM+kNP3irZbXlKBA3UnkA1eWctCgH uaAV7mT1aqrVn/jgL+UXwfGeBapP1n/52KYTMI+E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Caleb Connolly , Loic Poulain , Jeff Johnson , Sasha Levin Subject: [PATCH 5.15 141/411] ath10k: snoc: fix unbalanced IRQ enable in crash recovery Date: Mon, 23 Jun 2025 15:04:45 +0200 Message-ID: <20250623130637.149458193@linuxfoundation.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250623130632.993849527@linuxfoundation.org> References: <20250623130632.993849527@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Caleb Connolly [ Upstream commit 1650d32b92b01db03a1a95d69ee74fcbc34d4b00 ] In ath10k_snoc_hif_stop() we skip disabling the IRQs in the crash recovery flow, but we still unconditionally call enable again in ath10k_snoc_hif_start(). We can't check the ATH10K_FLAG_CRASH_FLUSH bit since it is cleared before hif_start() is called, so instead check the ATH10K_SNOC_FLAG_RECOVERY flag and skip enabling the IRQs during crash recovery. This fixes unbalanced IRQ enable splats that happen after recovering from a crash. Fixes: 0e622f67e041 ("ath10k: add support for WCN3990 firmware crash recovery") Signed-off-by: Caleb Connolly Tested-by: Loic Poulain Link: https://patch.msgid.link/20250318205043.1043148-1-caleb.connolly@linaro.org Signed-off-by: Jeff Johnson Signed-off-by: Sasha Levin --- drivers/net/wireless/ath/ath10k/snoc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index 439df8a404d86..b091e5187dbe5 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -936,7 +936,9 @@ static int ath10k_snoc_hif_start(struct ath10k *ar) bitmap_clear(ar_snoc->pending_ce_irqs, 0, CE_COUNT_MAX); ath10k_core_napi_enable(ar); - ath10k_snoc_irq_enable(ar); + /* IRQs are left enabled when we restart due to a firmware crash */ + if (!test_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags)) + ath10k_snoc_irq_enable(ar); ath10k_snoc_rx_post(ar); clear_bit(ATH10K_SNOC_FLAG_RECOVERY, &ar_snoc->flags); -- 2.39.5