Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp761671qtx; Mon, 31 Oct 2022 13:15:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oa5oI/I4KwihwcweBK82aRyfjt+Ebxdhoy1zPyCVQoGo9iWQmuoH8PyDjLUSvRsajD6S5 X-Received: by 2002:a05:6402:1c88:b0:461:94a0:33df with SMTP id cy8-20020a0564021c8800b0046194a033dfmr15462996edb.0.1667247334523; Mon, 31 Oct 2022 13:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667247334; cv=none; d=google.com; s=arc-20160816; b=0tROH3t0Kcp5Ic8ybgr/6FY/WjJdIpGG6wy82imB+C58fJUbMkhZrTl3E3I1uNJ0Xg CxZuk1iI/f7rhZfHbZ7Bjol44V2FvDp03jlvM7GiHiIco/a9kgiuavEz6/5SN6kMZMEs 5y0XbFq+oAv9Ip2rjUwMXyg4L0mpcEmH7nVHehv5MdBnJd6RdfV77jdhBbFlsKsh0Jpy hPFlKhsOpmsezOudC0A+gXYCIHB+grme+nktBSW11sJoK9CWn4K0bILTG+EpbJeohNKb IO5oH6Hap1dnKExG/kMT44bnu44P5xJN+7EBmyOEtjfb72Xd71tYneWbwXyqTrWgU+9P LkHA== 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 :dkim-signature; bh=9IjJqGVTZabWCs/dedhzkbL8tJT9Ns177X7pv3XLhqY=; b=dao5eP1vQ8FQE4CVgLchgBQX7u0JhxeE4/6N/N+cLhObWwe6lHcs325QN6lFt3zbtW J+yRobQ4SJgh8oF1z5G+wM57MdY65MefMsYzO1OsapFhanKaSQeyOr12dixkQykLCZbt QFA9fuMqmxCWDXwxtMdmn/GCvkMY+OX1Sqe5eEYYgmmiR2NfeOlrFnnB0EstOkZErZVL lxQaNnHDiUdJ4m/BplRf7fzBXIU7Oup0JxSb171xjQ6CtzI25LbCrOHmOR1rwCS1GzRq tk+ERMF6610ntELw+zAsjrzj2WvfihcLwz2g/XdMmktUu46dcFDtS/MHgAugXXDYUPVO vPug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=UMDuuUpo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a056402254e00b0045154775089si9728355edb.625.2022.10.31.13.14.50; Mon, 31 Oct 2022 13:15:34 -0700 (PDT) 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; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=UMDuuUpo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbiJaULa (ORCPT + 99 others); Mon, 31 Oct 2022 16:11:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbiJaULO (ORCPT ); Mon, 31 Oct 2022 16:11:14 -0400 X-Greylist: delayed 400 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 31 Oct 2022 13:11:09 PDT Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AECA10544 for ; Mon, 31 Oct 2022 13:11:06 -0700 (PDT) Received: (wp-smtpd smtp.tlen.pl 4252 invoked from network); 31 Oct 2022 21:04:23 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1667246664; bh=9IjJqGVTZabWCs/dedhzkbL8tJT9Ns177X7pv3XLhqY=; h=To:From:Subject; b=UMDuuUpoDBDsEU1nTjnWs5CT29H3zJs+6wge7ka3kHhAaQp793SMLOTFZuiAO8i2/ iggz1KCL8u2Dr8PqmNTM7Iv4h4Yjs6hu6e5RdhpWQ5ZRUwRfSTQADujx8GMZbj2kb5 QzaRFwFDrGKENioyVvni2ef6tPr/hM91zNdS3kfk= Received: from aaew218.neoplus.adsl.tpnet.pl (HELO [192.168.1.22]) (mat.jonczyk@o2.pl@[83.4.126.218]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 31 Oct 2022 21:04:23 +0100 Message-ID: Date: Mon, 31 Oct 2022 21:04:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-GB To: Brian Gix , Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org, "linux-kernel@vger.kernel.org" , Marcel Holtmann , Johan Hedberg From: =?UTF-8?Q?Mateusz_Jo=c5=84czyk?= Subject: "Bluetooth: hci0: HCI_REQ-0xfcf0" errors in dmesg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-WP-MailID: 1ee182185c9470e7185e55275f5579e1 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000001 [gaIR] X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Hello, On 6.1.0-rc3, I have been seeing this error message in dmesg:         Bluetooth: hci0: HCI_REQ-0xfcf0 It is printed on every boot, resume from suspend and rfkill unblock of the Bluetooth device. The device seems to be functioning normally though (but I have done limited testing only). After some investigation, it turned out to be caused by         commit dd50a864ffae ("Bluetooth: Delete unreferenced hci_request code") which modified hci_req_add() in net/bluetooth/hci_request.c to always print an error message when that function is executed. I have added dump_stack() to hci_req_add() and got the following backtraces: On boot: [   18.487766] Bluetooth: hci0: RTL: fw version 0xab6b705c [   18.548951] Bluetooth: hci0: HCI_REQ-0xfcf0 [   18.548961] CPU: 3 PID: 108 Comm: kworker/u9:0 Not tainted 6.1.0-rc3unif4-00001-gb33a0948e932 #86 [   18.548965] Hardware name: HP HP Laptop 17-by0xxx/84CA, BIOS F.66 03/29/2022 [   18.548968] Workqueue: hci0 hci_power_on [bluetooth] [   18.549018] Call Trace: [   18.549020]  [   18.549022]  dump_stack_lvl+0x38/0x4d [   18.549030]  dump_stack+0x10/0x16 [   18.549035]  hci_req_add+0x47/0x70 [bluetooth] [   18.549093]  msft_set_filter_enable+0x59/0x90 [bluetooth] [   18.549147]  msft_do_open+0x131/0x220 [bluetooth] [   18.549198]  hci_dev_open_sync+0x646/0xc20 [bluetooth] [   18.549249]  hci_dev_do_open+0x2a/0x60 [bluetooth] [   18.549282]  hci_power_on+0x53/0x210 [bluetooth] [   18.549317]  process_one_work+0x21f/0x3f0 [   18.549323]  worker_thread+0x4a/0x3c0 [   18.549328]  ? process_one_work+0x3f0/0x3f0 [   18.549332]  kthread+0xff/0x130 [   18.549336]  ? kthread_complete_and_exit+0x20/0x20 [   18.549340]  ret_from_fork+0x22/0x30 [   18.549347]  [   21.165060] EXT4-fs (dm-7): mounted filesystem with ordered data mode. Quota mode: none. on rfkill unblock: [ 1671.040970] Bluetooth: hci0: HCI_REQ-0xfcf0 [ 1671.040992] CPU: 3 PID: 5006 Comm: kworker/u9:2 Not tainted 6.1.0-rc3unif4-00001-gb33a0948e932 #86 [ 1671.041005] Hardware name: HP HP Laptop 17-by0xxx/84CA, BIOS F.66 03/29/2022 [ 1671.041012] Workqueue: hci0 hci_cmd_sync_work [bluetooth] [ 1671.041194] Call Trace: [ 1671.041200]  [ 1671.041208]  dump_stack_lvl+0x38/0x4d [ 1671.041227]  dump_stack+0x10/0x16 [ 1671.041241]  hci_req_add+0x47/0x70 [bluetooth] [ 1671.041408]  msft_set_filter_enable+0x59/0x90 [bluetooth] [ 1671.041579]  msft_do_open+0x131/0x220 [bluetooth] [ 1671.041683]  hci_dev_open_sync+0x646/0xc20 [bluetooth] [ 1671.041787]  hci_set_powered_sync+0xd4/0x240 [bluetooth] [ 1671.041887]  set_powered_sync+0x20/0x60 [bluetooth] [ 1671.041975]  hci_cmd_sync_work+0xa8/0x150 [bluetooth] [ 1671.042079]  process_one_work+0x21f/0x3f0 [ 1671.042092]  worker_thread+0x4a/0x3c0 [ 1671.042102]  ? process_one_work+0x3f0/0x3f0 [ 1671.042111]  kthread+0xff/0x130 [ 1671.042119]  ? kthread_complete_and_exit+0x20/0x20 [ 1671.042128]  ret_from_fork+0x22/0x30 [ 1671.042142]  My hardware: HP laptop 17-by0001nw, device is a Realtek combo card: "Realtek RTL8822BE 802.11 ac 2×2 WiFi + Bluetooth 4.2 Combo Adapter (MU-MIMO supported)" I am ready to provide additional information and testing, if need be. Greetings, Mateusz Jończyk