You are not logged in.

#26 2024-03-29 23:53:32

SuGaRAddiCTeD
Member
Registered: 2007-05-26
Posts: 17

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

299 good.

Offline

#27 2024-03-30 00:32:19

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

 git bisect good
Bisecting: 0 revisions left to test after this (roughly 1 step)
[d8c7785e8104359f139cdfa99e2511575c4d4823] Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
$ git describe
v6.8.1-301-gd8c7785e8104

linux-6.8.1.r301.gd8c7785e8104-1-x86_64.pkg.tar.zst uploaded

Offline

#28 2024-03-30 01:08:52

SuGaRAddiCTeD
Member
Registered: 2007-05-26
Posts: 17

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

301 is good. So the problem starts from 302...

Offline

#29 2024-03-30 01:12:55

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

SuGaRAddiCTeD wrote:

301 is good. So the problem starts from 302...

Yes so if you could post the following to https://bugzilla.kernel.org/show_bug.cgi?id=218651

$ git bisect good
b53e5ef62fe9853648b4478bd6cb3aba970a6f1f is the first bad commit
commit b53e5ef62fe9853648b4478bd6cb3aba970a6f1f
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Tue Jan 9 13:45:40 2024 -0500

    Bluetooth: hci_core: Cancel request on command timeout
    
    [ Upstream commit 63298d6e752fc0ec7f5093860af8bc9f047b30c8 ]
    
    If command has timed out call __hci_cmd_sync_cancel to notify the
    hci_req since it will inevitably cause a timeout.
    
    This also rework the code around __hci_cmd_sync_cancel since it was
    wrongly assuming it needs to cancel timer as well, but sometimes the
    timers have not been started or in fact they already had timed out in
    which case they don't need to be cancel yet again.
    
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Stable-dep-of: 2615fd9a7c25 ("Bluetooth: hci_sync: Fix overwriting request callback")
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 include/net/bluetooth/hci_sync.h |  2 +-
 net/bluetooth/hci_core.c         | 84 +++++++++++++++++++++++++++-------------
 net/bluetooth/hci_request.c      |  2 +-
 net/bluetooth/hci_sync.c         | 20 +++++-----
 net/bluetooth/mgmt.c             |  2 +-
 5 files changed, 71 insertions(+), 39 deletions(-)
$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [03a22b591c5443ba269e8570c6fef411251fe1b8] Linux 6.8.2
git bisect bad 03a22b591c5443ba269e8570c6fef411251fe1b8
# status: waiting for good commit(s), bad commit known
# good: [8a8b2a057ed9684704792b5d4b333616769002c2] Linux 6.8.1
git bisect good 8a8b2a057ed9684704792b5d4b333616769002c2
# bad: [da2d94af7ba950b33ce7dfd326894460c5536988] drm: Don't treat 0 as -1 in drm_fixp2int_ceil
git bisect bad da2d94af7ba950b33ce7dfd326894460c5536988
# good: [116cc80f47b29edcba609ad92be1ad83d1cedcd0] arm64: dts: qcom: sm6115: drop pipe clock selection
git bisect good 116cc80f47b29edcba609ad92be1ad83d1cedcd0
# good: [57662cd437c052595711bc733574e6895e074ee5] gpiolib: Pass consumer device through to core in devm_fwnode_gpiod_get_index()
git bisect good 57662cd437c052595711bc733574e6895e074ee5
# bad: [b08bd8f02a24e2b82fece5ac51dc1c3d9aa6c404] Bluetooth: btusb: Fix memory leak
git bisect bad b08bd8f02a24e2b82fece5ac51dc1c3d9aa6c404
# good: [4a09d0236854360d0c33fec01d3c7d9703cca570] PCI: Make pci_dev_is_disconnected() helper public for other drivers
git bisect good 4a09d0236854360d0c33fec01d3c7d9703cca570
# good: [da0de50013c160f76b0d4c1869be25875f48015b] Bluetooth: mgmt: Remove leftover queuing of power_off work
git bisect good da0de50013c160f76b0d4c1869be25875f48015b
# bad: [b53e5ef62fe9853648b4478bd6cb3aba970a6f1f] Bluetooth: hci_core: Cancel request on command timeout
git bisect bad b53e5ef62fe9853648b4478bd6cb3aba970a6f1f
# good: [54db3630deff566224de6cfb0767d2d398e68ed5] Bluetooth: Remove BT_HS
git bisect good 54db3630deff566224de6cfb0767d2d398e68ed5
# good: [d8c7785e8104359f139cdfa99e2511575c4d4823] Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
git bisect good d8c7785e8104359f139cdfa99e2511575c4d4823
# first bad commit: [b53e5ef62fe9853648b4478bd6cb3aba970a6f1f] Bluetooth: hci_core: Cancel request on command timeout

