Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp91514rdb; Thu, 5 Oct 2023 18:23:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/CKs79sIij6RIfVfOX5AAYZiNvTLXb/6nkGwN1XZLPO7FCkmNQAsHT8hrXsPcl3kOtthM X-Received: by 2002:a0d:dc81:0:b0:589:e7c1:96f2 with SMTP id f123-20020a0ddc81000000b00589e7c196f2mr7492724ywe.46.1696555412672; Thu, 05 Oct 2023 18:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696555412; cv=none; d=google.com; s=arc-20160816; b=W2xHMh5lnwkKYy02nlUWDlJM6ncEGpIj2lXlf1izPxosQGnz6PDrlcCMPmNLbJJCW3 9hSE1KKG46ypl/sOH0f3LOdJ/5z1IehPULkzFmNHC64HEQXckcGjMlFZd94iIVqyd6zL vs76ml9sICX+jV9fTXpiEX8AM7lso+OnG0B4MiAlnY090Rwhft6sLB8/0JQE+lZdGfdF NXaUX2ALlRBgYj7ri4EVcNkgx3rti8XJBUb1eZJpcoeVRQ2Jkr2TTTpxioFXDTMUael2 6Zo1/+9exU2wJm+BS+RLIscDAmO2aNyaOa+leqnf93822yk5q8HDi0FobICd5isQa03E XUBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=0+tIbTTBvm9K4tBasixio0INgSbYdnQQdtTuHOQ8DEU=; fh=JlylURMdnKh8476NtmTY18Wb8+B/faoSE8/2yMMgFEc=; b=Mbcq+sOutG0DfCQJ5vqDBeYGE8KWAyDVY3RLpkSkgIJDqAsqXeVzH48JcnJwdWs99U 9ECx5PvLF2gTU90sR4JqcKMPKnbuoa5lRudiIgSL0mnfxxrwnYYDoCJsmQdNaafo1W4u vhu0/0/8H/vbJVVnua8yZV1nx70xwta+A6DpvMF1xzOfa8YgGkYNJRc2TSy0hIw3TIMU 7re5VOHITta4gx8ZOfO7D3Uou0pwHvuicF39ZZUf1q55keIXQTvzcdmezgaIq8ZkCcDg Zg34Gp3PkHV4HWUab1OHI3wTFBqLPTITGzy8GdnFa41Ye4jLcRq9WhVbcKh4g7fJloau j6wg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id z4-20020a633304000000b00585a16c102dsi2545166pgz.39.2023.10.05.18.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 18:23:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1267382E7508; Thu, 5 Oct 2023 18:23:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjJFBX1 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Oct 2023 21:23:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229606AbjJFBX0 (ORCPT ); Thu, 5 Oct 2023 21:23:26 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E1DDE; Thu, 5 Oct 2023 18:23:22 -0700 (PDT) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3961MSNK01139866, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.92/5.92) with ESMTPS id 3961MSNK01139866 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Oct 2023 09:22:28 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 6 Oct 2023 09:22:29 +0800 Received: from RTEXMBS03.realtek.com.tw (172.21.6.96) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 6 Oct 2023 09:22:28 +0800 Received: from RTEXMBS03.realtek.com.tw ([fe80::5510:ad08:5390:1ed3]) by RTEXMBS03.realtek.com.tw ([fe80::5510:ad08:5390:1ed3%2]) with mapi id 15.01.2375.007; Fri, 6 Oct 2023 09:22:28 +0800 From: Max Chou To: "Kirill A. Shutemov" CC: Bagas Sanjaya , Hilda Wu , "alex_lu@realsil.com.cn" , Luiz Augusto von Dentz , Marcel Holtmann , "Johan Hedberg" , Juerg Haefliger , Linux Bluetooth , Thorsten Leemhuis , Linux Regressions , Linux Kernel Mailing List Subject: RE: Regression: devcoredump patch broke Realtek usb bluetooth adapter Thread-Topic: Regression: devcoredump patch broke Realtek usb bluetooth adapter Thread-Index: AQHZ9iZZqIk9cnxrEkOIPrwHFnXgfLA4N/0AgAA1ZDCAABycgIAAkrXQgAAclfD//8ULgIAC/Ddg Date: Fri, 6 Oct 2023 01:22:28 +0000 Message-ID: <732012844f544d0daf790434025c8fb3@realtek.com> References: <20231003182038.k57nirtt4sonvt7c@box.shutemov.name> <20231004044947.vgegwvxxindkjo7g@box.shutemov.name> <7507ad6c8a964b179bf2b3318104a124@realtek.com> <20231004114609.dca6ebtmx37fsx5l@box.shutemov.name> In-Reply-To: <20231004114609.dca6ebtmx37fsx5l@box.shutemov.name> Accept-Language: zh-TW, en-US Content-Language: zh-TW x-originating-ip: [172.21.132.197] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham 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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 18:23:31 -0700 (PDT) Hi! Realtek will send a patch to fix this issue. BRs, Max > -----Original Message----- > From: Kirill A. Shutemov > Sent: Wednesday, October 4, 2023 7:46 PM > To: Max Chou > Cc: Bagas Sanjaya ; Hilda Wu > ; alex_lu@realsil.com.cn; Luiz Augusto von Dentz > ; Marcel Holtmann ; > Johan Hedberg ; Juerg Haefliger > ; Linux Bluetooth > ; Thorsten Leemhuis ; > Linux Regressions ; Linux Kernel Mailing List > > Subject: Re: Regression: devcoredump patch broke Realtek usb bluetooth > adapter > > > External mail. > > > > On Wed, Oct 04, 2023 at 07:28:45AM +0000, Max Chou wrote: > > Hi! Kirill, > > I guess the root cause is as below. > > === > > static int btrtl_register_devcoredump_support(struct hci_dev *hdev) { > > int err; > > > > err = hci_devcd_register(hdev, btrtl_coredump, btrtl_dmp_hdr, > > NULL); > > > > return err; > > } > > === > > If CONFIG_DEV_COREDUMP is not enabled, it would return -EOPNOTSUPP > for hci_devcd_register(). > > Unfortunately, btrtl_register_devcoredump_support() will return it. > > Finally, -EOPNOSTUPP will be returned for btrtl_setup_realtek(). > > > > Could you have the following workaround for the root cause checked? > > Please share dmesg as well. Thanks, > > Yes. It works and I see > > [ 3.640539] Bluetooth: hci0: RTL: btrtl_register_devcoredump_support(): > err = -95 > > in dmesg. -EOPNOTSUPP indeed. > > -- > Kiryl Shutsemau / Kirill A. Shutemov