Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp328103lqh; Mon, 6 May 2024 23:27:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXria55JNf6mLf1D5qnTztQFFvVOdiSOYNW/+w5qdcCvMsici4B5UZCOsFRtH/Zib7PppiQhD5zZ951BJoO9RZO1Cwe2A73WLaA6fkEow== X-Google-Smtp-Source: AGHT+IEZOwE9DcWYGSm/HOcxF9XaXa5gIkI0JrRKN2HXVQ7tOKCLhznHPfWEGLjHTf8tTsfDbd3O X-Received: by 2002:a17:907:3f9a:b0:a59:cb29:3fb8 with SMTP id hr26-20020a1709073f9a00b00a59cb293fb8mr4040947ejc.1.1715063250847; Mon, 06 May 2024 23:27:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715063250; cv=pass; d=google.com; s=arc-20160816; b=YyTVrN/YvfjdRfUd5ZOv8J6X2jxS29KGJ3BjvA7FSq6QpCf8/JP8knMr90mIVGzS/D 0WNf6yE4lvdfMHIA16IN1ERqEcUjjmzd9Ty8UHHzQE+te179X1VoFfLzq2FAzrPVN1p/ iHNNWGjzbhBh5QE0duw76kFY4dS1iO4IDP+lDoX5vOOaNU8I1KFGohk87I4DNW3yci/j pl4ubGIlosfIBOCpHEI8edqpiAFHMpcIpAiszLpGwFMKhcbeMggUnaARHU2t2whG4fcO 2d/4lzDcbq0Nm8VRT45eDJawbot2/cmVJq298Kz/vv4yeksWxJpCH1UkLFQ0d+CbA6gc Mskg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Bf2zdEkKOdIbrvVJ1LE+LZvtdsAMqAjWrwIEHtThy6Y=; fh=5NZhmLA4lERyT15nHc0n9+g4o5MTgqS3It3jFSG6/k0=; b=hwUnmuepn6GTFchm7oarzntAVZSFktH5Vq5H0fart+IgDpbCA67p9cBpHJr2Jw9ZXn sWXVWkQzqlhdhg8YLSPpOSaOfjtrt8ZZ+GbijOqtM8KpwFR1j2nny/zXi1V7uHNavu8U y3J4o5XtJpgAO1Laagc4XxiBcQYaJLFRCCqixYm5S0eTz99sV6ZtCzliE7M72jVhh6JS s+U+vjsnxQ+kHAfwFTj+u8jlTamC47l3YebDuY5qZGt9cU6W9KzUai8cjMt1/+IohQUY SRLm7kN7nMbQF8jQ7jG+I3nnN2g1Hb3NChGUl/Cz7VitKFFAj7tHI/iaRXic/1IGgwY7 D3pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tr65OS8X; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dt6-20020a170906b78600b00a59e69bd129si582710ejb.1046.2024.05.06.23.27.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 23:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tr65OS8X; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4343-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6A5301F21F71 for ; Tue, 7 May 2024 06:27:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66FA66F060; Tue, 7 May 2024 06:27:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tr65OS8X" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20CB0381C4 for ; Tue, 7 May 2024 06:27:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063243; cv=none; b=Wg9zJmiOiaqKQXhN+J9uKSC2zTTfsOb988EnQbtuDVju2cAkZtM3UCOPxpwiQ/dGcIeSXAMAwAwXZ4BYac/L8TRyvdVjsinOEiTrFMK5H3LuvATOxJxht3egU6PECAZ4GRR/6ksRepBpMHF7PA4AryVNOCo3ITIIhX1llASuwG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063243; c=relaxed/simple; bh=OBdfW5aLuDecsyCU1p2RlGuUvfAu7kQ3qHZ6UE6wcSU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uJ5Pbzmju2jcOdA1evwMRxSOWnX7KrW+CvUWu/cBriYDzAijhW70beb79aeW2355d8xFkZbyldkrVkeIzqNN07daQqJ3Cn45l/TmojTwAd/nZkXR9ifm9LGCoo0txgJpA5wNFjYeruyDkYkx7JzeUnRC/y0fTiQIu87D3hcTWRs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=tr65OS8X; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59a934ad50so595938566b.1 for ; Mon, 06 May 2024 23:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715063240; x=1715668040; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=Bf2zdEkKOdIbrvVJ1LE+LZvtdsAMqAjWrwIEHtThy6Y=; b=tr65OS8X+vR1f1y7zs7Lu8Lr8SOMpsCfREjkOFCIzzats2fVD/2hPBKts0JomiL5Fk 8Ri/YAN/r8WHOPjoWcCCX8rOkuE4Vrh9uVptaYNYmhP8TboOKGSvgrlPW2JZ/Sp+b06Z ZDOAjsuBvwUNI1cYzXsn8B3NpONrI+ojzSFPJfOsIBxQDnbFulPSoEwWAmwxrofJEsr8 MqjWmRhukksaL3uaRqNUaIdZzF5dIpPtUN8A/CErt+Wq23WAow811LegG0lC1Eo0kuUi r3av4LbxlXBr1a5Qsv4/nIxNv68xZvwbgqIdAX0T6V5fN5zVnUfPybYAc9RgUPvQ+loS 1Mng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715063240; x=1715668040; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bf2zdEkKOdIbrvVJ1LE+LZvtdsAMqAjWrwIEHtThy6Y=; b=c2zecPUCfW3fsHNxrVWesxv/TbSUYXQkyQuGn6TJkVJI/W0UdXgIh5qR0eVV0ikokr +vq9tgZufMVhwRX049Q15L4sgVI/4VuMVLTj2hXVClkg04Rb8pbdROiq2s2ODFdZRJRy djjYWemH+hm3rcw3Wjkay1lml2NX5Cl5HUmG63HDP3eUt/Pu9qJWqki+BSoickWagB7F o/xsGyVgLg2eRV/WKEk/piF+Thnq00iCSK54q9eCH/ZPXix51zYa1bXDC2tDeADyQPi2 xDyB5Htj7zwjRUPn4B954GC9WGldBnghWMkdVulvVy61SvlqervRtcBhHCOYpgF3n/5P 92cQ== X-Forwarded-Encrypted: i=1; AJvYcCXoYLQlOKC+BxzLXtdzwo96FlDGFundgyqHpDjGupaw9vrRAs/83kQwqo839ILiHEcKrz7bLJSGNDMOcGZ+HHuU5bkQvDneGnnLUCu618/j X-Gm-Message-State: AOJu0YxhYkOb80/yGZHxwWpBMEBkiCY+1tQSVk41ZKorMypnQwUnzCJg Nz2FrMt1+gLieD+gK5OGQhprhlkSiBy6UHetDAp72UlyRGhCBphpHbR5kE043os= X-Received: by 2002:a17:907:940b:b0:a59:bbf0:88fa with SMTP id dk11-20020a170907940b00b00a59bbf088famr5239950ejc.28.1715063240432; Mon, 06 May 2024 23:27:20 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id n26-20020a170906119a00b00a59cd12c9c6sm2166647eja.116.2024.05.06.23.27.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 May 2024 23:27:19 -0700 (PDT) Message-ID: <08241854-2837-4e8b-ba12-79bcbc970c1b@linaro.org> Date: Tue, 7 May 2024 08:27:18 +0200 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: path to landing patch to fix warm boot issue for qca6390 To: Wren Turkal , linux-bluetooth@vger.kernel.org Cc: Zijun Hu , Bartosz Golaszewski References: <3475f0dd-6a0f-4319-9590-379eee33f504@penguintechs.org> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Y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Rrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <3475f0dd-6a0f-4319-9590-379eee33f504@penguintechs.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 06/05/2024 21:21, Wren Turkal wrote: > Krzysztof, > > I am reaching out to you as you had the most important objections to the > change to fix qca6390 for the warm boot/module reload bug that I am > experiencing. > > For context, the problem is that the hci_uart module will send specific > vendor specfic commands during shutdown of the hardware under most > situations. These VSCs put the bluetooth device into a non-working state > on my Dell XPS 13 9310 with qca6390 bluetooth hardware. > > Zijun's proposed fix is to not send these commands when it's not > appropriate for the hardware. The vendor commands should be avoided when > the hardware does not have persistent configuration or when the device > is in setup state (indicating that is has never been setup and should > not be sent the VSCs on the shutdown path). This is what Zijun's patch > implements. > > In addition, Zijun's change removes the influence of both > the QCA_BT_OFF qca flag and and HCI_RUNNING hdev flag. Zijun asserts > that those flags should not influence the sending of the VSCs in the > shutdown path. If I understand KK's objections properly, this is where > his objection is stemming from. KK, is this correct? Yes, because this basically reverts my fix for shutdown path and re-opens the race condition. > > Zijun's proposed fix can be seen here: > https://patchwork.kernel.org/project/bluetooth/patch/1713932807-19619-3-git-send-email-quic_zijuhu@quicinc.com/ > > I'm wondering if we can resolve this impasse by splitting the change > into two changes, as follows: > > 1. Change that removes the influence of the QCA_BT_OFF and HCI_RUNNING > flags in the shutdown path. There was no explanation why this was removed, so it does not matter to me whether this should be separate path or not. Zijun, even though I asked four times, did not provide information on which kernel this was prepared and tested, and on which hardware. I assume Zijun did not understand original issue, thus assumes changing the code to HCI_SETUP fixes it. > 2. Add the quirk from Zijun's patch that fixes my hardward configuration. > > I'm hoping that better clearer descriptions for #1 can help get that > landed since the logic current appears to be at odds with how the > hardware works. > > Also, I am happy to split the patches into the two patches, or (maybe > more ideally) just modify the commit message to better indicate the > reason the change. I just need guidance from maintainers so that > whatever work I do leads to something acceptable for y'all. > > So, please help me get this done. I am just a user with broken hardware > and a fondness for Linux. I would love to help do what's needed to get > this fix landed. Best regards, Krzysztof