Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2063513lqg; Mon, 4 Mar 2024 11:37:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW3nTCJp5FqY4nIVxZH32O/FM1doNTm0A/hpM+Rie2wlQSN0xxVllIoQJlJW3ac9E2JuU4bNr3Ai4UE0vWwHT4+BXPzkYd4cOBtYaO2fQ== X-Google-Smtp-Source: AGHT+IEJKu0mktxUEZy2TeTcuqyeuuBHJVYT8UFDXkkwLa39yhRh63WfH5Uq/1OztS3u31bkdS/C X-Received: by 2002:a05:6402:35d1:b0:564:5c90:f521 with SMTP id z17-20020a05640235d100b005645c90f521mr9240578edc.14.1709581037397; Mon, 04 Mar 2024 11:37:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709581037; cv=pass; d=google.com; s=arc-20160816; b=kmAWBF1e/a/+2FZ2MJBkQheTiJo9LnUYJURiGxjRW6XXL6oViXqlmzVjdxPizwT/uB BoFLEzOeKV9C3D4AoSuj22QpLUdblng2IG7kPryslUbJNP+db+6AwGWp0c8hMyp1IRV5 oXr1sYgMp1nctrSyvT+Z4kFudqDHecSZQzXU1uwXV7lKQccS5/cwmAr0Kma0hT2AEoxb Xu7+Wc76eo/uWB2FX9T/mvutfyF3c8QOE0n5Ys6VxU0jRynawhGf+q6+QKwhWHPQDQ+2 BdhLql9aGzGgcwPpQltnPNDLcbHWTvxbPokPkUZopGNNh/vm85Pfd/A9EmbGDwBd9+Ko Yk7g== 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=J8fbNX2+d4xJt/r4hFrd8+YanInaSaY5k4I1MnWjcGk=; fh=7bpeAdH9OszjD1aOaT8jv6hKvHRYKePIFx3ezn19tNM=; b=bqSrg4Hj1q4ZkAUom7MUFD3Qt4orEdxVvNCacYLgx33Cjk24t744QD7eUZThQslQCb Hfy4br0caPAnQUbR2pyuIXxouIM8fnJE6KRQ5uMlOUBXIqlIhb9CmDtoOpi1q9mFo7Z2 C7ZUF2T9u2IzYhY6rEYgHOSMcql2aXQL6+BXM42jgltHdGsZ7AZn+g9bsrQXuNA3k2DA bQFtTT6HABLRo/lBRzxSP3qC/vvfL+E5ok9G/VsJusyU6hUuBJaAHWu7Ub5yuhTyKb3Z fr40XqBhpsRc1uH4R31qcayC7fGqsZnRL4pEZFIEllnVkFIPNI7UX9VRFvw0IFVkgS6e NnVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0z4duNt; 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-4349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4349-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 y22-20020a056402359600b00565b5e786cesi4382824edc.27.2024.03.04.11.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4349-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=l0z4duNt; 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-4349-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4349-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 E1EF31F21AF7 for ; Mon, 4 Mar 2024 19:37:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17B614653A; Mon, 4 Mar 2024 19:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="l0z4duNt" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f180.google.com (mail-yb1-f180.google.com [209.85.219.180]) (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 51F3478664 for ; Mon, 4 Mar 2024 19:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709581034; cv=none; b=b231w60wfNxAj7iIqt/qSHOpmZbTr0EPJd7rfj3zAkypbH79WVbnKWofKOu8o+60ZWscMuVQDSIE1t+JpsfOgQDUZCFFAjXUihf676zoN5eB3XiGbsC3KCZoJYSoBwlwwbule9tvGnVbu1cWPNSOglvlap6/N5E7Ng6hI5Bcnik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709581034; c=relaxed/simple; bh=zSZR47L3Q06bALQAjz7UncLPKPhky0zHAZkotbQNt6A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LUCgvp+Wmju8YNiQL7VMnc6xc2WPOjYtU98LNX27D9fyPhszk88xnvkqDC9KYa1gnkpY7Zpk20DDdBRo5slEWii3eANroml6fvceyzzt1zy2ZEVfp+LfUxiAqaCJ4CV53IP/h3P2rYRLFXY2min2wsKyuwLNzgRgS5Tgimrm5O8= 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=l0z4duNt; arc=none smtp.client-ip=209.85.219.180 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-yb1-f180.google.com with SMTP id 3f1490d57ef6-dc23bf7e5aaso5395266276.0 for ; Mon, 04 Mar 2024 11:37:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709581031; x=1710185831; 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=J8fbNX2+d4xJt/r4hFrd8+YanInaSaY5k4I1MnWjcGk=; b=l0z4duNtw3zloCFl5g7OB5ofhZctea9yY0BlKOw0HEIKf4WXshuib578vXtEL2EwvH GPPuO/pCkH8Bi3+kaZQeZXahWPwE0OG6NNnxGmDbMyNRfkYdfS//KcnNRxTxAKr/tMPi Xs9MPAXgHwfqLb2RM03F9hmVpPgIMFICDJSiG/l2ziJUOUc95KQ8qW9fKi3eFgNojwRu zJ5EMRxALoaPqFW/TimTbImtJr+Wxt/QUOiNAxWDXMB9Tp5NbMyOG8WkGKopsdV6dEwz UikGYJijpm4Ws1rwtL+E5gkiHmpbHelF5Ry0/ik4Y6I71GrHDJoviq/yClIWGNQFiCpm hZwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709581031; x=1710185831; 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=J8fbNX2+d4xJt/r4hFrd8+YanInaSaY5k4I1MnWjcGk=; b=t8vgWMXx5bjtEgytIXbQ1Uxoo2DMiJnGDS/I/rr0XUH8MG4aV257EgAxOvBtDCL3PU uCAva5fGgtME5SOowfT2rJALKojorz2dTzfbvC1gGuYVE97Q7maw5bCQcRePXIka4zXT VoG4ik4gd7J0iV0d2QMBBAICjsd+LaTKFGpZAFPcUdjRjxEC6ZB2gUG9jwJOG9/Oz/aw rOF9xUfuCjoEjOgXCz3ecTgOuZGvDUCJBg5nMeaMCRWZWIM1r9rRtbYsk7RJNbjL0c5k kBKpJSlx6hpF8N56QgqkLy5qiQEPwCaQuHgd4iildtuYP5i3ay6Q02ILM+BnjXHyNyZE cwRA== X-Forwarded-Encrypted: i=1; AJvYcCWTfQ6mMS63nweOx7B4iZ4Nkum7z0tCabd7CmmhCvK2YFVoy+JezRd4l5jQp1wsCts8fjU2CWg7afu0PvoNkd1vJYT40Cgt00+dEVXpaxg= X-Gm-Message-State: AOJu0YxFaPqZ87vS91gHW3MDJT/EM1G7hJ0nuCRbVXHgX9WBE+O9CBjw yNZwfoFO7Ea4pUBiQR5u2/4C84c0w0deAuxJcvdA2IfiOaaIjRC5VcWEMBTtHwhVu2i4AKjw7aY jBkqtxrLvZeS6b9Ear3hSXjnGtjSV6RZnlwjIhA== X-Received: by 2002:a05:6902:544:b0:dcc:9e88:b15 with SMTP id z4-20020a056902054400b00dcc9e880b15mr7619178ybs.41.1709581031338; Mon, 04 Mar 2024 11:37:11 -0800 (PST) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <14daa98e-7fd3-4ebb-87bb-5d2c1fba679f@freebox.fr> <871q8wk7o3.fsf@kernel.org> <3392f356-7b19-483d-b9f8-3bd84068fa52@freebox.fr> <87wmqoilzf.fsf@kernel.org> <20240229-ageless-primal-7a0544420949@spud> <68a49964-7c05-4575-a4f3-35848c08fefc@freebox.fr> <20240304-component-animator-e2ee0ab7574a@spud> In-Reply-To: <20240304-component-animator-e2ee0ab7574a@spud> From: Dmitry Baryshkov Date: Mon, 4 Mar 2024 21:37:00 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath10k: add qcom,no-msa-ready-indicator prop To: Conor Dooley Cc: Marc Gonzalez , Kalle Valo , Jeff Johnson , ath10k , wireless , DT , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Jami Kettunen , Jeffrey Hugo Content-Type: text/plain; charset="UTF-8" On Mon, 4 Mar 2024 at 21:34, Conor Dooley wrote: > > On Mon, Mar 04, 2024 at 05:21:37PM +0100, Marc Gonzalez wrote: > > On 29/02/2024 19:40, Conor Dooley wrote: > > > > > On Wed, Feb 28, 2024 at 06:37:08PM +0200, Kalle Valo wrote: > > > > > >> Marc Gonzalez wrote: > > >> > > >>> As mentioned in my other reply, there are several msm8998-based > > >>> devices affected by this issue. Is it not appropriate to consider > > >>> a kernel-based work-around? > > >> > > >> Sorry, not following you here. But I'll try to answer anyway: > > >> > > >> I have understood that Device Tree is supposed to describe hardware, not > > >> software. This is why having this property in DT does not look right > > >> place for this. For example, if the ath10k firmware is fixed then DT > > >> would have to be changed even though nothing changed in hardware. But of > > >> course DT maintainers have the final say. > > > > > > I dunno, if the firmware affects the functionality of the hardware in a > > > way that cannot be detected from the operating system at runtime how > > > else is it supposed to deal with that? > > > The devicetree is supposed to describe hardware, yes, but at a certain > > > point the line between firmware and hardware is invisible :) > > > Not describing software is mostly about not using it to determine > > > software policy in the operating system. > > > > Recording here what was discussed a few days ago on IRC: > > > > If all msm8998 boards are affected, then it /might/ make sense > > to work around the issue for ALL msm8998 boards: > > > > diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c > > index 0776e79b25f3a..9da06da518fb6 100644 > > --- a/drivers/net/wireless/ath/ath10k/qmi.c > > +++ b/drivers/net/wireless/ath/ath10k/qmi.c > > @@ -1076,6 +1076,9 @@ int ath10k_qmi_init(struct ath10k *ar, u32 msa_size) > > qmi->ar = ar; > > ar_snoc->qmi = qmi; > > > > + if (of_device_is_compatible(of_root, "qcom,msm8998") > > + qmi->no_point_in_waiting_for_msa_ready_indicator = true; > > + > > if (of_property_read_bool(dev->of_node, "qcom,msa-fixed-perm")) > > qmi->msa_fixed_perm = true; > > > > > > Thus, anyone porting an msm8998 board to mainline would automatically > > get the work-around, without having to hunt down the feature bit, > > and tweak the FW files. > > How come the root node comes into this, don't you have a soc-specific > compatible for the integration on this SoC? No. Ath10k uses WiFi SoC as an SoC designator rather than the main SoC. My 2c: I think it's easier to fix the firmware features bits, it's more future proof (and error proof). > (I am assuming that this is not the SDIO variant, given then it'd not be > fixed to this particular implementation) -- With best wishes Dmitry