All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Kazior <michal.kazior@tieto.com>
To: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: Ben Greear <greearb@candelatech.com>,
	"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: More than one ath10k NIC will not load (bisected)
Date: Wed, 4 Feb 2015 10:35:41 +0100	[thread overview]
Message-ID: <CA+BoTQmGWLDHGa=GkhtDaSupsY-nd5e5nUuwg6iMAN4d8WjOTA@mail.gmail.com> (raw)
In-Reply-To: <87vbjit58l.fsf@kamboji.qca.qualcomm.com>

On 4 February 2015 at 10:07, Kalle Valo <kvalo@qca.qualcomm.com> wrote:
> Ben Greear <greearb@candelatech.com> writes:
>
>>> Hmm.. This removes warm_reset in probe function but I fail to see how
>>> this could end up not loading one of the NIC *silently*?
>>>
>>> Anyway there's a pending patch which adds the reset back:
>>> https://github.com/kvalo/ath/commit/bdcd6f4e4ac5d2d2a56da4813f56655e6db0ee45
>>> . You might want to try it and see if it helps.
>>
>> Reverting the patch made it work again for me.
>>
>> I don't understand that code well, but perhaps you are disabling
>> a shared interrupt that silently stops the second NIC from
>> being able to do it's thing?
>>
>> Do you have a PC with 2 NICs in it that you could try yourself?
>>
>> I can grab you the logs of a failure to boot later today.
>
> What should we do with this one? I didn't look at the details yet, but
> do we have any other option than to revert?

I believe this is an issue in Ben's userspace (he sent me logs
privately) or some sort of kernel event bug. It basically looked like
this: both devices were detected by ath10k and both started
register_work. One of the devices loaded all the way while the other
tried to load a few non-existing firmware files and it stopped. Few
minutes later there was a hung task splat pointing to
request_firmware() called from ath10k suggesting userspace didn't
handle firmware request.

The "offending" patch effectively removed 200ms from probe() in
ath10k. This could've change timing on request_firmware() calls on
Ben's system. Btw. the 200ms is back again now with
1a7fecb766c83dace747f42b25bbb544b00a0163 ("ath10k: reset chip before
reading chip_id in probe").

Marek tried running 2 qca988x on his laptop some time ago (with and
without the extra timing) and didn't have any issues.


Michał

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

  reply	other threads:[~2015-02-04  9:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20 21:53 More than one ath10k NIC in 3.19.0-rc5? Ben Greear
2015-01-21  2:13 ` Sebastian Gottschall
2015-01-21  2:49   ` Ben Greear
2015-01-21 19:01     ` Ben Greear
2015-01-21 19:47       ` Ben Greear
2015-01-22 21:08         ` More than one ath10k NIC will not load (bisected) Ben Greear
2015-01-23  6:43           ` Michal Kazior
2015-01-23 15:54             ` Ben Greear
2015-01-24 18:53               ` Janusz Dziedzic
2015-02-05 20:50                 ` AW: " Conrad Kostecki
2015-02-04  9:07               ` Kalle Valo
2015-02-04  9:35                 ` Michal Kazior [this message]
2015-02-04 12:02                   ` Kalle Valo
2015-02-04 15:23                   ` Ben Greear
2015-02-05  6:02                     ` Michal Kazior
2015-02-05  6:41                       ` Ben Greear

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='CA+BoTQmGWLDHGa=GkhtDaSupsY-nd5e5nUuwg6iMAN4d8WjOTA@mail.gmail.com' \
    --to=michal.kazior@tieto.com \
    --cc=ath10k@lists.infradead.org \
    --cc=greearb@candelatech.com \
    --cc=kvalo@qca.qualcomm.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.