Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3505834lqp; Tue, 26 Mar 2024 10:53:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvjAx95D3EZcXcmF1NF6e2me4NZzhQcRXrma5xoeNa3mA5wwGNq018hMHFdRgpLOuPkJ8B0vALPFjtyK4LulhPalY3wqr61Rqt5UtmcQ== X-Google-Smtp-Source: AGHT+IF36MGL8bzGreV7CBbKQEfCYsPsPZU0a3TCo4uERNVaYhpvFUB4V4psWlVaN45/ufsXUnA3 X-Received: by 2002:a05:6512:32a6:b0:513:22f0:c3af with SMTP id q6-20020a05651232a600b0051322f0c3afmr2656573lfe.4.1711475610636; Tue, 26 Mar 2024 10:53:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711475610; cv=pass; d=google.com; s=arc-20160816; b=vkHUxU4Vi9eg3GodY0ODI/S0XxzbyPn6iGE80bmUOmv8E0MA7PWV3eJWv0m1BpIYLL V+qy6diqVmPWMBzC+o+RJaQJoAs6yNB27T0QpR5vdBM/nazFwFpdOw7+nibHOrU27vMu k3pQcsCI/I7ReA5dP7W1lFiaDlzoJKnaXyucKa2Z+EbsIinOGL2B/umZS1Fdd+DL1M48 QmGitAk6XKE4UVEnku5htfXtfVW8z0spDIMwo9m+V/ex4YWdLDhbv/DxpaiUM5Y+zANg rpd3my7BMqQVnsnbmzM9IGKScjjPcNKh4/vO5p8aCjnf7x7Xw12bxY3jCqs8rNW1VVD5 0OZQ== 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=YmwSVgcANgS6fYryY3emDGCDPEtDJ3DFBe5zLXj/myg=; fh=7UE/qEAbB8Ox85zVYaZyvrJC8F6/QV+wexHwMvXO9Rc=; b=o4gjBOdm7jRtxxaAplyjQWyDRWUqjvO7b3uPUusjHRq9syMEhuM7fVuDprYmLB7pTX Rm9p/TFgScWttTZwaYsYcCtqOjZbZhKKX08vMOOqgwfcHwLYl7VXvhB3ChEplP4WOaMl Pn4Pd6gcqTUoli6LxktRcRmrgkHOaz3HHuaXq+oJRqqdaG96vTW0Rws+UEfmVMh21X1m rJWzmPau644x+ysSndNPb9EnhQaF89r0sk6U5E5IK0++sAAeEEIpH66ZulUlncAtssu1 0YnGUAt8uPmuIeW5aA2t/bQw9M5wLXcPSxoAcfskKU0zTqnQDDvjHtjdzQxzpbo0n0Vk DyTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AhWscx7T; 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-5292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5292-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 kl14-20020a170907994e00b00a4748ddeaf9si3290037ejc.134.2024.03.26.10.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 10:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-5292-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=AhWscx7T; 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-5292-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-5292-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 D3BC81F65DDF for ; Tue, 26 Mar 2024 17:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C4281F94D; Tue, 26 Mar 2024 17:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AhWscx7T" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 588631F934 for ; Tue, 26 Mar 2024 17:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475519; cv=none; b=SCD2k59X+I41bqiP4Gqmn9Cae1MU43UYG+ExN+kG1XvuQPOZdYtH79q24YpzF2H2aQnfH8DFP26beIywqdhmwI2rCSSS/MMlw192EBd9BLXq4PHmAzo7Ss64HCfKzn6AKcBgP45Gxzllt2OwjH6IxBmW9q4snJwKYmp7rzSRBdc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475519; c=relaxed/simple; bh=6obsJHZ6gMXuezswJPV9YFcwAaX8svNPx/V5uZdQX3c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=O/Yi+0CPtcXEcYn1BeRqm+RTdLPZd+kjx2L2Thmse6QajzrcdUswAEkqn0vI4DSZBCanYvzzKmRbkfqBPzoZXUw7w4hZSX75gLU8B8+u+v/ler4ip6cIvihqpxU4Cx4YgjmU7NDcJb109+FRAlagmtkmPAbcYU+Rx9cMe8tTbb8= 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=AhWscx7T; arc=none smtp.client-ip=209.85.128.170 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-yw1-f170.google.com with SMTP id 00721157ae682-60a0579a955so69459287b3.3 for ; Tue, 26 Mar 2024 10:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711475516; x=1712080316; 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=YmwSVgcANgS6fYryY3emDGCDPEtDJ3DFBe5zLXj/myg=; b=AhWscx7T3tAGVuGFeBX0IXxH7wLpiLGjEXuqrfkRYz84eqISf0jzMa5VniQutbuI/5 xqfr7ILHn5KRr8z5J8j4IJxr6Fu+M1kCwuu57DCEqszboKP39vawZL93dyex5ArzgLHL ohRO3m2N6ocz/t3BHjR+b+RnTluOFVDwZc3+A8S+0FhwOWQXDkHvQp/9JkotESBZjDcf DhTbMOvzIpEmjUVJGz/e6Fu46pm23LmyXHoonq+IMHi8ShC37wyOXFa1SZCEiXptqYZO arokqy662dL1R6GzLaegnprpPKKAGg4xTr79Izes0mNNE7HeY1FFopN7rOVXwwYMh7ES /xSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711475516; x=1712080316; 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=YmwSVgcANgS6fYryY3emDGCDPEtDJ3DFBe5zLXj/myg=; b=Kg6UZDm2+tO2R0T4RMLy/p0gD6YcCml7QkvUiHuUq6OoobEJEYp6SI0SX8z9B/hpf6 wCoMG3raZQ7zGJMraIfV5s1yqZh2LWL/LUeWPcIyp1IyDcRYqG1gLeyu0KjIRG4Pj8pC xE8TZA8X4+uI2efVQje6iZyngckrCmKlJHA/L0HtlYGA/FfwhC+UtbsHAa3vWlVz84lR dK6ZPAtnCn1spOriuNnmtEvrgZpcSOnCVKoXXT6fByDgl11djdGxCAqswZePfuw0AXyV WeqYRNZ81/o2dzcOd+I9Mp8J/c6zXHtDeywp4z7m3PrmLdvSQYKRIPzKxBjIsVvakn6N 7KAw== X-Forwarded-Encrypted: i=1; AJvYcCW21+fkSwZH1qBufM9M4xOoBKKaSDjUgFoBzzdEivyV9eTDXiN0rnom4Q2PwiMEhQvrzOqNiJVJZnMAXqgi0I9Q8PlO9SyRqWK1BFxPy3o= X-Gm-Message-State: AOJu0YwX9KVKEX6YN+AaXAz6vbGsLM6LLZSgEu4B64JmFQsbVtZfk+Ie h431rZyTDT5PY6/6c8zTgKT6GtKWxsy2fkDDHF/eR6QS9rArl+0hoQ7uiP7ashXGc295KJWj0Gt DuS8xvZoGNU4TFXjkreWt4fpMi6OMuTQdrXzxAw== X-Received: by 2002:a25:868f:0:b0:dc7:49a8:e148 with SMTP id z15-20020a25868f000000b00dc749a8e148mr8467544ybk.27.1711475516256; Tue, 26 Mar 2024 10:51:56 -0700 (PDT) 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> <87cyse8j9m.fsf@kernel.org> <6d4b1381-c121-4cda-a8c9-9ccac56bd447@freebox.fr> <87plw87nsc.fsf@kernel.org> <0816f7bb-3c97-4b90-8e19-191552ea6e26@freebox.fr> <87h6hk7aee.fsf@kernel.org> <243a97b7-c298-4307-9f06-8b3a7c3e24fd@freebox.fr> <9293793d-00e8-42ce-87b2-05abc3b49387@freebox.fr> In-Reply-To: <9293793d-00e8-42ce-87b2-05abc3b49387@freebox.fr> From: Dmitry Baryshkov Date: Tue, 26 Mar 2024 19:51:45 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath10k: add qcom,no-msa-ready-indicator prop To: Marc Gonzalez Cc: Kalle Valo , Jeff Johnson , ath10k , wireless , DT , Pierre-Hugues Husson , Arnaud Vrac , Jami Kettunen , Jeffrey Hugo , Bjorn Andersson , Konrad Dybcio Content-Type: text/plain; charset="UTF-8" On Tue, 26 Mar 2024 at 19:45, Marc Gonzalez wrote: > > [ It has been pointed out to me that the previous message was unclear. ] > [ Below is my 2nd attempt at a clearer message. ] > > Problem: firmware-5.bin has not been parsed yet when we have to handle > the ATH10K_QMI_EVENT_SERVER_ARRIVE case, so we can't rely on feature bits > to work around the lack of MSA_READY indicator. Then, I'd say, we have to resort to the DT property, unless Kalle or Jeff have other proposals. > > > On 26/03/2024 16:04, Marc Gonzalez wrote: > > > QMI stuff happens much EARLIER than firmware-5.bin handling. > > (ar->running_fw is still NULL) > > > > > > [ 14.547563] ath10k_snoc 18800000.wifi: qmi wifi fw qmi service connected > > [ 14.555054] ath10k_snoc 18800000.wifi: qmi indication register request completed > > [ 14.561406] ath10k_snoc 18800000.wifi: qmi host capability request completed > > [ 14.568365] ath10k_snoc 18800000.wifi: qmi msa mem region 0 addr 0x0x0000000094400000 size 0x4000 flag 0x00000001 > > [ 14.573775] ath10k_snoc 18800000.wifi: qmi msa mem region 1 addr 0x0x0000000094404000 size 0xfc000 flag 0x00000000 > > [ 14.583896] ath10k_snoc 18800000.wifi: qmi msa mem info request completed > > [ 14.630179] ath10k_snoc 18800000.wifi: qmi msa mem ready request completed > > [ 14.681647] ath10k_snoc 18800000.wifi: qmi chip_id 0x30214 chip_family 0x4001 board_id 0xff soc_id 0x40010002 > > [ 14.681726] ath10k_snoc 18800000.wifi: qmi fw_version 0x100204b2 fw_build_timestamp 2019-09-04 03:01 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.1.0-01202-QCAHLSWMTPLZ-1.221523.2 > > *** ATH10K_QMI_EVENT_SERVER_ARRIVE is handled at this point > > [ 14.690657] ath10k_snoc 18800000.wifi: DT bdf variant name not set. > > [ 14.706423] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 14.712587] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 14.722309] ath10k_snoc 18800000.wifi: boot using board name 'bus=snoc,qmi-board-id=ff' > > [ 14.745634] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/board-2.bin': 0 > > ... snip boards dump > > [ 15.560607] ath10k_snoc 18800000.wifi: boot found match for name 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 15.570590] ath10k_snoc 18800000.wifi: boot found board data for 'bus=snoc,qmi-board-id=ff,qmi-chip-id=30214' > > [ 15.580393] ath10k_snoc 18800000.wifi: using board api 2 > > [ 15.591465] ath10k_snoc 18800000.wifi: qmi bdf download request completed > > [ 15.595786] ath10k_snoc 18800000.wifi: qmi cal report request completed > > [ 18.667441] ath10k_snoc 18800000.wifi: wifi fw ready event received > > [ 18.667519] ath10k_snoc 18800000.wifi: ath10k_snoc_hif_power_up:WCN3990 driver state = 0 > > [ 18.672579] ath10k_snoc 18800000.wifi: soc power on > > [ 18.684550] ath10k_snoc 18800000.wifi: qmi mode 0 config 00000000313ae0ca > > [ 18.692591] ath10k_snoc 18800000.wifi: qmi config request completed > > [ 18.748262] ath10k_snoc 18800000.wifi: qmi wlan mode req completed: 0 > > [ 18.748370] ath10k_snoc 18800000.wifi: boot init ce src ring id 0 entries 16 base_addr 00000000b9feff9c > > [ 18.753792] ath10k_snoc 18800000.wifi: boot ce dest ring id 1 entries 512 base_addr 000000005f850e88 > > [ 18.762971] ath10k_snoc 18800000.wifi: boot ce dest ring id 2 entries 64 base_addr 000000002467084e > > [ 18.772375] ath10k_snoc 18800000.wifi: boot init ce src ring id 3 entries 32 base_addr 00000000ded78c3f > > [ 18.781122] ath10k_snoc 18800000.wifi: boot init ce src ring id 4 entries 2048 base_addr 00000000c9e8883a > > [ 18.790482] ath10k_snoc 18800000.wifi: boot ce dest ring id 5 entries 512 base_addr 00000000309e9375 > > [ 18.800220] ath10k_snoc 18800000.wifi: boot init ce src ring id 7 entries 2 base_addr 00000000e5e3fb73 > > [ 18.809395] ath10k_snoc 18800000.wifi: boot ce dest ring id 7 entries 2 base_addr 00000000c08890b2 > > [ 18.818507] ath10k_snoc 18800000.wifi: boot ce dest ring id 8 entries 128 base_addr 000000006af0777e > > [ 18.827466] ath10k_snoc 18800000.wifi: boot ce dest ring id 9 entries 512 base_addr 00000000f2c0ce43 > > [ 18.836770] ath10k_snoc 18800000.wifi: boot ce dest ring id 10 entries 512 base_addr 00000000269a2564 > > [ 18.845863] ath10k_snoc 18800000.wifi: boot ce dest ring id 11 entries 512 base_addr 00000000f4a8c90e > > [ 18.855002] ath10k_snoc 18800000.wifi: Hardware name wcn3990 hw1.0 version 0x8 > > [ 18.865605] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/pre-cal-snoc-18800000.wifi.bin': -2 > > [ 18.871747] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/cal-snoc-18800000.wifi.bin': -2 > > [ 18.880307] ath10k_snoc 18800000.wifi: trying fw api 6 > > [ 18.889520] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/firmware-6.bin': -2 > > [ 18.894020] ath10k_snoc 18800000.wifi: trying fw api 5 > > *** firmware-5.bin is handled at this point > > [ 18.904176] ath10k_snoc 18800000.wifi: boot fw request 'ath10k/WCN3990/hw1.0/firmware-5.bin': 0 > > [ 18.907802] ath10k_snoc 18800000.wifi: found fw timestamp 1539237028 > > [ 18.916460] ath10k_snoc 18800000.wifi: found firmware features ie (3 B) > > [ 18.923027] ath10k_snoc 18800000.wifi: Enabling feature bit: 6 > > [ 18.929373] ath10k_snoc 18800000.wifi: Enabling feature bit: 18 > > [ 18.935279] ath10k_snoc 18800000.wifi: Enabling feature bit: 19 > > [ 18.941085] ath10k_snoc 18800000.wifi: features > > [ 18.946975] ath10k_snoc 18800000.wifi: 00000000: 40 00 0c 00 00 00 00 00 @....... > > [ 18.951534] ath10k_snoc 18800000.wifi: found fw ie wmi op version 4 > > [ 18.961235] ath10k_snoc 18800000.wifi: found fw ie htt op version 3 > > [ 18.967390] ath10k_snoc 18800000.wifi: using fw api 5 > > > > > > > > I don't know how to solve this problem. > > (If we just skip waiting for MSA_READY, there is no problem) > > > > Kalle, Jeff, do you see a way out of this conundrum? > > Regards. > -- With best wishes Dmitry