Bug 194815

Summary: iwlwifi: 8260: Bluetooth with Logitech Mx Master and Bose Soundsport earphone disconnect because of WiFi - WIFILNX-702
Product: Drivers Reporter: ahxcker
Component: BluetoothAssignee: DO NOT USE - assign "network-wireless-intel" component instead (linuxwifi)
Status: CLOSED UNREPRODUCIBLE    
Severity: normal CC: ahxcker, andrei.moscow, bart.ratgers, bugzilla, evan, juliusvonkohout, kanru.kernel, linuxwifi
Priority: P1    
Hardware: Intel   
OS: Linux   
See Also: https://bugzilla.kernel.org/show_bug.cgi?id=190831
https://bugzilla.kernel.org/show_bug.cgi?id=194759
Kernel Version: 4.9.0.1-amd64 Subsystem:
Regression: No Bisected commit-id:
Attachments: Dmesg and dump files
New dump and dmesg
dmesg for 20170307 12:07
attachment-2064-0.html
attachment-7619-0.html
Core24 with BT Coex probes enabled
attachment-9750-0.html
attachment-9792-0.html
Core24 with BT Coex probes enabled (8265)

Description ahxcker 2017-03-07 19:40:16 UTC
Created attachment 255121 [details]
Dmesg and dump files
Comment 1 Emmanuel Grumbach 2017-03-07 21:16:06 UTC
You didn't use the FW I attached to https://bugzilla.kernel.org/show_bug.cgi?id=190831 to create this dump and hence the important data is missing.

Also, please mention what Bluetooth device you use.
Comment 2 ahxcker 2017-03-07 22:10:58 UTC
Created attachment 255125 [details]
New dump and dmesg

