Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6837643rwb; Mon, 5 Dec 2022 19:21:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf78xvUewew8wnC0j7+CZ3vn4p0yjprHVIobATy4J3tXWgwkHiPCnRtW6VI8Xb8t9JiR5yah X-Received: by 2002:a17:906:a259:b0:7ad:ccae:a30d with SMTP id bi25-20020a170906a25900b007adccaea30dmr58642313ejb.704.1670296865579; Mon, 05 Dec 2022 19:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670296865; cv=none; d=google.com; s=arc-20160816; b=OdVFcqntoBYumvJjd72kurY0xOCR0/+U89JAPAkPMIP6JjakoiDTL0fT74OxeuWd7K bQk5wloY9wfveyftDj1sq2HEvkn41zkT1oClo+OVyFLUUHTl43cF7viAyNcnLAYMh+Dx YDSuAcAIctO+AYyzBmzP+CeCtO2Hzq58ZvaM9OGXi6qGMjyOXY3sT1/l6km3aC0xmq4x d9Q34Tk+/Tywsb1Nlg6oQQRuzq7TbUgEKJAZ8OZOzURahQGekZToKfn8/apOHGc51reB Nl2dAmbrzfcClz4sdD1sCF9h1MNeJy9JDoccwYPcP7YSfwUbdvhG9aiVUsaT6Emp7rS6 yRIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:to :content-language:user-agent:mime-version:date:message-id; bh=D1AtBjfmrPBsK+MXuUQnO0zzFZj9tt8HdFIbcco6aNw=; b=biqHMdYNZYNHYkGPBsKLOWF2eCAB1qtEIroRbZL8MC+Njki8N68tIoFrh9bmTF+QtJ XzMILUAk2RAsUPpHZTcQ5HnuZiEbzBZZy+laTOXGxiMNaPm/dgoFbjMxQbvzjWvf7qg5 NNr7IvZ/LQ9IxBPfCVBq0D36x1Tp8XK0mQwqSOOZ6Y6Re+msXvQb0rtFiy7DbDzifY0I zjYjpapDDOae3BzY3W6efrakqLFhGBQwkkhANPz/CSSVezqkau05e+nlQJ3UYNvpSC7O xaNM1e8zoWO0SlrcrzpruuJU97IGclOiKLIv3wj6Bc9NwbRiwcoNlt7oNpIndeZhbq79 3igA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a17090658ca00b007be4dd9ef7csi14169377ejs.402.2022.12.05.19.20.31; Mon, 05 Dec 2022 19:21:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232976AbiLFDQq (ORCPT + 99 others); Mon, 5 Dec 2022 22:16:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233505AbiLFDQm (ORCPT ); Mon, 5 Dec 2022 22:16:42 -0500 X-Greylist: delayed 305 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 05 Dec 2022 19:16:40 PST Received: from net153.net (unknown [38.67.43.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1683025E9A for ; Mon, 5 Dec 2022 19:16:39 -0800 (PST) Received: from [IPV6:2001:470:b965:1:26a1:8f80:3e64:f9a1] (unknown [IPv6:2001:470:b965:1:26a1:8f80:3e64:f9a1]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by net153.net (Postfix) with ESMTPSA id 8BE88778 for ; Mon, 5 Dec 2022 21:11:31 -0600 (CST) Message-ID: Date: Mon, 5 Dec 2022 21:11:31 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Content-Language: en-US To: linux-bluetooth@vger.kernel.org From: Samuel Smith Subject: Needless logging with QCA WCN6855 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi, Not sure if this is the right place, but I've noticed excessive logging coming from the bluetooth stack while using the QCA WCN6855 combined bluetooth/wifi card. Using a bluetooth mouse results in a few messages per minute. Using wireless headphones results in upwards of 3 messages per second. The computer is a Lenovo T14 Amd Gen 2 (sku 20XK006BUS) Direct link here: https://tinyurl.com/5xrad7w5 The software is Debian Stable, with kernel versions of 5.18, 5.19, and 6.0. The excessive logging is in the the form of: [3400058.603040] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400058.603396] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400058.603916] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400059.000540] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400061.130513] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400083.158218] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400083.158622] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400083.159139] Bluetooth: hci0: ACL packet for unknown connection handle 3804 [3400083.623400] Bluetooth: hci0: ACL packet for unknown connection handle 3804 "Connection handle 3804" coincides with this commit (https://github.com/torvalds/linux/commit/c614ca3f7476934de54dd731e09d094ad822696c) from Oct 2018 where extra logic was added to hci_qca.c to handle the fact that QCA devices use ACL packets to transmit extra controller debugging info. The WCN6855 chipset does not use the UART interface but uses btusb.c. The logic from hci_qca.c was never backported for the USB interface though. I believe that is the problem. There are other manufactures doing similar within btusb.c, see btusb_recv_acl_mtk(). It also seems at one time QCA was disabling the extra logging via some extra commands, at least for the devices that use btqca.c: https://github.com/torvalds/linux/commit/83e81961ff7ef75f97756f316caea5aa6bcc19cc So because this is all QCA code, I'm not sure if I'm at liberty to provide a patch. For now, I've simply built the bluetooth stack with logging for "unknown connection handle" disabled (within hci_recv_frame() ). But could someone in the know perhaps forward this to any applicable maintainers? Feel free to ask me for any extra info if needed. Kind regards, Samuel Smith