Skip to contentSkip to conversation

Questing regarding Broadcom Module

DISCUSSION Arend Van Spriel 1 participant 1 message Mar 18, 2016 7 messages not in the archive Bluetooth drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAF7Mx6ozJ_GfhJqQn5VFWLXFpDKOhiDsTQc-mSHioH=-asyd8g@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

+ bt mailing list

Quoted 5 lines · Frédéric Danis

Hello Andreas,

Can you send kernel logs with debug info from hci_uart module (adding 'dyndbg="module hci_uart +pf"' to kernel command line, see Documentation/dynamic-debug-howto.txt) ?

Wondering whether this module does runtime pm. Could you try with rpm disabled.

Regards,
Arend

Quoted 152 lines

Regards

Fred

Quoted 146 lines · Andreas Stahl

Hi Fred,

I am actually using BlueZ. It works pretty well. I have even debugged the HCI commands being sent and the messages being received, however I can't find a pattern what makes the module completely unresponsive.

Especially the sudden interrupt when just performing A2DP Streaming towards Bluetooth headphones. It just simply stops working.

Regarding the other situation with pairing during A2DP streaming: This doesn't always fail. It never fails when you don't A2DP stream. The error shows itself at random and sometimes when you pair and then remove the keyboard (which includes disconnecting it) while performing A2DP streaming.

I tried looking at the hci package with hcidump as well as debugging the kernel module directly. I still think it is the module itself that fails. Using another broadcom module from another project, which doesn't integrate wifi (not the desired case), works in all cases with the same software and kernel drivers. I need to look up which module it is that works just fine. Sadly my task is to get this specific one running.

Some additional data about the system:

* Linux kernel 3.4.36 (patched with backported bluetooth drivers from 4.3.x kernel)
* ARM Platform
* Latest BlueZ 5.37

I also have tested the old BCM Module as well as the Wifi/BT Combination module in another system with similar setup, however a newer kernel and I get the same results: The older Module works, the one that needs to be implemented (BCM43569) does not.

Are there any debug outputs you can get from the bluetooth side somehow? UART pins maybe that would show if the module has some kind of fault or crash in this situation? I just don't see this error in user- or kernel space anymore.

Any advice is welcome to tackle this one.

Best Regards,
Andreas Stahl

Am 10.03.2016 um 16:30 schrieb Frederic Danis:

Quoted 97 lines

+ Frederic's personal OSS email

Do you use btattach or hciattach with your BT module ?

Regards

Fred

Quoted 86 lines · Arend Van Spriel

+ Frederic

Quoted 10 lines · Andreas Stahl

Hello,

thank you for your response. That lets me hope a little since trying out
different firmware didn't change in the behavior of the module.

When the module doesn't react anymore, wifi still works. Reloading the kernel driver doesn't help at all. It also complains about timeouts when
detecting the bluetooth part.

Let's get a bit more information:

- what platform are you using?
- what kernel version are you using?
- what bluez user-space version are you using?

I think Intel uses bcm43340 so maybe they can give you pointers as they worked on bt part.

Regards,
Arend

Quoted 61 lines

Is there a source where I could find and existing patch for the bluetooth rom? Maybe the bluetooth part of the chip is also available as
a stand alone chip which might already have a patch?

Best Regards,
Andreas Stahl

Quoted 50 lines · Arend Van Spriel

Op 8 mrt. 2016 11:02 schreef "Andreas Stahl"
<<mailto:[email protected]>[email protected]>:

Quoted 3 lines

Hello,

sorry to disturb you. I saw that you are active in the open source

projects regarding broadcom products, especially wireless drivers.

Quoted 1 line

I am using a BCM43569 chip in linux for a project, which integrates

wifi and bluetooth capabilities. The module replaces a previous combination of two distinct modules providing wifi and bluetooth capabilities.

Quoted 1 line

Despite initial problems, the drivers work fine now with the module.

However it seems like the module "crashes" in certain use cases. In Detail the hci commands on bluetooth start timing out. Bluetooth is without operation, however wifi seems to stay in tact.

Quoted 3 lines

Only a reset of the devices revives the bluetooth capabilities.

In my test case I start an A2DP-Sink session (connecting to

bluetooth headphones) and then pair a bluetooth keyboard. In a good bit of cases, during pairing or removing the pairing halts all bluetooth operations.

Quoted 1 line

Since I can only see the kernel driver complaining about hci

timeouts, I am grasping for straws here trying to find a solution.

Admittedly my BT knowledge is very limited so I would be grasping straws on a trimmed lawn.

Quoted 1 line

The same situation doesn't seem to happen with another broadcom

bluetooth module (without wifi integration) with the same kernel code,
however for this project I need the combination module.

Quoted 1 line

Sorry for the information overload, but do you know any way to help

or is there somebody who could assist in support?

No idea. Will forward your email.

Quoted 1 line

Is there a way to get debug output from the chip? Does the loaded

firmware also include the bluetooth implementation?

BT runs from ROM, but that can be patched. It is not part of wifi firmware.

Quoted 1 line

Again, thank you in advance for any advice you can give and sorry

for disturbing you. If you are the wrong person to ask, let me know and I won't contact you again.

For wifi driver questions I am (one of) the right person(s).

Gr. AvS

Quoted 2 lines

Best Regards,
Andreas Stahl