Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2366770rwd; Mon, 15 May 2023 10:37:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42wqU6xATrg2oIsCmJcrlbU/9I9G2kgUNPv9PQCLG8aB5mxQRt3BJlivaAVBQZvkmF2ZsB X-Received: by 2002:a05:6a20:3943:b0:106:8534:514 with SMTP id r3-20020a056a20394300b0010685340514mr2370339pzg.43.1684172223279; Mon, 15 May 2023 10:37:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684172223; cv=none; d=google.com; s=arc-20160816; b=kfQro4G4OaIj/aYjjuGEbAUpqykWqK5fd4Nd8/BcZdtdjvlbf8fS845Q0aPylG5vsN L1VvwL80YSj7tFbcnLMwqxzg8YqAmgVwGdZl55wepArLWRgzran8a20zKUYlfs1v98wi aHPy8A4LxhFC8OgenP4gHnPtIkDIN81bLz4llIOA5tGgp0r1LBQHJGuDGSrRt88IYDZb Kdpva+xvZ/GEnGNBFFyhJrBbOXZxgjA4XoKW1IhWCfBEWyjvVMzqwTCd//fHkDWChRnS skgqVS9JYV7g3/AaXtzoHEqd7ZorWztork6n10hmJUdOBYWzd7QjWGCX/1ngtHClxdiJ O4lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xgEL+sawUUixp5JNd9RJjOXfXmGxkNHi3jdTQRXUWis=; b=vfmAoVEQw0LFq1RV/qxkJ1g9kuC0sgsFtSKnYovtsiePZzYj8pRDQNcIKcJQ7fjNIU 8xoFoHs7p2+wk4zcRpXHxy2JktJvaFb0S+8Ldd5fcCRVghXOXBsgO0OEQ/dXv86KWNQQ sf1g7zk4KriDShI7fVGgpn7mfwIrkqvArILtZAyewVjo2KdmlvSKKthXT+BSnYan/gI4 yp+4dm+oEfSkVTZskBzDfn3lzL0cSMz3d5kA4OvZhjzfMeuFwh9/z7jgMXi8r5+WMIQD xGz7+bh3IU/M6WHOgw8BlDr5o6bHorRiKEmr828p15CNXyzCWyyt+DIpoim3DffoN+Ib 6uOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QcGauwSQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 204-20020a6301d5000000b005181ce2302csi15959470pgb.749.2023.05.15.10.36.51; Mon, 15 May 2023 10:37:03 -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=QcGauwSQ; 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 S244358AbjEORee (ORCPT + 99 others); Mon, 15 May 2023 13:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244175AbjEOReQ (ORCPT ); Mon, 15 May 2023 13:34:16 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916621797C for ; Mon, 15 May 2023 10:32:10 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7595561f2f0so46463485a.2 for ; Mon, 15 May 2023 10:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684171928; x=1686763928; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xgEL+sawUUixp5JNd9RJjOXfXmGxkNHi3jdTQRXUWis=; b=QcGauwSQykxNsZH+dCZi8oXEOnwg+14nHJvD6n1AJ+uTRm0BOBWt749hgOYA4IBtEU hcRq7Lo0i3kb0hKsOmxgPoMkm1UGnOU0f+UPhxWwTW/4bjKYWFTwo6GaKX9dFAZYtpKG ophR/bBc/B7J0i/cMd6ucy8Sks0EAh2VOx24nOzsEhhQwyvGX4tYdj0M3tGv0i2eEJ20 AthcZQhs9jBrQkBL45SoAMkOIW4BFhQJar2vtdK9wxy1PWKHU9pVzRn7hjuQJQ63kY4h pg+yrWwY4/fgA1e0nJarEjUPL8IFI3ZZoXLe2XhPD5j63nV41JoBbV08eO41AhT14gWf LD5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684171928; x=1686763928; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xgEL+sawUUixp5JNd9RJjOXfXmGxkNHi3jdTQRXUWis=; b=YD0jsAb4k9frAhk4WYkYl5DwFFedwpsmPsx9sBFOBYDva2itZ8jLzIZguL0qckhPfe gFlzudXq8jXmnyXgi+gIPQjKQzDTsPrO3SpJTlM+PQ2xDVUHedlkIxO0o5plvBq8TPlo bkQztJIsBGfcPIUgwSkTu2tpP6TV50ZYcjV3zY2i7rXdSKZRSsDKrLl6+qeRdSkFIofp Ww81f7ec/9eJiFITxVvF7kqzIQnCdbaalK0v2WZDl2R2mX244ceOFKiEJ6cyVxigNEMP ICadDzWeMUOuRpxUaDa6ykPYI3SPns+j7AMTk5RjTahmBimWgY5UtVxjDwl+HrpiH0cr pp8Q== X-Gm-Message-State: AC+VfDwJQ8z6bMrOXusvKg+JgVmlHGhUxoz9SQV8le/HDwv28CZLIZPI kTnJ46rxSOrZ6RnOEn+u0XFNsJN0iz2cvgZ9Lg7lyw== X-Received: by 2002:a05:6214:da5:b0:621:6217:f528 with SMTP id h5-20020a0562140da500b006216217f528mr28114588qvh.30.1684171928702; Mon, 15 May 2023 10:32:08 -0700 (PDT) MIME-Version: 1.0 References: <20230515145323.1693044-1-amit.pundir@linaro.org> <20230515160026.ynqsgu4wvsqxnj2h@ripper> In-Reply-To: <20230515160026.ynqsgu4wvsqxnj2h@ripper> From: Amit Pundir Date: Mon, 15 May 2023 23:01:31 +0530 Message-ID: Subject: Re: [PATCH] Revert "regulator: qcom-rpmh: Revert "regulator: qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS"" To: Bjorn Andersson Cc: Douglas Anderson , Marek Szyprowski , Andy Gross , Konrad Dybcio , Liam Girdwood , Caleb Connolly , linux-arm-msm , lkml , Mark Brown Content-Type: text/plain; charset="UTF-8" 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: X-Mailing-List: linux-kernel@vger.kernel.org + Mark. On Mon, 15 May 2023 at 21:26, Bjorn Andersson 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 > > --- > > 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 > >