Offline

#30 2024-03-30 01:55:47

SuGaRAddiCTeD
Member
Registered: 2007-05-26
Posts: 17

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Offline

#31 2024-03-30 16:28:42

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

6.8.2.arch2 with suggested fix https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6 applied and pkgrel incremented to 1.1:
https://drive.google.com/file/d/1AZlLmC … sp=sharing linux-6.8.2.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1PULB4h … sp=sharing linux-headers-6.8.2.arch2-1.1-x86_64.pkg.tar.zst

Offline

#32 2024-03-30 23:52:03

Masardius
Member
Registered: 2024-03-30
Posts: 8

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

loqs wrote:

6.8.2.arch2 with suggested fix https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6 applied and pkgrel incremented to 1.1:
https://drive.google.com/file/d/1AZlLmC … sp=sharing linux-6.8.2.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1PULB4h … sp=sharing linux-headers-6.8.2.arch2-1.1-x86_64.pkg.tar.zst

Using this kernel. I get these messages in journal when my headset connects to pc. Kde6 bluetooth systray icon doesn't show that headset is connected.
Sound is working on the headset.

Mar 30 20:50:50 masa-pc bluetoothd[902]: Failed to disconnect device: Not Powered (0x0f)
Mar 30 20:50:57 masa-pc bluetoothd[902]: Authorization request for non-connected device!? 

No issues using 6.8.1 or 6.6.22 kernels.

Offline

#33 2024-03-31 05:26:20

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Using kernel linux-6.8.2.arch2-1.1 it is still the same. So either the fix does not work or the bisected commit introduced more than one bug and the fix fixes another one.

Offline

#34 2024-03-31 11:24:01

SuGaRAddiCTeD
Member
Registered: 2007-05-26
Posts: 17

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Kernel 6.8.2.arch2-1.1 works fine for me. No errors or lockups and the Bluetooth device works properly.

My device is 

Intel Corp. AX200 Bluetooth

Offline

#35 2024-04-01 09:35:21

berturion
Member
Registered: 2018-06-19
Posts: 22

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Hello, I think I have the same problem as you.

My problem occurs with all my installed kernels : linux-lts 6.6.23-1, linux-zen 6.8.2.zen2-1 and linux 6.8.2.arch2-1.

If I shutdown the computer then turn it on again, bluetooth fails to initialize. Also, when bluetooth is not correctly initialized, the command

inxi -F

never ends. When bluetooth is in this failed state, my computer doesn't shutdown correctly, a bunch of lines coresponding to the shutdown procedure is displayed and I have to maintain the power button few seconds to force the shutdown. The next boot is ok after that. So it occurs every 2 reboots. I tested with the 3 different kernels I have.

Workaround : I noticed that when I turn off my computer and I unplug the power cable then replug it, then turn my computer on, Bluetooth is initialized correctly every time.


My hardware :

$ sudo inxi -F
System:
  Host: horus Kernel: 6.8.2-zen2-1-zen arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.0.2 Distro: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: X570 I AORUS PRO WIFI v: -CF
    serial: N/A
  Mobo: Gigabyte model: X570 I AORUS PRO WIFI v: x.x serial: N/A
    UEFI: American Megatrends LLC. v: F35 date: 01/04/2022
CPU:
  Info: 8-core model: AMD Ryzen 7 5800X bits: 64 type: MT MCP cache: L2: 4 MiB
  Speed (MHz): avg: 2337 min/max: 2200/4850 cores: 1: 2200 2: 2200 3: 2800
    4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 2200 10: 2200 11: 2200 12: 2200
    13: 3800 14: 2200 15: 2200 16: 2200
