From: Ben Greear <greearb@candelatech.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: ath10k <ath10k@lists.infradead.org>
Subject: Re: Clean up scan when start fails?
Date: Wed, 07 Jan 2015 05:33:56 -0800 [thread overview]
Message-ID: <54AD35C4.3070803@candelatech.com> (raw)
In-Reply-To: <CA+BoTQkPcC2pVYe5mWnXE3CAUsZKiVpm3+r-+1UL-i36O1PbSQ@mail.gmail.com>
On 01/07/2015 01:41 AM, Michal Kazior wrote:
> On 5 January 2015 at 20:04, Ben Greear <greearb@candelatech.com> wrote:
>> Should we have something like this to clean up the scan
>> state machine when firmware fails to start the scan?
>>
>> [greearb@ben-dt2 linux-3.19.dev.y]$ git diff
>> diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
>> index 6e4ece0..9020204 100644
>> --- a/drivers/net/wireless/ath/ath10k/wmi.c
>> +++ b/drivers/net/wireless/ath/ath10k/wmi.c
>> @@ -1057,6 +1057,7 @@ static int ath10k_wmi_event_scan(struct ath10k *ar, struct sk_buff *skb)
>> break;
>> case WMI_SCAN_EVENT_START_FAILED:
>> ath10k_warn(ar, "received scan start failure event\n");
>> + ath10k_wmi_event_scan_completed(ar);
>> break;
>> case WMI_SCAN_EVENT_DEQUEUED:
>> case WMI_SCAN_EVENT_PREEMPTED:
>
> Hmm.. I assume you still get the _START_FAILED sometimes?
>
> In what state do you get it?
>
> If you get it before _STARTED you'll hit a warning in
> scan_completed(). It doesn't make sense to call it since all scan
> users will fail to wait for ar->scan.started completion and clean up
> anyway.
>
> If you get it after _STARTED then I guess it does sense to clean up.
I have a better version of this patch that I am testing.
I can get the scan-start-failed even in CT firmware when a vdev
fails to properly start due to firmware resource exhaustion, and
then the driver asks it to scan.
At least in 10.1.467 firmware, the upstream firmware will just panic
when the vdev cannot start in this case, so I am not sure how to
reproduce the event in upstream firmware. Since the event exists,
I do think it should be properly handled in the driver, however.
Thanks,
Ben
>
>
> Michał
>
--
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
prev parent reply other threads:[~2015-01-07 13:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 19:04 Clean up scan when start fails? Ben Greear
2015-01-07 9:41 ` Michal Kazior
2015-01-07 13:33 ` Ben Greear [this message]
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=54AD35C4.3070803@candelatech.com \
--to=greearb@candelatech.com \
--cc=ath10k@lists.infradead.org \
--cc=michal.kazior@tieto.com \
/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.