Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8382269ybn; Tue, 1 Oct 2019 07:23:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkqwWC+onpiVO/TFuxCjh/n2f173OpBKaSH2T4DD9/0ljkLqWwHj5J4e4Uw9PTFZ7auS1r X-Received: by 2002:a50:fc0c:: with SMTP id i12mr25953492edr.82.1569939792301; Tue, 01 Oct 2019 07:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569939792; cv=none; d=google.com; s=arc-20160816; b=y2YOenpPDQM6oA6ej1oivHn2OTDztrhV/ORhc9lBm5LUXRLQ9cY9M2qlreDhuA3azH MtMjbIis6LBDo/EzHOU2lYjfjDhkpazKv3hZWiXJpkIMSbkpcV/Nvvk71lH2cGXR1gOB ZEcW7BiwLHvzAPXc3utk7pV3gAR4vniCh38oaIDpF2Wt/iTUZod9ZnIhZ2ktlqhFtmYR 7/9yOqpwxoxQ83Hy7OfoHUR2KsCTrys7YiHcTok9VnPcB7cjOzZebxjma1Y4ATkV6jzV FFexAgHd9JRgylCEEuFW3XkGrpwQB44NelXEEFQpwR2febvbcpfD5pefbl7ivQT53UxN dHDw== 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=lvgQDu9WXpCvWJp0oOMglHPGYf9ZHsEL9W0aSNo7TEo=; b=gazCc8mxzMkeXi8I4/RUWi01me6cFohO6ZlGPC3DBFkRorjU/ZR2ObJeWSZ5w3Ts9r KiHzXR+DGdqnXv5YdJDU2HgV3HxACUGX1duXge28uv0Ypq09z7mVyWH0vXW+aDSECj1c xxFjaNI0VkHdTHZr8S1r7A8dgIouACx4/3A/shLeO7k0+ycXZsWnk/LYUQJ9a/o3Hsw3 bsTN12teOXjb+mnBz09MxQeH6do0FgGX+BLCLbY0Bh08AAMnxAE7O5jUvzMAaXQycfoG G5b06N74SrS1U60i0gAGRdtf8cJ+tUg0HUvDU9ALgLoac2NX4jWZqLWq9xuqdfZanQZ0 EEFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rxOxoRq3; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si9882445eda.399.2019.10.01.07.22.47; Tue, 01 Oct 2019 07:23:12 -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=@gmail.com header.s=20161025 header.b=rxOxoRq3; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389024AbfJAOWI (ORCPT + 99 others); Tue, 1 Oct 2019 10:22:08 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:45154 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388994AbfJAOWG (ORCPT ); Tue, 1 Oct 2019 10:22:06 -0400 Received: by mail-io1-f68.google.com with SMTP id c25so48295734iot.12; Tue, 01 Oct 2019 07:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lvgQDu9WXpCvWJp0oOMglHPGYf9ZHsEL9W0aSNo7TEo=; b=rxOxoRq3U+cKt4FFrG3NOwdes/J/KJuRWeS4BdORHW6mtwrPawK8KLTLauQbZM4VA1 7IvT3qOuIk0KTwjD3YHkA1627hH68DWiJafqoEcdyK6s8RGWkjQj+d8a8zHCvo3RjN/I JovOl9GOOMIQ4gbhJoqCNYV9ozPUrnxDbks32/xpZf95ydCWElw8/eIqFXG0+rb9YrQG Ax4vlOF9Ljt5nS6qOY0DCFAvTOpYT5RXETaWgOJDHD1KfbxUEFwPVphoEUR5pH08Hj0F f1depZObQeep5qvRPKRtaSwB9z/vi1+5e4STyz2OaK2F64zF7+Cm3vvD4O2noEeaZ8hY WOVQ== 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=lvgQDu9WXpCvWJp0oOMglHPGYf9ZHsEL9W0aSNo7TEo=; b=ARNcCa3E9FFlfmRxW7FxRSLveIJkMBWoJ3R3+SSvb5JBepzq7+Mv+WUubZhuAFgQ8S 1gPn9ndGT5oFWm1+FmNAJXwvVKtaKCwKPAmir7JUwHIuT9FGt3OBU4G620owqmsP6/pu /y/VX8NXX+pg9X+gg1qXa7oaCAJCwOA8l/x7n9ChPhk94cv/Z1rPdPegVzPCKstNhs/K wmHzJ6kCplS48+i+BrGLPTT0j0P1MzzHbvD3Xxb/POl7Pt6JNBt4vaVkcmbxOLFhrFNU h/YFUyLTi1gwLlJkYvepo4cFnSk1zeftzn1a7k6bZ2DpGXS3B6z+GvxxiuX/3xxuAr1C d84A== X-Gm-Message-State: APjAAAVCM4eranipohU0O30/QVsTBlfC9hNMWB2cN86L0b6fcG1T90ai mMsbd89z8EbxY3N1ZylyuOOcHRy3w39ppV/uBFY= X-Received: by 2002:a92:b752:: with SMTP id c18mr26696367ilm.42.1569939725259; Tue, 01 Oct 2019 07:22:05 -0700 (PDT) MIME-Version: 1.0 References: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.1558430617.git.amit.kucheria@linaro.org> In-Reply-To: From: Jeffrey Hugo Date: Tue, 1 Oct 2019 08:21:54 -0600 Message-ID: Subject: Re: [PATCH v2 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states To: Amit Kucheria 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 On Mon, Sep 30, 2019 at 4:44 PM Amit Kucheria wrote: > > 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. Still seeing the issue with just the SLEEP_0 states. For reference, Bjorn suggested adding kpti=no to the command line, which also appeared to have no effect on the issue. > > 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 > > >