Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2885619lqz; Wed, 3 Apr 2024 11:16:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdpaM+lXzBMMJPGlLRnG5pq4XDs8G2tIs5ydgyNq7KIt3jctDMmgvqPe8F7qpuk217BOu+NBETAKC9s/bfZUmN/jqT0tPJMT5rD53PYw== X-Google-Smtp-Source: AGHT+IFOdhX8yxOl09zO0P8v/qNx/lpU5Dg9D67y6i+PSNhAt9SntE4c1WVFQyHFt6NwQ1zW5Swe X-Received: by 2002:a05:6a20:729a:b0:1a5:6d7f:f1e9 with SMTP id o26-20020a056a20729a00b001a56d7ff1e9mr611888pzk.27.1712168174435; Wed, 03 Apr 2024 11:16:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168174; cv=pass; d=google.com; s=arc-20160816; b=ndt8Wfyr79F6FiKgPV2jI8Zk8ayXcL+9FQWniTrFrYrssKq5EMwOU+95O4bHvFvZpA 3CjT/8DQQATQ8QGcEpb7SlmwMdlFpUmwmay3FE+5ppYsdCz39W8MOQjV2gqdapaEDBqn 3TB9DBVo6YRIb9tCazMbNKEPw6xVr0HVS1dDxyFJJKcbF+oDBFYmsd4fLC+OsvPrG5sU InKcqkMWrl3Znc3r3eQP7fZ2pZ535mF+em0fHCCx7pcK1KmiERCauqPIoga41xKu2JXT IWxJ+IYrKOtQvlLIUAG8kBKkTvva7sljVMIxktU+oTqg0KzczPO06t6yq91rwZzz7t5n UVNg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yMk/LPFqs7VskBV22jyb1Tdh2P4ZoSSQNrYCMOikFmQ=; fh=Ni7Hd1Wi6T75AJhDR0rQ6SWnpd2kdjkbElrX8xNxuYU=; b=MvzEqbpjUCX0uAKt76VAulWdnwDHauOfeu4UX06UqEwoLcrlPI74sVPfgn1jjTaPFp avCJRMS3Cq1YzAU7kXa01uj/mn02Yi6NdL+vRalpTRRvRUD0FuacGctSkYvDNlMciwBK VUhPgdST8jWP4y9jkIiU9WjfR8AKW4bAuN3y6D3el/8mLH8Eir5eW1ixNLFP0zdYE0wO p81vztVLmhGfSFMD03SYNu5RaFsRSzMGJ3YB9StaSgIssO7CU5UOZslFI9P6hTvaw6ue HYCIzi6B+JLB29WtYa6IolFzqeRCrQpkEPRDzCQxTfnmLPtEFihSkdeHsjc+mZCfrm8O 2IAg==; 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=uEGRsZqx; 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-5839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5839-linux.lists.archive=gmail.com@vger.kernel.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 g10-20020a63fa4a000000b005dc5070efecsi13250138pgk.825.2024.04.03.11.16.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:16:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5839-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=@freebox-fr.20230601.gappssmtp.com header.s=20230601 header.b=uEGRsZqx; 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-5839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5839-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D100C2857F5 for ; Wed, 3 Apr 2024 18:16:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CD7F1534EB; Wed, 3 Apr 2024 18:16:10 +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="uEGRsZqx" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 BADA0152DE8 for ; Wed, 3 Apr 2024 18:16:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168170; cv=none; b=piXc7TxcWkz8AxvKRckkDGRtO7rEtmAzHhNNyTQikvKx/ki7CAl0Gnr0w/lE4omNHCdH3o95l31Y7h9IIL1MUI6ueGWp0AVKvXr2HRFYjiGYFi2RPqxxLcKDnwd7efq1D1snO9BBCsfhl5kq/hcXUqytlCBQBp0ZIPEe32NSoYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168170; c=relaxed/simple; bh=a9E2mGfmVxcJ7x2M2sf17xeANHcNSUBMmGhTG7nDg+Q=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=X5IJ9AShoHPFd6NoR1PxPPSsTrc1slRjUTIXFM9ZrKD0LkX09VjyIIx0yVDGlgBlCAA9A1x0JOTJn1O5dehLysJ35SrzIsc4CH0KINrhY9bfUnJsySysmcyV3dNuffI3plk3lTpjCo0NJVYBTdwLuOS9kIoqldRUMgpITTcu4vA= 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=uEGRsZqx; arc=none smtp.client-ip=209.85.221.52 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-f52.google.com with SMTP id ffacd0b85a97d-3436b096690so989448f8f.1 for ; Wed, 03 Apr 2024 11:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1712168166; x=1712772966; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yMk/LPFqs7VskBV22jyb1Tdh2P4ZoSSQNrYCMOikFmQ=; b=uEGRsZqxt+GOjRB5J5PpXP7ZWa4Ht1abkW1eOQsIyRJr59DE8s2vIVZnkr4nz0JhPs SpM/bQRkYB2hVEOLFioBdnA53+W+/0dm5bHzNltzFVoWgisdadiznKVdHh7nwF0K5Upf J5XwvHQpDMCLz+CK+VTBO2hEc8nQ37wIxFhJgj6nudCYnC6uAXubuB91RekmkJMr4Y85 JJUtxqGzbT5mc0KN6Ji6vybIvbOLTvSYMEwD4DBLr0rO2IcR6WNFkGQ69Hqyzc1B1YXO 9IZg3Gp9sFoxHFwoPowZpqr2Rw1PicP6pRnltje7TLCHRLwB3g4E1wXE53DmGKgCXii0 prXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712168166; x=1712772966; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yMk/LPFqs7VskBV22jyb1Tdh2P4ZoSSQNrYCMOikFmQ=; b=IW6ZSqa6tzn9JsqZNFMo/2F0H7rOem3HsDf/ekEEdSogJXUaW0TDRE6BzZhzp3cfDg HbjPCRfF0l4GqAS5FvQOl2DrJ4BWjVxDwZdW0qWaBQiHuBG6SuBBCfV60/wJK1Cq2TUU 7IwMbf++WJkYy5W+/Uwzo7fBmZGzMIqiZDA+jGcEmMYnphdSyR1WlI/KgKftzAwGOXVK LLe5n6iaGDk3Xyd60Dt4cPDM2t6bEiBLR5op4SSbF+gap6JPcpIZjRaeOaj77JnhgU9F ooNBuRGNF3oef9BnKIDl0q4My8vQ4arb1oddUzOTepLj2lnq1NtqOTcCayKbVgu471ON dMxA== X-Forwarded-Encrypted: i=1; AJvYcCX0+xTuhleU4Y7ithA5OvOvpOYBpVmnHYIkQyFqoeukl6JYX0OZ+zxHcEIWAEq6r4SMiHh50xQvTm5rhoZ0MVYieL8llSRxE+bSZIBNL/k= X-Gm-Message-State: AOJu0YyQ4AKhYrWCFksA8S6f4ZvwsL0V7p3KH7l5x0LmSCwZPKTvpWJu gw+8kgawGe5JjZM9dsqW4reuBuRXt6jwkzXHVS4IRvcgznh3Ms3RVeuuf3C5RIo= X-Received: by 2002:a5d:690d:0:b0:343:8485:4edd with SMTP id t13-20020a5d690d000000b0034384854eddmr3336441wru.23.1712168165964; Wed, 03 Apr 2024 11:16:05 -0700 (PDT) Received: from ?IPV6:2a02:8428:2a4:1a01:79e6:9288:5142:9623? ([2a02:8428:2a4:1a01:79e6:9288:5142:9623]) by smtp.gmail.com with ESMTPSA id t10-20020a05600c450a00b004161b59e230sm6352480wmo.41.2024.04.03.11.16.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 11:16:05 -0700 (PDT) Message-ID: <43e18846-cc4f-4b30-8019-4617359ddaa0@freebox.fr> Date: Wed, 3 Apr 2024 20:16:04 +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 To: Dmitry Baryshkov 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 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> <91031ed0-104a-4752-8b1e-0dbe15ebf201@freebox.fr> Content-Language: en-US From: Marc Gonzalez In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 03/04/2024 16:12, Dmitry Baryshkov wrote: > From [Jeff's] message it looks like we are expected to get MSA READY even on msm8998. This is the code we're using: https://git.codelinaro.org/clo/la/kernel/msm-4.4/-/blob/caf_migration/kernel.lnx.4.4.r38-rel/drivers/net/wireless/ath/ath10k/qmi.c When ATH10K_SNOC_DRIVER_EVENT_SERVER_ARRIVE, driver registers an "indicator handler" ath10k_snoc_qmi_wlfw_clnt_ind() It handles QMI_WLFW_FW_READY_IND_V01 by posting ATH10K_SNOC_DRIVER_EVENT_FW_READY_IND which is handled in the ath10k_snoc_driver_event_work() work queue. But QMI_WLFW_MSA_READY_IND_V01 only triggers a debug log and setting qmi_cfg->msa_ready = true; $ git grep '\' drivers/net/wireless/ath/ath10k/qmi.c: qmi_cfg->msa_ready = true; drivers/net/wireless/ath/ath10k/qmi.c: qmi_cfg->msa_ready = false; drivers/net/wireless/ath/ath10k/qmi.h: * msa_ready: wlan firmware msa memory ready for board data download drivers/net/wireless/ath/ath10k/qmi.h: bool msa_ready; So basically, the vendor ath10k driver ignores QMI_WLFW_MSA_READY_IND_V01. I will test the following patch which aligns the behavior of mainline driver to that of vendor driver: diff --git a/drivers/net/wireless/ath/ath10k/qmi.c b/drivers/net/wireless/ath/ath10k/qmi.c index 38e939f572a9e..0e1ab5aca663b 100644 --- a/drivers/net/wireless/ath/ath10k/qmi.c +++ b/drivers/net/wireless/ath/ath10k/qmi.c @@ -1040,6 +1040,7 @@ static void ath10k_qmi_driver_event_work(struct work_struct *work) switch (event->type) { case ATH10K_QMI_EVENT_SERVER_ARRIVE: ath10k_qmi_event_server_arrive(qmi); + ath10k_qmi_event_msa_ready(qmi); break; case ATH10K_QMI_EVENT_SERVER_EXIT: ath10k_qmi_event_server_exit(qmi); @@ -1048,7 +1049,7 @@ static void ath10k_qmi_driver_event_work(struct work_struct *work) ath10k_qmi_event_fw_ready_ind(qmi); break; case ATH10K_QMI_EVENT_MSA_READY_IND: - ath10k_qmi_event_msa_ready(qmi); + printk(KERN_WARNING "IGNORING MSA_READY INDICATOR"); break; default: ath10k_warn(ar, "invalid event type: %d", event->type); Dmitry Baryshkov reported: Works on sm8150, sdm845, qrb2210 Regards