Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6508369rdb; Thu, 14 Dec 2023 23:50:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8KxJ4GIby5lVXPZk7JfhYgFwFOEVWQ2J9/AxOGjsVEsmO/xgOYu9zh5Ctu/fvTW+Yq29t X-Received: by 2002:a05:620a:480c:b0:77d:cec3:3524 with SMTP id eb12-20020a05620a480c00b0077dcec33524mr13785838qkb.36.1702626645959; Thu, 14 Dec 2023 23:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702626645; cv=none; d=google.com; s=arc-20160816; b=Akcfh65A+kD90E5EQKqXmRMvdOxFCTphp/y8SldpP6/kNkGj2hm+g2JLATfHp98YPV mIuurG4x7U8TCfPMmiJon967Xeo4OGYLxCmHKX1vDrUpkoy946QX3XA6ywzCWJ9Ktf57 xeMnS5K6CThZNLhsm6wVwf75fDOBC0bYdsai25kLfYN2P4d+p92Gm8ZKY5lpg7xhjD6G kH0VPDloJdVz3aGNvQwF4/H0R76Feu0/Y2gSQD3ySkqrkHUTgMcOAaYrI1aUH4uPXNEc LdNcHqZMGDXX3bvUaseAKxQjIhbWElszrtIJ+7chgzHJ5JuptueTPQ4eZYCppUaY8ojG cmow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=r0PTOvrFYzIZNevWRusb1hh5vEWTYzU2djpD8emPRtU=; fh=fb8ZhrDjxEx/lm6QsJQ6USYxnK/Bo2+t2pHvEiz/Kic=; b=nnjMBwBpeCmSt9kVypOCxz1b4gJGFmgaPlVaAb8jH9jNmNRtqlDImCHNY0gAjKmv7T KSbj7Hy1Ubqkm9xqnTHdXu1GeqLmpUbQKacWcjBrtG7lUZQqCpZ6E85QpQABLMYns/O9 o1imAsbSOebXPNVKSERgTS36TCmd+ZBe+xBwiPbw1rG1eIrWchYNxLf2vKN+KJEu1TLN wxZ+tXaO8Yf0xsX1l+VG5JjkFZAHdSbr3UoA8K/ByKcXrcyH4ll5QpKmT6wWByf0obxo 41bj7HmZkLPKNKdBktEOMb2YJDt/oakxsxUabeyP5CGha7pTpcOVbZvNeAwAVlBO+96v 6KQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vNrcWIPF; spf=pass (google.com: domain of linux-kernel+bounces-563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w14-20020a05620a424e00b0077dcc7be14esi17851910qko.140.2023.12.14.23.50.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 23:50:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-563-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=@kernel.org header.s=k20201202 header.b=vNrcWIPF; spf=pass (google.com: domain of linux-kernel+bounces-563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 A060C1C20892 for ; Fri, 15 Dec 2023 07:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D13E1095A; Fri, 15 Dec 2023 07:50:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vNrcWIPF" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D7EF107A4; Fri, 15 Dec 2023 07:50:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF90BC433C7; Fri, 15 Dec 2023 07:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702626635; bh=vbor0/x22PNu3gqlwMMEYKNlzreoR29T2zrYtNDm+o8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vNrcWIPFK81LdUvYkAvK3OXRcr0rv6R0UunNq23hDRlD087FCNlakv959X2MsvnQS 80YVslQkp57pnuAj3B6M0UU6fZ+aZzctt3U398gRKxNPurKsPu7hYK0a2bgt624dZn SHCOoLuWK5Y43Oj4b9mNamaPaxr2AVoktXxz8NdPgZagn6o4pjPQXfvBoGYhsbSmbO cUZ4l/PzS5mge5JtJvG1yv5ox/nLDywbUy2wifezM0B++QKXnyPyggjVP+Xllc6Cqf ti5EV/7Vjcg9gHH7tS0XBT/nX1WTHSDDzgkXrBtB18lFaH+k6rf3ee2H95r1iRk9Bl aTW+BIoEXmjBQ== Received: from johan by xi.lan with local (Exim 4.96.2) (envelope-from ) id 1rE2xq-0006BT-2N; Fri, 15 Dec 2023 08:50:30 +0100 Date: Fri, 15 Dec 2023 08:50:30 +0100 From: Johan Hovold To: Rob Clark Cc: Dmitry Baryshkov , 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Dec 14, 2023 at 12:44:10PM -0800, Rob Clark wrote: > On Thu, Dec 14, 2023 at 8:08 AM Johan Hovold wrote: > > > > On Thu, Dec 14, 2023 at 04:38:35PM +0100, Johan Hovold wrote: > > > > > 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. > > > > And please update the commit summary as I've been booting with QRTR=m > > all along just fine. I guess the issue is if you have pmic_glink > > built-in or in the initramfs but forgot to include qrtr or similar? > > I do have both QRTR=m and QCOM_GLINK=m. I'm honestly not sure what > started triggering this issue for me.. it seemed to have started after > merging msm-next + drm-misc-next on top of your > jhovold/wip/sc8280xp-v6.7-rc5 (the merged branches were based on -rc3 > so this shouldn't have really brought in random non-drm things). > Maybe there is a timing element to it? Yeah, possibly, and device links may also come into play here. > I felt like the problem was obvious enough, and the exact details of > why I started hitting this were not important enough to spend time > tracking down. The patch itself is of course fine itself as a clean up (or microoptimisation) but the claim that it solves, and is the correct fix for, a probe loop issue is not obvious at all and requires some further justification. Since he last time someone suggested reverting the commit that introduced the probe-loop issue, the result was to leave things as they were and just document the workaround, it should be fine to just refer to that commit: fbc35b45f9f6 ("Add documentation on meaning of -EPROBE_DEFER") Perhaps you can keep the Subject if you make it clear in the commit message that this bug isn't always hit with QRTR=m. Johan