Skip to contentSkip to conversation

btintel_pcie: a gp1 mailbox interrupt during firmware download left the controller dead on 7.0; gone on bluetooth-next

DISCUSSION Sergey Lebedev 1 participant 2 messages Sep 11 – Sep 29 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

A race on a shipping distro kernel that I cannot reproduce upstream, and a control that rules out the obvious explanation. I am reporting it because the kernel it bites is one people are running today, and because the thing that looked like the fix demonstrably is not.

What happens on 7.0.0-30-generic
================================

Surface Pro 11 for Business, Lunar Lake, Intel BE201 (8086:a876). Roughly one warm reboot in twelve leaves the controller dead:

Bluetooth: hci0: Unsupported cnvi 0x00000000
Bluetooth: hci0: Controller in error state

adapter DOWN, BD address 00:00:00:00:00:00. Reloading btintel_pcie recovers it every time, from that same state.

The cnvi line is several steps downstream. What differs is the ordering of one interrupt during the second-stage firmware load. Twelve consecutive warm reboots, one kernel, one firmware, nothing else changed, one failure:

  failing boot                        every healthy boot
  ---------------------------------   ---------------------------------
  Found device firmware: ...sfi       Found device firmware: ...sfi
  Boot Address: 0x10000800            Boot Address: 0x10000800
  Firmware Version: 107-8.26          Firmware Version: 107-8.26
  Received gp1 mailbox interrupt <--
  Waiting for firmware download ...   Waiting for firmware download ...
  Firmware loaded in 685555 usecs     Firmware loaded in 645371 usecs
  Received gp1 mailbox interrupt      Received gp1 mailbox interrupt
  Controller in error state           Waiting for device to boot

One extra gp1, before the wait rather than after it. Every healthy boot has exactly 1 gp1 and 0 "Controller in error state"; the failing boot has 6 and 3, the extras being the driver's own retries. Then alive-interrupt timeout, Intel Soft Reset failed (-62), three download retries, dead adapter.

Rates on 7.0.0-30-generic: 1 failure in 12 controlled warm reboots, and 16 in 50 retained boots. Controller firmware is 2026.8 build 113003 throughout and never changed, so this is not a firmware regression; a platform firmware update did not fix it either.

What happens on bluetooth-next
==============================

Built pristine bluetooth-next at e40edfa049 (2026-09-10), same machine, same firmware, same day, rebooted under an automated harness. Then built it a second time with one patch reverted, and did it again:

kernel boots failures
7.0.0-30-generic (Ubuntu, 6613-mod config) 12 1

  7.0.0-30-generic, retained journal               50         16
  7.2.0-rc6 bluetooth-next                         41          0
  7.2.0-rc6 bluetooth-next, one patch reverted     41          0

The second bluetooth-next row is the point of this message, so it is worth saying what it was: I reverted

Bluetooth: btintel_pcie: sync mbox tlv parsing with GP0 alive
https://lore.kernel.org/linux-bluetooth/[email protected]/

because it is what replaced the code the failing boots ran - 7.0 logs "Received gp1 mailbox interrupt" unconditionally, bluetooth-next does not and carries an mbox<->alive handshake instead. It reverts cleanly on its own (1/3 and 3/3 do not, so they stayed in), which made it a single-variable control: same tree, same .config, same signing key, same harness, same day.

**Reverting it does not bring the failure back.** Kiran, your series is not what closed this, and I would rather say so than let you spend time on a fix that is not one.

What the numbers support
========================

P(0 in 41) if the rate were still 1/12 0.028
P(both arms clean) if the rate were still 1/12 0.0008
pooled 0 of 82 on bluetooth-next, 95% upper bound on rate 3.6%

So the difference between these kernels is real, and the race is not proven
gone: 1 in 30 would sit inside this data comfortably. "Not observed in 82 boots, and not the mailbox handshake" is the whole of what I can say.

What is left as a candidate, and I have not separated these: the 7.0 to 7.2 version gap and whatever else changed in btintel over it; Ubuntu's own delta; and the config, which is the one I would suspect first - the test kernels are localmodconfig with 273 modules against Ubuntu's 6613, and a leaner boot means less contending with the firmware download. A race is exactly what a timing change hides without fixing.

I stopped there rather than guess further, and I have not bisected the version
gap: at 1 in 12 each step needs forty boots to mean anything, an hour a step, and one of you may recognise this on sight.

Why it matters beyond this machine: 7.0.0-30-generic is a current Ubuntu kernel, the failure costs the user Bluetooth outright until a module reload, and nothing in the logs points at a cause. If the change that closed it can be identified, it looks like a stable candidate.

The hardware is here and the harness is automated - unattended reboots, one row per boot. Building 7.2 with Ubuntu's full config would separate the timing explanation from the code one; that or more boots on any tree you name is about an hour, and I am happy to run it.

Sergey

#1 lore raw

A follow-up so that nobody looks for a fix upstream: there is none to find.

Built with Ubuntu's own 7.0.0-34 config, mainline v7.0 went 0 of 41 warm reboots and bluetooth-next 0 of 41, against 9 of 28 on Ubuntu's 7.0.0-34. So the race comes from Ubuntu's kernel, not from btintel_pcie upstream. Another machine with the same signature is in Ubuntu's tracker, and I have added these numbers there:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2161900

Sergey