(In reply to Emmanuel Grumbach from comment #1)
> You didn't use the FW I attached to
> https://bugzilla.kernel.org/show_bug.cgi?id=190831 to create this dump and
> hence the important data is missing.
> 
> Also, please mention what Bluetooth device you use.

My device: Intel Dual Band Wireless-AC(2*2) 8260, Bluetooth Version 4.1 vPro

I mentioned my device in summary but I don't know where it goes after I post this report.

Sorry for the mistake because I am new to Linux I will try to do it again.

Which means I copy iwlwifi-8000C-27.ucode from bug 190831 to /lib/firmware/iwlwifi-8000c-27.ucode

Before i copy it, my firmware version is: 27.455470.0

after i move your iwlwifi-800c-27 to /lib/firmware
version become to 27.469073.0
Comment 3 Andrey Ponomarenko 2017-03-08 02:58:33 UTC
(In reply to ahxcker from comment #2)

> My device: Intel Dual Band Wireless-AC(2*2) 8260, Bluetooth Version 4.1 vPro

I think you need to specify an ID of the device. You can use https://linux-hardware.org/index.php?view=howto to upload all info and logs necessary for debugging the problem. And then just attach ID of the probe to this bug instead of attaching all logs separately.
Comment 4 ahxcker 2017-03-08 04:14:02 UTC
i tr(In reply to Andrey Ponomarenko from comment #3)
> (In reply to ahxcker from comment #2)
> 
> > My device: Intel Dual Band Wireless-AC(2*2) 8260, Bluetooth Version 4.1
> vPro
> 
> I think you need to specify an ID of the device. You can use
> https://linux-hardware.org/index.php?view=howto to upload all info and logs
> necessary for debugging the problem. And then just attach ID of the probe to
> this bug instead of attaching all logs separately.

i tried, it shows me ERROR: can't find 'ifconfig'

i think latest debian use ip tool instant of ifconfig.
Comment 5 Emmanuel Grumbach 2017-03-08 04:17:25 UTC
What is the Bluetooth device that disconnects? A keyboard? Mouse? What model?
Comment 6 ahxcker 2017-03-08 05:08:40 UTC
Created attachment 255127 [details]
dmesg for 20170307 12:07

i am using Logitech Mx Master and Bose Soundsport earphone.
Comment 7 Emmanuel Grumbach 2017-03-08 05:31:13 UTC
Together? Did you try to have only one Bluetooth device at once?
Comment 8 Emmanuel Grumbach 2017-03-08 07:01:09 UTC
Can you confirm that without wifi it works properly?
Comment 9 ahxcker 2017-03-08 18:42:31 UTC
(In reply to Emmanuel Grumbach from comment #8)
> Can you confirm that without wifi it works properly?

Yes, after you use command " sudo systemctl stop NetworkManager
mouse working perfectly
Comment 10 Kan-Ru Chen 2017-03-10 04:56:21 UTC
Similar issue. 

Intel(R) Dual Band Wireless AC 8265, REV=0x230
Logitech M720 Triathlon

As soon as I start NetworkManager, my mouse is disconnected. Several seconds after I stop NetworkManager and toggle bluetooth on/off, my mouse works again.

Software combination:

Linux 4.10.0
iwlwifi firmware-version: 27.455470.0
Bluetooth: hci0: Firmware revision 0.1 build 82 week 37 2016

Should I create a new bug if it's not the same issue?
Comment 11 Emmanuel Grumbach 2017-03-10 05:10:43 UTC
No need to create a new bug. 8265 and 8260 are very similar.
Comment 12 ahxcker 2017-03-10 05:21:13 UTC
Created attachment 255167 [details]
attachment-2064-0.html

There is one thing I want mention, when I use Arch Linux around last
December, my mouse worked fine. Don't know if this is usable.

On Fri, Mar 10, 2017, 12:10 AM <bugzilla-daemon@bugzilla.kernel.org> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=194815
>
> --- Comment #11 from Emmanuel Grumbach (emmanuel.grumbach@intel.com) ---
> No need to create a new bug. 8265 and 8260 are very similar.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 13 Andrey Ponomarenko 2017-03-10 05:23:14 UTC
(In reply to ahxcker from comment #4)
> i tr(In reply to Andrey Ponomarenko from comment #3)
> > (In reply to ahxcker from comment #2)
> > 
> > > My device: Intel Dual Band Wireless-AC(2*2) 8260, Bluetooth Version 4.1
> > vPro
> > 
> > I think you need to specify an ID of the device. You can use
> > https://linux-hardware.org/index.php?view=howto to upload all info and logs
> > necessary for debugging the problem. And then just attach ID of the probe
> to
> > this bug instead of attaching all logs separately.
> 
> i tried, it shows me ERROR: can't find 'ifconfig'
> 
> i think latest debian use ip tool instant of ifconfig.

Fixed in hw-probe 1.2: https://github.com/linuxhw/hw-probe

Thank you.
Comment 14 Kan-Ru Chen 2017-03-10 06:14:27 UTC
(In reply to Emmanuel Grumbach from comment #11)
> No need to create a new bug. 8265 and 8260 are very similar.

Thanks. I can easily reproduce this so I'm happy to help you debug this if you need to test anything.
Comment 15 Emmanuel Grumbach 2017-03-10 07:51:35 UTC
The firmware team has the data. We'll need to wait for them. Not sure how long it'll take.
Comment 16 Emmanuel Grumbach 2017-03-28 07:25:51 UTC
Hi,

can you please tell us the exact model of your mouse?
we are going to buy one for testing.
Comment 17 ahxcker 2017-03-28 07:34:45 UTC
Created attachment 255589 [details]
attachment-7619-0.html

Guys, I don't know what happened. I changed my Debian stretch to arch this
afternoon and it seems there no problem for now.
When I ran arch in last month, I figured out my mouse not work and also my
Bluetooth earphone not work too. Those problems let me changed to Debian
stretch but problem still there.
I don't know what happened today, arch Bluetooth is working. I will try it
tomorrow and give feedback.

On Tue, Mar 28, 2017, 3:25 AM <bugzilla-daemon@bugzilla.kernel.org> wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=194815
>
> Emmanuel Grumbach (emmanuel.grumbach@intel.com) changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|ASSIGNED                    |NEEDINFO
>
> --- Comment #16 from Emmanuel Grumbach (emmanuel.grumbach@intel.com) ---
> Hi,
>
> can you please tell us the exact model of your mouse?
> we are going to buy one for testing.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 18 Emmanuel Grumbach 2017-03-28 08:10:38 UTC
can you please still tell us the exact model of the mouse?
We want to expand our IOT lab.

thank you.
Comment 19 Emmanuel Grumbach 2017-03-28 11:41:25 UTC
Created attachment 255595 [details]
Core24 with BT Coex probes enabled

Hello,

the firmware asked me to send you this new firmware for reproduction. It has new debug probes that will help to better understand the issue.

Please send a new dump with this firmware.

Thank you.
Comment 20 ahxcker 2017-03-28 14:44:33 UTC
Created attachment 255609 [details]
attachment-9750-0.html

Logitech MX.Master
https://www.amazon.com/Logitech-Master-Wireless-Mouse-Computer

On Tue, Mar 28, 2017, 4:10 AM <bugzilla-daemon@bugzilla.kernel.org> wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=194815

--- Comment #18 from Emmanuel Grumbach (emmanuel.grumbach@intel.com) ---
can you please still tell us the exact model of the mouse?
We want to expand our IOT lab.

thank you.

--
You are receiving this mail because:
You are on the CC list for the bug.
You reported the bug.
Comment 21 ahxcker 2017-03-28 14:44:58 UTC
Created attachment 255611 [details]
attachment-9792-0.html

https://www.amazon.com/Logitech-Master-Wireless-Mouse-Computer/dp/B00TZR3WRM

On Tue, Mar 28, 2017, 10:44 AM <ahxcker@gmail.com> wrote:

> Logitech MX.Master
> https://www.amazon.com/Logitech-Master-Wireless-Mouse-Computer
>
> On Tue, Mar 28, 2017, 4:10 AM <bugzilla-daemon@bugzilla.kernel.org> wrote:
>
> https://bugzilla.kernel.org/show_bug.cgi?id=194815
>
> --- Comment #18 from Emmanuel Grumbach (emmanuel.grumbach@intel.com) ---
> can you please still tell us the exact model of the mouse?
> We want to expand our IOT lab.
>
> thank you.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
>
>
Comment 22 ahxcker 2017-03-29 00:20:13 UTC
After I change my system to Arch, my Bluetooth become stable.
I tried whole day and only broken connection once.
I still do not have answer for what i did.
Comment 23 Emmanuel Grumbach 2017-03-29 02:50:33 UTC
You can check the firmware versions of wifi and BT in Debian and arch.
Comment 24 Bart R. 2017-03-31 08:25:10 UTC
I experience the same problem. My hardware: 
HP Spectre x360 Convertible 13-w0XX
- Intel chipset: 01:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
- Logitech Mouse MX Master


To temporally solve the connection problem with my mouse I use the work-around described by Ralf: https://www.ralf-oechsner.de/opensource/page/logitech_mx_master

echo "options iwlwifi bt_coex_active=N" | sudo tee -a /etc/modprobe.d/iwlwifi.conf

This works most of the time, but is not stable. When a heavy load occurred on the wifi, the mouse is deactivated. 
Maybe this can brought you further to solve this problem definitive.
Comment 25 Emmanuel Grumbach 2017-03-31 12:27:33 UTC
Created attachment 255661 [details]
Core24 with BT Coex probes enabled (8265)

What can really help is to provide a firmware dump. For that, I'll need to give you a debug firmware for 8265 which I attached here.

Please follow the instructions here: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging#firmware_debugging
You'll need to trigger the dump with:
echo 1 > /sys/kernel/debug/iwlwifi/0000\:0X\:00.0/iwlmvm/fw_dbg_c
(of course, replace X by the appropriate value)

Please take the time to read the privacy notice here:
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/debugging#privacy_aspects

Of course, you'll need to remove the iwlwifi setting you added (bt_coex_active=N (and reload iwlwifi or reboot) before collecting the data for us.

Thank you.
Comment 26 Bart R. 2017-03-31 15:21:27 UTC
The firmware 27 couldn't be leoded by the module. 

At this moment I'm using a Fedora kernel 4.10.5-200.fc25.x86_64, this is for now the latest version. The iwlwifi kernel module is limited to use Firmware iwlwifi-8265-26.ucode

Is there a way to work around by forcing to load the new firmware or can I receive a debug version of the iwlwifi-8265-26.ucode firmware?
Comment 27 Kan-Ru Chen 2017-04-05 22:24:55 UTC
(In reply to Kan-Ru Chen from comment #10)
> Similar issue. 
> 
> Intel(R) Dual Band Wireless AC 8265, REV=0x230
> Logitech M720 Triathlon
> 
> As soon as I start NetworkManager, my mouse is disconnected. Several seconds
> after I stop NetworkManager and toggle bluetooth on/off, my mouse works
> again.
> 
> Software combination:
> 
> Linux 4.10.0
> iwlwifi firmware-version: 27.455470.0
> Bluetooth: hci0: Firmware revision 0.1 build 82 week 37 2016

FYI, my current combination works pretty without any coex issue

Linux 4.11.0-rc2
iwlwifi firmware-version: 27.455470.0
Bluetooth: hci0: Firmware revision 0.1 build 103 week 50 2016
Comment 28 Emmanuel Grumbach 2017-04-06 03:50:26 UTC
(In reply to Bart R. from comment #26)
> The firmware 27 couldn't be leoded by the module. 
> 
> At this moment I'm using a Fedora kernel 4.10.5-200.fc25.x86_64, this is for
> now the latest version. The iwlwifi kernel module is limited to use Firmware
> iwlwifi-8265-26.ucode
> 
> Is there a way to work around by forcing to load the new firmware or can I
> receive a debug version of the iwlwifi-8265-26.ucode firmware?

Sorry, I missed your comment.

You can either install 4.11, or use our backport tree:
http://git.kernel.org/cgit/linux/kernel/git/iwlwifi/backport-iwlwifi.git/
Comment 29 Emmanuel Grumbach 2017-04-18 12:07:12 UTC
any news here?
Comment 30 Bart R. 2017-04-19 07:20:59 UTC
Sorry for the delay, I had a busy week. Since the last Fedora update the problems seems to be disappeared. I have also remove the "options iwlwifi bt_coex_active=N" line in /etc/modprobe.d/iwlwifi.conf and the mouse is still working. 

So it looks like that the (Fedora) kernel-core-4.10.9-200.fc25.x86_64 and furthers solves the problem with bluetooth.
Comment 31 Emmanuel Grumbach 2017-04-19 07:40:20 UTC
what WiFi firmware do you use?

4.10 doesn't use -27.ucode IIRC.
Comment 32 Bart R. 2017-04-19 07:47:35 UTC
The current firmware that is loaded by the module is: iwlwifi-8265-22.ucode 

apr 19 09:13:51 hp.local kernel: iwlwifi 0000:01:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
apr 19 09:13:51 hp.local kernel: iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230
Comment 33 Bart R. 2017-04-19 07:49:29 UTC
I think that it was not a firmware issue in my case, but more a kernel bug.
Comment 34 Emmanuel Grumbach 2017-04-19 08:06:37 UTC
(In reply to Bart R. from comment #33)
> I think that it was not a firmware issue in my case, but more a kernel bug.

can't really be.
It can also be a BT firmware change.

I'll close the bug but I'd feel safer if you'd test with -27.ucode