Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp997296rdh; Fri, 27 Oct 2023 01:25:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUEcx9Gy9wk9S4wY0T6jQTJHc0njJaToWVzXAPAN0nQSC59s6dvpygZRjI2YoX9yZTmgJ9 X-Received: by 2002:a67:e1c6:0:b0:45a:d590:6035 with SMTP id p6-20020a67e1c6000000b0045ad5906035mr2264293vsl.9.1698395148324; Fri, 27 Oct 2023 01:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698395148; cv=none; d=google.com; s=arc-20160816; b=be0JhQPQJWoiN0uUMYaJk1V4LU1SRHnkau438e0sfScbeiRGr9mr5QIc0VqRZzpXEy BOpi3/TvtRBUtF03lXxlwePiMtMYbT9UTumuGSjxGQ8dz42LUL4Xvrrb9ymlcJojpe7+ Pfmqf9n4sYxicpm6aszPmrCOW0Z2QqmMax+qqS3AX8mUXgyrLNp1MGlcCdExUDcWFoy8 fGmVFYcFjVh06/6pQavr3haIg3leoeRDffoyLEtQsZwMMwPanZhK9+kh+vf0mw/6Ztaq K2QlDugouvzI1tvaFx8L+pc+pJVv5drbO6Hrn/S7nAXFZ83F6uXOqi22BBMbqsT0gzPF BaFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=/9HYqSjF0aiy4XDZqN3vzUkqlonAzhh0xuXhaAOekKk=; fh=7Cw9NQAagpXSsVSOF58YTlyoyz9xLmRBPBUqklROUh4=; b=SXPI7w3GO13oOjAXIGuoRK2vGgVnQcUmWaq+ss/M0ry0IyP+DWNVctNYpkzRi8gjUR k1ikQthpaPWTkowk0o1Dl5K0foyRz+swPwwhS78gYQr6bmynjCr1J0QASKsHytR6LIzw 3ujKLqyW3W0hbW4HLzMERjWfZ/RnIu4NopGN4adWBtGvrb84hwPGtlo0U/hC4bYgqcrj VVeemJV+1NZA6c/3tybCI5rnz/i0M2bverpZ+4nAIdSQiJvAxJ75fJY6eR/r/dkbDTSb Y8nr10ittX+1fQn6oLmi4JY3zNnhoQoVEnvpYQ/npqguysp4dGzPlXQymd0KhFyaYuGG Ku7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iHzGHUBY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b200-20020a2534d1000000b00da034b5865esi1767852yba.187.2023.10.27.01.25.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 01:25:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iHzGHUBY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 58FFC822E570; Fri, 27 Oct 2023 01:25:45 -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 S235017AbjJ0IZf (ORCPT + 52 others); Fri, 27 Oct 2023 04:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235073AbjJ0IZe (ORCPT ); Fri, 27 Oct 2023 04:25:34 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B57511B1; Fri, 27 Oct 2023 01:25:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C3D5C433C7; Fri, 27 Oct 2023 08:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698395132; bh=QfeOWdwE/IqoYB+mqr3chG0yS+T71+Nm/ssIY25qlkk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=iHzGHUBYp8J5jK0eJJXhQwe2tROaFdXhyaE9WXpL2QJaeNYhqGWrVX/Wuov+RF7Yz jtasbTiM94yhN0ZwLm9vSB0XMYB01AiFWbi77ecTU98zIsIPsH3tuw1XQCczwHec74 VLg8Hq/oow8+z7plFR88BHej0Btb9VGwUaS4FxaVzKvSkWtluXiAql/7sjQzlzLhTD EkMgPWxkjqPLWlipA+KLtEUxV/m2D+NlZ0bBCOvLG14G0z0tCxkbFKFxMNLRuHIndZ 30tlzT8KETaxluOYytLD0Xe9gn0y/7f/cmyOumwVOLNX4UDKJgp+jPZYiH/7EK42Ec E/ovnyIHnxUdw== From: Kalle Valo To: Luca Weiss Cc: Jeff Johnson , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, ath11k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] wifi: ath11k: Defer on rproc_get failure References: <20231027-ath11k-rproc-defer-v1-1-f6b6a812cd18@fairphone.com> Date: Fri, 27 Oct 2023 11:25:28 +0300 In-Reply-To: <20231027-ath11k-rproc-defer-v1-1-f6b6a812cd18@fairphone.com> (Luca Weiss's message of "Fri, 27 Oct 2023 08:57:18 +0200") Message-ID: <87lebowjyf.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 01:25:45 -0700 (PDT) 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 available > [ 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 firmware did you use? We use Tested-on tag to document that: https://wireless.wiki.kernel.org/en/users/drivers/ath11k/submittingpatches#tested-on_tag I can add that in the pending branch if you provide the info. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches