From: Andrei Emeltchenko <andrei.emeltchenko.news@gmail.com>
To: Alex Deymo <deymo@chromium.org>
Cc: Marcel Holtmann <marcel@holtmann.org>,
linux-bluetooth <linux-bluetooth@vger.kernel.org>,
keybuk <keybuk@chromium.org>
Subject: Re: [BUG] HCI_RESET and Num_HCI_Command_Packets limit
Date: Thu, 20 Jun 2013 12:13:38 +0300 [thread overview]
Message-ID: <20130620091331.GA3317@aemeltch-MOBL1> (raw)
In-Reply-To: <CAGd9gwjLr8vhqXNW0ALBsfpjZ+Rnt0bhif1sHDExqT7Syc4NFA@mail.gmail.com>
Hi Alex,
On Wed, Jun 19, 2013 at 08:18:09PM -0700, Alex Deymo wrote:
> Hi Marcel,
>
> On Wed, Jun 19, 2013 at 6:04 PM, Marcel Holtmann <marcel@holtmann.org> wrote:
> > Hi Alex,
> >
> >> I'm experiencing a problem that wedges the bluetooth adapter from time
> >> to time. The repro case can be hit with this scenario:
> >>
> >> run bluetoothd
> >> while hciconfig hci0 up && hciconfig hci0 down; do echo -n .; done
> >>
> >> In few iterations you will have a timeout while trying to bring up the
> >> interface. This is just a repro case, the real scenario just happens
> >> from time to time if you for instance restart bluetoothd at the right
> >> (or wrong!) moment.
> >
> > can you give us at least a few details on the kernel you are running and what hardware this is?
>
> I'm running kernel 3.8.11 on a x86_64 and BlueZ 5.4. The hardware is a
> chromebook (I saw it with different hardware and I can also repro it
> on my ubuntu) that uses the ath9k and ath3k drivers for the wifi/bt
> chip (MD222)
>
> > If you do not use hciconfig and instead use btmgmt or bluetoothctl, do you see the same issue?
>
> Using btmgmt I see the same issue with a very similar hcidump (just
> the timing is different).
> while btmgmt power on && btmgmt power off; do echo -n; done
> btmgmt power on after about 4 iterations is blocked and never returns.
>
> Using the dbus interface to the running bluetoothd apparently doesn't
> hit the problem (ran fine for a few hundred times)
> while dbus-send --system --print-reply --dest=org.bluez
> /org/bluez/hci0 org.freedesktop.DBus.Properties.Set
> string:org.bluez.Adapter1 string:Powered variant:boolean:true &&
> dbus-send --system --print-reply --dest=org.bluez /org/bluez/hci0
> org.freedesktop.DBus.Properties.Set string:org.bluez.Adapter1
> string:Powered variant:boolean:false; do echo -n; done
The D-Bus interface is very slow so you never face race condition.
Best regards
Andrei Emeltchenko
next prev parent reply other threads:[~2013-06-20 9:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-20 0:56 [BUG] HCI_RESET and Num_HCI_Command_Packets limit Alex Deymo
2013-06-20 1:04 ` Marcel Holtmann
2013-06-20 3:18 ` Alex Deymo
2013-06-20 9:13 ` Andrei Emeltchenko [this message]
2013-06-20 12:31 ` Marcel Holtmann
2013-06-20 18:42 ` Alex Deymo
2013-06-21 13:22 ` Marcel Holtmann
2013-06-25 1:02 ` Alex Deymo
2013-06-25 4:55 ` Johan Hedberg
2013-06-25 13:33 ` Marcel Holtmann
2013-06-25 20:34 ` Alex Deymo
2013-06-26 5:38 ` Johan Hedberg
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=20130620091331.GA3317@aemeltch-MOBL1 \
--to=andrei.emeltchenko.news@gmail.com \
--cc=deymo@chromium.org \
--cc=keybuk@chromium.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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).