Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp566591lqe; Sat, 6 Apr 2024 13:17:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlIpLNSaVZhNjOh8kXMLzl2pOkDhwwDV8bBs0OtAqk5YHaxgkCZFZ/WJGXfWLdj/ZemUEfIAcWtJwo9DwXgENjTWuolbUPSS/m/v4jvA== X-Google-Smtp-Source: AGHT+IH+qArVT6/LUx5/RPb2q91oXgYcpKU2emZmpvui4xwQ8XTf+rWw80IFGamyuVYf71k2zwMW X-Received: by 2002:a17:906:852:b0:a4e:5c23:f776 with SMTP id f18-20020a170906085200b00a4e5c23f776mr2992848ejd.37.1712434655953; Sat, 06 Apr 2024 13:17:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712434655; cv=pass; d=google.com; s=arc-20160816; b=eIrg475F5c7pDJNq+V+KjRpM1Kv4SSL94aPbNsFyvUNsuaDqFIgAeRqDyLOaaQsNVY YaMUwtfaLMufvtEykWZeIWox8sIomEkXrNjy8cPPSAJl1ns4JpqSuxMLymdjJe4/7IfQ y/cthLETmVOGJ7PJj7eqAryVvB352m83cjfR6vke1KK8xnlzruhsT/8r5L8oN5tLz/hu YZbHAq5//PzkAx9SbybaZWp2RzyJsn3TSJc96rRumZIvRwu/4nBs3mFOOpzGP+viLuRE LqOW0Fjz1RxovTXn+LWof9a5IoS6hMrhCGmk4f7EblDmtIr2jKGDdHx9JpivUgaudSjl 1UvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=hQeLDVheBaMFSgJf/H5SikpBDAnLqPHlFsV5EUCGQQs=; fh=g3dvIVH8aCbcxlDpPfw5gt8cYuq8+f44C8GeS2fPAI8=; b=PA2CANBKEgsscaqILw9HxljAHPAIwWZR1PBBlLdauP95IjiHJy9DGT2tV48qNoA/lh jmNj9OU8ttO9mnCBZ+Evm2LhLcgnPCRQqnD/Pkq8gEiZR8b7LY2dnu2STMtGeCxoXJWp t/2Yh8I9pH40+g0Zo2Tan733obHySMj/g1tpDHLxieyhnRUXmT0s9RDY6NQHUxc6+q8Z pr9GdmqShRT1YSFDXZnJKC3Zbp+lGD4qwia2a+D23qw8U4fPFsW49WIA13IFyYWWZVF8 ynojYIC7SesNt6DnQCku9wDvbAS/kj/+dzVUJAtxUK5BgCWlv1VWDIEakzAZFJeRtCcw jSVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@penguintechs.org header.s=google header.b=DnJ78VcD; arc=pass (i=1 spf=pass spfdomain=penguintechs.org dkim=pass dkdomain=penguintechs.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3315-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3315-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id us9-20020a170906bfc900b00a469ae2a011si1902454ejb.761.2024.04.06.13.17.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 13:17:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3315-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@penguintechs.org header.s=google header.b=DnJ78VcD; arc=pass (i=1 spf=pass spfdomain=penguintechs.org dkim=pass dkdomain=penguintechs.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3315-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3315-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 66DEA1F22EA0 for ; Sat, 6 Apr 2024 20:17:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6432550A62; Sat, 6 Apr 2024 20:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=penguintechs.org header.i=@penguintechs.org header.b="DnJ78VcD" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 794DF4DA06 for ; Sat, 6 Apr 2024 20:16:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712434624; cv=none; b=r/+khXoK59wzOWCV5Yx8OTKaqbn71wDUaHeYjTyS3Cs139iOs4Cr3nU6OjTsvUDcxYcN9ftx6kynTTkThubOUI6kEliME/gLSkKApVh0eX6dp/gaNbtAaIliUCY9Y24QfGP9F0sOw0kADz+wsxehyp3iSlYT8zcmpecHJCvciCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712434624; c=relaxed/simple; bh=J6CGsUoQN6wQuB45FSPXOcVVwwRbiVvEU1k7GXq2LC8=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type; b=SZKBa/TmvOIxpkPvgq1Fl3QfiZNaMvOBx2qDos/ckHyMYDcYcVank0fJsPhF8Q++XkCYloeCMlXUsp7jvmXXY767Qb4gpdtpw9QfWAFCotIaeA3HrapeRJSXYl4aQ5CMYLtj8QiH2lcgU02c/GY8EwttASOWB/0M4iEg5hzOBa8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=penguintechs.org; spf=pass smtp.mailfrom=penguintechs.org; dkim=pass (1024-bit key) header.d=penguintechs.org header.i=@penguintechs.org header.b=DnJ78VcD; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=penguintechs.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=penguintechs.org Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ed01c63657so1415960b3a.2 for ; Sat, 06 Apr 2024 13:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=penguintechs.org; s=google; t=1712434616; x=1713039416; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=hQeLDVheBaMFSgJf/H5SikpBDAnLqPHlFsV5EUCGQQs=; b=DnJ78VcDVBQ+1RQjIZwW6/g9tA78ylBD5auqEnccOi45h4d/8AR45cB4wbFqCrCU+W YGc2wnUoQ59Q+iVPlsQe3Afm2UJg/NgLo4qdU1/jJpt2xE54PRu55oMCuxi3gIIORDPX xP5yd4P5CbPTtxuQsnvednf5peUz9nwuffNzw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712434616; x=1713039416; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hQeLDVheBaMFSgJf/H5SikpBDAnLqPHlFsV5EUCGQQs=; b=aWsavnSOIYFOt9D0WEQ0OtTF3q6J1cMgV8WzD+j3YQIfWx3JtzNQ+G1BWfF+YLK50s zER1ky2rWeHUAG5oZ9s3TFRnT/St9xbDqv/iPH2M9GbYTgcwYmu7mkndg4NKP+5tuZbf jG/jhfkxTkULtrnNnazj4jnvQqp/15YkCil7TLyWDZV3Dlof3qyXipG9ibjL2BYHS2IH Y4Zluq5z6MpAmS3lq1SSfl4yh4r8zkFGdRg5vIfdkuOF6/AiMI9eGUwV82wkeyjhohe6 fzkXQKwrKdJGGwbWMOUdqLTnL9N8+kF3vo/q9Cc3fL1WBd9CznjMGigPkE3a7SBsCDne 4Zug== X-Forwarded-Encrypted: i=1; AJvYcCXePpU2dTOUGLEudSGgj571iUrVlrpd1MV5cgh/AEGpLZzNjifDPV1qgEG/akNQ8foeHOiW97WKCn8yorIc6wUd9aXUERldTLFYRktT+RPI X-Gm-Message-State: AOJu0Yw6qa1oBxbooEC/G/b1nWreBfdv2IE9+aXVbRkrCbKquiwcSxkC RIZDIKFGJtvvkghzeIUseD0M1bbplbjnHDKvmM1PlwTE9zHCfAGDBcYPHZ5rINeKZdmOJ79kfm/ 7PQ== X-Received: by 2002:a05:6a21:3e0d:b0:1a7:34c:185d with SMTP id bk13-20020a056a213e0d00b001a7034c185dmr4130753pzc.59.1712434615640; Sat, 06 Apr 2024 13:16:55 -0700 (PDT) Received: from [172.16.102.235] (c-98-45-34-39.hsd1.ca.comcast.net. [98.45.34.39]) by smtp.gmail.com with ESMTPSA id u1-20020a170902e5c100b001e2a42a2e34sm3781883plf.65.2024.04.06.13.16.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 06 Apr 2024 13:16:54 -0700 (PDT) Message-ID: <31bb6e18-ecee-49b3-87d7-50ab53e07447@penguintechs.org> Date: Sat, 6 Apr 2024 13:16:53 -0700 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: QCA6390 bluetooth doesn't work after warm boot or disable/reenable From: Wren Turkal To: ath11k@lists.infradead.org, linux-bluetooth@vger.kernel.org References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sorry for the double send on the original message. I am still hoping to get some help. I have added additional info below. On 4/4/24 12:14 PM, Wren Turkal wrote: > Hey there ath11k/bluetooth folks, > > I am having a pretty major problem with QCA6930 for some time (maybe a > year or two). I have this bluetooth device: > > 72:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc QCA6390 > Wireless Network Adapter > > This device appears to be driven by the ath11k module and others. I hope > I am pinging the right lists. > > I am using Fedora Rawhide. Fully updated yesterday. My uname reports this: > > Linux braindead.localdomain > 6.9.0-0.rc2.20240402git026e680b0a08.24.fc41.x86_64 #1 SMP > PREEMPT_DYNAMIC Tue Apr  2 17:51:18 UTC 2024 x86_64 GNU/Linux Updated today. Here's the new uname: Linux braindead.localdomain 6.9.0-0.rc2.20240405git8cb4a9a82b21.27.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 5 16:48:07 UTC 2024 x86_64 GNU/Linux I also noticed a new version of bluez. Here is the RPM package version: bluez-5.73-3.fc41.x86_64 > My main bluetooth device is  a Logitech MX 3 Mac mouse that uses > bluetooth. When bluetooth fails, so does the mouse. I have power cycle > my laptop when that happens. I'd love to help find a fix for this. > > The problem is that I cannot disable and re-enable the bluetooth on my > system. Bluetooth also doesn't work after a warm boot. I have to power > cycle my laptop to recover bluetooth funcitonality. I have tried the > following: > > * logging into KDE Plasma (bluetooth stops working) > * logging into GNOME (works on cold boot, fails on warm boot) I did notice that the mouse seems to work in Plasma until a few sec after I see the background image appears. I suspect that Plasma is disabling and reenabling the bluetooth where Gnome does not do that. > After logging into GNOME during a cold boot, I have also done "systemctl > restart bluetooth.service". I get these journal logs during the stop; > > ➜  bt_kernel_bug cat journal-stop-bluetooth-service.log > Apr 04 10:14:41 braindead.localdomain NetworkManager[1120]: > [1712250881.7060] device (F0:5C:77:F2:60:FC): state change: disconnected > -> unmanaged (reason 'removed', sys-iface-state: 'removed') > Apr 04 10:14:41 braindead.localdomain systemd[1]: Starting > systemd-rfkill.service - Load/Save RF Kill Switch Status... > Apr 04 10:14:41 braindead.localdomain systemd[1]: Started > systemd-rfkill.service - Load/Save RF Kill Switch Status. > Apr 04 10:14:41 braindead.localdomain audit[1]: SERVICE_START pid=1 > uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > Apr 04 10:14:46 braindead.localdomain systemd[1]: > systemd-rfkill.service: Deactivated successfully. > Apr 04 10:14:46 braindead.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 > auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > > I get these journal logs during start: > > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: setting > up ROME/QCA6390 > Apr 04 10:15:05 braindead.localdomain systemd[1]: Starting > systemd-rfkill.service - Load/Save RF Kill Switch Status... > Apr 04 10:15:05 braindead.localdomain systemd[1]: Started > systemd-rfkill.service - Load/Save RF Kill Switch Status. > Apr 04 10:15:05 braindead.localdomain audit[1]: SERVICE_START pid=1 > uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA > Product ID   :0x00000010 > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA SOC > Version  :0x400a0200 > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA ROM > Version  :0x00000200 > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA Patch > Version:0x00003ac0 > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA > controller version 0x02000200 > Apr 04 10:15:05 braindead.localdomain kernel: Bluetooth: hci0: QCA > Downloading qca/htbtfw20.tlv > Apr 04 10:15:06 braindead.localdomain kernel: Bluetooth: hci0: QCA > Failed to send TLV segment (-110) > Apr 04 10:15:06 braindead.localdomain kernel: Bluetooth: hci0: QCA > Failed to download patch (-110) > Apr 04 10:15:06 braindead.localdomain kernel: Bluetooth: hci0: Retry BT > power ON:0 > Apr 04 10:15:08 braindead.localdomain kernel: Bluetooth: hci0: command > 0xfc00 tx timeout > Apr 04 10:15:08 braindead.localdomain kernel: Bluetooth: hci0: Reading > QCA version information failed (-110) > Apr 04 10:15:08 braindead.localdomain kernel: Bluetooth: hci0: Retry BT > power ON:1 > Apr 04 10:15:10 braindead.localdomain systemd[1]: > systemd-rfkill.service: Deactivated successfully. > Apr 04 10:15:10 braindead.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 > auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > Apr 04 10:15:10 braindead.localdomain kernel: Bluetooth: hci0: command > 0xfc00 tx timeout > Apr 04 10:15:10 braindead.localdomain kernel: Bluetooth: hci0: Reading > QCA version information failed (-110) > Apr 04 10:15:10 braindead.localdomain kernel: Bluetooth: hci0: Retry BT > power ON:2 > Apr 04 10:15:13 braindead.localdomain bluetoothd[986]: Failed to set > mode: Authentication Failed (0x05) > Apr 04 10:15:13 braindead.localdomain kernel: Bluetooth: hci0: command > 0xfc00 tx timeout > Apr 04 10:15:13 braindead.localdomain kernel: Bluetooth: hci0: Reading > QCA version information failed (-110) > Apr 04 10:15:15 braindead.localdomain chronyd[1065]: Selected source > 204.17.205.8 (2.fedora.pool.ntp.org) > Apr 04 10:15:22 braindead.localdomain systemd[1687]: Created slice > background.slice - User Background Tasks Slice. > Apr 04 10:15:22 braindead.localdomain systemd[1687]: Starting > systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and > Directories... > Apr 04 10:15:22 braindead.localdomain systemd[1687]: Finished > systemd-tmpfiles-clean.service - Cleanup of User's Temporary Files and > Directories. > Apr 04 10:15:38 braindead.localdomain audit: BPF prog-id=86 op=LOAD > Apr 04 10:15:38 braindead.localdomain systemd[1]: Starting > plocate-updatedb.service - Update the plocate database... > Apr 04 10:15:41 braindead.localdomain systemd[1687]: Started > vte-spawn-21527424-cb2d-479f-af17-22251e2b37a0.scope - VTE child process > 5144 launched by gnome-terminal-server process 4668. > Apr 04 10:15:53 braindead.localdomain systemd[1]: > plocate-updatedb.service: Deactivated successfully. > Apr 04 10:15:53 braindead.localdomain systemd[1]: Finished > plocate-updatedb.service - Update the plocate database. > Apr 04 10:15:53 braindead.localdomain systemd[1]: > plocate-updatedb.service: Consumed 6.802s CPU time. > Apr 04 10:15:53 braindead.localdomain audit[1]: SERVICE_START pid=1 > uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=plocate-updatedb comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > Apr 04 10:15:53 braindead.localdomain audit[1]: SERVICE_STOP pid=1 uid=0 > auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 > msg='unit=plocate-updatedb comm="systemd" exe="/usr/lib/systemd/systemd" > hostname=? addr=? terminal=? res=success' > Apr 04 10:15:54 braindead.localdomain audit: BPF prog-id=86 op=UNLOAD > Apr 04 10:16:13 braindead.localdomain baloo_file_extractor[5251]: > kf.idletime: Could not find any system poller plugin > Apr 04 10:16:13 braindead.localdomain baloo_file_extractor[5251]: > qt.core.qobject.connect: QObject::connect(KAbstractIdleTimePoller, > KIdleTime): invalid nullptr parameter > Apr 04 10:16:13 braindead.localdomain baloo_file_extractor[5251]: > qt.core.qobject.connect: QObject::connect(KAbstractIdleTimePoller, > KIdleTime): invalid nullptr parameter > > There's a bunch of errors in those logs starting with these two > seemingly important lines: > > Apr 04 10:15:06 braindead.localdomain kernel: Bluetooth: hci0: QCA > Failed to send TLV segment (-110) > Apr 04 10:15:06 braindead.localdomain kernel: Bluetooth: hci0: QCA > Failed to download patch (-110) Logs are mostly unchanges when restarting the bluetooth service after a cold boot with the bluetooth originally working. > FWIW, I get similar logs after logging into KDE Plasma. I also get > similar logs after a warm boot. > > This appears to be some kind of bug in the initialization of the > hardware. Is there any additional information I can provide to help > troubleshoot this problem. I will also say that the bluetooth appears to work throught a suspend/resume cycle as long as I don't restart the bluetooth service. Oh, and my laptop is a Dell 9310 if that helps. Is there any other info I could collect that might be useful? I'm pretty new to troubleshooting a problem like this and would be happy to have any advice anyone might want to share. Thanks, wt -- You're more amazing than you think!