ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Michal Kazior <michal.kazior@tieto.com>
Cc: Kalle Valo <kvalo@qca.qualcomm.com>,
	"ath10k@lists.infradead.org" <ath10k@lists.infradead.org>
Subject: Re: More than one ath10k NIC will not load (bisected)
Date: Wed, 04 Feb 2015 22:41:47 -0800	[thread overview]
Message-ID: <54D310AB.2000302@candelatech.com> (raw)
In-Reply-To: <CA+BoTQ=O1gaxFp=8MJ4pPCD5fY+jQn8_51+3rJwe8bBKN=TUrw@mail.gmail.com>

On 02/04/2015 10:02 PM, Michal Kazior wrote:
> On 4 February 2015 at 16:23, Ben Greear <greearb@candelatech.com> wrote:
>> On 02/04/2015 01:35 AM, Michal Kazior wrote:
>>>
>>> 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.
>>
>>
>> I can retry my system with stock Fedora 20 and see if it works there.
>>
>> If not, then I think it still needs to be worked on...you agree?
>
> In the driver? I'd argue. I don't see how ath10k could make
> request_firmware() hang, do you?

I can lard up the kernel with lockdep and related things and see if
that offers some clues.  Will be a bit though, I'm pretty busy
with other things at the moment.

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

      reply	other threads:[~2015-02-05  6:40 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
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 [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=54D310AB.2000302@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=ath10k@lists.infradead.org \
    --cc=kvalo@qca.qualcomm.com \
    --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