Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1348243rwd; Thu, 15 Jun 2023 09:19:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42vy5tZpqy0OV8SfSaS8veEY/b8+uUz91QFp9ResfyJIkaF99s56ZUQUpumeePU3UWy14F X-Received: by 2002:a17:906:9b8d:b0:973:df9c:b1aa with SMTP id dd13-20020a1709069b8d00b00973df9cb1aamr20808819ejc.71.1686845964175; Thu, 15 Jun 2023 09:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686845964; cv=none; d=google.com; s=arc-20160816; b=d5FX4ZwyJFY0ky6BlzEngvSSDbXw0ZOSAmL0+x73h24vSGQjzBEMFn3qwNoVJFCd1G PiIgKJQ/2YAWtOW9dJT0m0rXdKJgb3QyoX+AJb5FDFMOTBx43oSSJCS9HWaSuR9EMXY1 Z21dk5jWfFjDrKsfBT23lkdECtb/H9fULlFClT+twiqNdIUiYGE+9B+cp9mtLCNOm9uh BZ6E0QJR6RAkVujK7z0RKBB4v/5ZN+KIcrQVyupr8zPz5358M4kAyFpL1UDcpqqgHD1z ASXCJTIP2ml2BEE+dZFpnR0oghmR74tCz7jw789d0f0D4vEmicb3K2BCXJraSr89/NDv WK4g== 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=qEQOGjvtLEgX2ChKfpQ6c19qlkbG0UrnxRJ/AQu+f/Y=; b=mOcUd+0b0RDHYGVIi4GNN656cnwJtN5CKChhCKyWsuoo87CgeNKx4fxDTjoCfQicbh bk9Pj0HmbdtPKhd5ka6kz01D3Z9GwOQbySRq9OibUdhHO1ELG0oYKjJKYiS7sVhxfCES tTxeQy1EWxRdxiNs6oyDf2kM4WLB7r+lt3CMwuxXuyctoKe3rEkmffhmEAReHiHIgxNr Z28YhgBaovHzsdA1+EsZgqnJtHj4VWuTRdk4p9gMN/VGdaZw79luyd/EXm0LA96NQQsO h2mFTBINTHxds30p7xtIEiHx6sq+Z60CnpdP0389sW2PR0Js8K6bWR5HMUxXaxrE7Zvq iVxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UOgtRCcg; 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 a1-20020a17090680c100b00982762e2cc4si2205281ejx.775.2023.06.15.09.18.59; Thu, 15 Jun 2023 09:19:24 -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=UOgtRCcg; 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 S229991AbjFOQK2 (ORCPT + 99 others); Thu, 15 Jun 2023 12:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230011AbjFOQK1 (ORCPT ); Thu, 15 Jun 2023 12:10:27 -0400 Received: from mail-qv1-xf29.google.com (mail-qv1-xf29.google.com [IPv6:2607:f8b0:4864:20::f29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98C93119 for ; Thu, 15 Jun 2023 09:10:26 -0700 (PDT) Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-62df53196edso25654036d6.3 for ; Thu, 15 Jun 2023 09:10:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686845425; x=1689437425; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qEQOGjvtLEgX2ChKfpQ6c19qlkbG0UrnxRJ/AQu+f/Y=; b=UOgtRCcgPQXVs2Hv7ksrJGuVS9PxRDds8Mz4VaeDBz6lvGw3H9y2IdorytzWGM6fI1 M5hEUF5EyzgWxFSnS2WRdDrD21gh35eC/+7yE4jSgz8vH5737zlAWKDuIW8j8hXy3Fmh Cu/RsQ6hhmIz+R9oDeGhWzh5GeDcD+7VeUOOT2WoEFG+wn6Eo0DpxZK8CI1BnfrJ3gdV WLGqMfqGD9wyDvXPqkjXdL4XrgttLUJACbG0gikJxlxslQs4u6gpGhINKAElG9wzxq4I t8CSm5ohNsJ3TsnMHU/gzp260HGhlA1sj6TfErpGH+n9hsiVxdeJtylTUX+zmE8m3YyQ E0og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686845426; x=1689437426; 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=qEQOGjvtLEgX2ChKfpQ6c19qlkbG0UrnxRJ/AQu+f/Y=; b=JS5pLetCa23fnBmLhPfdz+Ps+46q9zZ/yofOy+AlOadlL5qJE6lUshabCbywvcKsdW UpYLQvn3opqxTbDG1hNfpuiXVCoIVS1rqlSNDyWJtUlHGJCMftOFmcTb5nP8auxub0+f qc9CIQ02TexLzJSE60QcusWBI1nt8GGi++DkHO4PYL8xB2Ursxc0904/4RoS/+slfCF8 D8wxBI144P3caZ9D6NAgfm9NnPLpCKp3JXZtClyM1DI5jaPeWSo50GyfLUAf5r/WAHC5 SpcvFZc/hSlRDe0k00awWStf19KMYdciB+z5GP+hDC7Ls6n9+dfnFStxLSmUOkAYR0zG 2Qyg== X-Gm-Message-State: AC+VfDycIw2u0OcyYVqWPyuLHkE0QFEdi0HfsBvyPOGnIKho/7iiN1x0 s9+XwV3V+BuxW6kH+6XT2H3BkWlfN095YWZ2+m5Qqw== X-Received: by 2002:a05:6214:1941:b0:62f:eed1:4781 with SMTP id q1-20020a056214194100b0062feed14781mr4050301qvk.21.1686845425624; Thu, 15 Jun 2023 09:10:25 -0700 (PDT) MIME-Version: 1.0 References: <20230602161246.1855448-1-amit.pundir@linaro.org> <358c69ad-fa8a-7386-fe75-92369883ee48@leemhuis.info> <0f6c9dcb-b7f6-fff9-6bed-f4585ea8e487@linaro.org> <0ec6c988-d678-c96c-a7a2-af38e6701404@linaro.org> In-Reply-To: <0ec6c988-d678-c96c-a7a2-af38e6701404@linaro.org> From: Amit Pundir Date: Thu, 15 Jun 2023 21:39:49 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sdm845-db845c: Move LVS regulator nodes up To: Krzysztof Kozlowski Cc: Linux regressions mailing list , Mark Brown , Doug Anderson , Bjorn Andersson , Andy Gross , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , Caleb Connolly , Conor Dooley , linux-arm-msm , dt , lkml 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=ham 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 On Thu, 15 Jun 2023 at 20:33, Krzysztof Kozlowski wrote: > > On 15/06/2023 15:47, Amit Pundir wrote: > > On Thu, 15 Jun 2023 at 00:38, Amit Pundir wrote: > >> > >> On Thu, 15 Jun 2023 at 00:17, Krzysztof Kozlowski > >> wrote: > >>> > >>> On 14/06/2023 20:18, Linux regression tracking (Thorsten Leemhuis) wrote: > >>>> On 02.06.23 18:12, Amit Pundir wrote: > >>>>> Move lvs1 and lvs2 regulator nodes up in the rpmh-regulators > >>>>> list to workaround a boot regression uncovered by the upstream > >>>>> commit ad44ac082fdf ("regulator: qcom-rpmh: Revert "regulator: > >>>>> qcom-rpmh: Use PROBE_FORCE_SYNCHRONOUS""). > >>>>> > >>>>> Without this fix DB845c fail to boot at times because one of the > >>>>> lvs1 or lvs2 regulators fail to turn ON in time. > >>>> > >>>> /me waves friendly > >>>> > >>>> FWIW, as it's not obvious: this... > >>>> > >>>>> Link: https://lore.kernel.org/all/CAMi1Hd1avQDcDQf137m2auz2znov4XL8YGrLZsw5edb-NtRJRw@mail.gmail.com/ > >>>> > >>>> ...is a report about a regression. One that we could still solve before > >>>> 6.4 is out. One I'll likely will point Linus to, unless a fix comes into > >>>> sight. > >>>> > >>>> When I noticed the reluctant replies to this patch I earlier today asked > >>>> in the thread with the report what the plan forward was: > >>>> https://lore.kernel.org/all/CAD%3DFV%3DV-h4EUKHCM9UivsFHRsJPY5sAiwXV3a1hUX9DUMkkxdg@mail.gmail.com/ > >>>> > >>>> Dough there replied: > >>>> > >>>> ``` > >>>> Of the two proposals made (the revert vs. the reordering of the dts), > >>>> the reordering of the dts seems better. It only affects the one buggy > >>>> board (rather than preventing us to move to async probe for everyone) > >>>> and it also has a chance of actually fixing something (changing the > >>>> order that regulators probe in rpmh-regulator might legitimately work > >>>> around the problem). That being said, just like the revert the dts > >>>> reordering is still just papering over the problem and is fragile / > >>>> not guaranteed to work forever. > >>>> ``` > >>>> > >>>> Papering over obviously is not good, but has anyone a better idea to fix > >>>> this? Or is "not fixing" for some reason an viable option here? > >>>> > >>> > >>> I understand there is a regression, although kernel is not mainline > >>> (hash df7443a96851 is unknown) and the only solutions were papering the > >>> problem. Reverting commit is a temporary workaround. Moving nodes in DTS > >>> is not acceptable because it hides actual problem and only solves this > >>> one particular observed problem, while actual issue is still there. It > >>> would be nice to be able to reproduce it on real mainline with normal > >>> operating system (not AOSP) - with ramdiks/without/whatever. So far no > >>> one did it, right? > >> > >> No, I did not try non-AOSP system yet. I'll try it tomorrow, if that > >> helps. With mainline hash. > > > > Hi, here is the crash report on db845c running vanilla v6.4-rc6 with a > > debian build https://bugs.linaro.org/attachment.cgi?id=1142 > > > > And fwiw here is the db845c crash log with AOSP running vanilla > > v6.4-rc6 https://bugs.linaro.org/attachment.cgi?id=1141 > > > > Regards, > > Amit Pundir > > > > PS: rootfs in this bug report doesn't matter much because I'm loading > > all the kernel modules from a ramdisk and in the case of a crash the > > UFS doesn't probe anyway. > > I just tried current next with defconfig (I could not find your config, > neither here, nor in your previous mail thread nor in bugzilla). Also > with REGULATOR_QCOM_RPMH as module. > > I tried also v6.4-rc6 - also defconfig with default and module > REGULATOR_QCOM_RPMH. > > All the cases work on my RB3 - no warnings reported. > > If you do not use defconfig, then in all reports please mention the > differences (the best) or at least attach it. Argh.. Sorry about that. Big mistake from my side. I did want to upload my defconfig but forgot. Defconfig plays a key role because, as I mentioned in one of my previous email, it is a timing/race bug and if I do any much changes in my defconfig (i.e. enable ftrace for example or as little as add printk in qcom_rpmh_regulator code) then I can't reproduce this bug. So needless to say that I can't reproduce this bug with default arm64 defconfig. Please find my custom (but upstream) defconfig here https://bugs.linaro.org/attachment.cgi?id=1143 and prebuilt binaries here https://people.linaro.org/~amit.pundir/db845c-userdebug/rpmh_bug/. "fastboot flash boot ./boot.img-6.4-rc6 reboot" and/or a few (<5) reboots should be enough to trigger the crash. I have downloaded the initrd from here https://snapshots.linaro.org/96boards/dragonboard845c/linaro/debian/569/initrd.img-5.15.0-qcomlt-arm64 but edited ramdisk/init to run "load_module" function early in the boot and ramdisk/conf/initramfs.conf has "MODULES=list" instead of "MODULES=most", where all the kernel modules are listed at /etc/initramfs-tools/modules. Regards, Amit Pundir