Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp869317ybm; Tue, 21 May 2019 05:05:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvFOqv7A+a9r/U+SEF1IfjuPprzo6UkLR/9asa9UvG0733M22hZ7wSpJxQWMM5bY/MJUvA X-Received: by 2002:a63:5211:: with SMTP id g17mr51479347pgb.405.1558440350473; Tue, 21 May 2019 05:05:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558440350; cv=none; d=google.com; s=arc-20160816; b=hS2seGlu3CHrfdWH3Yy2pFjPGyS5KskhoxjfdY3tMM2b/iaxAQB8QTzPsJVd9qW3XU HnrXw46u8Pew8xJ1XGqgFgHl3UD4k004BcHLpdjQRUJkpm4dVwojNIi4WpkElfObGP0h 0lRW4r7tauMDKfi72jORbxM5eBzllHHXtEbfZb0tgYbY27bqutji02PaNn9Ia2HTC8MT S16+vFR0UfNG0OfYxcfOtIMA6o47ygU+6NW13cciCfy4s5sk9NENGAlO4HvEAnThhALC 3FkB0EAe4zxhoOm9G1Y4/57bXJFehuf7e0jpyanTMurhGtOdtpT05geyk3/4XTWPlvMZ UyRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject; bh=v+U/wnlOKuEyDOi+jCKi8N38kEWcSeOwjPtvOKRlQig=; b=qMxJ2xg/lNs9lK0KL0qCrO8b0Fs8zLBTMPlOaRGr352bWmNql9IqVuagFrF4c+MVgF h04ZRrDB7nje9gikttHf0ye0PnHVklLA6X5OPBlOfeosGEgwHCSnsQPu+oXe79ZzvHke PsCfY/VI2X7GS/I7Z1X5QASyu3SMyJwBGc/k3w/XQ0cZ7y8PvQQdx1LH4EZx+bpvFL5X z8DA6yACSp5V7zBS4s3xsIgI8MnWf2nKyhj4VON7s+v2BtOcI/JD53mz2IYlfezEfbuk 6PDX3u1xJnR1yXl9N72rWlOq5IqY+PaNYayLTNlk0AjtvNApJMsZRuT48NOLVFhdsdsZ L5Uw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k24si20420998pgj.510.2019.05.21.05.05.34; Tue, 21 May 2019 05:05:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728177AbfEUMDj (ORCPT + 99 others); Tue, 21 May 2019 08:03:39 -0400 Received: from ns.iliad.fr ([212.27.33.1]:54096 "EHLO ns.iliad.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfEUMDi (ORCPT ); Tue, 21 May 2019 08:03:38 -0400 Received: from ns.iliad.fr (localhost [127.0.0.1]) by ns.iliad.fr (Postfix) with ESMTP id 85B36206B9; Tue, 21 May 2019 14:03:36 +0200 (CEST) Received: from [192.168.108.49] (freebox.vlq16.iliad.fr [213.36.7.13]) by ns.iliad.fr (Postfix) with ESMTP id 79B1C1FF2B; Tue, 21 May 2019 14:03:36 +0200 (CEST) Subject: Re: [PATCH v2 7/9] arm64: dts: qcom: msm8998: Add PSCI cpuidle low power states To: Amit Kucheria References: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.1558430617.git.amit.kucheria@linaro.org> Cc: MSM , LKML , Bjorn Andersson , Daniel Lezcano , Andy Gross From: Marc Gonzalez Message-ID: Date: Tue, 21 May 2019 14:03:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <49cf5d94beb9af9ef4e78d4c52f3b0ad20b7c63f.1558430617.git.amit.kucheria@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP ; ns.iliad.fr ; Tue May 21 14:03:36 2019 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/05/2019 11:35, 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 { NB: this patch does not apply cleanly to v5.2-rc1 ;-) 86f93c93dd50 arm64: dts: msm8998: efficiency is not valid property commit 86f93c93dd5005f0aeb8ce84c2113e21a6006c7d Author: Amit Kucheria AuthorDate: Fri Mar 29 15:42:08 2019 +0530 Commit: Andy Gross CommitDate: Tue Apr 9 23:08:17 2019 -0500 After manually fixing up the trivial conflict, the DTB builds without errors. I then enable +CONFIG_CPU_IDLE=y +CONFIG_ARM_CPUIDLE=y (because I'm using a board-specific tiny defconfig) And... the system starts to boot, hangs a few seconds, then silently reboots: scsi 0:0:0:3: Direct-Access SAMSUNG KLUBG4G1CE-B0B1 0800 PQ: 0 ANSI: 6 sd 0:0:0:1: [sdb] 16384-byte physical blocks sd 0:0:0:2: [sdc] 2048 4096-byte logical blocks: (8.39 MB/8.00 MiB) sd 0:0:0:2: [sdc] 16384-byte physical blocks Format: Log Type - Time(microsec) - Message - Optional Info Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic S - QC_IMAGE_VERSION_STRING=BOOT.XF.1.2.2-00157-M8998LZB-1 S - IMAGE_VARIANT_STRING=Msm8998LA Looks like the "helpful" behavior of the secure OS... Regards.