Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6071272rdb; Thu, 14 Dec 2023 07:38:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7J6MdLLZ9onpCSfEidImxFwqtYRVAnf56G3vIP8r8XcZdp5gNTyRb6y90Lc/EpnUGSTak X-Received: by 2002:a17:902:e88f:b0:1c9:c6f4:e0c3 with SMTP id w15-20020a170902e88f00b001c9c6f4e0c3mr12360342plg.62.1702568330223; Thu, 14 Dec 2023 07:38:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702568330; cv=none; d=google.com; s=arc-20160816; b=KRyN6ATX49ckNYBuTy/4YKJqU5YxHsvi6PiNw+9GZmSKx7v/gCA1K7Rlb258s6jX4a pRjkkiTW8WVwRCD9z3E73DrHQFfrAhJr1CnoGYCgR930rKsUbvn9Wv2CaWzezTRpW3vB u9ypCfExiElOgvHMmruredCEAp2SAlUYN320RoQFf1Rkub1VEN0Im789fAhUGtz/TNt0 z569y9kStYEyZKbxhcsa0V2wzPq7bxwhpt07NZXQ6DIeBF7MoA9D/a8cnNKmRyAhjlcd QiRGmGSONkNm9BA9WYnvmF0o/xix2WpNlwu5meNC0cEWm422T5202kdtD5i/qsmnVpkl DXxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=75BgUlKSF86puvOubHOfUJSdhrEItpmOZ/91cux54zg=; fh=oqxqugQCVbMrEq/LIAsAc6A48Bnjj8DVG26M11aR5a4=; b=0VzFlgA6roCqleK4KA2Tt1QIIXB3qYbpVOjsxSQv2paOrDDN9DvZDc3poM6pCogR8O RKaPxPjem7ZoAyUTUykMLUCbSrJC7ZNnYUw0Urk8NhryZiTRiT3CpHvA7yv6ZU3Ejk2P FJ9lbFWrvyQEXRmRonqm0QGnpGwpLTHVe0KgsjEGkSDm/nu/H4GEVBXaUD7+F/MQjDpy w6ANJ5J5dtdDjbpbDir47GPlIva3Ri+1iypSDenfwh63DZi5mLLAt/fdPGsOPFI+1/xX 1hzafyKw4T+4aleR2Iy2sDcQiaZByLy7kuqOAaj5/gCxpRCcKyr+MFXooAtj71IEnqLg mqRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OitvvanX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id s13-20020a170902b18d00b001d3442ef0b5si3917802plr.423.2023.12.14.07.38.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 07:38:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OitvvanX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-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 agentk.vger.email (Postfix) with ESMTP id E746280ECAC8; Thu, 14 Dec 2023 07:38:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573857AbjLNPie (ORCPT + 99 others); Thu, 14 Dec 2023 10:38:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573801AbjLNPic (ORCPT ); Thu, 14 Dec 2023 10:38:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F7CD125 for ; Thu, 14 Dec 2023 07:38:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 214F1C433C8; Thu, 14 Dec 2023 15:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702568318; bh=brtBYO+yjwauuTE/WiwDaux0zB+BgCD25n+R1WAC2ZU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OitvvanXq20Vh7pXwImIER2xZrfgDg27ss6pa2YNQAujQPxMSX+hOJbhwXpMbOaWq Uy805fr1ljRaj+p+OHsK2rSRoDSyROAtebpHfDck1N6iIbaLAr42166FF132Sl5jKw Xmb+q3YR67kSG8SJw4uB6ZJ5F5tyXs2AhXl+xLxL3u41ZcMTugV39/6QWEUFo77Acf UOFNwzojiSMFg6aq7aw6EHvPnShZ46Q7X+genuYdPUAtlue4nvSc9oPKtRvGAyn0z1 K2Y1HJ1rsW1xkvC0wnGbtHBKjJfBwV8OdErm2VYMjB/dMq07nBnY++bKaAB7owp++K 8klBI2Fypstmw== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rDnnH-0004m5-0e; Thu, 14 Dec 2023 16:38:35 +0100 Date: Thu, 14 Dec 2023 16:38:35 +0100 From: Johan Hovold To: Dmitry Baryshkov , Rob Clark Cc: linux-arm-msm@vger.kernel.org, Rob Clark , Andy Gross , Bjorn Andersson , Konrad Dybcio , open list Subject: Re: [PATCH] soc: qcom: pmic_glink: Fix boot when QRTR=m Message-ID: References: <20231213210644.8702-1-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 07:38:47 -0800 (PST) On Thu, Dec 14, 2023 at 03:09:36PM +0100, Johan Hovold wrote: > On Thu, Dec 14, 2023 at 04:04:49PM +0200, Dmitry Baryshkov wrote: > > On Thu, 14 Dec 2023 at 16:01, Johan Hovold wrote: > > > On Thu, Dec 14, 2023 at 01:04:43PM +0200, Dmitry Baryshkov wrote: > > > > This is a known problem. Successful probes during the probe deferral > > > > loop causes the whole loop to be reiterated. Creating child devices > > > > usually results in a successful probe. Aso I thought that just > > > > creating new device also causes a reprobe, but I can not find any > > > > evidence now. > > > > > > This still needs to be described in the commit message. > > > > > > Only a successful probe should trigger a reprobe, and when the child > > > devices are registered the parent is not yet on the deferred probe list. > > > So something is not right or missing here. > > > > Child devices can be successfully probed, then the parent gets > > -EPROBE_DEFER, removes children and then it goes on and on. > > So what? As I described above, the successful probe of the children > should have nothing to do with whether the parent is reprobed. > > If that isn't the case, then explain how. I took a closer look at this and indeed we do have code that triggers a reprobe of a device in case there was a successful probe while the device was probing. This was introduced by commit 58b116bce136 ("drivercore: deferral race condition fix") and the workaround for the reprobe-loop bug that hack led to is to not return -EPROBE_DEFER after registering child devices as no one managed to come up with a proper fix. This was documented here: fbc35b45f9f6 ("Add documentation on meaning of -EPROBE_DEFER") But please spell this out in some more detail in the commit message, and add a Fixes and CC stable tag. Johan