Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp7537991ybn; Mon, 30 Sep 2019 15:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDNsjnCRKQ2BNT6MPJVLteKOTsGmlZ788qUzoyV3q3DNeEOypgt9NoD79c0g1568qd0o4v X-Received: by 2002:aa7:dcd7:: with SMTP id w23mr21930501edu.170.1569883565748; Mon, 30 Sep 2019 15:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569883565; cv=none; d=google.com; s=arc-20160816; b=WX5TUSJYgeD4S8PXyapprX9P79ohaMWjDVEDfVq7cwceI6utLTMpGz6dzZgbgwuN2g t7HuOkH5xi1f/u5iAK+5ZSoi1BhV+UoZLcWyS2wCfnsijiF10XVGjxrEXO67BfDCiua8 uRqOU7e5RbfkvFnQlXy2dZB9+4tfdggdBGNJDJEWVv4hvX/em+Xxi4Rbhu6GvO6zZ0WA 0v0CQbBoZRT8we+qE5WMSSfag8d2LwMa5/Mw9VFZMGsgNVReg/Dezq3f5IVD0EQEHJv0 lPHJSNzaY0JUW+IuP6Gu53CFuQlwsrs002vZp8eUwq+QJB4GsvGfg26swrC/LTXWLx1I TB2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=R/2IGqkcJxyCfdXVhyfUjNS/geJP3ljERdNj2BWoXsI=; b=BGU4o6nDYoMd1Tem/RqZCME48PSMMYWJQ8zPaXiaks+1nB3S50YJgoH14VfFspDvRU qkqoUs9IwY2UyOVG3XNcSRWUwtphAh3J3eLsVe/1t0yo2gBPv2Y/IvPNK6kuePWHkGdd r29q9tZNewzbVdxHPTpOPfYg1YALQEFNir+aLjzaV9O5aTsbTLf3HtzxrZqRzYNgvAY4 06Zw+dPquU2OesYu1rqm8gxwDBoap/rgW7XWFhYbu0x0WeP+Zeeh2tqlfKei7q0ISuyu Bh1PO1jAt3wxVDStpysOxaCRZd5G7REPb5kitp5Ev9yu9qBuWt0X+RTh7NeIu43x1Ido 1T2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oUyRV9cB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si7968246ejf.58.2019.09.30.15.45.40; Mon, 30 Sep 2019 15:46:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oUyRV9cB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1731539AbfI3Woo (ORCPT + 99 others); Mon, 30 Sep 2019 18:44:44 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:36336 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729874AbfI3Woo (ORCPT ); Mon, 30 Sep 2019 18:44:44 -0400 Received: by mail-vs1-f68.google.com with SMTP id v19so7993407vsv.3 for ; Mon, 30 Sep 2019 15:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R/2IGqkcJxyCfdXVhyfUjNS/geJP3ljERdNj2BWoXsI=; b=oUyRV9cBkkkJ238JMstI0DdwTEnHLOMmk7p0pAeK/otfxi+PYeGve1JVKhGcSbwAsR CSu8CVq53LDVDBpdq68Vide0GWDTg6SxzAWmZ8HUjVmgywKhOqqFOIx/s2JQ23bHpixT PVOqdQ9XsD/nhCYxAO+jahlCJV4O25PbdASrh/bdIvP350tciLMBx/vdKxRaWxYqnJOp EixyppQGewnOSKTGeQ74o0JTEQCDzGb/9LioyeEW27yDOeoJHC+tFDJLIX43UNxeIT59 LLC4yp6CdkXMcOC2X4wnR3Tgl0HRRYyG+GJMQQAOk898MKVC2yP2OliExODnacQh08Ar O6YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R/2IGqkcJxyCfdXVhyfUjNS/geJP3ljERdNj2BWoXsI=; b=GWBtzYEhl/WONUwzLN3mpZEbxK1N2jiQWKVTun3jyOf2r6Ug3McOQD1M43gzpt5Rmv ujis965m7weiKIUGMHAFl9tX4nVUR4EE4ITIKve/4e0QJzKfU7PeMDdlaxha6G8jWfzx c8rKPtsJJ9UCyH8jrwtMhJe/ZJk6IXfQZPh8ZokQlubZMwe4r+vzhagCt2nJ1zun2ri4 HkZaWc/Rj2ArEWyUZ29Fy76Pn6Trm5NA29vJuYyTLCM155oZ/LooiPYBpGbM3BHxI0td bQIKWVUxAFdBjXEFXoIIfUWqk/i9HTGLd/UtEwXzHxYYQYVFwVGkjWsUEqyvEUzIfJ/6 xTWA== X-Gm-Message-State: APjAAAXOnjRChLRzRqNyxL01HEL3NXdL4uk5up/4buEtVRrpOSV2WN20 tuyQ0G26ewHGlk/SuBPZdb8t6XlfXWhAN33i1dlLng== X-Received: by 2002:a67:6044:: with SMTP id u65mr10627844vsb.95.1569883482533; Mon, 30 Sep 2019 15:44:42 -0700 (PDT) MIME-Version: 1.0 References: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.1558430617.git.amit.kucheria@linaro.org> In-Reply-To: From: Amit Kucheria Date: Tue, 1 Oct 2019 04:14:31 +0530 Message-ID: Subject: Re: [PATCH v2 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states To: Jeffrey Hugo Cc: lkml , MSM , Bjorn Andersson , Andy Gross , Niklas Cassel , Marc Gonzalez , Sibi Sankar , Daniel Lezcano , Andy Gross , David Brown , Li Yang , Shawn Guo , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Can you try removing just the *SLEEP_1 states from the cpu-idle-states property? I want to understand if this is triggered just by the deeper C-state. On Tue, Oct 1, 2019 at 3:50 AM Jeffrey Hugo wrote: > > Amit, the merged version of the below change causes a boot failure > (nasty hang, sometimes with RCU stalls) on the msm8998 laptops. Oddly > enough, it seems to be resolved if I remove the cpu-idle-states > property from one of the cpu nodes. > > I see no issues with the msm8998 MTP. > > Do you have any suggestions on how we might debug this? > > On Tue, May 21, 2019 at 3:38 AM Amit Kucheria wrote: > > > > Add device bindings for cpuidle states for cpu devices. > > > > Cc: Marc Gonzalez > > Signed-off-by: Amit Kucheria > > Acked-by: Daniel Lezcano > > --- > > arch/arm64/boot/dts/qcom/msm8998.dtsi | 50 +++++++++++++++++++++++++++ > > 1 file changed, 50 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi > > index 3fd0769fe648..54810980fcf9 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi > > @@ -78,6 +78,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x0>; > > enable-method = "psci"; > > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; > > efficiency = <1024>; > > next-level-cache = <&L2_0>; > > L2_0: l2-cache { > > @@ -97,6 +98,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x1>; > > enable-method = "psci"; > > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; > > efficiency = <1024>; > > next-level-cache = <&L2_0>; > > L1_I_1: l1-icache { > > @@ -112,6 +114,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x2>; > > enable-method = "psci"; > > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; > > efficiency = <1024>; > > next-level-cache = <&L2_0>; > > L1_I_2: l1-icache { > > @@ -127,6 +130,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x3>; > > enable-method = "psci"; > > + cpu-idle-states = <&LITTLE_CPU_SLEEP_0 &LITTLE_CPU_SLEEP_1>; > > efficiency = <1024>; > > next-level-cache = <&L2_0>; > > L1_I_3: l1-icache { > > @@ -142,6 +146,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x100>; > > enable-method = "psci"; > > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; > > efficiency = <1536>; > > next-level-cache = <&L2_1>; > > L2_1: l2-cache { > > @@ -161,6 +166,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x101>; > > enable-method = "psci"; > > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; > > efficiency = <1536>; > > next-level-cache = <&L2_1>; > > L1_I_101: l1-icache { > > @@ -176,6 +182,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x102>; > > enable-method = "psci"; > > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; > > efficiency = <1536>; > > next-level-cache = <&L2_1>; > > L1_I_102: l1-icache { > > @@ -191,6 +198,7 @@ > > compatible = "arm,armv8"; > > reg = <0x0 0x103>; > > enable-method = "psci"; > > + cpu-idle-states = <&BIG_CPU_SLEEP_0 &BIG_CPU_SLEEP_1>; > > efficiency = <1536>; > > next-level-cache = <&L2_1>; > > L1_I_103: l1-icache { > > @@ -238,6 +246,48 @@ > > }; > > }; > > }; > > + > > + idle-states { > > + entry-method = "psci"; > > + > > + LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { > > + compatible = "arm,idle-state"; > > + idle-state-name = "little-retention"; > > + arm,psci-suspend-param = <0x00000002>; > > + entry-latency-us = <43>; > > + exit-latency-us = <86>; > > + min-residency-us = <200>; > > + }; > > + > > + LITTLE_CPU_SLEEP_1: cpu-sleep-0-1 { > > + compatible = "arm,idle-state"; > > + idle-state-name = "little-power-collapse"; > > + arm,psci-suspend-param = <0x00000003>; > > + entry-latency-us = <100>; > > + exit-latency-us = <612>; > > + min-residency-us = <1000>; > > + local-timer-stop; > > + }; > > + > > + BIG_CPU_SLEEP_0: cpu-sleep-1-0 { > > + compatible = "arm,idle-state"; > > + idle-state-name = "big-retention"; > > + arm,psci-suspend-param = <0x00000002>; > > + entry-latency-us = <41>; > > + exit-latency-us = <82>; > > + min-residency-us = <200>; > > + }; > > + > > + BIG_CPU_SLEEP_1: cpu-sleep-1-1 { > > + compatible = "arm,idle-state"; > > + idle-state-name = "big-power-collapse"; > > + arm,psci-suspend-param = <0x00000003>; > > + entry-latency-us = <100>; > > + exit-latency-us = <525>; > > + min-residency-us = <1000>; > > + local-timer-stop; > > + }; > > + }; > > }; > > > > firmware { > > -- > > 2.17.1 > >