Received: by 2002:a05:622a:251a:b0:39a:b4a2:e86 with SMTP id cm26csp560815qtb; Wed, 19 Oct 2022 08:57:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5M8fTyNZ/U/8hXa5CCuAXoDPG3tdzAxxRiqYr/04uCuMTvqayWEVqrV8TzU4vdtbS609LP X-Received: by 2002:a17:90b:4f45:b0:20d:3282:e5e0 with SMTP id pj5-20020a17090b4f4500b0020d3282e5e0mr10700103pjb.8.1666195045776; Wed, 19 Oct 2022 08:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666195045; cv=none; d=google.com; s=arc-20160816; b=Zk0adZ23zrsN3hHPn7rojIGe4Qm4D9+HHmea6jkABK0IMLyf7TXbUH9qYWuxKTcSj7 W73zjc+QQ+idGFxjirrApbGPDJnW6ToGVbpdnNxwFwwny2W3WjrOiksZgZn05SWg/CpZ kLBUkbdSK0SAjn4hKwmjEGsfg/FkxStMa6CvbutAXHuxEzNDbM+d4qZ9pnFQUEyn94ON P6/JE2KWMDbbXx3XQKx1V/wxvkRLd6HjQk92Fn4+ztpW2k5X5HSt6hW2aganSD/gsyio AX82n4M+fC/GoyTesH1q57p6AXZeZouG3WUG6QTzLn8HQfZtU42PBCm3Vq59wTzlg9Ub 1MQQ== 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=iQ8VmHN7qtPkB4F77VV8kHrDQD8wfwBZ5ZI5+5i12HE=; b=wsfT4NxawdHokbWg+IypVTL21cSpUN8kTvTtHvTVujGh0WB6QZwLijmrh2gbTEe7Ry sVW6T15B1lTftYMetCplCTMTfQEaH4B1UKK++T+yc382GX0fS+DW+5hffQ8aBdQYTOzt LewJT/37RZEF1b+/r8tIDYftW2IXZcb3i2jxpMOzLk+DFwaFYIHP98MYQNhIkwmLOAmo yL6DYGuehztzrShJ5qluyTUR2dXFp6LdMh/n2C0mSQnBEL3Vj0yPQ31MwLuOnglZTSEQ Qn9M9pn3npCFG/dhjLC08JyxFbaKoON4wd5wzR89ckPRjklNrd4nlnL2A7S/tnN7EnwU sPvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kVIc2PVq; 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 p5-20020a17090a348500b00202be5416b1si238439pjb.109.2022.10.19.08.57.11; Wed, 19 Oct 2022 08:57:25 -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=kVIc2PVq; 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 S231772AbiJSPkV (ORCPT + 99 others); Wed, 19 Oct 2022 11:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232754AbiJSPjY (ORCPT ); Wed, 19 Oct 2022 11:39:24 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E46E61D5D for ; Wed, 19 Oct 2022 08:35:57 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id l5so19645235oif.7 for ; Wed, 19 Oct 2022 08:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iQ8VmHN7qtPkB4F77VV8kHrDQD8wfwBZ5ZI5+5i12HE=; b=kVIc2PVqYQ5xIrPDdExRLoTO+7RWmYIQwAHxXSM7qcgWFbq4hiUdNXcT70CmfFbsqS LxghEXgMZzRKdkFffO6qeCYHy7B+cyLFFR5E3yg4jGAcNxrG6ME0nRe2apalNjiUPywU 23Y4LmV9c44r98HTHWN6/noE4eye9aah2QELnRZk7hVO0ELO25Y5Hn4m2dEWu2orTquD u9LZ8g4NBnf01va9lDJ6KKt/WGubYXNJ4/Vo6MWjkYTvlwUFW4dvT6kteK/NKhyY3VEh Jkn2PkFI8bVUipIxFaDUuw3ylnFVnTl5iTo/ZhRNjTPrhmdxI0h1Ub2wzuSvWvZZIacn p31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=iQ8VmHN7qtPkB4F77VV8kHrDQD8wfwBZ5ZI5+5i12HE=; b=hWBjbhK7THJCk6xgqbJvyca1dVwLwLoPqzrr1+Y9YJfoipHHaHYb6wG+WfZOHRoL6r 7Kk/Sx/6U/uMfEDAcTlaqcecI4TpLYnhLtsHaco0yy7akGM3mgR9MmvjtXcFR9E+l7O+ SeksqSoMKbGASTRJHg5whAFrqWMEx6mNxRe/VeNod54k8t7SvuoIctfTVSp+WonjXtt+ pD6o7rIssZI9kxrXCgNlVOdZBcLMBZHViUogutceS99sIU0HM29B5WwaDGoE4dwwtwbg jtdDcXUE5ImDVoC1igvuqju2YWZiIBEyL14MU/exTprJ6k8Q8Q2Oxw6eNW7qyn8QX46Y oTuA== X-Gm-Message-State: ACrzQf2qv7Yu5RV6T+r7SZgZS6TTzNfBCWvzqFNfXiB5z8js8dB/ImeP eE6Aid+DQJiJHQ518Wx+zUWgjf5TFWvEHBSd6ZChnA== X-Received: by 2002:a05:6808:238f:b0:354:ff3e:d964 with SMTP id bp15-20020a056808238f00b00354ff3ed964mr14855632oib.18.1666193700152; Wed, 19 Oct 2022 08:35:00 -0700 (PDT) MIME-Version: 1.0 References: <20221018145348.4051809-1-amit.pundir@linaro.org> In-Reply-To: From: Amit Pundir Date: Wed, 19 Oct 2022 21:04:23 +0530 Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: qrb5165-rb5: Disable cpuidle states To: Ulf Hansson Cc: Sudeep Holla , Bjorn Andersson , Andy Gross , Maulik Shah , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , 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 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 On Wed, 19 Oct 2022 at 17:28, 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? Following change works too for my RB5 setup. I didn't see any obvious regression in my limited (~10) test runs so far. Regards, Amit Pundir > > 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>; > }; > }; > > Kind regards > Uffe