Revert "regulator: qcom-rpmh: Revert "regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS""
Message ID | 20230515145323.1693044-1-amit.pundir@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6983047vqo; Mon, 15 May 2023 07:59:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4t/L2bvxhOwiRDt82zzitgRsGu9Os3pKf5uDDtbV9YrK7KZBwjx8abw6vPEy7wWLbERKvx X-Received: by 2002:a05:6a20:12cc:b0:104:873:c3be with SMTP id v12-20020a056a2012cc00b001040873c3bemr16199619pzg.12.1684162759582; Mon, 15 May 2023 07:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684162759; cv=none; d=google.com; s=arc-20160816; b=0sWZvTtfh5rQI1YDkgZm0/Ls3EGgEWK2fB3DsOEahquGrt8+OQ+geeLZfYYfJDGrx5 JPYtDEOjNDp1ZexRoF1JRWa5bIc3DGRJAJMS0hyCm7e0DFbnJQw4RwLiJ+u3H6ihUFEG eYb6I1B82ATT4OGEDmeyjxjvMLIjhFzYIYZV/oLXom52HgfkqpwB+da1xWst364GFwiq AMCAaod5SO6sjOK5UgcqsKKALc0MiYwN8FjYwzzJZNR+ogPT01e03ogT87rFkHnYNBSS wyhQpwZ1ZR6TURcoW0kdIbKNrSx1lFQu4Ex9QPo+Ek1GIWWgKH3Ik1EntK34PA3573OK z3og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:author:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1+hNvGE7q4jXvKF3ZUYBMyXuwdC9NQPYtizzZFk0+BI=; b=vZSJ7G46TdEfQXN4ILBKfKIZgRdZftecITO/OoQ1cqiI0418i2vjZWrPmru5msj4Yp Ss9mdsqcZR8J2Rb0at7brcRB//391kZzpRtH7yADj/pDIzknZeFxQhA8as5+aEdyysaa uTf950iZv9veH1JmmhT9QYGVZ/h3qec4tmBi7z7ZlZpkRbyyi8zB43F5yKWjprl3gVOC 1/t33lzJiYHVSolwNT2jGGd57VZAhawmhfCvIK8mOjveDbjPIBfbaFRxRcgMcSJRn7eF huBTY+ZiD/AF9wYjtfp+QyBsvjdVCHVnK4/EFoOkIT6gB46s2ev3j6YDPIiYSLfuL/za 4vFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tqc9WcFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v71-20020a63894a000000b00521274d891esi15910507pgd.183.2023.05.15.07.59.06; Mon, 15 May 2023 07:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tqc9WcFs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239987AbjEOOxd (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Mon, 15 May 2023 10:53:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234849AbjEOOxc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 15 May 2023 10:53:32 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AD3C1982 for <linux-kernel@vger.kernel.org>; Mon, 15 May 2023 07:53:30 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-64ab2a37812so20568260b3a.1 for <linux-kernel@vger.kernel.org>; Mon, 15 May 2023 07:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684162409; x=1686754409; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=1+hNvGE7q4jXvKF3ZUYBMyXuwdC9NQPYtizzZFk0+BI=; b=Tqc9WcFsmQJ38bWa2mqZUYIIu4WW0P1I1N9S1Pcn26m4cY1fdE4X5gAEtVd708XhZ5 e7B9GvTmwQ4Kdp5hrmw4dExINB1pD6xBfPMZbLnKooED5aeImtqamYNsaK208yYEFEKH t8LSSwnPQxx8PHLLwgt0jJv/657WOunaaBXQjx+p0LsearZTOFGnVbhTobbwfKXtCLE8 zX8vvmf/TbZHQkQMZDppCJX5OEmdckWFKLJR0G/j8aocrg/1M3iOHqWTmiwwLCNDO1Ih qXyzyLTn2MQBIQxl4y5VStGJuInOC6kgkGJFxJVHM5UgLZwjBBdfWv1v5NZ86+zy6L12 gPNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684162409; x=1686754409; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1+hNvGE7q4jXvKF3ZUYBMyXuwdC9NQPYtizzZFk0+BI=; b=FLHeFEKVVOWNmpXOo7LgzBr98D8mfckK9psHPzjzmoAgcNrmNMNdctSLiBvpZ8eY1+ w4nz5jvtrRF9NbdOo3VzEsDtznosTEMcAnJDxgKHlcEM+u/w1PHWvpMxAlUnFjRERsS5 Tmnnxf2jetjfOBQYgKdUVjBmqSjJ0V+f2Cwg3Q1DOvmLJiXxjyBnhiExlh15X+X1o127 NfYGHEmtXFxtD0MTSbogypt1gZc/gSLQNWow6oNpflnFxlgB0YnsRGkhqNyYOLIyqwr3 gSX5WXa49sXVDqfzIr1emObj9cGBNa6yZoVTyFsz2uo6QhxoBsPoGu0fRXQrCBJ+1vWa ZLcg== X-Gm-Message-State: AC+VfDztlGusP8iCW/Kry3RIyTgq0+L6llY3rvYW+Xbgkg2mIYGj1PnN g01AqvPi+16e6BaixyxXZDKP7A== X-Received: by 2002:a17:903:294c:b0:1a9:6604:2b1b with SMTP id li12-20020a170903294c00b001a966042b1bmr31503842plb.20.1684162409562; Mon, 15 May 2023 07:53:29 -0700 (PDT) Received: from localhost.localdomain ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id p20-20020a170902a41400b0019719f752c5sm5433228plq.59.2023.05.15.07.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 May 2023 07:53:29 -0700 (PDT) From: Amit Pundir <amit.pundir@linaro.org> To: Bjorn Andersson <andersson@kernel.org>, Douglas Anderson <dianders@chromium.org> Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Caleb Connolly <caleb.connolly@linaro.org>, linux-arm-msm <linux-arm-msm@vger.kernel.org>, lkml <linux-kernel@vger.kernel.org> Subject: [PATCH] Revert "regulator: qcom-rpmh: Revert "regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS"" Date: Mon, 15 May 2023 20:23:23 +0530 Message-Id: <20230515145323.1693044-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Author: Amit Pundir <amit.pundir@linaro.org> Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765972649610476459?= X-GMAIL-MSGID: =?utf-8?q?1765972649610476459?= |
Series |
Revert "regulator: qcom-rpmh: Revert "regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS""
|
|
Commit Message
Amit Pundir
May 15, 2023, 2:53 p.m. UTC
This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23.
This patch restores the synchronous probing for
qcom-rpmh-regulator because asynchronous probing broke
Dragonboard 845c (SDM845) running AOSP. UFSHC fail to
initialize properly and DB845c fails to boot regardless
of "rootwait" bootarg being present or not
https://bugs.linaro.org/show_bug.cgi?id=5975.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
drivers/regulator/qcom-rpmh-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi, On Mon, May 15, 2023 at 7:53 AM Amit Pundir <amit.pundir@linaro.org> wrote: > > This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23. > > This patch restores the synchronous probing for > qcom-rpmh-regulator because asynchronous probing broke > Dragonboard 845c (SDM845) running AOSP. UFSHC fail to > initialize properly and DB845c fails to boot regardless > of "rootwait" bootarg being present or not > https://bugs.linaro.org/show_bug.cgi?id=5975. > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > drivers/regulator/qcom-rpmh-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) As mentioned in the other thread [1], I'd rather at least do a little debugging before jumping to a revert, just so we don't end up having to do a revert of a revert for the same driver again. [1] https://lore.kernel.org/r/CAD=FV=VSFDe445WEVTHXxU1WS_HGUV5jR5E8_Vgd4eyhn3rHyA@mail.gmail.com
On Mon, May 15, 2023 at 08:23:23PM +0530, Amit Pundir wrote: > This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23. > > This patch restores the synchronous probing for > qcom-rpmh-regulator because asynchronous probing broke > Dragonboard 845c (SDM845) running AOSP. UFSHC fail to > initialize properly and DB845c fails to boot regardless > of "rootwait" bootarg being present or not > https://bugs.linaro.org/show_bug.cgi?id=5975. > Looking at the first attachment, I would suggest that UFS fails because it's not able to get hold of its regulators, just as any other device with supplies would. The typical cause for rpmh timeouts is that you're no longer able to talk to the rpmh. Could you please attempt to trace the system and see what's happening in parallel that would cause such issue. Also note that such issues often also results in UFS timeouts, which results in the familiar UFS debug dumps. In the second log, the system crashes 51 seconds after rpmh probes, around the time where other sync_state is happening. This too would seem related to missing resource votes, but I would expect being a separate issue. PS. this is a patch in the regulator code, but I don't see Mark in the recipients list... Regards, Bjorn > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > drivers/regulator/qcom-rpmh-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > index b0a58c62b1e2..30659922b0aa 100644 > --- a/drivers/regulator/qcom-rpmh-regulator.c > +++ b/drivers/regulator/qcom-rpmh-regulator.c > @@ -1517,7 +1517,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); > static struct platform_driver rpmh_regulator_driver = { > .driver = { > .name = "qcom-rpmh-regulator", > - .probe_type = PROBE_PREFER_ASYNCHRONOUS, > + .probe_type = PROBE_FORCE_SYNCHRONOUS, > .of_match_table = of_match_ptr(rpmh_regulator_match_table), > }, > .probe = rpmh_regulator_probe, > -- > 2.25.1 >
+ Mark. On Mon, 15 May 2023 at 21:26, Bjorn Andersson <andersson@kernel.org> wrote: > > On Mon, May 15, 2023 at 08:23:23PM +0530, Amit Pundir wrote: > > This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23. > > > > This patch restores the synchronous probing for > > qcom-rpmh-regulator because asynchronous probing broke > > Dragonboard 845c (SDM845) running AOSP. UFSHC fail to > > initialize properly and DB845c fails to boot regardless > > of "rootwait" bootarg being present or not > > https://bugs.linaro.org/show_bug.cgi?id=5975. > > > > Looking at the first attachment, I would suggest that UFS fails because > it's not able to get hold of its regulators, just as any other device > with supplies would. > > The typical cause for rpmh timeouts is that you're no longer able to > talk to the rpmh. Could you please attempt to trace the system and see > what's happening in parallel that would cause such issue. This is happening very early in the boot process (first stag init), wherein init is supposed to load the kernel modules from ramdisk and mount the partitions. System does boot successfully 2/5 times, so this is definitely a timing issue as Douglas also pointed out in the other thread. I'll try to follow his suggestions and narrow down the issue further. > > Also note that such issues often also results in UFS timeouts, which > results in the familiar UFS debug dumps. > > > In the second log, the system crashes 51 seconds after rpmh probes, > around the time where other sync_state is happening. This too would seem > related to missing resource votes, but I would expect being a separate > issue. > > PS. this is a patch in the regulator code, but I don't see Mark in the > recipients list... Sorry about that. I thought I had Mark copied over from the other thread, after-all he was the one who suggested this patch, but I didn't :facepalm: Regards, Amit Pundir > > Regards, > Bjorn > > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > > --- > > drivers/regulator/qcom-rpmh-regulator.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > > index b0a58c62b1e2..30659922b0aa 100644 > > --- a/drivers/regulator/qcom-rpmh-regulator.c > > +++ b/drivers/regulator/qcom-rpmh-regulator.c > > @@ -1517,7 +1517,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); > > static struct platform_driver rpmh_regulator_driver = { > > .driver = { > > .name = "qcom-rpmh-regulator", > > - .probe_type = PROBE_PREFER_ASYNCHRONOUS, > > + .probe_type = PROBE_FORCE_SYNCHRONOUS, > > .of_match_table = of_match_ptr(rpmh_regulator_match_table), > > }, > > .probe = rpmh_regulator_probe, > > -- > > 2.25.1 > >
On Mon, May 15, 2023 at 11:01:31PM +0530, Amit Pundir wrote: > On Mon, 15 May 2023 at 21:26, Bjorn Andersson <andersson@kernel.org> wrote: > > PS. this is a patch in the regulator code, but I don't see Mark in the > > recipients list... > Sorry about that. I thought I had Mark copied over from the other > thread, after-all he was the one who suggested this patch, but I > didn't :facepalm: Please resend a copy of the patch to me and... Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are doing and make sure your subject lines visually resemble what they're doing. There's no need to resubmit to fix this alone.
Linux regression tracking (Thorsten Leemhuis)
May 24, 2023, 1:51 p.m. UTC |
#5
Addressed
Unaddressed
[CCing the regression list, as it should be in the loop for regressions: https://docs.kernel.org/admin-guide/reporting-regressions.html] On 15.05.23 16:53, Amit Pundir wrote: > This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23. > > This patch restores the synchronous probing for > qcom-rpmh-regulator because asynchronous probing broke > Dragonboard 845c (SDM845) running AOSP. UFSHC fail to > initialize properly and DB845c fails to boot regardless > of "rootwait" bootarg being present or not > https://bugs.linaro.org/show_bug.cgi?id=5975. > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > drivers/regulator/qcom-rpmh-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > index b0a58c62b1e2..30659922b0aa 100644 > --- a/drivers/regulator/qcom-rpmh-regulator.c > +++ b/drivers/regulator/qcom-rpmh-regulator.c > @@ -1517,7 +1517,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); > static struct platform_driver rpmh_regulator_driver = { > .driver = { > .name = "qcom-rpmh-regulator", > - .probe_type = PROBE_PREFER_ASYNCHRONOUS, > + .probe_type = PROBE_FORCE_SYNCHRONOUS, > .of_match_table = of_match_ptr(rpmh_regulator_match_table), > }, > .probe = rpmh_regulator_probe, Amit, just wondering: what happened to this? It seems there was some agreement to go down this route to fix your regression, but then nothing happened anymore since about a week. Or am I missing something? Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot ^backmonitor: https://lore.kernel.org/lkml/CAMi1Hd1avQDcDQf137m2auz2znov4XL8YGrLZsw5edb-NtRJRw@mail.gmail.com/
On Wed, 24 May 2023 at 19:21, Linux regression tracking (Thorsten Leemhuis) <regressions@leemhuis.info> wrote: > > [CCing the regression list, as it should be in the loop for regressions: > https://docs.kernel.org/admin-guide/reporting-regressions.html] > > On 15.05.23 16:53, Amit Pundir wrote: > > This reverts commit ad44ac082fdff7ee57fe125432f7d9d7cb610a23. > > > > This patch restores the synchronous probing for > > qcom-rpmh-regulator because asynchronous probing broke > > Dragonboard 845c (SDM845) running AOSP. UFSHC fail to > > initialize properly and DB845c fails to boot regardless > > of "rootwait" bootarg being present or not > > https://bugs.linaro.org/show_bug.cgi?id=5975. > > > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > > --- > > drivers/regulator/qcom-rpmh-regulator.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c > > index b0a58c62b1e2..30659922b0aa 100644 > > --- a/drivers/regulator/qcom-rpmh-regulator.c > > +++ b/drivers/regulator/qcom-rpmh-regulator.c > > @@ -1517,7 +1517,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); > > static struct platform_driver rpmh_regulator_driver = { > > .driver = { > > .name = "qcom-rpmh-regulator", > > - .probe_type = PROBE_PREFER_ASYNCHRONOUS, > > + .probe_type = PROBE_FORCE_SYNCHRONOUS, > > .of_match_table = of_match_ptr(rpmh_regulator_match_table), > > }, > > .probe = rpmh_regulator_probe, > > Amit, just wondering: what happened to this? It seems there was some > agreement to go down this route to fix your regression, but then nothing > happened anymore since about a week. Or am I missing something? Hi, I didn't get around to try out new things last week as suggested on the original thread [1]. I'll get back to debugging it later in the week hopefully. Regards, Amit Pundir [1] https://lore.kernel.org/all/CAD=FV=VSFDe445WEVTHXxU1WS_HGUV5jR5E8_Vgd4eyhn3rHyA@mail.gmail.com/ > > Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) > -- > Everything you wanna know about Linux kernel regression tracking: > https://linux-regtracking.leemhuis.info/about/#tldr > If I did something stupid, please tell me, as explained on that page. > > #regzbot ^backmonitor: > https://lore.kernel.org/lkml/CAMi1Hd1avQDcDQf137m2auz2znov4XL8YGrLZsw5edb-NtRJRw@mail.gmail.com/
diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c index b0a58c62b1e2..30659922b0aa 100644 --- a/drivers/regulator/qcom-rpmh-regulator.c +++ b/drivers/regulator/qcom-rpmh-regulator.c @@ -1517,7 +1517,7 @@ MODULE_DEVICE_TABLE(of, rpmh_regulator_match_table); static struct platform_driver rpmh_regulator_driver = { .driver = { .name = "qcom-rpmh-regulator", - .probe_type = PROBE_PREFER_ASYNCHRONOUS, + .probe_type = PROBE_FORCE_SYNCHRONOUS, .of_match_table = of_match_ptr(rpmh_regulator_match_table), }, .probe = rpmh_regulator_probe,