Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp583587rwi; Thu, 20 Oct 2022 02:37:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM55F7UQ563eAgGnopfmTsOytCMilYOhSuy5+K3tSCVg0bJgoFnSz1JjXIs6FOCkGUboski7 X-Received: by 2002:a50:a44c:0:b0:45c:6451:363d with SMTP id v12-20020a50a44c000000b0045c6451363dmr11326131edb.115.1666258668450; Thu, 20 Oct 2022 02:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666258668; cv=none; d=google.com; s=arc-20160816; b=JlDaFyfOreeIm3cIOy5bIb01XyaHUmzwSz6H85WBgIF2ZPbKyH4g6a9yE3EFxYMtiT Sca8vf0BwvXevvveXTt56mKSR8JmebqmGV8WI6CsPHxtXR+7F2PJjXgkD6NmkFN0cCfz 0LzS3JI7slLqr8WrNX6EtC4wR9VWGSj+2nubXv/vO/kQLyxLppWj8SaVu0GEgMZIoUEp GBSkbIpG8YcNc7xFUNZvweMHntLB/7wtXR1pzxmDxUJFxfZ8ZKP7ZYYmLHmHQB1f3cMT eCJzfv7q1BrPsnQr+6TmVAxyoa1ARBwTaFYB1majsW4twRg35LLDgF+oMZfwmm7/YbXt STRw== 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; bh=bTWwq9tI2xEo5oepu0kSt/YHYsTXteaDOHp10GaKoTg=; b=R7hmpc9Vuz6tU0vMAPswzFyWFKSFTmwT2ruKXqgdIXq78IkEZl0FE1L4O86fqvAweJ fkTxaddLqPXZGZSoGmzfbfBUmOTSmow5+zVJWoy9FmIPbgJZB1vWeieHKvoc0CE6znqP NCYyNCLHH1fBau3NUwel4xSNJiIMOWn8dwFNLMM3xB0N8acfvkvwljC6BnKED9bYPB0y iN07o8ujYFUbfkszF0WaleULmBVMucCfRTdCf0gk8+2YyYiOvO40o7lf908CKVf5rfYX XLH0cwXreIow6YdAjngI3KVl/3lwKMYSMPq5LbGyZqAX+LiycC8X7QS3q1EvW+NlQ4JR c0kQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a170906500500b0078255525a6fsi15221482ejj.671.2022.10.20.02.37.22; Thu, 20 Oct 2022 02:37:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230080AbiJTJbF (ORCPT + 99 others); Thu, 20 Oct 2022 05:31:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiJTJbD (ORCPT ); Thu, 20 Oct 2022 05:31:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2434812977D; Thu, 20 Oct 2022 02:31:02 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 28E53ED1; Thu, 20 Oct 2022 02:31:08 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 458913F792; Thu, 20 Oct 2022 02:31:00 -0700 (PDT) Date: Thu, 20 Oct 2022 10:30:57 +0100 From: Sudeep Holla To: Ulf Hansson Cc: Amit Pundir , Bjorn Andersson , Andy Gross , Maulik Shah , Sudeep Holla , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , linux-arm-msm , dt , lkml Subject: Re: [PATCH] arm64: dts: qcom: qrb5165-rb5: Disable cpuidle states Message-ID: <20221020093057.zrrvxlgghn27bpes@bogus> References: <20221018145348.4051809-1-amit.pundir@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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 Wed, Oct 19, 2022 at 01:57:34PM +0200, Ulf Hansson wrote: > On Tue, 18 Oct 2022 at 16:53, Amit Pundir wrote: > > > > Disable cpuidle states for RB5. These cpuidle states > > made the device highly unstable and it runs into the > > following crash frequently: > > > > [ T1] vreg_l11c_3p3: failed to enable: -ETIMEDOUT > > [ T1] qcom-rpmh-regulator 18200000.rsc:pm8150l-rpmh-regulators: ldo11: devm_regulator_register() failed, ret=-110 > > [ T1] qcom-rpmh-regulator: probe of 18200000.rsc:pm8150l-rpmh-regulators failed with error -110 > > > > Fixes: 32bc936d7321 ("arm64: dts: qcom: sm8250: Add cpuidle states") > > Signed-off-by: Amit Pundir > > --- > > arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > > index cc003535a3c5..f936c41bfbea 100644 > > --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > > +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts > > @@ -251,6 +251,14 @@ qca639x: qca639x { > > > > }; > > > > +&LITTLE_CPU_SLEEP_0 { > > + status = "disabled"; > > +}; > > + > > +&BIG_CPU_SLEEP_0 { > > + status = "disabled"; > > +}; > > + > > &adsp { > > status = "okay"; > > firmware-name = "qcom/sm8250/adsp.mbn"; > > -- > > 2.25.1 > > Disabling the CPU idlestates, will revert us back to using only the WFI state. > > An option that probably works too is to just drop the idlestate for > the CPU cluster. Would you mind trying the below and see if that works > too? > Indeed this is was I suggested to check initially. But I was surprised to see IIUC, Amit just disabled CPU states with above change and got it working. So it is not cluster state alone causing the issue, is it somehow presence of both cpu and cluster states ? Am I missing something here. > diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi > b/arch/arm64/boot/dts/qcom/sm8250.dtsi > index c32227ea40f9..c707a49e8001 100644 > --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi > +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi > @@ -700,7 +700,6 @@ CPU_PD7: cpu7 { > > CLUSTER_PD: cpu-cluster0 { > #power-domain-cells = <0>; > - domain-idle-states = <&CLUSTER_SLEEP_0>; How about just marking CLUSTER_SLEEP_0 state disabled ? That looks cleaner than deleting this domain-idle-states property here. Also not sure if DTS warnings will appear if you delete this ? -- Regards, Sudeep