Graphics:
  Device-1: AMD Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]
    driver: amdgpu v: kernel
  Display: server: X.Org v: 23.2.4 with: Xwayland v: 23.2.4 driver: X:
    loaded: amdgpu unloaded: modesetting dri: radeonsi gpu: amdgpu
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: radeonsi,swrast platforms: x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.0.3-arch1.2
    renderer: AMD Radeon RX 6700 XT (radeonsi navi22 LLVM 17.0.6 DRM 3.57
    6.8.2-zen2-1-zen)
  API: Vulkan v: 1.3.279 drivers: radv surfaces: xcb,xlib
Audio:
  Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  API: ALSA v: k6.8.2-zen2-1-zen status: kernel-api
Network:
  Device-1: Intel I211 Gigabit Network driver: igb
  IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: 18:c0:4d:89:ad:8c
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi
  IF: wlan0 state: down mac: 72:07:22:63:fd:9c
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb type: USB
  Report: btmgmt ID: hci0 state: up address: 34:C9:3D:10:EC:4D bt-v: 5.2
Drives:
  Local Storage: total: 931.51 GiB used: 432.73 GiB (46.5%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD Blue SN570 1TB
    size: 931.51 GiB
Partition:
  ID-1: / size: 480.3 GiB used: 432.27 GiB (90.0%) fs: ext4
    dev: /dev/nvme0n1p6
  ID-2: /boot size: 1020 MiB used: 471.6 MiB (46.2%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 2 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p5
Sensors:
  System Temperatures: cpu: 49.8 C mobo: 35.0 C gpu: amdgpu temp: 37.0 C
  Fan Speeds (rpm): N/A gpu: amdgpu fan: 0
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 3.91 GiB (12.5%)
  Processes: 408 Uptime: 0m Shell: Sudo inxi: 3.3.33
sudo uname -a
Linux horus 6.8.2-zen2-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:20 +0000 x86_64 GNU/Linux

When my bluetooth is not initialized correctly (every two reboots) :

[    7.927680] Bluetooth: HCI device and connection manager initialized
[    7.927683] Bluetooth: HCI socket layer initialized
[    7.927685] Bluetooth: L2CAP socket layer initialized
[    7.927690] Bluetooth: SCO socket layer initialized
[    7.928132] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.928279] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.928368] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    7.929935] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    7.929939] cfg80211: failed to load regulatory.db
[    7.930173] cryptd: max_cpu_qlen set to 1000
[    7.939548] AVX2 version of gcm_enc/dec engaged.
[    7.939586] AES CTR mode by8 optimization enabled
[    7.954633] pps pps0: new PPS source ptp0
[    7.954688] igb 0000:04:00.0: added PHC on eth0
[    7.954710] igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
[    7.954712] igb 0000:04:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 18:c0:4d:89:ad:8c
[    7.954715] igb 0000:04:00.0: eth0: PBA No: FFFFFF-0FF
[    7.954716] igb 0000:04:00.0: Using MSI-X interrupts. 2 rx queue(s), 2 tx queue(s)
[    7.961920] Intel(R) Wireless WiFi driver for Linux
[    7.961959] iwlwifi 0000:05:00.0: enabling device (0000 -> 0002)
[    7.964929] igb 0000:04:00.0 enp4s0: renamed from eth0
[    7.965671] iwlwifi 0000:05:00.0: Detected crf-id 0x3617, cnv-id 0x100530 wfpm id 0x80000000
[    7.965678] iwlwifi 0000:05:00.0: PCI dev 2723/0084, rev=0x340, rfid=0x10a100
[    7.966222] usbcore: registered new interface driver btusb
[    7.969551] iwlwifi 0000:05:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
[    7.969709] iwlwifi 0000:05:00.0: loaded firmware version 77.ad46c98b.0 cc-a0-77.ucode op_mode iwlmvm
[    7.977215] snd_hda_intel 0000:0b:00.1: Handle vga_switcheroo audio client
[    7.977223] snd_hda_intel 0000:0b:00.1: Force to non-snoop mode
[    7.977423] snd_hda_intel 0000:0d:00.4: enabling device (0000 -> 0002)
[    7.983097] Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
[    7.983111] Bluetooth: hci0: Boot Address: 0x24800
[    7.983113] Bluetooth: hci0: Firmware Version: 255-255.255
[    7.985646] snd_hda_intel 0000:0b:00.1: bound 0000:0b:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    7.986207] usb 1-2: USB disconnect, device number 3
[    7.986419] Bluetooth: hci0: FW download error recovery failed (-19)
[    7.986450] Bluetooth: hci0: sending frame failed (-19)
[    7.986458] BUG: kernel NULL pointer dereference, address: 0000000000000070
[    7.986478] #PF: supervisor read access in kernel mode
[    7.986489] #PF: error_code(0x0000) - not-present page
[    7.986499] PGD 0 P4D 0 
[    7.986509] Oops: 0000 [#1] PREEMPT SMP NOPTI
[    7.986519] CPU: 8 PID: 190 Comm: kworker/u65:0 Not tainted 6.8.2-zen2-1-zen #1 2f27ac2810bbd221aea68cde2f42843e48e62d59
[    7.986538] Hardware name: Gigabyte Technology Co., Ltd. X570 I AORUS PRO WIFI/X570 I AORUS PRO WIFI, BIOS F35 01/04/2022
[    7.986555] Workqueue: hci0 hci_power_on [bluetooth]
[    7.986606] RIP: 0010:btintel_read_debug_features+0x4d/0xf0 [btintel]
[    7.986623] Code: 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 31 c0 48 8d 4c 24 07 c6 44 24 07 01 e8 ee c0 e9 ff 48 89 c3 48 3d 00 f0 ff ff 77 49 <83> 78 70 13 75 67 48 8b 80 d0 00 00 00 be 02 00 00 00 48 89 df 48
[    7.986647] RSP: 0018:ffffb379c0fefbf0 EFLAGS: 00010207
[    7.986659] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8ff0d1a36a01
[    7.986672] RDX: 0000000000000000 RSI: 0000000000000202 RDI: ffff8ff0d1a36aa8
[    7.986686] RBP: ffffb379c0fefc20 R08: ffff8ff0d1a36ab0 R09: 0000000000000000
[    7.986698] R10: 0000000000000001 R11: ffff8ff0c0a46a80 R12: ffff8ff0d1a36000
[    7.986711] R13: ffffb379c0fefc8e R14: ffff8ff0d6f87005 R15: ffff8ff0d1a366d0
[    7.986725] FS:  0000000000000000(0000) GS:ffff8ff7dec00000(0000) knlGS:0000000000000000
[    7.986740] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.986751] CR2: 0000000000000070 CR3: 0000000113fec000 CR4: 0000000000f50ef0
[    7.986764] PKRU: 55555554
[    7.986771] Call Trace:
[    7.986778]  <TASK>
[    7.986785]  ? __die+0x10f/0x120
[    7.986796]  ? page_fault_oops+0x171/0x4e0
[    7.986807]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.986818]  ? schedule_timeout+0x23b/0x360
[    7.986830]  ? exc_page_fault+0x7f/0x180
[    7.986841]  ? asm_exc_page_fault+0x26/0x30
[    7.986854]  ? btintel_read_debug_features+0x4d/0xf0 [btintel c0459191ac3c9cd9855b2a00db1332e7e478e027]
[    7.986875]  btintel_register_devcoredump_support.isra.0+0x3e/0x110 [btintel c0459191ac3c9cd9855b2a00db1332e7e478e027]
[    7.986897]  btintel_setup_combined+0x2cf/0x2520 [btintel c0459191ac3c9cd9855b2a00db1332e7e478e027]
[    7.986917]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.986927]  ? xhci_urb_enqueue+0x1e6/0x350
[    7.986940]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.986950]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.986958]  ? rpm_suspend+0x8bd/0x8f0
[    7.986967]  ? srso_alias_return_thunk+0x5/0xfbef5
[    7.986976]  ? try_to_grab_pending+0xe1/0x1b0
[    7.986989]  hci_dev_open_sync+0x105/0xc80 [bluetooth f0c45fd6e7bc1b89a965814d3d830a36ec569dcc]
[    7.987034]  hci_power_on+0x74/0x2e0 [bluetooth f0c45fd6e7bc1b89a965814d3d830a36ec569dcc]
[    7.987063]  ? _raw_spin_unlock_irq+0x15/0x30
[    7.987072]  process_one_work+0x186/0x360
[    7.987081]  worker_thread+0x38e/0x530
[    7.987090]  ? __pfx_worker_thread+0x10/0x10
[    7.987097]  kthread+0xe8/0x120
[    7.987104]  ? __pfx_kthread+0x10/0x10
[    7.987112]  ret_from_fork+0x34/0x50
[    7.987120]  ? __pfx_kthread+0x10/0x10
[    7.987128]  ret_from_fork_asm+0x1b/0x30
[    7.987139]  </TASK>
[    7.987143] Modules linked in: snd_hda_codec_hdmi crct10dif_pclmul crc32_pclmul polyval_clmulni vfat snd_hda_intel polyval_generic gf128mul fat snd_intel_dspcfg libarc4 snd_intel_sdw_acpi ghash_clmulni_intel sha512_ssse3 snd_hda_codec btusb sha256_ssse3 snd_hda_core btrtl sha1_ssse3 snd_hwdep iwlwifi aesni_intel btintel snd_pcm crypto_simd btbcm btmtk snd_timer cryptd bluetooth gigabyte_wmi igb wmi_bmof snd sp5100_tco rapl cfg80211 acpi_cpufreq pcspkr ecdh_generic k10temp ptp soundcore i2c_piix4 ccp pps_core mousedev joydev dca rfkill mac_hid pkcs8_key_parser i2c_dev dm_mod crypto_user fuse loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 hid_generic usbhid amdgpu video amdxcp i2c_algo_bit drm_ttm_helper ttm drm_exec gpu_sched drm_suballoc_helper drm_buddy nvme drm_display_helper nvme_core crc32c_intel cec xhci_pci nvme_auth xhci_pci_renesas wmi
[    7.987291] CR2: 0000000000000070
[    7.987300] ---[ end trace 0000000000000000 ]---

