Skip to contentSkip to conversation

btintel_pcie: controller left dead after a boot-stage error, 1 in 12 warm reboots

DISCUSSION Sergey Lebedev 1 participant 3 messages Aug 31 – Sep 29 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Roughly one warm reboot in twelve, the Bluetooth controller on a Surface Pro 11 comes up dead with BD Address 00:00:00:00:00:00, and stays that way until btintel_pcie is reloaded by hand. This is a report rather than a patch: the trigger looks like a device-side fault, but the driver has recovery machinery it does not reach for here, and that part looks addressable.

I could not find this reported anywhere. Searching lore for "Unsupported cnvi" returns only patches carrying the string in the driver source.

Hardware: Microsoft Surface Pro for Business 11th Edition with Intel, Core Ultra 7 268V, UEFI 17.105.143. Controller firmware 2026.8 build 113003, bootloader 2023.33 build 45995, unchanged throughout. Ubuntu 26.04, kernel 7.0.0-30.

What differs between a good and a bad boot
------------------------------------------

Twelve consecutive warm reboots, one kernel, one firmware, nothing changed between them, thirty minutes end to end. One failed. The second-stage firmware load from each, trimmed to the lines that differ:

failing boot every healthy boot

  Found device firmware: ...-pci.sfi    Found device firmware: ...-pci.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 to complete
  Waiting for firmware download to ...  Firmware loaded in 645371 usecs
  Firmware loaded in 685555 usecs       Received gp1 mailbox interrupt
  Received gp1 mailbox interrupt        Waiting for device to boot

Controller in error state

One extra gp1 mailbox interrupt, arriving before the download rather than after it. Same firmware file, same boot address, same version, download times within 10 % of each other. Counted across the series, every healthy boot has exactly one gp1 interrupt and no error state; the failing boot has six and three, the extra ones being the driver's own retries.

After that it fails the way a driver fails when its handshake is out of step:

Timeout (3000 ms) on alive interrupt, alive context: intel_reset1 Failed to send frame (-62)
Intel Soft Reset failed (-62)
Firmware download retry count: 1

three times over, and the controller is left with a zero address. "Unsupported cnvi 0x00000000", which is the string one would search for, is a consequence several steps down and not the fault itself.

The part that looks like a driver question
------------------------------------------

btintel_pcie_msix_gp0_handler() detects the condition and stops there:

	if (btintel_pcie_in_error(data)) {
		bt_dev_err(data->hdev, "Controller in error state");
		btintel_pcie_dump_debug_registers(data->hdev);
		return;
	}

while btintel_pcie_pci_resume() reaches the same predicate and recovers from it:

	if (btintel_pcie_in_error(data) || btintel_pcie_in_device_halt(data)) {
		bt_dev_err(data->hdev, "Controller in error state for D0 entry");
		...
		btintel_pcie_reset(data->hdev);
	}

Reloading the module recovers the controller every time, which suggests the device is not permanently wedged - only that nothing tries again. Whether the boot path should call btintel_pcie_reset() the way the resume path does is a question for people who know the hardware; from outside it is the obvious thing to ask.

Rates
-----

retained journal, to 2026-08-30 16 failures / 50 boots
controlled warm reboots, 2026-08-31, after a
firmware update to UEFI 17.105.143 1 failure / 12 boots

The earlier 16 were clustered - 15 inside one 24-hour window - which is why I waited for a controlled series before writing. Note also that it is not
cold-boot-specific: 12 of those 16 followed a warm reboot.

I can test patches on this machine and reproduce on demand; twelve reboots take half an hour. Full logs of the series and both boot types available on request.

Thanks,
Sergey

#1 lore raw

Following up my own report of 31 August with the measurement it was missing. That one gave a rate from a mixed sample and could not say whether the failure needs a previous boot to have happened. It does not, but it very nearly does.

Same machine, same kernel (7.0.0-30-generic), same firmware, one day:

warm reboots, gap >= 200 s 4 of 10 failed
cold boots, full power cycle 1 of 11 failed

Cold boots were ~270 s apart, so they are compared against warm reboots at a similar cadence rather than against the whole warm sample. That matters: the raw figures are 16 of 30 warm against 1 of 11 cold, but most of those warm reboots were 60 s apart and quick reboots fail more often on their own - 61 % under 120 s against 40 % over 200 s. Against the matched 40 %, one failure in eleven gives p = 0.03; against the unmatched 53 % it would look three times stronger than it is.

