Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2170661lqz; Tue, 2 Apr 2024 09:06:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2bZui4MxeW8Kqz1mEKYW6ipReTkp+4Vy1uAkCbrjsGtqB2t+IKafd0F2VRjxR4GFmf6FTsjRuCW5FntiUpu7bYEh93CU8eekrNt4pvg== X-Google-Smtp-Source: AGHT+IEodv4xM+nxsWCb6NDqJ1J8I5EezkMrMTcSaYKkIqmrxkylBBuvufFSLUrVDVRqp63RGWxa X-Received: by 2002:a17:90a:c718:b0:2a0:5c8c:495e with SMTP id o24-20020a17090ac71800b002a05c8c495emr10387987pjt.15.1712073981418; Tue, 02 Apr 2024 09:06:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712073981; cv=pass; d=google.com; s=arc-20160816; b=TGJw/FbQ+z++NgsYEsw/eFescFRbQEt9kFhPV65uwq7xSdgQE553Zi2hiGl9a0vmDn trLz/YRo/VIJMWBOxYyeHEIOznp0DwvSgg9uOcgmmGHcVGubgbQdBUHbSLRn1gj3uHr+ J6CsG20CRdOSCHYwzgAUNZ6mpm6T3eRcX/09fd+ueMaBV0l7xc/iQa3/J7ntnY9o5iiB TiPsYWRv/uuwlzA7nI5wWLI8lmibbj8A0fxJHv6w1aFRBRROBYlHxa16GUyyMHXRzNKs gl8dCDZ69xRxAOd+TkjMrdwqjIxxm2ECO5XT0+am4MtaQApbdLO9YHg+HXfCMkXZQVmA vy1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=xeV/0olw1/tQOoEzRbn7wneEZCNZI4OAG5EO13F9t/U=; fh=tLJnFGNIs35o4L3uLykuT78f4AV79yR6l/67vExojSg=; b=LLhAVaJRHiRMQH/C9EOZNO0xBBhxWPC00+BQ2n6cr+rRvQXo16ssUY+NASXCWLXAw6 H77dZXTgVRgrwlYVlsQTMd9Tahb6o/NsFWbI1UGI5YDLukKHZigmaIUsL03B0Zc+NLaq LjUzKWoVryrsHLCQ55KEoRY83CSoVJcOS48+8Ssa/sC9rVsN2PxCHldyPCCCEZbHyLGs GgG7/b35m3kuPlZK5ju5jikIoJB+bb9WcO+yjE+6WhxqWmMZH97m36r1h6+Rgthwe5/b qSoEeFK99Z1Ul9S9scN7EXkrSBJ9UyDqEFc7Iy1c0x0Gwbhu2IZ6NERHTBzHS70GnVXB h6oQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Saz4vyop; 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-wireless+bounces-5750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5750-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j23-20020a17090a841700b002a090d525acsi11140237pjn.90.2024.04.02.09.06.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 09:06:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Saz4vyop; 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-wireless+bounces-5750-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5750-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2158E28D74E for ; Tue, 2 Apr 2024 15:56:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B51CE132C36; Tue, 2 Apr 2024 15:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Saz4vyop" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 0CB58132464 for ; Tue, 2 Apr 2024 15:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712073370; cv=none; b=p9nMc7E/c9PvESXLo1yRkZ/rEMzHI1ggr5lXOXT0Y8ejHi/uiFrjfOncuI3gBT3yzB/naf9Kd9jJtvEteoS9e9pR+9Y9Yg807Hhgdu+FbqlRN9+CdFJaF38vup51fCrNYCP095xi5e+HrmpYdvWLDj87+iyvJHGNHbDTnPxct38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712073370; c=relaxed/simple; bh=oTm/Gl3Jk/d758yF/LumObe856oMF+v4ETEy6+MBZFM=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=h/tq5sUNPgUKlZ4UJwP5Bg+u+YWEZwDyswo5l4fwcrllgi7avVShSnJ3Fm9d9TPeFNn0cN20J/eHjsb9s6lG4EtT1RSUS0kxwRwkTA/BISeSk9hAZSba0Um64fvM1U2wjGJRG/verPPp4P86iZWeoClMWZ50ZDyGG39PE+6yYw0= 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=Saz4vyop; arc=none smtp.client-ip=209.85.210.169 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-pf1-f169.google.com with SMTP id d2e1a72fcca58-6eaf1a3e917so2615268b3a.2 for ; Tue, 02 Apr 2024 08:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712073368; x=1712678168; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xeV/0olw1/tQOoEzRbn7wneEZCNZI4OAG5EO13F9t/U=; b=Saz4vyopKElnao6iWMDuzV3npxzehxo8F8V6Q+zUXNckS2S+44BF7SamupTFiwypgv C59dZAAvyln8nbmbwR+aDpKUesekFE1RVx29ZqkQll3NDaWRMUuWpO4eDJZ2qGrShL3n 0VpTCqnCsCgC7QyULEee8puShZHQ7qbe3XSUJHINizekRvkdW3XSEQqxPWeAYhmJsq59 WFEp3NLKX1DgJIdFDH6ZtzJCa47hmeIMou2M915tsgzMl9jm2F8pL68B9oLBLnji5VRx vEfyCZXdlwiI/Fh+iQtR2vfZhcBPT6IGTe7dP1Rdp8zqqPVKHFj7+KRSCqNRgmoQcxt8 Z5Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712073368; x=1712678168; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xeV/0olw1/tQOoEzRbn7wneEZCNZI4OAG5EO13F9t/U=; b=WiHDGX61hyAH2vv/jQ/C7rpeMv1MxAgwRKaaAsxaDdylP6H5MjaE2NkL67T+Wg7Alk JyOri1CwNEQfd9nYrwj9uEXLENVSAQdhYvUQ2WcG0eHjd8NZMF88haoiRTv5g0QUG2BH sYWlLd++iNQeXI0vSs7LBlwl3SzQqZyRSfE0LLrLkhuWfK0D/NtF3UNKFvnS67VkXHqL C0pk/vy2P8HqHKnG8ZETh0W5bBDcNCs/0nlemYGJi4jtLIo5tqC0kkGdXlM55o1dDuO6 +2H4Omykz+tjVkSzb/Fr01pc4pFg3/zm0PO4RokwW2Aj/wfYCevz2d3BkraJY5UfD3aT xrBQ== X-Forwarded-Encrypted: i=1; AJvYcCUQ2t0qfBiTPLi7Q95j5k4BRu+5ZdjVFLw0IMul4RcW4rM4658hscn51a4pkT6LmpbBKA7GOX0T21UdoPb1k85CoyWg3JGmdpcUp9ltAoU= X-Gm-Message-State: AOJu0YyrYslrzf9P010BJwUAdMPOVTozIpeyGH1V9e8vE0AXEnRpk1/W uYUghGTwhXNlKmgKaSY0WFEbYMdER/aA7/HE2NB/g4Yxxiftvwssy6XJyp4h510NqHD3p9eyPf7 X3TKhcDPBZTkyFsoQ5ZY1nz/jicJt7csuoeOhDw== X-Received: by 2002:a05:6a21:9992:b0:1a3:6ee9:305 with SMTP id ve18-20020a056a21999200b001a36ee90305mr12284409pzb.2.1712073368128; Tue, 02 Apr 2024 08:56:08 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <5cdad89c-282a-4df5-a286-b8404bc4dd81@freebox.fr> <252618e8-9e80-4774-a96c-caa7f838ef01@linaro.org> <502322f1-4f66-4922-bc4e-46bacac23410@linaro.org> <0ca1221b-b707-450f-877d-ca07a601624d@freebox.fr> In-Reply-To: <0ca1221b-b707-450f-877d-ca07a601624d@freebox.fr> From: Dmitry Baryshkov Date: Tue, 2 Apr 2024 18:55:56 +0300 Message-ID: Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: msm8998: set qcom,no-msa-ready-indicator for wifi To: Marc Gonzalez Cc: Konrad Dybcio , Krzysztof Kozlowski , Kalle Valo , Jeff Johnson , ath10k , wireless , DT , MSM , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Arnaud Vrac , Bjorn Andersson , Jami Kettunen , Jeffrey Hugo Content-Type: text/plain; charset="UTF-8" On Tue, 2 Apr 2024 at 18:31, Marc Gonzalez wrote: > > 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, I'd say, this is not correct. There is no "msm8998-wifi". > 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? I'd say, we should take a step back and actually verify how this was handled in the vendor kernel. > > Bjarne, Konrad: is it OK to apply the work-around for all msm8998 boards? -- With best wishes Dmitry