When my bluetooth is initialized correctly (with my workaround procedure, or the reboot after a failed initialization) :

[    7.846479] NET: Registered PF_BLUETOOTH protocol family
[    7.846480] Bluetooth: HCI device and connection manager initialized
[    7.846483] Bluetooth: HCI socket layer initialized
[    7.846485] Bluetooth: L2CAP socket layer initialized
[    7.846490] Bluetooth: SCO socket layer initialized
[    7.861840] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    7.862007] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    7.862101] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[    7.862519] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    7.862522] cfg80211: failed to load regulatory.db
[    7.863128] usbcore: registered new interface driver btusb
[    7.864540] snd_hda_intel 0000:0b:00.1: Handle vga_switcheroo audio client
[    7.864543] snd_hda_intel 0000:0b:00.1: Force to non-snoop mode
[    7.864896] snd_hda_intel 0000:0d:00.4: enabling device (0000 -> 0002)
[    7.865048] Bluetooth: hci0: Bootloader revision 0.3 build 0 week 24 2017
[    7.867049] Bluetooth: hci0: Device revision is 1
[    7.867052] Bluetooth: hci0: Secure boot is enabled
[    7.867053] Bluetooth: hci0: OTP lock is enabled
[    7.867053] Bluetooth: hci0: API lock is enabled
[    7.867054] Bluetooth: hci0: Debug lock is disabled
[    7.867055] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    7.869516] Bluetooth: hci0: Found device firmware: intel/ibt-20-1-3.sfi
[    7.869531] Bluetooth: hci0: Boot Address: 0x24800
[    7.869532] Bluetooth: hci0: Firmware Version: 255-255.255
[    7.878253] Intel(R) Wireless WiFi driver for Linux
[    7.878283] iwlwifi 0000:05:00.0: enabling device (0000 -> 0002)
[    7.878797] snd_hda_intel 0000:0b:00.1: bound 0000:0b:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[    7.879810] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input8
[    7.879853] input: HDA ATI HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input9
[    7.879887] input: HDA ATI HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input10
[    7.879927] input: HDA ATI HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input11
[    7.879964] input: HDA ATI HDMI HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input12
[    7.880010] input: HDA ATI HDMI HDMI/DP,pcm=11 as /devices/pci0000:00/0000:00:03.1/0000:09:00.0/0000:0a:00.0/0000:0b:00.1/sound/card0/input13
[    7.881677] iwlwifi 0000:05:00.0: Detected crf-id 0x3617, cnv-id 0x100530 wfpm id 0x80000000
[    7.881684] iwlwifi 0000:05:00.0: PCI dev 2723/0084, rev=0x340, rfid=0x10a100
[    7.885183] iwlwifi 0000:05:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
[    7.885394] iwlwifi 0000:05:00.0: loaded firmware version 77.ad46c98b.0 cc-a0-77.ucode op_mode iwlmvm
[    7.903684] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC1220: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line
[    7.903688] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.903689] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[    7.903691] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[    7.903692] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[    7.903693] snd_hda_codec_realtek hdaudioC1D0:      Front Mic=0x19
[    7.903695] snd_hda_codec_realtek hdaudioC1D0:      Rear Mic=0x18
[    7.903696] snd_hda_codec_realtek hdaudioC1D0:      Line=0x1a
[    7.906166] intel_rapl_common: Found RAPL domain package
[    7.906168] intel_rapl_common: Found RAPL domain core
[    7.914981] input: HD-Audio Generic Front Mic as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input14
[    7.915025] input: HD-Audio Generic Rear Mic as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input15
[    7.915071] input: HD-Audio Generic Line as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input16
[    7.915120] input: HD-Audio Generic Line Out as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input17
[    7.915162] input: HD-Audio Generic Front Headphone as /devices/pci0000:00/0000:00:08.1/0000:0d:00.4/sound/card1/input18
[    7.959820] iwlwifi 0000:05:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[    7.959863] thermal thermal_zone3: failed to read out thermal zone (-61)
[    8.083718] iwlwifi 0000:05:00.0: Detected RF HR B3, rfid=0x10a100
[    8.148339] iwlwifi 0000:05:00.0: base HW address: 34:c9:3d:10:ec:49
[    8.690341] NET: Registered PF_ALG protocol family
[    8.698397] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    8.698399] Bluetooth: BNEP filters: protocol multicast
[    8.698401] Bluetooth: BNEP socket layer initialized
[    9.205127] Bluetooth: hci0: Waiting for firmware download to complete
[    9.206012] Bluetooth: hci0: Firmware loaded in 1305169 usecs
[    9.206048] Bluetooth: hci0: Waiting for device to boot
[    9.221014] Bluetooth: hci0: Device booted in 14628 usecs
[    9.221025] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[    9.221630] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-20-1-3.ddc
[    9.227017] Bluetooth: hci0: Applying Intel DDC parameters completed
[    9.230020] Bluetooth: hci0: Firmware revision 0.3 build 249 week 27 2023
[    9.236029] Bluetooth: hci0: HCI LE Coded PHY feature bit is set, but its usage is not supported.
[    9.406108] Bluetooth: MGMT ver 1.22
[    9.920745] block nvme0n1: No UUID available providing old NGUID
[   10.525736] Bluetooth: RFCOMM TTY layer initialized
[   10.525744] Bluetooth: RFCOMM socket layer initialized
[   10.525746] Bluetooth: RFCOMM ver 1.11

