Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:39572 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754185AbeFTRh3 (ORCPT ); Wed, 20 Jun 2018 13:37:29 -0400 Subject: Re: [PATCH] ath10k: Don't allow tx logic when state is not ON. To: greearb@candelatech.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, kvalo@codeaurora.org References: <1529506583-20204-1-git-send-email-greearb@candelatech.com> From: Manikanta Pubbisetty Message-ID: <9ba64928-a73b-0fe6-9586-65929ca87013@codeaurora.org> (sfid-20180620_193732_764054_4325BCC1) Date: Wed, 20 Jun 2018 23:07:23 +0530 MIME-Version: 1.0 In-Reply-To: <1529506583-20204-1-git-send-email-greearb@candelatech.com> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: > From: Ben Greear > > This is against the 4.16 kernel, likely applies to later kernels > as well. Firmware is beta ath10k-ct firmware for 9984 NIC. The > patch is not firmware or chipset specific. > > When firmware crashes, packets can still be sent from the > mac80211 stack, and that can cause crashes in the ath10k > tx path. Yes, this is what I had observed and explained in the RFC patch which I have sent some time back. In my case the device never comes up and the entire system crashes; I hope you have observed the same behavior. > After adding this patch, I saw cases where the tx path was > called in state ATH10K_STATE_RESTARTED. > > I have not tested the tx_64 path, but assume it has similar > issues, so same patch was added to it. This case should not be dealt in ath10k, rather we should make sure packets does not reach the driver during hardware restart after the firmware crash. Can you please try the RFC patch and see if it fixes the issue? I am working on the patch and probably send it out after doing some testing and cleanup. https://patchwork.kernel.org/patch/10411967/ Thanks, Manikanta