From: Ben Greear <greearb@candelatech.com>
To: Adrian Chadd <adrian.chadd@gmail.com>
Cc: Michal Kazior <michal.kazior@tieto.com>, ath10k@lists.infradead.org
Subject: Re: hacked 4.4.6+, 10.4.3 firmware, Running out of ring-index for pipe-id 3 (WMI).
Date: Tue, 29 Mar 2016 10:13:01 -0700 [thread overview]
Message-ID: <56FAB79D.2020203@candelatech.com> (raw)
In-Reply-To: <CAJ-Vmo=RzwymMtdWkrKTEnf+FU=Q3MU3QNqFneq74Qcn3BMfyg@mail.gmail.com>
On 03/29/2016 10:08 AM, Adrian Chadd wrote:
> Does it eventually catch up?
It seems to.
> IE, put a wait completion in there?
Maybe so, but the current wait-completion waits on tx-credits,
so more like I'd need to put the whole wait-completion in a loop
and add a small sleep, maybe?
Or, maybe try to force a read of the CE entries if the CE logic
ever detects the ring is full?
Thanks,
Ben
>
> On Mar 29, 2016 8:49 AM, "Ben Greear" <greearb@candelatech.com <mailto:greearb@candelatech.com>> wrote:
>
> On 03/29/2016 01:05 AM, Michal Kazior wrote:
>
> On 28 March 2016 at 21:01, Ben Greear <greearb@candelatech.com <mailto:greearb@candelatech.com>> wrote:
>
> I'm seeing the ring-full messages below when running 35 stations on
> modified 10.4.3 firmware. I also have serial console logging enabled, so
> things are running a bit slow...this seems to exacerbate the issue.
>
> [ 91.108923] ath10k_pci 0000:05:00.0: htc failed hif-tx-sq: -105 eid: 2
> credits: 1 ep->tx_credits: 1 credit-flow-enabled: 1
> [ 91.108932] ath10k_pci 0000:05:00.0: could not request stats (type 128
> ret -105)
> [ 91.108942] ath10k_pci 0000:05:00.0: hif-tx-sg, full, nentries_mask: 0x1f
> write_idx: 2 sw-idx: 3 n_items: 1 pipe-id: 3
> [ 91.108944] ath10k_pci 0000:05:00.0: htc failed hif-tx-sq: -105 eid: 2
> credits: 1 ep->tx_credits: 1 credit-flow-enabled: 1
> [ 91.108952] ath10k_pci 0000:05:00.0: could not request stats (type 1 ret
> -105)
> [ 91.108953] ath10k_pci 0000:05:00.0: failed to get fw stats for ethtool:
> -105
> [ 91.109039] ath10k_pci 0000:05:00.0: hif-tx-sg, full, nentries_mask: 0x1f
> write_idx: 2 sw-idx: 3 n_items: 1 pipe-id: 3
> [ 91.109041] ath10k_pci 0000:05:00.0: htc failed hif-tx-sq: -105 eid: 2
> credits: 1 ep->tx_credits: 1 credit-flow-enabled: 1
> [ 91.109050] ath10k_pci 0000:05:00.0: could not request stats (type 128
> ret -105)
> [ 91.109060] ath10k_pci 0000:05:00.0: hif-tx-sg, full, nentries_mask: 0x1f
> write_idx: 2 sw-idx: 3 n_items: 1 pipe-id: 3
> [ 91.109062] ath10k_pci 0000:05:00.0: htc failed hif-tx-sq: -105 eid: 2
> credits: 1 ep->tx_credits: 1 credit-flow-enabled: 1
> [ 91.109070] ath10k_pci 0000:05:00.0: could not request stats (type 1 ret
> -105)
> [ 91.109072] ath10k_pci 0000:05:00.0: failed to get fw stats for ethtool:
> -105
> [ 91.109157] ath10k_pci 0000:05:00.0: hif-tx-sg, full, nentries_mask: 0x1f
> write_idx: 2 sw-idx: 3 n_items: 1 pipe-id: 3
> [ 91.109160] ath10k_pci 0000:05:00.0: htc failed hif-tx-sq: -105 eid: 2
> credits: 1 ep->tx_credits: 1 credit-flow-enabled: 1
>
>
> I am struggling to understand how the pipe can be full since we have
> tx-credits logic
> enabled for the WMI pipe.
>
> Any suggestions on what sort of bugs could cause this?
>
> And, should the ath10k_wmi_cmd_send retry when we get a -105 return
> code in hopes it will free up shortly instead of just failing and leaving
> the system in invalid state?
>
>
> It probably shouldn't. As you've pointed out HTC tx credits should
> prevent this in the first place. If you see -105 it means something is
> really broken and needs to be fixed properly.
>
> A thing that comes to mind is that CE -for whatever reason- would need
> to stop completing CE ring items. Are you running with MSI? 1 or
> multiple interrupts? Did you try forcing legacy interrupt mode to rule
> out MSI problems?
>
> You could add a debug messages to see if the HTC-WMI CE ring gets tx
> completions properly.
>
>
> I don't think I'm using MSI. Could it be that whatever logic that should
> be processing the tx-completions is just running slower than whatever is
> handling the WMI messages (and credits)?
>
> Thanks,
> Ben
>
>
> --
> Ben Greear <greearb@candelatech.com <mailto:greearb@candelatech.com>>
> Candela Technologies Inc http://www.candelatech.com
>
>
> _______________________________________________
> ath10k mailing list
> ath10k@lists.infradead.org <mailto:ath10k@lists.infradead.org>
> http://lists.infradead.org/mailman/listinfo/ath10k
>
--
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
next prev parent reply other threads:[~2016-03-29 17:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-28 19:01 hacked 4.4.6+, 10.4.3 firmware, Running out of ring-index for pipe-id 3 (WMI) Ben Greear
2016-03-29 8:05 ` Michal Kazior
2016-03-29 15:48 ` Ben Greear
[not found] ` <CAJ-Vmo=RzwymMtdWkrKTEnf+FU=Q3MU3QNqFneq74Qcn3BMfyg@mail.gmail.com>
2016-03-29 17:13 ` Ben Greear [this message]
2016-03-29 17:45 ` Adrian Chadd
2016-03-30 20:07 ` Ben Greear
2016-03-31 6:51 ` Michal Kazior
2016-03-31 15:51 ` Ben Greear
2016-03-31 16:44 ` Ben Greear
2016-04-01 5:18 ` Michal Kazior
2016-04-01 5:23 ` Ben Greear
2016-04-01 6:23 ` Michal Kazior
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=56FAB79D.2020203@candelatech.com \
--to=greearb@candelatech.com \
--cc=adrian.chadd@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox