From: "Luis R. Rodriguez" <lrodriguez@atheros.com>
To: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Cc: Pavel Roskin <proski@gnu.org>,
Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
"ath5k-devel@lists.ath5k.org" <ath5k-devel@lists.ath5k.org>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [ath5k-devel] BUG in wiphy_update_regulatory when loading ath5k (on latest git)
Date: Fri, 10 Apr 2009 15:26:09 -0700 [thread overview]
Message-ID: <20090410222609.GE5750@tesla> (raw)
In-Reply-To: <49DFAC64.5050208@tuffmail.co.uk>
On Fri, Apr 10, 2009 at 01:30:28PM -0700, Alan Jenkins wrote:
> Pavel Roskin wrote:
> > On Fri, 2009-04-10 at 11:11 -0700, Luis R. Rodriguez wrote:
> >
> >
> >> Thanks pavel, please try this patch:
> >>
> >
> > I checked ath5k, ath9k and b43, and in all cases last_request is
> > initialized before it's used by the code changed in your patch. In
> > fact, last_request is initialized before there is any message from ath5k
> > or another driver.
> >
> > I wonder if "module: create a request_module_nowait()" reverted in
> > wireless-testing was causing the initialization to go in a different
> > order. I tried reapplying it and still could not reproduce the problem
> > (that is, last_request is not NULL in wiphy_update_regulatory). But
> > maybe I'm just lucky.
> >
> > Anyway, your patch makes the code safer and doesn't break anything for
> > me.
> >
>
> I see. That would explain why it's not deterministic.
>
> I've done 5 or so test runs with the patch applied, and I haven't had
> any more BUGs. Thanks for the quick response!
Hm, yeah so when you load cfg80211 you always trigger a core regulatory hint
and technically there is a race between the workqueue running and you
loading your driver and mac80211 and your driver having been registered
before the workqueue ran.. what might be easiest is for us to schedule
somewhere or use the kernel completion thing but I haven't used that
myself yet.
Luis
prev parent reply other threads:[~2009-04-10 22:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49DF6216.8040303@tuffmail.co.uk>
2009-04-10 16:18 ` BUG in wiphy_update_regulatory when loading ath5k (on latest git) Alan Jenkins
2009-04-10 17:15 ` [ath5k-devel] " Luis R. Rodriguez
2009-04-10 17:45 ` Pavel Roskin
2009-04-10 18:11 ` Luis R. Rodriguez
2009-04-10 20:21 ` Pavel Roskin
2009-04-10 20:30 ` Alan Jenkins
2009-04-10 22:26 ` Luis R. Rodriguez [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=20090410222609.GE5750@tesla \
--to=lrodriguez@atheros.com \
--cc=Luis.Rodriguez@Atheros.com \
--cc=alan-jenkins@tuffmail.co.uk \
--cc=ath5k-devel@lists.ath5k.org \
--cc=linux-wireless@vger.kernel.org \
--cc=proski@gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).