Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp13911lqr; Tue, 4 Jun 2024 18:50:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSQta3/lgUhGv2I4T/0jpr2gWjJF4/r2IUh0e9zARNVMqVeIeq2nr5Ue2I+EMyWQALJE9BBEhA1pwl9nsPVZ67UkP+Vvf54WlIioqRXA== X-Google-Smtp-Source: AGHT+IEY6JXNvgzLPFlyN0otwVNKy21ZqTT+6ksiao9RIxhO+paWubZw+0mtLdVzvWrgRUoaKFMy X-Received: by 2002:a05:6358:4419:b0:196:c46b:de62 with SMTP id e5c5f4694b2df-19c6c7aec83mr141240655d.18.1717552239164; Tue, 04 Jun 2024 18:50:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717552239; cv=pass; d=google.com; s=arc-20160816; b=ZeX3YDE/ZKHzAqQDlez7bzebce4Spw8uMVYILu/FSZHNifXpgIVczAa8Ng/dX4Jfaw +01kHuwONPnUD0nWPg1sagaK8zi16xFEbA9TLNo54O/bAN1aw9xrKsTzqImRHofCPA7e J+kgl3bV5iyzUzQyy85VH6YZWGs18shW2HLtIz9Zb09uNZoMplaehnOJ3BzMWYepsaGH JcxbbMyegFWVRcaAMzUX/vSr+KwVCvai6JxvVSvfLDozsCz3kJpMu1JFkSH8ka1JRVqm LyMOqOs24v+ePWyEydFgPMlN6nSF+SyKqwRLtWCtkWl/ONGSfjBQ/jEW5AYsmNEPqeMR ITpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=WW1ZNac0TFlG7g1kL0NU0w4KXCa2jpQ7zO7pcZhQA4A=; fh=YVpF29/F1nOqKPlqvNBCEpGftlaDT9FCBi3pLTf8n10=; b=CQHTc81rgPBDwlaXefAvH0agoIRpslWSg7RiuTuMCC3HlXcfuAY47EDaLUocVuH4tW 45M1uvTRwZ/SxEaSaP2OGOqB5wqtHgahQL8pgRa/EQA69/KRd09ss1exVKKilRgGmrWY PYlCF9oWY7TGfrfFF5KLYUWVuJwlrc5bBuia8vZ2IErJOk4At8rsvpygjGx/QazYnL/W LL1kHqZSu7rmkFv67KpoAUC5IQJAxZrTyP5rdO9CM0uYO6iS/JgdKS/B6aJQOBLQi1qa KMg34wnu4chFjdHfKuB9dDf8BwVjNeFWet//k8xah7dIZXpQg6FT6Xqn24X5zfu7nBgx qUDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Hxkyx8sL; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40c7d3si9506295a12.542.2024.06.04.18.50.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 18:50:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=Hxkyx8sL; arc=pass (i=1 spf=pass spfdomain=163.com dkim=pass dkdomain=163.com dmarc=pass fromdomain=163.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5125-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3D783B255BF for ; Wed, 5 Jun 2024 01:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8C7455774; Wed, 5 Jun 2024 01:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="Hxkyx8sL" X-Original-To: linux-bluetooth@vger.kernel.org Received: from m15.mail.163.com (m15.mail.163.com [45.254.50.220]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DA7D21EA90; Wed, 5 Jun 2024 01:50:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.254.50.220 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717552228; cv=none; b=QmhVcWrt/tCkQGTOll7Y2GIfrswtCb6FGpdHfkQYBcUeBBpRntdCNOgxNL5kmgpEmPjqMtAHBLGM01UeHB5A+R+zPZpas/ezkhh2bs5tVflSRvY3MSLHGWhIylRYrpWz+y7Tv5/eWEFYvGQ2Yhzu3GItPd72lUpoKxjcpf30Cnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717552228; c=relaxed/simple; bh=wiYlHVeG4AaZZJLXAG6ZRjDlQz1eZ6PuZbqVvypnGE8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=JE6l4p33GQUgel+T0d5scQ1saiKXY7O5Znqj7FFZF3bnj/s+eF2VzTHgJvJOjfhI4z88+96e8XpJQaFQjScYXKHak/Qa2umLGTJpC0Gxe4bQcOziagb0hGmvEUC58yDbdQCDcRzQfje2s8Dw+qT8/Ihc9hOYSQxvBCDSjQRbcAA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=Hxkyx8sL; arc=none smtp.client-ip=45.254.50.220 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From: Content-Type; bh=WW1ZNac0TFlG7g1kL0NU0w4KXCa2jpQ7zO7pcZhQA4A=; b=Hxkyx8sLiJ0I8H4qYtQtVCgkjTga566eY0InrKyplNDhH8xUc0TxOdMFST+f/l SZk9nY0RmeoX0HNkMNqcYrY9/XcuOk2DUImYYW0WMMVXWnqJHuQzoJEUZXdnfTGq 5AsGy2YaT+Uprq2pCruDFCHE3CjZv55dAlVJqLhGkGBI8= Received: from [192.168.1.25] (unknown [183.195.6.89]) by gzga-smtp-mta-g0-4 (Coremail) with SMTP id _____wD3X40sxF9mnxd5HA--.11617S2; Wed, 05 Jun 2024 09:49:33 +0800 (CST) Message-ID: <0618805b-2f7a-473d-b9fb-aea39a1ef659@163.com> Date: Wed, 5 Jun 2024 09:49:32 +0800 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: [PATCH v2] Bluetooth: qca: Fix BT enable failure again for QCA6390 after warm reboot To: Krzysztof Kozlowski , Zijun Hu , luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org Cc: linux-bluetooth@vger.kernel.org, wt@penguintechs.org, regressions@lists.linux.dev, pmenzel@molgen.mpg.de, stable@vger.kernel.org References: <1715866294-1549-1-git-send-email-quic_zijuhu@quicinc.com> <7927abbe-3395-4a53-9eed-7b4204d57df5@linaro.org> <29333872-4ff2-4f4e-8166-4c847c7605c1@163.com> <5df56d58-309a-4ff1-9a41-818a3f114bbb@linaro.org> Content-Language: en-US From: Lk Sii In-Reply-To: <5df56d58-309a-4ff1-9a41-818a3f114bbb@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CM-TRANSID:_____wD3X40sxF9mnxd5HA--.11617S2 X-Coremail-Antispam: 1Uf129KBjvJXoW3Jw1rXw45WF18Kr1DJw4rAFb_yoW7Zr45pF WUGF1DtF4Utr1Fkr10yw1IgFyYvwnIkF18Wr1DGrW5Ja98ZF95ArWxKr45uF98urZ7Ww1j va1DX3sF9r90kaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jxl1kUUUUU= X-CM-SenderInfo: 5onb2xrl6rljoofrz/1tbiExH0NWXAlduPwAAAsn On 2024/6/4 23:18, Krzysztof Kozlowski wrote: > On 04/06/2024 16:25, Lk Sii wrote: >> >> >> On 2024/5/22 00:02, Krzysztof Kozlowski wrote: >>> On 16/05/2024 15:31, Zijun Hu wrote: >>>> Commit 272970be3dab ("Bluetooth: hci_qca: Fix driver shutdown on closed >>>> serdev") will cause below regression issue: >>>> >>>> BT can't be enabled after below steps: >>>> cold boot -> enable BT -> disable BT -> warm reboot -> BT enable failure >>>> if property enable-gpios is not configured within DT|ACPI for QCA6390. >>>> >>>> The commit is to fix a use-after-free issue within qca_serdev_shutdown() >>>> by adding condition to avoid the serdev is flushed or wrote after closed >>>> but also introduces this regression issue regarding above steps since the >>>> VSC is not sent to reset controller during warm reboot. >>>> >>>> Fixed by sending the VSC to reset controller within qca_serdev_shutdown() >>>> once BT was ever enabled, and the use-after-free issue is also fixed by >>>> this change since the serdev is still opened before it is flushed or wrote. >>>> >>>> Verified by the reported machine Dell XPS 13 9310 laptop over below two >>>> kernel commits: >>> >>> I don't understand how does it solve my question. I asked you: on which >>> hardware did you, not the reporter, test? >>> It seems Zijun did NOT perform any tests obviously. >> All these tests were performed by reporter Wren with her machine >> "Dell XPS 13 9310 laptop". > > Wren != Zijun. > >> >> From previous discussion, it seems she have tested this change >> several times with positive results over different trees with her >> machine. i noticed she given you reply for your questions within >> below v1 discussion link as following: >> >> Here are v1 discussion link. >> https://lore.kernel.org/linux-bluetooth/d553edef-c1a4-4d52-a892-715549d31ebe@163.com/T/#m7371df555fd58ba215d0da63055134126a43c460 >> >> Here are Krzysztof's questions. >> "I asked already *two times*: >> 1. On which kernel did you test it? >> 2. On which hardware did you test it?" >> >> Here are Wren's reply for Krzysztof's questions >> "I thought I had already chimed in with this information. I am using a >> Dell XPS 13 9310. It's the only hardware I have access to. I can say >> that the fix seems to work as advertised in that it fixes the warm boot >> issue I have been experiencing." > > I asked Zijun, not Wren. I believe all this is tested or done by > Qualcomm on some other kernel, so that's my question. > Zijun is the only guy from Qualcomm who ever joined our discussion, he ever said he belongs to Bluetooth team, so let us suppose the term "Qualcomm" you mentioned above is Zijun. from discussion history. in fact, ALL these tests were performed by reporter Wren instead of Zijun, and there are also NOT Zijun's Tested-by tag, so what you believe above is wrong in my opinion. Only Zijun and reporter were involved during those early debugging days, Zijun shared changes for reporter to verify with reporter's machine, then Zijun posted his fixes after debugging and verification were done. > That's important because Wren did not test particular scenarios, like > PREEMPT_RT or RB5 hardware, but Zijun is claiming problems are solved. > Maybe indeed solved, but if takes one month and still not answer which > kernel you are using, then I am sure: this was nowhere tested by Zijun > on the hardware and on the kernel the Qualcomm wants it to be. > >> >>>> commit e00fc2700a3f ("Bluetooth: btusb: Fix triggering coredump >>>> implementation for QCA") of bluetooth-next tree. >>>> commit b23d98d46d28 ("Bluetooth: btusb: Fix triggering coredump >>>> implementation for QCA") of linus mainline tree. >>> >>> ? Same commit with different hashes? No, it looks like you are working >>> on some downstream tree with cherry picks. >>> >> From Zijun's commit message, for the same commit, it seems >> bluetooth-next tree has different hashes as linus tree. >> not sure if this scenario is normal during some time window. >>> No, test it on mainline and answer finally, after *five* tries, which >>> kernel and which hardware did you use for testing this. >>> >>> >> it seems there are two issues mentioned with Zijun's commit message. >> regression issue A: BT enable failure after warm reboot. >> issue B: use-after-free issue, namely, kernel crash. >> >> @Krzysztof >> which issue to test based on your concerns with mainline tree? > > No one tested this on non-laptop platform. Wren did not, which is fine. > Qualcomm should, but since they avoid any talks about it for so long > (plus pushy comments during review, re-spinning v1 suggesting entire > discussion is gone), I do not trust their statements at all. > For issue A: reporter's tests are enough in my opinion. Zijun ever said that "he known the root cause and this fix logic was introduced from the very beginning when he saw reporter's issue description" by below link: https://lore.kernel.org/lkml/1d0878e0-d138-4de2-86b8-326ab9ebde3f@quicinc.com/ > So really, did anything test it on any Qualcomm embedded platform? > Anyone tested the actual race visible with PREEMPT_RT? > For issue B, it was originally fixed and verified by you, it is obvious for the root cause and current fix solution after our discussion. luzi also ever tried to ask you if you have a chance to verify issue B with your machine for this change. > Why Zijun cannot provide answer on which kernel was it tested? Why the > hardware cannot be mentioned? > i believe zijun never perform any tests for these two issues as explained above. > Best regards, > Krzysztof