Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2164631lqz; Tue, 2 Apr 2024 08:59:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVNjWMEpWxLXeQG38dE6uV3BCCPPrmYQp/wtmKl/Vd+V5fh2h0KLPNJfLL9fWHvq/KcxoDnDAwMIR7URF51awWspzTOvcaMQzB6evcwTQ== X-Google-Smtp-Source: AGHT+IG5peA/UsC9P9o8EcEdQCnSnDI9hMD51tiIjOh1hLTW3p7iZ9wUzZ+3rsCT0EYMZI7s4fsr X-Received: by 2002:a05:6a20:394a:b0:1a3:c4fd:ca03 with SMTP id r10-20020a056a20394a00b001a3c4fdca03mr14637874pzg.7.1712073567781; Tue, 02 Apr 2024 08:59:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712073567; cv=pass; d=google.com; s=arc-20160816; b=XIDg6Tt/KyKInklmUp2PhtFxXaqv7pB99RysRX5q1UMP8utT3c96/748yHOMpFsliR tUW2c8W1H50M3MTgGyqYVJ0BGVLo/j9V7p6+phQ8I6iF+YXB7pz9DPpHmkVpiYepiT9J Zr9L7fAuhxlfQHEr2w92mxOne6RzlbBwpQdmHRVplvE3SGD92gBytMdEfakSCOF5Tx+p zcGPpAtGPuRB1NbnrUbmyZ4qgYHMqBqJhxsGqnwgZaEWDsc6NWvZYGq6JJgcpHo3bz5T SE/K8NLgFcTTijdY7TC0iX8GxbvU1GsI4GnkQtOhaWsrlAIAusVZ44nSqnGLU3UhpdfS 7i6Q== 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:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=3Q4ndQzVnF5DXRDj2bg6xXjCGWqd/IU0gdb7DwVV7kw=; fh=+pcmqzN/ceR7rpu4Glw3PN1zFdQVItUHj21of+NCj0M=; b=MVRF/s2xr4sv9++DiBAy8H04Nb5Ylt/qSx3lwDKExdHWB5S6JsjvhONpFZqluLa4qI pGc+qCgi5XBjkP6mDwU4hh9AZF31LSpOoP6sm7GdSF6OK+boydvUgNaSaS69/sT1epXr CwU11ttZbMhhkhyeUwDjFmB8IhMMQmUscO/L3uf8MjW4Qql1jJF/sT2VcKY1oI1xmrEf mzwhbOFS2zs8jmIAECg+rJZaRveKKDAVgqmE3AGyMy1c7EEW6jEXLizOtazT1mR5nuku uifdly4szgQvHJRKOknrHVnLm4qQibUpRi6NvP1cWxqBzk9I5b8vPTIogDRSI+6MO1Pk p9gA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=qZqAJKo8; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-5749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5749-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t4-20020a63b704000000b005dc8b9af6bdsi11035487pgf.420.2024.04.02.08.59.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=qZqAJKo8; arc=pass (i=1 spf=pass spfdomain=freebox.fr dkim=pass dkdomain=freebox-fr.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-wireless+bounces-5749-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5749-linux.lists.archive=gmail.com@vger.kernel.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 90FBCB26672 for ; Tue, 2 Apr 2024 15:32:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31D5413340E; Tue, 2 Apr 2024 15:31:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="qZqAJKo8" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 D37A11327FE for ; Tue, 2 Apr 2024 15:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712071904; cv=none; b=EnXULWDqhrNcBxxUZ7fVMTsIyOpnqdqGu/TONVpU7LXW7jiqFVqrLj/+qoJisWP6YD1g5BlX+BMJM5lYfXpEM36zlI+RSTatIq2F12vOjG4wd9PEjYXzjIn0GATccpAIG7Z2wHUjYVSZSir1OQeYNv2w9N8z4Pcy9gilUtqjv70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712071904; c=relaxed/simple; bh=8vXdqn4SbFT4RHfnsdGkXt/pEfwiD3lzaCRDv2hYwiQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bj4uXBvcoMchMp1vAlFE7n6ViZgrGIbRuibUDwo5qsgtd2QcqLxPENFUXfvSZFAWLQXqXVgTkqaYi5oWirqVcWO6ywrF15WBj5vbgETjElA0X3Fwg/2ShcKsSpNMr5LoW0gYw1GrP/AtoAgw8dsLFL6Xpyjs0hpnPyWxRosipkc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=qZqAJKo8; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-513d717269fso6334272e87.0 for ; Tue, 02 Apr 2024 08:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1712071900; x=1712676700; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3Q4ndQzVnF5DXRDj2bg6xXjCGWqd/IU0gdb7DwVV7kw=; b=qZqAJKo8AXhyI5g9PHwt1Bv5z0VQzkkc1Vldz2iFBXdlduEtKfp7EBCYzXVomzAwad iWN7Ab5WMTDlIX84b+mSl2Tq6jeLvaxnfXM+HYNt93IOd72ucBe33d6Rfs5a5nT7IJQ1 7ySG4lnjCn/QS1KP5W/inh0ntjSY2x88tHpDKKAWHdLcPzuH/UnxEROhSi4NHCcYnvKU s85n3lnm5moOvir/9usFIVq7kJEuWU5pjG3vnnQ8OXLS1hSfjlHqYVTothaqo5vQ/Nii /qNTx1Pxr3FQxbtxjo/yQ1R1cB10FEx+3norXq2CbrJC7p6YLznxx8ZwFmNkVeNOAdJo mxcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712071900; x=1712676700; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3Q4ndQzVnF5DXRDj2bg6xXjCGWqd/IU0gdb7DwVV7kw=; b=BjJMGnDpc6COHXPIMdD0wZOmVmsh7FjAROcfohih4+5kHbMZXNipD/kOl1LX/CTUrD C5YcBgzdWjGjveXunp2/ywvRestEe2keKJgIgJWkF5t5poP6PujrLSJhLwzVOPOB9F7g 0pvLTczHj6SI0+GyqXnFdkGWCadk9rGGl22Nu9kacvdV+Q7BWM19momPwG5zG/JKWlMG Df63F3caqFtvpSndyk+cy0mW31tZ092Sp/wcoGTfW7hlaftkm6VSCzBdn7dhdhy1iK6b KEq94oMaHKOYdJ8UBLdrGHjJ6BzD6twAajkaYUy9GasmPzwDkxAETsVGHiuZ6nqZhFwn 5Sag== X-Gm-Message-State: AOJu0YwIb9AmtSCat3YuPyYbSa+rMMAM1iOCJVVx6D7rZ8Nw1c6GFbr0 XxfK3tU/2qhr+ylv6vdE8OAvpCYM70OOdQtVb20ejl2kI5L8Z/y8RDAtNNQWU4I= X-Received: by 2002:ac2:5a4b:0:b0:513:d1c7:7d37 with SMTP id r11-20020ac25a4b000000b00513d1c77d37mr8478285lfn.51.1712071900000; Tue, 02 Apr 2024 08:31:40 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id r12-20020a05600c458c00b004146e58cc35sm21617675wmo.46.2024.04.02.08.31.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Apr 2024 08:31:39 -0700 (PDT) Message-ID: <0ca1221b-b707-450f-877d-ca07a601624d@freebox.fr> Date: Tue, 2 Apr 2024 17:31:39 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: msm8998: set qcom,no-msa-ready-indicator for wifi Content-Language: en-US To: Konrad Dybcio , Krzysztof Kozlowski , Kalle Valo , Jeff Johnson , ath10k Cc: wireless , DT , MSM , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Arnaud Vrac , Bjorn Andersson , Jami Kettunen , Jeffrey Hugo , Dmitry Baryshkov References: <5cdad89c-282a-4df5-a286-b8404bc4dd81@freebox.fr> <252618e8-9e80-4774-a96c-caa7f838ef01@linaro.org> <502322f1-4f66-4922-bc4e-46bacac23410@linaro.org> From: Marc Gonzalez In-Reply-To: <502322f1-4f66-4922-bc4e-46bacac23410@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/04/2024 16:34, Konrad Dybcio wrote: > On 30.03.2024 7:25 PM, Krzysztof Kozlowski wrote: > >> On 28/03/2024 18:39, Marc Gonzalez wrote: >> >>> The ath10k driver waits for an "MSA_READY" indicator >>> to complete initialization. If the indicator is not >>> received, then the device remains unusable. >>> >>> cf. ath10k_qmi_driver_event_work() >>> >>> Several msm8998-based devices are affected by this issue. >>> Oddly, it seems safe to NOT wait for the indicator, and >>> proceed immediately when QMI_EVENT_SERVER_ARRIVE. >>> >>> Jeff Johnson wrote: >>> >>> The feedback I received was "it might be ok to change all ath10k qmi >>> to skip waiting for msa_ready", and it was pointed out that ath11k >>> (and ath12k) do not wait for it. >>> >>> However with so many deployed devices, "might be ok" isn't a strong >>> argument for changing the default behavior. >> >> I think you got pretty clear comments: >> >> "This sounds more like a firmware feature, not a hardware feature." >> >> "This is why having this property in DT does not look right >> place for this." > > Translating from dt maintainer speak to English, a functionally-equivalent > resolution of adding an of_machine_is_compatible("qcom,msm8998") is more > in line with the guidelines of not sprinkling firmware specifics in DTs I'm not so sure about that, as I had proposed + if (of_device_is_compatible(of_root, "qcom,msm8998") + qmi->no_point_in_waiting_for_msa_ready_indicator = true; + To which Conor replied: > How come the root node comes into this, don't you have a soc-specific > compatible for the integration on this SoC? > (I am assuming that this is not the SDIO variant, given then it'd not be > fixed to this particular implementation) Then added: > A SoC-specific compatible sounds like it would be suitable in that case > then, to deal with integration quirks for that specific SoC? I usually > leave the ins and outs of these qcom SoCs to Krzysztof, but I can't help > but wanna know what the justification is here for not using one. Then Krzysztof added: > The WiFi+BT chips are separate products, so they are not usually > considered part of the SoC, even though they can be integrated into the > SoC like here. I guess correct approach would be to add SoC-specific > compatible for them. So, if I understand correctly, I take this to mean that I should: 1) DELETE the qcom,no-msa-ready-indicator boolean property, 2) ADD a "qcom,msm8998-wifi" (name OK?) compatible, 3) ADD that compatible to the wifi node in msm8998.dtsi compatible = "qcom,wcn3990-wifi", "qcom,msm8998-wifi"; 4) In the driver, set qmi->fake_msa_ready_indicator to true if we detect "qcom,msm8998-wifi" And this approach would be acceptable to both ath10k & DT maintainers? Bjarne, Konrad: is it OK to apply the work-around for all msm8998 boards? Regards