Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2073541lqg; Mon, 4 Mar 2024 11:59:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUWO3T3FXOvqKAAOxSTWJadWxSc0AGdPGNnFWn+0t0cIHFvoVRQ7m/dlwEmwIL49WO3lP/QfD/rwA5HlJJxlpzIaccOCrec1Ii3G9W/9Q== X-Google-Smtp-Source: AGHT+IEowz1Ecf+8FAc51+9J8Uv+X2eKTlP3vOX5XmJ5Gut55o2Y9OKdjHE3GCOqEaCiV/P8clZv X-Received: by 2002:a05:6a00:2183:b0:6e5:35a5:511e with SMTP id h3-20020a056a00218300b006e535a5511emr11867953pfi.0.1709582372036; Mon, 04 Mar 2024 11:59:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709582372; cv=pass; d=google.com; s=arc-20160816; b=mwvfMnCek7EL+ECnDBsI2H004sNmPuBaL0jI0VKJVFIoe/okX1GKF8qwdPUColCTa3 qk/c8pzNu2030iLQHGa/QUS9udBRPMdxhq1ndowIINCTMlCt8JLMmxV9ZrEOB3QyJ3w6 cd0lhzpnSt1NmRbyOLLMm3i85yNrlR+GgDNxuxMtxPg2PTVlRGJVdtSbgnkLALBLNSfc 2NmpIhoa3608cmrF71SF4g85xeG+dWB+uxADAjzi65jrkYqGi7Mn/H97iFtlMgqMT5RP QJI9r5mpYUI7lZsEFjIk32Ix3kHVfsKOSzpf7M5+uu9LTyRtFcCTgyVXdIvPr5pm25US 9pSg== 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=O7ApIryQlDH5kdwqHRhQLsTZp2nthteXM5vapyQjPNI=; fh=g6JLvMJQtECoSJpFG9/NOZC4WfpzKIXbDgAvrOUh53I=; b=UaHWwtgL+5gBZ5KSPynlmwMk0B4iSype0obCzBpqv1OWOi5VKjBRPckV+rGdtazZ7j J6wCKtFb2AdiIXKSj2K6Ny4IZ4TDMY+AYCcp2J/HSkmrkPe26WoP5QS/m2/HLt5GD+oh tt/mWI9PlvmZ6c4JvMDcYh2iOMM1zqods2fO/W1mwN3OE4LgeQHJXJzzUbdK1I2Ol0Cb Kl6BYcFEHX2UJ/Tqa27AjYGKkFa4lNvB5cwfrGnlm1Y+UTZfWPE4YRoqBJOlrReHjqSs qU2ptyov6YbrAjjTaPlnc5gwmYXmwP0+lGyZBnqvoaaja9qpoWMaR3AyiVDZ+hLFZ+tL JvUg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CbEZiD2/"; 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-4351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4351-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 j2-20020a056a00234200b006e3a4766c74si8772814pfj.328.2024.03.04.11.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 11:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4351-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="CbEZiD2/"; 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-4351-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4351-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 1652F288993 for ; Mon, 4 Mar 2024 19:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D04579DDC; Mon, 4 Mar 2024 19:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CbEZiD2/" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (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 76E6F7995F for ; Mon, 4 Mar 2024 19:59:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709582367; cv=none; b=l9kz+/GRBrVptKbGupUALHrWp8DdFrnMIM6Eh82Aht4PQnwjkYJHPLaqJYnIIB130H9kMkhl7FlHMpk34cDnv4DqBUS6NzTc0BV8DcyjkKAGVlmqWCVfvAR8kDzzHXOjOJtizifuxUc51qobBiqUzs8jp21iP4qPILF/C6K3x98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709582367; c=relaxed/simple; bh=GOoHfdkWRmHMiN8XDpnYIj0wPLSEn6LKn+e1lredcxk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=a4JQI/JL3R52wjaaSBylOfBSWG06rF6VSs7T6ErpN4UNyAHqGnA7eZ2WPcxX9iQ9hsTB0ZmJhR7w1xOaR8RLNUhluTboutqkBHVUaYytodZcZ3TL7unsweW7Hb8C0O+OQZJm07cESgYQIO2SicFVodW5RadZvvO9Svce+lS+BSE= 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=CbEZiD2/; arc=none smtp.client-ip=209.85.219.178 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-f178.google.com with SMTP id 3f1490d57ef6-dcbc6a6808fso4863690276.2 for ; Mon, 04 Mar 2024 11:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709582364; x=1710187164; 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=O7ApIryQlDH5kdwqHRhQLsTZp2nthteXM5vapyQjPNI=; b=CbEZiD2/XCY2kgN1a+REFqx2nAsaf4RG+ACMpbPNXALJwTy7vZGR5vx1oAW2TUqWYD RFcCUAaiHIElzYgYtyppSVfGKJi++TXSJRW4AmeCatohfun9l+vJlBvny5zrV949ENDM xZyAIBz3tE7oQNy3TYeSohYPb6izSNIBrM5fkSagipHm4/e5u4kL+QtNLsFr6u0zRDPU wYro7IguyZWxS0+1aesgD4ptMyiLcIHHmL5lVqkkMtlh61C5wJaCA8LLyye7OHeiWfeH WYDvc01i7+kCgxCEl7WhAGqdKP5ZrS2DnfLj+RZTJjGKiiCSS/Y9G6Z2rxzPe3LQEGAO Sg4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709582364; x=1710187164; 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=O7ApIryQlDH5kdwqHRhQLsTZp2nthteXM5vapyQjPNI=; b=U53OWoVzWogA1hvAvifPWoI2iRCsXhpzSL2KrywSZT/nif9swiHAd5DT00u0eXVEsH /RwgaecYtPc6vcpLKgmxVQTwDsRaJw72pVn/hoJw7y5jCrjaTqUvLkhdjakX5bYHvnFb 3VeLfVnlZXVGdfWaWvNqFdM81pO0to+hyHiCyyUhMTlpfKaZsWMjTVkD6mxQYKNABrNq rzClnlG+Q3cKA5ohm5V9DwW38yEf4zXviMhR8N+lCFcgYn2ORD8R65sJJXIZ0g71aYN2 ea+MolUjEkmMmDM+VAq47IZzzJ3eoWs3eQ0YQ85IMghZ1YscL75otyGRgghO+KLiHr8z /qNA== X-Forwarded-Encrypted: i=1; AJvYcCXFcqIbfkGEd/dupRsNhbzbfKD/ePHczK8w6sLx0FIho14wWyyfB7Cf6KUunUWhQzwX/NwuUD1YGOZ1NRsa9LvUWliSkrKHEu6cz5DYWNc= X-Gm-Message-State: AOJu0YzEOZh233qqCW7wb86PBtRP6VEAPF7l3Ytq08HfT7gZF7EJ61T9 L5Z1mtA634xDRZwd52ajl4XBnzeJTOeWg+mPmDT6B3wFnpo60LzecvMzOoXyC8oEn/wb4CBP0vw QO6BZL9MJk2Hclz71mazQWWZmR4t672w9MlDoPkIGzZ6nd9Vh03I= X-Received: by 2002:a25:4b05:0:b0:dcc:7b05:4cbb with SMTP id y5-20020a254b05000000b00dcc7b054cbbmr7295644yba.31.1709582364453; Mon, 04 Mar 2024 11:59:24 -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> <20240304-superior-vicinity-3dc6ca88141a@spud> In-Reply-To: <20240304-superior-vicinity-3dc6ca88141a@spud> From: Dmitry Baryshkov Date: Mon, 4 Mar 2024 21:59:13 +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:46, Conor Dooley wrote: > > On Mon, Mar 04, 2024 at 09:37:00PM +0200, Dmitry Baryshkov wrote: > > 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. > > Suitability of either fix aside, can you explain this to me? Is the "WiFi > SoC" accessible from the "main SoC" at a regular MMIO address? The > "ath10k" compatible says it is SDIO-based & the other two compatibles > seem to be MMIO. Yes, this is correct. MSM8996 uses PCI to access WiFi chip, MSM8998 uses MMIO. -- With best wishes Dmitry