Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp66801lqb; Thu, 14 Mar 2024 05:52:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWP2256ge8YAcPqugKgbFQRCQgY9Yx61uvasJ928lBdqvC5vbEZkdrGWKSRj04fqEmg4iA6oPCVS3YRtgm0vAO8L71V6ylu07CEpeH7w== X-Google-Smtp-Source: AGHT+IFj1C4EusIBk0wmbJVLjJd4+90HEtMo22SrhMAqIYXZM4WpvF4Sa38Q8eKuD8MJxi7QUNHF X-Received: by 2002:a05:6214:8d4:b0:691:122f:229f with SMTP id da20-20020a05621408d400b00691122f229fmr1515813qvb.0.1710420747484; Thu, 14 Mar 2024 05:52:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710420747; cv=pass; d=google.com; s=arc-20160816; b=T2D5piIGj6fbFHcI5K+3juDOmGROx7Eo8KqSzH5i0hR4grlNVFhTj5arhPPbaHi7Xx Gj5YdP6Ruz6cOYou1eBCp/YssP9iPiVy7Qu5Sjw97LNxbBzHtrQSijJUc1KzAiv4Nldt cx8ZSq0iJXEVqOug7vS0i6m2c6OAefuHu68uW+P270VnMyMq0+kgXMRF9GcIfQq6n9my Kr7tLbU7b2lGHebnHOR/JjdbF2ZYkviHtxsxa/7cIUtA47n1fZSMdBKRtM7DeNwzwBbR Snly/dq5EAwNEjMX8seoVQGeZiDG9h1XjBtLszhVU37niK0Yvy/+7XLN1oQy/ONcRmyX 4M/A== 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=OpakeXG7lnYh4AwqEGI18Zf+2/wDYzbFbSRJoPHhJPI=; fh=m8sI17Gus7OksCUTEpPBBJX8LGPdjVCFPbhZbQd6mMI=; b=Sh3I6d657/J1y5M0UCvLx0m3GojRkFURHhqxbdKe5zuE2W5yC8XCnOoOtqP5AFUR88 0B5d/I5pWzkubflvpY5m8tHmDsQcrv2cu1NE6ilgVWp0gqj5HfC0AgOUDmgRM1Zo0qu6 BvNKRoXILts6y+PKNKDqJ/wpEzfbPE9dOi6j+56+Y5j8Zn44IA/nDzC0qUEkOq25/rG0 ZQgfR1z1xRZhgyCAgFgcmtcbskgrzsV4A1xPkDSC5C9nUFvSWIAVYRnu1YcPy6Y2EQxv UIdqkYFQZYK1E2gbOsycNTjvpMXGp/FFwD0hvwNJAbN1BY2qfSLOsvqsZjIYqy/WuC3B Bsxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q+YziKXH; 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-4747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4747-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kk30-20020a056214509e00b00690c166a0c0si573228qvb.540.2024.03.14.05.52.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 05:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q+YziKXH; 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-4747-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4747-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 29B1D1C20AAD for ; Thu, 14 Mar 2024 12:52:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F303258AB4; Thu, 14 Mar 2024 12:52:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q+YziKXH" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 3AA6F18E20 for ; Thu, 14 Mar 2024 12:52:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710420744; cv=none; b=NM6F3S00XclF4bnX6riVmXR1YE1wOnxn5FeSIEiVc9Teq2+ZIuvjL27VFG4ZP0K5xPWnzNkMznw7wX5eoGNamooi0FlPpovP7I2KkzddkWDG83GD14KNhOM3RsWoH+HzSFh2+tT6Yln1oTrc182Cwqy0psJX0dx62fEm8DabgL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710420744; c=relaxed/simple; bh=t8XPGkgCCS1SphT8rzH9OgJMH9bG+rko2YF2P6c4yxs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=logvMK5j3FNS8liO2IU3EkEnpLIh7qloakQFCF7ABhYSAWhnzFSPlMaqRualhY55Ub1uPyJVmSK/JGHPvZ7SUxblthpTtLat7AH5HFkMlYaPUtr5KcrY1Zp4SXaCB6SZR3dggPoGI3maOBVvfAvcynkPgb0GNJLlbEhf9b5dsiM= 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=Q+YziKXH; arc=none smtp.client-ip=209.85.219.171 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-f171.google.com with SMTP id 3f1490d57ef6-dc23bf7e5aaso798840276.0 for ; Thu, 14 Mar 2024 05:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710420742; x=1711025542; 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=OpakeXG7lnYh4AwqEGI18Zf+2/wDYzbFbSRJoPHhJPI=; b=Q+YziKXH603ZClsUkVpcdstTwvvRpAgQaZulkiT9arMUtbgxC7iW4y0A2GKyq0mGu1 9TrpuIK4ZHry15eCBM7KCKKGMtGjN8nn92ImOixEspo/+jRf2rk1ZSFLUOiTCj6G1GFp 9RIPhtBtVT+g7w+Bi3Ngu9BcrkFJRWwloO1hF6rsL2S9hRatvl4LjwhU+/2zePtd0IjV W8AzDLYA5S0/TPwRxXxrffq5lPP2JK9FZsmRnD1zGEhwOM21IABkuSP+duK42XjiIb0G P/vkx3mTQeTpTR4ZdS2bkXhJN+9IuZHKF1YXR/8YZHY3gESZCm68cNQP0QGBfhTpli4d TDVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710420742; x=1711025542; 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=OpakeXG7lnYh4AwqEGI18Zf+2/wDYzbFbSRJoPHhJPI=; b=voEJF5s1lwEybGKltFSA+/dPuf/y8VcqDiez/Pj6y7cTHrsyksx09urC5o98kdxR3T XlxBP2ca0hRWGJdl5kMZjf+uXhpDLXlIA41NCB1m4hsddqQEhotGCr9cuSAFu+ibVWMo zOHTn9EtzVZ58Uq5y5Ky7HGO8aw+HLrLExReebnyBbFDjHsONh42eglfszKHtGLpWRBe mZuQAWpvcSHSpzWspYhw2ohKKiPtNnCqyVr271EUWh/FgXMuDhqtNWCOnGcJR4QOmk4A wyxjQSSCSdoErZGsrT5cO5H46x9otMFnY0m7BK69gz1YrvhRmq/5GmndZFNYjCNAS7c7 qaAA== X-Forwarded-Encrypted: i=1; AJvYcCXxgStJxUux/U+U48zTJGVins7V99rhBB1o0DqBDnQdHaaRd9cdxM6duTffspmxSEJ8cdQ0E8ZsBXoQqaGNTdgaptYGROOKLuo+yTyqyh8= X-Gm-Message-State: AOJu0YyHNU6G5+FOFbNTnWsR2NDMSjR0G3K3JHGz2Tq9PMzY8T5LFssf 4YaJ1j4noTiptQqa6lCAbqZCtHTBfAtlJ3MllHiwLgQNo7EkDR0ogvh0AIJV0AGLrOL2DveJetE e+NF/1yy2tcIuHR/LEfx3rp1H5eFqv5bMlpAJRA== X-Received: by 2002:a05:6902:e13:b0:dcc:9e88:b15 with SMTP id df19-20020a0569020e1300b00dcc9e880b15mr1697730ybb.41.1710420742226; Thu, 14 Mar 2024 05:52:22 -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> In-Reply-To: From: Dmitry Baryshkov Date: Thu, 14 Mar 2024 14:52:10 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: net: wireless: ath10k: add qcom,no-msa-ready-indicator prop To: Marc Gonzalez Cc: Jeffrey Hugo , Bjorn Andersson , Konrad Dybcio , Kalle Valo , Jeff Johnson , ath10k , wireless , DT , Pierre-Hugues Husson , Jami Kettunen Content-Type: text/plain; charset="UTF-8" On Thu, 14 Mar 2024 at 14:31, Marc Gonzalez wrote: > > On 13/03/2024 16:53, Dmitry Baryshkov wrote: > > > On Wed, 13 Mar 2024 at 17:09, Marc Gonzalez wrote: > > > >> On 05/03/2024 20:20, Kalle Valo wrote: > >> > >>> Marc Gonzalez wrote: > >>> > >>>> I need to build a kernel + rootfs + FW to test the proposed solution, > >>>> then I can spin a formal submission. > >>> > >>> Yeah, please do test this to make sure we are not missing anything :) > >> > >> I used buildroot ( https://buildroot.org ) to generate a kernel + rootfs > >> for my board (a variation of qcom/msm8998-mtp.dts) > >> > >> Not sure if I must use the vendor FW blobs? Or if I can use the blobs > >> from linux-firmware-20240115.tar.xz (as supported by BR2). > >> > >> > >> All I see from the ath10k driver (with debugging cranked to the max) is: > >> > >> [ 0.539801] ath10k_snoc 18800000.wifi: Adding to iommu group 0 > >> [ 0.541941] ath10k_snoc 18800000.wifi: snoc xo-cal-data return -22 > >> [ 0.543633] ath10k_snoc 18800000.wifi: supply vdd-3.3-ch1 not found, using dummy regulator > >> [ 0.544002] ath10k_snoc 18800000.wifi: qmi msa.paddr: 0x0000000094400000 , msa.vaddr: 0x(____ptrval____) > >> [ 0.544271] ath10k_snoc 18800000.wifi: snoc probe > >> > >> > >> # ip link > >> 1: lo: mtu 65536 qdisc noqueue qlen 1000 > >> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > >> 2: enp1s0: mtu 1500 qdisc pfifo_fast qlen 1000 > >> link/ether 34:27:92:82:48:ec brd ff:ff:ff:ff:ff:ff > >> > >> No wlan device at this point. > > > > Do you have pd-mapper, rmtfs and tqftpserv running? You also need to > > have wlanmdsp.mbn in the same directory as modem.mbn for your platform > > (see how this is handled for sdm845). > > If these points are implemented and you still don't have the wlan, > > please check for tqftpserv messages in syslog. > > I first tried using buildroot, which doesn't package these tools AFAICT. > I have now generated a debian rootfs, which does package them. > > > >> I got shell-shock from reading these setup steps: > >> > >> https://wiki.postmarketos.org/wiki/Qualcomm_Snapdragon_835_(MSM8998)#WLAN > >> https://github.com/jhugo/linux/blob/5.5rc2_wifi/README > > > > These readmes are mostly correct. You don't need qrtr now, it is > > provided by the kernel. pd-mapper (protection-domain-mapper), > > tqftpserv and rmtfs usually can be installed from your distro. > > Can you explain a little bit why all the steps are required > just to be able to talk to the ath10k IP block? > > It's just an MMIO device, right? > > wifi: wifi@18800000 { > compatible = "qcom,wcn3990-wifi"; > reg = <0x18800000 0x800000>; > reg-names = "membase"; > > Is the IP block behind some kind of switch that must be programmed > by a remote processor on the SoC? It has a separate core, with the firmware to load, etc. For some reason the firmware is loaded in a complex way, via the modem remoteproc. -- With best wishes Dmitry