Last edited by berturion (2024-04-01 09:48:47)

Offline

#36 2024-04-01 10:48:23

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

@berturion is the issue still present in a kernel that contains https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6?

Offline

#37 2024-04-01 19:06:10

berturion
Member
Registered: 2018-06-19
Posts: 22

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

loqs wrote:

@berturion is the issue still present in a kernel that contains https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6?

Hi. I don't know how to test that. Is there a package somewhere?

My problem is also there with linux-lts so I doubt that it is kernel-related. But I can be wrong.

Offline

#38 2024-04-01 20:40:34

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

berturion wrote:

Hi. I don't know how to test that. Is there a package somewhere?

Yes in post #31.

berturion wrote:

My problem is also there with linux-lts so I doubt that it is kernel-related. But I can be wrong.

The commit causing the issue 63298d6e752fc0ec7f5093860af8bc9f047b30c8 was back ported to both 6.8.2 as  b53e5ef62fe9853648b4478bd6cb3aba970a6f1f and 6.6.23 as 0ce1229cbba6a3945ccc4e3162a81f97e21caa65.

Offline

#39 2024-04-02 06:02:09

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

There seems to be some confusion about this is topic "6.8.2.arch1-1 bluetooth connected not shown anymore in KDE desktop":

As the title suggests the bluetooth connection status is not shown correctly any more since "6.8.2.arch1-1", even though bluetooth works with my headset. This happens on different hardware (LG, Dell Inspiron, Dell XPS/15z), but identical software (newest ArchLinux with KDE desktop). And a "Authorization request for non-connected device!?" appears in the journal resp. systemctl status.

