Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1042472rdh; Fri, 27 Oct 2023 03:07:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdigAgSUINBql/SYagGux6xV4L+E+oMwTdZjKa0WtoZ87SE0OnIR35IbnftxNhMdzVb9P+ X-Received: by 2002:a25:9805:0:b0:da0:29e2:d29 with SMTP id a5-20020a259805000000b00da029e20d29mr1942233ybo.42.1698401256851; Fri, 27 Oct 2023 03:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698401256; cv=none; d=google.com; s=arc-20160816; b=E9yachfjVW08fNniq/oWHKcbB5yBvsaZr2mWNwljiB/0AsK9KYTMLb1tNRo1qkyCIS tVxjUlITkFTj+KcVs+F7dnI17AjAgjr+6R37kfQU1mtFD5A2+ttu/cmwXzLIKXJOegMX UVPKIjNbR7W5u6V6qqkiYWwzC0mcWQtXGTAmDYetb2W1NHJTTjxMuMdoawl7YPf8h8tf 6gIwI2hmvcSPGpeH2QfN2td+09wGaWgrJB3msPPLwWDfmK4eOzs4lID0fyAc7qS8dhbj d/gyLa4uNLcEgSygR3pXmCjoeDjiiu8sAg066UngeZm0JmJeNgkQUJUvTCod8wP0JibX n1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=W2ttGxsEpCovYo5WGBI/2wLRWRua0I9N3WCMj8o9qdk=; fh=LkZuj8WX6MxyYPG/2ft7/ekF7TpfuloE6lWns0p9Pvw=; b=cwtgcX6a7TNBcjteE3J3i68u31M89J29tRESFwWos1OJWleFsArmSZpGdFoY8y+w3o +dqEehOmfyvk23WnGZEvUelKHP+5lkM2ZSXGXOiPVP09MMcNVN0cNiSjoR8LrRfbi3QF HajbkxDPvRxfKcprp08ahTSoAC1k2N+CiOYkRF+a6UFx0T7QAl4JcWuH8r96DyG3BVXg lvMVtytK6Jp5qngcmBbrWHAJ//LRLGktA6vp+zjhrpJulQi00J6CyEvqWcY6TRPFn9fT 7vwjJcEzmoNJSGZihlaun3HCDuZO/+lGpP7wRJmAKbuBVW2fFBy+ZIT8AiKRB/6PiOS1 a6yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=lBmY1PeY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f83-20020a25cf56000000b00da05370fdc6si2165366ybg.225.2023.10.27.03.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:07:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=lBmY1PeY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7D61083A2BC8; Fri, 27 Oct 2023 03:07:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345581AbjJ0KHP (ORCPT + 52 others); Fri, 27 Oct 2023 06:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbjJ0KHN (ORCPT ); Fri, 27 Oct 2023 06:07:13 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78ECD10E for ; Fri, 27 Oct 2023 03:07:11 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so296953966b.3 for ; Fri, 27 Oct 2023 03:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1698401230; x=1699006030; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=W2ttGxsEpCovYo5WGBI/2wLRWRua0I9N3WCMj8o9qdk=; b=lBmY1PeYgZfGZHhF2ipQeifDPJfHLIZueGkvb1MqXm55J+e6PLu5WRwxrfCYj4Z+WT R8Z8LTQm7nmaHSF+TF7NPXQW/xsOKL/cJSN7sjj+l2mOWeI3Zn9xcET+a6f9E605Uq45 wY9ivoR9cFfTvJvD58GDUMCi9/d8X4QqxG7wN2YlmzYo3F66oO/rvNZ2vmsH9E/egQz7 9U1I0fP0VVequ70rYdnKpTuUg0gWctPjqKUP4yrf3abfWu8XKIhSNWXkve2cQFtccv1g BCZNWRQ1TG6J3sJvYj8Gk/FZiz1sn5fpx3hdIohc/gg1A2NGR3y9K435/Bwq4V+QbiOo V0+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698401230; x=1699006030; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=W2ttGxsEpCovYo5WGBI/2wLRWRua0I9N3WCMj8o9qdk=; b=JQwxt76JRErtxL1SsGAUPbXtMOLTLR8tna262xxir/7H1JftORUsPsKQyqphZMU2Pd 6wgL1xdkplNmgeDL6TjKdThtL8GHUrqb5DZQmIItLi8t6ZBzNZ8LvQLiDrOXkketud7i 8hbHNLXQ3gg6iM0E3rXwXz0cmvU5B05hmpit4pQYy1ge+GC8SxhqlrwbO5Iylv8gyNai zLyY063JWvO5dufTuAxhnEzu2frTklzKw6k2zNzW2k35wXnsSGGg8QU3To5oTo7x0LHY Ijsl2/SLfo17sk2Vk3XjTSwaOo5lNuvhwpSqOMMHjeMV8J+4aYGCga2fJn/8AQ1fouxV QSwg== X-Gm-Message-State: AOJu0Yxd0LO0gncgZvrZ4scLFlcqUYuEXdVl1DBEIiDa5nKTgn/Hme+N nYWyxsdK0w6JkUyQxhqqr9IKSA== X-Received: by 2002:a17:906:fe4c:b0:9be:2991:81fa with SMTP id wz12-20020a170906fe4c00b009be299181famr1956326ejb.39.1698401229965; Fri, 27 Oct 2023 03:07:09 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id c16-20020a1709060fd000b0099cb349d570sm949317ejk.185.2023.10.27.03.07.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 03:07:09 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 27 Oct 2023 12:07:09 +0200 Message-Id: Cc: "Jeff Johnson" , <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH] wifi: ath11k: Defer on rproc_get failure From: "Luca Weiss" To: "Kalle Valo" X-Mailer: aerc 0.15.2 References: <20231027-ath11k-rproc-defer-v1-1-f6b6a812cd18@fairphone.com> <87lebowjyf.fsf@kernel.org> In-Reply-To: <87lebowjyf.fsf@kernel.org> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:07:16 -0700 (PDT) On Fri Oct 27, 2023 at 10:25 AM CEST, Kalle Valo wrote: > Luca Weiss writes: > > > If we already have gotten the rproc_handle (meaning the "qcom,rproc" > > property is defined in the devicetree), it's a valid state that the > > remoteproc module hasn't probed yet so we should defer probing instead > > of just failing to probe. > > > > This resolves a race condition when the ath11k driver probes and fails > > before the wpss remoteproc driver has probed, like the following: > > > > [ 6.232360] ath11k 17a10040.wifi: failed to get rproc > > [ 6.232366] ath11k 17a10040.wifi: failed to get rproc: -22 > > [ 6.232478] ath11k: probe of 17a10040.wifi failed with error -22 > > ... > > [ 6.252415] remoteproc remoteproc2: 8a00000.remoteproc is availabl= e > > [ 6.252776] remoteproc remoteproc2: powering up 8a00000.remoteproc > > [ 6.252781] remoteproc remoteproc2: Booting fw image qcom/qcm6490/= fairphone5/wpss.mdt, size 7188 > > > > So, defer the probe if we hit that so we can retry later once the wpss > > remoteproc is available. > > > > Signed-off-by: Luca Weiss > > Did you test this on a real device? If yes, what ath11k hardware and firm= ware > did you use? We use Tested-on tag to document that: > > https://wireless.wiki.kernel.org/en/users/drivers/ath11k/submittingpatche= s#tested-on_tag Hi, Yes I tested this on qcm6490-fairphone-fp5 including some extra patches for wpss-pas remoteproc support (nothing special, just adding it to the existing PAS driver) and wifi enablement in dts. I built this line from info from the dmesg, hope it's okay: Tested-on: wcn6750 hw1.0 AHB WLAN.MSL.1.0.1-01264-QCAMSLSWPLZ-1.37886.3 And thinking about it, a Fixes tag would also be appropriate for this patch. The code was moved to a different file in commit ba929d6fe31a ("ath11k: Remove rproc references from common core layer") but I think this tag should be correct. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") > > I can add that in the pending branch if you provide the info. Thanks! Regards Luca