[BUG] btintel_pcie: hci0 is UP but missing from the mgmt index list

Aperta
#1,197 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, linux

Direzione di ricerca

Start by tracing btintel_pcie_setup(), hci_register_dev(), msft_register(), and read_index_list() in the kernel Bluetooth code; the issue names the relevant call paths but not source file paths or a failing test. Reproduce with the listed Intel PCI controller and inspect when the management index is added after firmware setup. Done means READ_INDEX_LIST includes hci0 and BlueZ creates /org/bluez/hci0.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Pre-flight checklist
  • I have searched existing issues and this is not a duplicate.
  • I have read the Contributing Guidelines.
  • I have verified the issue is reproducible with the latest available CachyOS kernel.
  • I have tried to reproduce the issue on Arch Linux's linux kernel.
Upstream / vanilla kernel check

I have not tested with a vanilla/upstream kernel

Kernel variant

linux-cachyos (EEVDF, Clang)

System information (cachyos-bugreport.sh)

Not run. That script uploads a full system dump. Manual details are below.

Manual system information (if cachyos-bugreport.sh is unavailable)
  • Kernel: 7.3.6-3-cachyos (linux-cachyos 7.3.6-3)
  • CPU: Intel Core Ultra 5 338H
  • Architecture: x86_64
  • BlueZ: 5.88
  • mgmt interface: version 1, revision 23
  • No SCX scheduler involved
Bug description

btintel_pcie brings hci0 up and loads firmware, but the controller never appears in the Bluetooth management index list. BlueZ therefore has no adapter.

The same report was sent to linux-bluetooth. The running tree matches current mainline on the two relevant points: msft_register() runs only from hci_register_dev(), and mgmt_index_added() runs from hci_power_on() / hci_set_powered_sync(), not from hci_dev_open_sync().

Steps to reproduce
  1. Boot with btintel_pcie bound to PCI 00:14.7 (8086:e476 rev 01, subsystem 8086:0111).
  2. Start bluetoothd. rfkill is not blocking the adapter.
  3. busctl tree org.bluez shows only /org/bluez.
  4. HCIDEVUP on hci0 succeeds and the firmware load below is printed.
  5. MGMT_OP_READ_INDEX_LIST (opcode 0x0003) still returns status 0 and num_controllers 0.
  6. Restart bluetoothd. Still no /org/bluez/hci0.
Expected behavior

After setup succeeds and the controller has a bdaddr, READ_INDEX_LIST includes hci0 and BlueZ creates /org/bluez/hci0.

Actual behavior

HCIGETDEVLIST shows one device: id 0, flags 0x5 (HCI_UP|HCI_RUNNING). HCIGETDEVINFO returns name hci0, type 5 (HCI_PCI), and a non-zero bdaddr. /sys/class/bluetooth/hci0 has no address attribute. The management index list is empty, so bluetoothd never creates an adapter.

Logs / stack traces
Bluetooth: hci0: Found device firmware: intel/ibt-00a0-01a1-pci.sfi
Bluetooth: hci0: Firmware Version: 19-36.26
Bluetooth: hci0: Firmware loaded in 477945 usecs
Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-00a0-01a1-pci.ddc
Bluetooth: hci0: Applying Intel DDC parameters completed
Bluetooth: hci0: Firmware timestamp 2026.36 buildtype 1 build 102163
Bluetooth: hci0: Firmware SHA1: 0xfbf3efe9
Bluetooth: hci0: Fseq status: Success (0x00)
Bluetooth: hci0: Fseq executed: 00.87.00.03
Bluetooth: hci0: Fseq BT Top: 00.87.00.04
Bluetooth: hci0: MSFT extension not registered

bluetoothd:

Bluetooth management interface 1.23 initialized

No "Opcode failed" or "Failed to read MSFT supported features" follows. This is not the ibt-0190-0291 -ENOENT failure. Here ibt-00a0-01a1-pci.sfi loads and Fseq reports success.

On this build, btintel_set_msft_opcode() only stores 0xFC1E, and that call is in btintel_pcie_setup(). hci_register_dev() runs earlier, from probe, and that is the only caller of msft_register(). The opcode is still NOP when msft_register() runs, so msft_do_open() hits "MSFT extension not registered" and returns.

mgmt_index_added() is not called from hci_dev_open_sync(). It is called from hci_power_on() and hci_set_powered_sync(). read_index_list() skips HCI_SETUP, HCI_CONFIG, HCI_USER_CHANNEL, HCI_UNCONFIGURED, and HCI_QUIRK_RAW_DEVICE. The legacy HCI_RAW bit is clear. Nothing holds an HCI user channel. HCIDEVUP can finish setup and set HCI_UP without the controller being added to the index list.

Additional system information

Not tested on a vanilla kernel or on Arch linux. Not compared with a newer linux-cachyos package than 7.3.6-3.

Lingua principale
Shell
Stelle
4.9k
Fork
190
Merge medio
1g 3h
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/linux-cachyos

Tutte le issue di CachyOS/linux-cachyos

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.