This is exactly what @Masardius describes in his comment.

The other issues "BUG: kernel NULL pointer dereference" etc. are different, need a different solution and may deserve a different topic.

I repeated now the git bisection provided by @loqs and got a different result: 299 is good, 301 is bad. That is why the provided fix did not solve my problem (and that of @Masardius).
@loqs: could you provide the missing 300 kernel? (I tried to do it myself, but did not know how to do this, even the initial "git bisect bad v6.8.2" produced an "unknown reference" using "https://github.com/archlinux/linux.git")

Offline

#40 2024-04-02 11:06:36

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

@loqs: could you provide the missing 300 kernel? (I tried to do it myself, but did not know how to do this, even the initial "git bisect bad v6.8.2" produced an "unknown reference" using "https://github.com/archlinux/linux.git")

$ git describe
v6.8.1-300-g81526f2920bf

linux-6.8.1.r300.g81526f2920bf-1-x86_64.pkg.tar.zst uploaded

Offline

#41 2024-04-02 18:58:02

berturion
Member
Registered: 2018-06-19
Posts: 22

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

The other issues "BUG: kernel NULL pointer dereference" etc. are different, need a different solution and may deserve a different topic.

I think you're right. I will search for an existing bug like mine and create a thread if I can't find one.

Offline

#42 2024-04-03 03:42:52

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

