Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1947721lqg; Mon, 4 Mar 2024 08:22:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJDawq9nB/bZoP0S2DSGzJSuxHKEImfB1BbFyvK917F7xBR/wJvIYs6lVNdBjnrNU2TA35Af0Ey1ECQRaT8hqbMSGTp04sE3xClkFOpw== X-Google-Smtp-Source: AGHT+IFVyOgmR+bzxLxZBTHnp4jwGsMQzp0cF9sAqwlo91yrdds4eGxTAlLaUrWXpr8Ma3dsbus5 X-Received: by 2002:a17:906:4156:b0:a44:7ad0:8069 with SMTP id l22-20020a170906415600b00a447ad08069mr6244269ejk.72.1709569343733; Mon, 04 Mar 2024 08:22:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709569343; cv=pass; d=google.com; s=arc-20160816; b=KggIAKPeQBEZNs5RooXtRz8mD2+UAS6bO2vJxVfQu3T3HzAMWPR2RgAyOYVboMYenK IylMjVYpArm9SpZU8ZwfbpoDYeBB9UxDEzyOi9Edip8VSUD9/5qKqQOWx7fSlohghjAw oHU3vsMAM7cizuHcHhEIh8ldHieGuS4NF8e+6SREvvoKZWW6dlWxeeni4SEzEueEt3OZ OYkx6HZYTO26M+zY5CwxrzJnXivSsD8iI3L+3gK7jof1blKWPgOTkYUzW9h281mFrSrF WI1oj3K8xSHuRHPxSkTNPXoQaljIN6rgdJZhE43tTtoNQ15aDGgW3mycA2poYt0kIDnA HTQQ== 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=2NauviWk607nxbEN2DlOAU5kjIWJKRTn3ayaQZc8Isw=; fh=ocjd5do4Z5vzAdDutPpV+WWcKAcBLxCGRjP3DRf+DFE=; b=nWL//tSYwh+F+TyBiTjJCzBxBDkssrY++jhCE3Xikspm9NqZuOEunPAKmzV6tmS7f0 is0jHF7dpxidT3jCKIdpr4R716+ZsrTHkIFTWMRdQvFzzvNMM3/NY2FBXqxJh9VD2Qt2 U7rh/KGxfRxRLqoQCiXH2fQP/AUtuCnGaGZeCbSCXFezWGtkz2gXvZOmphHCc7ARJksx JM6YwFC+QrCqdvRx3clGndRRY5CpmJl7mrpRUnHAcASHgaQ00rLR6tSIIYPTgk5fAjkN +OvGJKO4YuewQbxpXNTJ5PbK72vQCyujU+/EUTxNsbSV7cFs6QApOUqzk6hVun9t4lKG 2vTA==; 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=NgVQlMgg; 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-4342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4342-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w22-20020a1709064a1600b00a442b4aa132si3936846eju.464.2024.03.04.08.22.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:22:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4342-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=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=NgVQlMgg; 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-4342-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4342-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 081A61F221E6 for ; Mon, 4 Mar 2024 16:21:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25AF947A6C; Mon, 4 Mar 2024 16:21: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="NgVQlMgg" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 9BF8E482DA for ; Mon, 4 Mar 2024 16:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569304; cv=none; b=qIW40hBgnxh+9L7R7pJc530ErPehc/roQ/a7DahX41hX7yi2WlAwDLWYc+4XRp0RxjkuqpSzB0FArAl1rZQadLeTNW/YFwTmWaS2jfGgcNBsx6Fm4HuusGqNgYUqgwQgw37CWUhn0W8gKW/qNAFb0XDeVVn4bUgk6S5ztBJbCxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709569304; c=relaxed/simple; bh=4xTBM2H/u8UluDDjHyyVTU6zuFLKL29UdTc9YUE4eAo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nRgI3SMLF0KU04TBShqyde1WVEyYQNAr0QWtmFdufCEJmKKlTdqBYbPtykKgA8wgrXOoIcMSoKIcA5PKXcbzCMny3NLEBU3C0UGBzltgm4BM8C7cqk4lT24VwdWvHFhHmyLwroPpyxsIpre60klSMUUSld4n3jxPWjjfcV6zNjQ= 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=NgVQlMgg; arc=none smtp.client-ip=209.85.221.44 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-wr1-f44.google.com with SMTP id ffacd0b85a97d-33dd2f0a0c4so2647465f8f.0 for ; Mon, 04 Mar 2024 08:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1709569299; x=1710174099; 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=2NauviWk607nxbEN2DlOAU5kjIWJKRTn3ayaQZc8Isw=; b=NgVQlMgge4QCpUwVlDmIxRcygs/OVn2MjAQqsCzTNYhDpRKe8DO9xodhUUJdjU6uJ4 28G7n7/ihslT3+vyEN0rBz1wLPRNtBq7xVa3nblODgrUaQwSv2BTeoZod9N3T9mp2+OG R5jRY0grd/4RlVcoCtc1qVSIO1eDBit6lwub+hvboMgt8bkOkaGi20QzKLTiuLS2YmIE a/QDgVWXNjzqtW9NPrpFhiEnnrg5aavxQrpz2gGR9zYMJ9vEe/ZPi4NgfMKobQyvIM2m J1beEG6N/6vEvqj+GoxDYD2Yz6lB5t5AnoV52ymmgE1sIxsak9pNfY6uFqXzxYAzm1TA /Wsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709569299; x=1710174099; 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=2NauviWk607nxbEN2DlOAU5kjIWJKRTn3ayaQZc8Isw=; b=jIjWi1zOpCUeP0KGD3xw6qEk8UsBbdk81696vxODY2ZnGxQu5WGvHVdgowS/vsiMmr DurczkQvc1VUS1s2lf+EgfW0nBH4laU5VvWfVyrnRVd7rFGdxW0LWsgK9YHzENnHGths zSrvLPrbR9LKdWGlcP+mWD3SQMEwNcQ4+lppTnIaqGpnx9D0m/pRAuU35T4vJtejIgni eVSmf4gm+OoBlo955GjhrlxJqfQvTDTwA1QcxRRz+tHYtliGc1EtVuadRXxuMH6WVWZz g5RAl137nbBNtEBI0OqChxjaWDxLl10cUb+L4mUJpYFTZ9y/1mWExgErE5Mj2JIeTZaj FedA== X-Forwarded-Encrypted: i=1; AJvYcCUXlMJ49BeR+nfQq+cZqYIdH4MST1nnlbWy2UlQnpGDY7BmQzAl9WHxSRfHaI544q01ryVJj/XJPgjWypOfohALWlZ2O5+oKHnd7RDrXy8= X-Gm-Message-State: AOJu0YySdV7vzQd6okaoxWs4ll0UVerbrBrljKZIPZ+4YQCQIYVfU+Cc iYnqFk95L/aPZTlKqSPyARaTgKIt9v5cAAhyBbUvjqOIkDgFj/VkwHRYeHdUMrY= X-Received: by 2002:a5d:42cb:0:b0:33d:d84f:1ef0 with SMTP id t11-20020a5d42cb000000b0033dd84f1ef0mr6098847wrr.12.1709569298835; Mon, 04 Mar 2024 08:21:38 -0800 (PST) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id az23-20020adfe197000000b0033e4403c6a9sm1552302wrb.22.2024.03.04.08.21.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 08:21:38 -0800 (PST) Message-ID: <68a49964-7c05-4575-a4f3-35848c08fefc@freebox.fr> Date: Mon, 4 Mar 2024 17:21:37 +0100 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 1/2] dt-bindings: net: wireless: ath10k: add qcom,no-msa-ready-indicator prop Content-Language: en-US To: Conor Dooley , Kalle Valo Cc: Jeff Johnson , ath10k , wireless , DT , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Pierre-Hugues Husson , Jami Kettunen , Jeffrey Hugo , Dmitry Baryshkov 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> From: Marc Gonzalez In-Reply-To: <20240229-ageless-primal-7a0544420949@spud> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. -- Regards