The cold boots were automated: rtcwake arms an alarm, the machine powers down fully, the firmware wakes it, a boot service records whether the driver probed. Eleven cycles, no hands.

Where it stops, unchanged from the earlier report:

Bluetooth: hci0: Firmware loaded in 75464 usecs
Bluetooth: hci0: Device booted in 3338 usecs
Bluetooth: hci0: Waiting for device transition to d0
Timeout (3000 ms) on alive interrupt, alive context: intel_reset1 Intel Soft Reset failed (-62)
Controller in error state
btintel_pcie 0000:00:14.7: probe with driver btintel_pcie failed with error -62

btintel_boot_wait_d0() waits on INTEL_WAIT_FOR_D0 and, when the notification does not arrive, returns -ETIMEDOUT. There is no second question asked of the hardware. btintel_pcie_set_dxstate() waits for the same class of notification and then reads the boot-stage register to see whether the controller got there anyway; that fallback is why the suspend path survives a dropped interrupt and this one does not.

What the cold figures add is which of those two stories is true. A full power cycle clears everything the previous boot left behind, and the rate falls from 40 % to 9 % - but not to zero. So the dropped notification is not an artefact of re-initialising a controller that was already up: it happens on a cold controller too, just far less often. Leftover state makes it much more likely; it is not the cause.

Recovery is unchanged and total: modprobe -r btintel_pcie && modprobe btintel_pcie brings the controller up every time, from the same state that killed the probe. The hardware is fine; only this wait gives up on it.

So the question I am asking, and it is a question rather than a patch: should btintel_boot_wait_d0() get the same backstop - read the boot-stage register before returning -ETIMEDOUT? I have not sent one because the D0 state is reported through an hdev flag rather than the register that set_dxstate() consults, and I do not know from outside whether the two are meant to be equivalent on this generation. If they are, the fix is small and I am happy to write and test it here. If they are not, that is the answer and I will stop.

Hardware: Intel BE201, 8086:a876, on a Microsoft Surface Pro 11 for Business (Lunar Lake). Firmware 2026.8 build 113003, SHA1 0x08f159a0 - unchanged throughout, so nothing here is a firmware regression.

Sergey

#2 lore raw

A correction to my message of 11 September, written as a summary so that this thread can be read from here.

That message said two things. One was wrong and I withdraw it; the other stands.

Withdrawn: the failed probe and btintel_boot_wait_d0()
------------------------------------------------------

The failed probes were my own doing. A recovery service I run reloaded btintel_pcie as soon as it saw a zero BD address, which is also what the adapter shows while the firmware setup is still running. The unload takes the interrupts away from that setup, and the probe of the reload then waits 3 s for the alive interrupt and fails with -62. The same sequence does this to a healthy controller here.

btintel_boot_wait_d0() never gave up. The log I quoted has no "Device d0 move timeout", none of the 59 boots I still have logs one, and every boot where the race struck logged "Device moved to D0". Please disregard the question.

Stands: the race, and how often it hits
---------------------------------------

What fails is the race this thread began with. A gp1 mailbox interrupt arrives during the second-stage firmware download before the driver is waiting for it. The controller goes into error state, the Intel Reset after the download times out (alive context intel_reset1), the driver's one retry fails the same way, and the adapter is left DOWN at 00:00:00:00:00:00 with "Unsupported cnvi 0x00000000".

The cold and warm figures stand, as figures for that race. They counted failed probes, and in every boot I still have, the service caused a failed probe exactly when the race had struck and never otherwise:

warm reboots, >= 200 s apart 4 of 10
cold boots, full power cycle 1 of 11 p = 0.03 against the warm rate

So a full power cycle makes it much rarer but not impossible: left-over state makes it more likely, and a real race sits under it.

Since then
----------

- Ubuntu's current 7.0.0-34 still has it: 9 of 28 boots here, same signature.
- Left alone, the adapter stays at the zero address, and a reload after the firmware setup has given up brings it back.
- bluetooth-next and 7.3 kernels built here: the race did not appear in 109 boots (82 in my other report, 27 since). Those builds carry about 270 modules against Ubuntu's 6709, so this does not yet tell a difference in code from a difference in timing. A current kernel built with Ubuntu's config would, and I can run that here. Details in the other report:
https://lore.kernel.org/linux-bluetooth/[email protected]/

Sorry for the noise.

Sergey