git bisected 300 is bad, 299 is good.

What is the corresponding commit id to 300 (so I can open a ticket at https://bugzilla.kernel.org)?

Thanks in advance!

Offline

#43 2024-04-03 04:44:39

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

$ git bisect bad
81526f2920bf8a03b670dbc2d45f35f204344d55 is the first bad commit
commit 81526f2920bf8a03b670dbc2d45f35f204344d55
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Wed Jan 31 11:24:19 2024 -0500

    Bluetooth: hci_event: Fix not indicating new connection for BIG Sync
    
    [ Upstream commit eeda1bf97bb500a901f7a9ee5615bad2160f2378 ]
    
    BIG Sync (aka. Broadcast sink) requires to inform that the device is
    connected when a data path is active otherwise userspace could attempt
    to free resources allocated to the device object while scanning.
    
    Fixes: 1d11d70d1f6b ("Bluetooth: ISO: Pass BIG encryption info through QoS")
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>

 net/bluetooth/hci_event.c | 21 ++++++++++++++-------
 net/bluetooth/mgmt.c      |  4 ++++
 2 files changed, 18 insertions(+), 7 deletions(-)
$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [03a22b591c5443ba269e8570c6fef411251fe1b8] Linux 6.8.2
git bisect bad 03a22b591c5443ba269e8570c6fef411251fe1b8
# status: waiting for good commit(s), bad commit known
# good: [8a8b2a057ed9684704792b5d4b333616769002c2] Linux 6.8.1
git bisect good 8a8b2a057ed9684704792b5d4b333616769002c2
# bad: [da2d94af7ba950b33ce7dfd326894460c5536988] drm: Don't treat 0 as -1 in drm_fixp2int_ceil
git bisect bad da2d94af7ba950b33ce7dfd326894460c5536988
# good: [116cc80f47b29edcba609ad92be1ad83d1cedcd0] arm64: dts: qcom: sm6115: drop pipe clock selection
git bisect good 116cc80f47b29edcba609ad92be1ad83d1cedcd0
# good: [57662cd437c052595711bc733574e6895e074ee5] gpiolib: Pass consumer device through to core in devm_fwnode_gpiod_get_index()
git bisect good 57662cd437c052595711bc733574e6895e074ee5
# bad: [b08bd8f02a24e2b82fece5ac51dc1c3d9aa6c404] Bluetooth: btusb: Fix memory leak
git bisect bad b08bd8f02a24e2b82fece5ac51dc1c3d9aa6c404
# good: [4a09d0236854360d0c33fec01d3c7d9703cca570] PCI: Make pci_dev_is_disconnected() helper public for other drivers
git bisect good 4a09d0236854360d0c33fec01d3c7d9703cca570
# good: [da0de50013c160f76b0d4c1869be25875f48015b] Bluetooth: mgmt: Remove leftover queuing of power_off work
git bisect good da0de50013c160f76b0d4c1869be25875f48015b
# bad: [b53e5ef62fe9853648b4478bd6cb3aba970a6f1f] Bluetooth: hci_core: Cancel request on command timeout
git bisect bad b53e5ef62fe9853648b4478bd6cb3aba970a6f1f
# good: [54db3630deff566224de6cfb0767d2d398e68ed5] Bluetooth: Remove BT_HS
git bisect good 54db3630deff566224de6cfb0767d2d398e68ed5
# bad: [d8c7785e8104359f139cdfa99e2511575c4d4823] Bluetooth: hci_qca: don't use IS_ERR_OR_NULL() with gpiod_get_optional()
git bisect bad d8c7785e8104359f139cdfa99e2511575c4d4823
# bad: [81526f2920bf8a03b670dbc2d45f35f204344d55] Bluetooth: hci_event: Fix not indicating new connection for BIG Sync
git bisect bad 81526f2920bf8a03b670dbc2d45f35f204344d55
# first bad commit: [81526f2920bf8a03b670dbc2d45f35f204344d55] Bluetooth: hci_event: Fix not indicating new connection for BIG Sync

Offline

#44 2024-04-03 10:42:56

wolfseifert
Member
Registered: 2024-03-28
Posts: 19

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

I made now an Arch Linux package build for 6.8.2.arch1-1 with this single commit "81526f2920bf8a03b670dbc2d45f35f204344d55" reverted (via a patch file). And its working! So this commit was not only the first "bad" commit, but also the only one (at least in this context).

So how should I continue now? Inform the author per email?
Create a ticket at https://bugzilla.kernel.org because it is an upstream commit?

Offline

#45 2024-04-03 10:47:49

jronald
Member
Registered: 2022-05-09
Posts: 74

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Maybe create a ticket, so that it can be tracked.

Offline

#46 2024-04-03 13:03:16

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

wolfseifert wrote:

So how should I continue now? Inform the author per email?
Create a ticket at https://bugzilla.kernel.org because it is an upstream commit?

Either the kernel bugzilla or reply to https://lore.kernel.org/linux-bluetooth … gmail.com/ instructions on how to reply in the link. If you use the bugzilla try to add the causal commits author to the CC list (only works if they have a bugzilla account) and tick the regression box. More details on reporting kernel bugs.

Last edited by loqs (2024-04-03 13:03:42)

Offline

#47 2024-04-03 19:57:05

berturion
Member
Registered: 2018-06-19
Posts: 22

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

loqs wrote:

6.8.2.arch2 with suggested fix https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6 applied and pkgrel incremented to 1.1:
https://drive.google.com/file/d/1AZlLmC … sp=sharing linux-6.8.2.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1PULB4h … sp=sharing linux-headers-6.8.2.arch2-1.1-x86_64.pkg.tar.zst

This version resolves my issue with the bluetooth.

Last edited by berturion (2024-04-03 19:57:23)

Offline

#48 2024-04-03 22:34:37

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

berturion wrote:
loqs wrote:

6.8.2.arch2 with suggested fix https://git.kernel.org/pub/scm/linux/ke … 58aa3974c6 applied and pkgrel incremented to 1.1:
https://drive.google.com/file/d/1AZlLmC … sp=sharing linux-6.8.2.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1PULB4h … sp=sharing linux-headers-6.8.2.arch2-1.1-x86_64.pkg.tar.zst

This version resolves my issue with the bluetooth.

The same fix is in linux 6.8.3.arch1-1/linux-lts 6.6.24-1.

Offline

#49 2024-04-04 01:19:57

SinoCiCi
Member
Registered: 2024-03-28
Posts: 7

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

Can anyone confirm that linux 6.8.3.arch1-1 solves the issue?

Offline

#50 2024-04-04 03:11:56

loqs
Member
Registered: 2014-03-06
Posts: 17,610

Re: [SOLVED] 6.8.2.arch1-1 bluetooth connected not shown anymore

SinoCiCi wrote:

Can anyone confirm that linux 6.8.3.arch1-1 solves the issue?

https://gitlab.archlinux.org/archlinux/ … ote_176619

Offline

Board footer

Powered by FluxBB