From patchwork Thu Jul 20 12:17:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 9854769 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B37F7600F5 for ; Thu, 20 Jul 2017 12:17:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A334F28767 for ; Thu, 20 Jul 2017 12:17:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97EDD2879C; Thu, 20 Jul 2017 12:17:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F1B528767 for ; Thu, 20 Jul 2017 12:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=c6c71oTmXX2IfIFksW0vHH0PxfEFsHTKhaRSdhRiPvw=; b=IsrnE0IRSwE/BNxcFeZlweySs6 ODG0Wb0qAiet9L4BY5d92SLi+HqQAfnLn90vN9zSjsEQ0w3xKZi/VBPmfa/NML6b5xPgvoKWIarBF VrpE5WflV5J9KFLYXwQxG9Ga3ipcIu43D9OTPd2btbMymtPWYis1O+KXkGECh97k5ZusKJxrAIWiS T1H3Hw5HgW4G8sM8c9X+wpp3zab5BpMVzCD/KNLtVWtKH5vv6xPIKLNZ9Zx39re02OEzBj3jA3SRj p3Hr9fZEGGPNWr/zwRDP9bdQx/e1uiEOSAUTfVdOW5UF62Sgl/wUCneyaxNpTlM6FHwkAfql13GQ0 5E7y4B1g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dYAOt-0001UJ-Ju; Thu, 20 Jul 2017 12:17:51 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYAOa-0001EI-JO for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 12:17:35 +0000 Received: by mail-wm0-x242.google.com with SMTP id 184so754632wmo.3 for ; Thu, 20 Jul 2017 05:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=8ZbzLzn6iafW4Q0zjbzD6DFvewEA8HEy2rTCJUAMg+U=; b=w/ryXIpoGGvYrY6QJdmxSJXsEZfg5Wg/MbCd8EM/XrKCdUZ8e9JwK7x8ZZ+/r9z3oc syEeRaTomowwkMX/C96xLp4ruFNC0krVES2MHO+KNcVhd65ohNDCMWuJqH26o1Cuz5lE uQYPApXr0HOdGr3BoIZxzrgL0a1HwyOuuaLFcjSryAzSvnWBlzFZRvN7MnRSvFkc6dYM 9/RIsZol1cQmylLmngkIe27l6sXT0gaUgpnkxcWDdbvwA7GwDG2N+DhAHgthdXwDqeGy tJdwj3BfoAjCWOMpZrA7NyM+WcggMyRdKwABp1XAYFiPmd2KiDvOeHVOn86Vq19mvyhc YOtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=8ZbzLzn6iafW4Q0zjbzD6DFvewEA8HEy2rTCJUAMg+U=; b=B7inNeS5fOSZeL2bITDS6utGWZu8opW8OG+xXGLeqbWeIXvc+JQlg1oP9DdjRyfX3X q+a1nQywot/sWALiA3goDS70sh7QA+0F0HUKLFzNKkrnxcaelFKhlexG4RHID96DZRnN UauAIZbHFmEhZ/zfI+rxxPRMd27xGhoGraj7VDkOJnlJ/8pFCqVenraKZkp6daCkunKS pN1RWi251vxmSe1v+QYePda1PBWhCIy9IBUmsWLj+02/scRMUlzgjMA49FMHNfXaHGet ZDDqDsvkPNhAz+PaknHaIG2O8Wj0QvknmQdV63qQCcpUVCJLWBqAQjIuqKeVyEdGmBnb LPyg== X-Gm-Message-State: AIVw113quffWgXUJqyJW6u/XKWH4JTcscWLAYuiOnd1GaxAfBvq/8YKH ltDM+Pz1cb7tOz5wGXc= X-Received: by 10.28.222.70 with SMTP id v67mr2116566wmg.156.1500553033497; Thu, 20 Jul 2017 05:17:13 -0700 (PDT) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id p140sm2329511wmb.28.2017.07.20.05.17.12 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 20 Jul 2017 05:17:13 -0700 (PDT) From: Michal Simek To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/10] arm64: zynqmp: Add idle state for ZynqMP Date: Thu, 20 Jul 2017 14:17:01 +0200 Message-Id: <096d94cc880d5ab61de3633bf6b22f2a001a1885.1500552941.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_051732_836616_13E5E6CF X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E. Iglesias" , devicetree@vger.kernel.org, monstr@monstr.eu, Stefan Krsmanovic , Marc Zyngier , Will Deacon , Mark Rutland , Shubhrajyoti Datta , linux-kernel@vger.kernel.org, Bharat Kumar Gogada , Rob Herring , Moritz Fischer , Catalin Marinas , Punnaiah Choudary Kalluri , Dinh Nguyen , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stefan Krsmanovic Added the idle-states node to describe zynqmp idle states. Only cpu-sleep-0 idle state is added in this patch. References to the idle-states node are added in all CPU nodes. Time values: entry/exit latencies and min-residency, needs to be tuned. arm,psci-suspend-param is selected to comply with PSCIv1.0 and Extended StateID format. Signed-off-by: Stefan Krsmanovic Acked-by: Will Wong Signed-off-by: Michal Simek --- arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index 4f7d9905e235..8e6cf0cf3a69 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -25,6 +25,7 @@ device_type = "cpu"; enable-method = "psci"; reg = <0x0>; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu1: cpu@1 { @@ -32,6 +33,7 @@ device_type = "cpu"; enable-method = "psci"; reg = <0x1>; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu2: cpu@2 { @@ -39,6 +41,7 @@ device_type = "cpu"; enable-method = "psci"; reg = <0x2>; + cpu-idle-states = <&CPU_SLEEP_0>; }; cpu3: cpu@3 { @@ -46,6 +49,20 @@ device_type = "cpu"; enable-method = "psci"; reg = <0x3>; + cpu-idle-states = <&CPU_SLEEP_0>; + }; + + idle-states { + entry-method = "arm,psci"; + + CPU_SLEEP_0: cpu-sleep-0 { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x40000000>; + local-timer-stop; + entry-latency-us = <300>; + exit-latency-us = <600>; + min-residency-us = <10000>; + }; }; };