Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2543962rdb; Wed, 4 Oct 2023 04:46:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoHZWLqa/xHxH8EcOtoR/1jNftCx9a47tLg1Ejny+WYH6JX1UBV9lm/ZmXNxj7i+BVZxUi X-Received: by 2002:a05:6808:2097:b0:3a7:612:f62b with SMTP id s23-20020a056808209700b003a70612f62bmr2788201oiw.25.1696419987877; Wed, 04 Oct 2023 04:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696419987; cv=none; d=google.com; s=arc-20160816; b=RSrE/2s3apkMxKLAYTqZt7kUXUeaV41ZSYPv4bKiHS/qK86aEdGRfMm0wc11jfFtTr TFI+Iuj1qcYhLsV2l2X5xKBOqh/U/kYEJYpbof1idLN6pP+Z6WjunjhxJENGFa151HeC 49J6hpCrF3odSHBG3ZNgbnWQVfv+CLd1jU7ao2K0uUi2jKBJG+Vyjsh9a/PqTBzeQxKT SEkIS+h+q3jYDclZnGOGB1dqx1q02FrdMlo0l4Vq/qmyB7UlF20AvvvwoOMteeQwPbmT o2AITGHV2vC3zpdUu7rjeMCEDOljrT5vyfp+VONchWk2ON66psP8syThMXjcnWU5iEP9 HY9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=Q/KtTjvMil+v8KL+aP+mJR97Myi1BBiXbwWlZPHU1Nk=; fh=DpOdvPmni6P4wZL33XEdgiZ/71APVAsIRDdgj6LNiYs=; b=u3B6s0NUs9zrhjEvGsnzhBqewgwAjgI0YsdzQA+oLbv7KlXLcOMvZwG/Rrm++nmalG Azg6Bn0UnU9U6Yg5sUJcQq+JpYvPEikQ/7/gC2IETH4dsI41w7UQQd3OW0ozLQPoW612 7q1P15ea3APEfREbk1qegvZRqrZ0F/Q6eCYxvcRIdMXwymRQFZeZAE7g9COJZlSU4l1q Dl2Ep16nHPn0YuEN3A6vjmwd3JgIat3qWywtll0eegFPb1moPwA3slGrd1mkRpSkIKTd tUCMZNi3GtKBQ0pVv7D4MD2r0yqpjzQ2dJU7HagEyM/pkdKPNgxNZo4JYLKrTEP+e5tv SFQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=WQU7IJa8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eFnwXzXm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g28-20020a63565c000000b0056a1ea34f45si3547671pgm.670.2023.10.04.04.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov.name header.s=fm1 header.b=WQU7IJa8; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=eFnwXzXm; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 574878114D3D; Wed, 4 Oct 2023 04:46:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232919AbjJDLqW (ORCPT + 99 others); Wed, 4 Oct 2023 07:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbjJDLqV (ORCPT ); Wed, 4 Oct 2023 07:46:21 -0400 Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1191A1; Wed, 4 Oct 2023 04:46:18 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 8ECAF32009AF; Wed, 4 Oct 2023 07:46:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 04 Oct 2023 07:46:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov.name; h=cc:cc:content-type:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1696419975; x= 1696506375; bh=Q/KtTjvMil+v8KL+aP+mJR97Myi1BBiXbwWlZPHU1Nk=; b=W QU7IJa8O83F6rFW5rMKN2xMNCNAO1E7kUjaswcY+1o/OLZI1+fUzPCt2QpdcBQNy 133NAH7ERLxK6zxMxRSIyhuYHevx1B5hqmgCxC8fcpHvonn1WZLjG6pg6G0VqWLV VxjQG8vCnyaXwDHSxn4yH0ih/7v8GErRNK3gkQ+qHwrFEibMWTZoIE6YKW/+dQiX ec1wbiu2/9/bjopMAJlM5gysJwhmooAwCzzRrhTP9ztCFzZvnC5FJmQR0PeJB84m iWme/Bil+ufrmwcyJiAzvpsoaY+MRdqxeGix8n4LhFBH6jIEi3HjBunYm+rAqBPr 7J+R58NuSauCqFvmm4muw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696419975; x=1696506375; bh=Q/KtTjvMil+v8 KL+aP+mJR97Myi1BBiXbwWlZPHU1Nk=; b=eFnwXzXm1yTdESHDZdKWoRIe9KrRJ IgPDpJaykVDGIUCjSwXnP5pdlL1NxvdPahaHo+ySa1sbe1nBQX2k9J7fT/sOks5F u3czjoFrLfJ9GdLxaGo5swCw3e4WBQthLLlAD+GgYpkW+ueCmXm4enGlHsyY6Zkk UPvmddDgMESAntvoytwnuqEDVuQeOWO4X67YhnkXh/SkQGDHKAVvBrthcKzmbjg4 /jakHeX1HZw7duKvycYugS39KGwFxJsUM7pIi/m0RskCdp1yZjH6Mj6ksqV4KcZW X6XR5o2Im49KqMGZ6orpCDsjdgjduJgKkFMgGo33ZhghmGsPi5GhaK+pA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgedvgdegvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttddttddttddvnecuhfhrohhmpedfmfhirhhi lhhlucetrdcuufhhuhhtvghmohhvfdcuoehkihhrihhllhesshhhuhhtvghmohhvrdhnrg hmvgeqnecuggftrfgrthhtvghrnhephfeigefhtdefhedtfedthefghedutddvueehtedt tdehjeeukeejgeeuiedvkedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepkhhirhhilhhlsehshhhuthgvmhhovhdrnhgrmhgv X-ME-Proxy: Feedback-ID: ie3994620:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Oct 2023 07:46:13 -0400 (EDT) Received: by box.shutemov.name (Postfix, from userid 1000) id C8BD710989F; Wed, 4 Oct 2023 14:46:09 +0300 (+03) Date: Wed, 4 Oct 2023 14:46:09 +0300 From: "Kirill A. Shutemov" 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 Message-ID: <20231004114609.dca6ebtmx37fsx5l@box.shutemov.name> References: <20231003182038.k57nirtt4sonvt7c@box.shutemov.name> <20231004044947.vgegwvxxindkjo7g@box.shutemov.name> <7507ad6c8a964b179bf2b3318104a124@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7507ad6c8a964b179bf2b3318104a124@realtek.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:46:21 -0700 (PDT) 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