All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Manikanta Pubbisetty <mpubbise@codeaurora.org>,
	linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
	kvalo@codeaurora.org
Subject: Re: [PATCH] ath10k: Don't allow tx logic when state is not ON.
Date: Wed, 20 Jun 2018 10:42:42 -0700	[thread overview]
Message-ID: <3dc5dce6-a8ef-93f6-318f-6ca2e62f8853@candelatech.com> (raw)
In-Reply-To: <9ba64928-a73b-0fe6-9586-65929ca87013@codeaurora.org>

On 06/20/2018 10:37 AM, Manikanta Pubbisetty wrote:
>
>> From: Ben Greear <greearb@candelatech.com>
>>
>> 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/

I did see your patch, but I was not sure it would make it upstream.

I think either way my patch might be useful in case bugs creep back in.

And yes, I did see full system crash in this case.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

WARNING: multiple messages have this Message-ID (diff)
From: Ben Greear <greearb@candelatech.com>
To: Manikanta Pubbisetty <mpubbise@codeaurora.org>,
	linux-wireless@vger.kernel.org, ath10k@lists.infradead.org,
	kvalo@codeaurora.org
Subject: Re: [PATCH] ath10k: Don't allow tx logic when state is not ON.
Date: Wed, 20 Jun 2018 10:42:42 -0700	[thread overview]
Message-ID: <3dc5dce6-a8ef-93f6-318f-6ca2e62f8853@candelatech.com> (raw)
In-Reply-To: <9ba64928-a73b-0fe6-9586-65929ca87013@codeaurora.org>

On 06/20/2018 10:37 AM, Manikanta Pubbisetty wrote:
>
>> From: Ben Greear <greearb@candelatech.com>
>>
>> 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/

I did see your patch, but I was not sure it would make it upstream.

I think either way my patch might be useful in case bugs creep back in.

And yes, I did see full system crash in this case.

Thanks,
Ben


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

  reply	other threads:[~2018-06-20 17:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 14:56 [PATCH] ath10k: Don't allow tx logic when state is not ON greearb
2018-06-20 14:56 ` greearb
2018-06-20 17:37 ` Manikanta Pubbisetty
2018-06-20 17:37   ` Manikanta Pubbisetty
2018-06-20 17:42   ` Ben Greear [this message]
2018-06-20 17:42     ` Ben Greear
2018-06-20 18:48     ` Rajkumar Manoharan
2018-06-20 18:48       ` Rajkumar Manoharan
2018-06-20 18:51       ` Ben Greear
2018-06-20 18:51         ` Ben Greear
2018-06-20 21:16         ` Rajkumar Manoharan
2018-06-20 21:16           ` Rajkumar Manoharan

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=3dc5dce6-a8ef-93f6-318f-6ca2e62f8853@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=ath10k@lists.infradead.org \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mpubbise@codeaurora.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.