Received: by 10.223.164.202 with SMTP id h10csp1014816wrb; Sun, 26 Nov 2017 18:02:34 -0800 (PST) X-Google-Smtp-Source: AGs4zMY7/1vnqNB44ijamYbwxUg0/Fv5Npyy6VLg4IbgheIe+2tR+Bg5/7D7XHUYuqoJLUnaj37z X-Received: by 10.84.214.136 with SMTP id j8mr36567276pli.408.1511748154167; Sun, 26 Nov 2017 18:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511748154; cv=none; d=google.com; s=arc-20160816; b=UBI+ePET8KgwcGbwN2ik72uj0E92xyS9igqJ2wNumElv6eEYArMeiRB4khKu0Ifo01 jff2/kz9uuvX3NDvf6e6qdP1IpfSDX39qrqzgktcS9WRufQo7NDhL5xi28gHcMAGwBm9 vGY/jHc+QSi9Hhppn6NsyIyts4CSyI/34vXyZKeT736Bq6bmq4UX3lg/CuV6AdIfoD5c 1SVD5Vv643VRcpeWsDh9z5Rb8dFmhZ7AJAybZDB+gJqnY/b4n+CKwf+/V977HDx6wMYg J2hxENssi/qVCS+RJxVuVWZSuQQgmHxX9CwQKEoGJDx7Tcz0zug6K/1BH4s6uHbThAvE uB0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=hl/SccE4/J9VnmdGOOQoDCv7/wMb4zr3NPZt46aEFUU=; b=X22f8EeGhZKaQbsaO8zMr6LUoka5uOUVIKApqWICdzMDkczyWuVEDOtGdCadVdiWsy JvfnxjweO5rbGA9/rrQeEIWVen2t6qWbGICpadqp6yCBtRX5h2IL44ygio1ms9oERe1Z NUK6E7Gn5+kpLFi40vs2uuwH+lYne6ZFiKFXwEHbpn7JJphU2+ucOoru6XuUu38D5S1l UutYCTRUJbw2lLzu4Xmtmf3nK/5+rcW+v2kspdZ7QDLwYX0tDCiA++NQouEKqbud2CCy WR1NDGNLyWv9UgEJY+0WNhjJQsLrYtUbIcIvREBI1AKNDKGxBcXoPM0UgnpcJRdk+ZXz prpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cvhll6AF; 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 h13si22115393pgq.28.2017.11.26.18.02.22; Sun, 26 Nov 2017 18:02:34 -0800 (PST) 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=Cvhll6AF; 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 S1752313AbdK0CBp (ORCPT + 77 others); Sun, 26 Nov 2017 21:01:45 -0500 Received: from mail-wr0-f177.google.com ([209.85.128.177]:42988 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbdK0CBm (ORCPT ); Sun, 26 Nov 2017 21:01:42 -0500 Received: by mail-wr0-f177.google.com with SMTP id o14so24968820wrf.9 for ; Sun, 26 Nov 2017 18:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hl/SccE4/J9VnmdGOOQoDCv7/wMb4zr3NPZt46aEFUU=; b=Cvhll6AFtAYibIratB6lI6SRXBVdKQe4PdMt/BA1UpSlQyDIqjh+zWI827fq5VeC5k XxFpzNB/JC9vnKyNmNcylYn9ryqZcaND52eHNfyzbOf71m+nOoj+nbq8AvEuBF3oIgAF vxI1N5oNluEzcX7XOEl0u3dq6IGPaGVKvBgAo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hl/SccE4/J9VnmdGOOQoDCv7/wMb4zr3NPZt46aEFUU=; b=Ja2L256nZf54XmxM5AGUu0KEGKZvbklRv2LmT5riPPiJ6UJVk+SCzDkyZ2SFvZ8g0o Y9PjgmRBPrFgqyaMOhVVUB6lFZQHuQoCHAoElsJPNGyoqG87SkcZ171hHjwbiY8IfZNd ELzBkNbZ7UJ7duz/nXJX1XY+Nmpk6NOHeF/GONSZhkU4mF/vg4pH13BYQjSEZMC+RVCc HoRmB1MhsdjO1Ew5gBorsBsmVFP3uWfpnKaoHCsZD3Ddg8pLvnPIy8kuB1K0VHHIKRtj C9hNQrmd/AAp5eqML+52mo+ddgG9inQetkvMu814RxktMm9+bKiipP7asUgMjDeokmu3 +uKA== X-Gm-Message-State: AJaThX4zEonO0cYnZImAo6lm3NO+5KiJq2sj8sH4mw66iJckJkxstx3G QwdvTem3LAvL8T7LhvszSlzKIQ== X-Received: by 10.223.190.9 with SMTP id n9mr27485343wrh.46.1511748101485; Sun, 26 Nov 2017 18:01:41 -0800 (PST) Received: from leoy-linaro (li1530-42.members.linode.com. [139.162.245.42]) by smtp.gmail.com with ESMTPSA id k5sm17899325wmg.21.2017.11.26.18.01.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2017 18:01:40 -0800 (PST) Date: Mon, 27 Nov 2017 10:01:28 +0800 From: Leo Yan To: Sudeep Holla Cc: Wei Xu , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Daniel Lezcano , Vincent Guittot Subject: Re: [PATCH] arm64: dts: Hi3660: Fix state id for 'CPU_NAP' state Message-ID: <20171127020128.GB26822@leoy-linaro> References: <1511415614-9859-1-git-send-email-leo.yan@linaro.org> <17639ecc-8ff8-e118-f6e1-51e2cfe4342b@arm.com> <20171124065623.GD13184@leoy-linaro> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, On Fri, Nov 24, 2017 at 02:39:47PM +0000, Sudeep Holla wrote: [...] > > Come back to recommended state id, I reviewed Juno board defintion and > > I found it's not align with PSCI spec defintion, in ARM-TF Juno code > > defines state as below [1]: > > > > Yes Juno is almost 4 years old now, so it may not be too good a > reference platform for latest and greatest platforms like hikey2 ;) > As I said, Juno predates the recommendation in the PSCI spec. > > > #define ARM_LOCAL_STATE_RUN 0 > > #define ARM_LOCAL_STATE_RET 1 > > #define ARM_LOCAL_STATE_OFF 2 > > > > In PSCI spec chapter "6.5 Recommended StateID Encoding" recommends power > > state id as below: > > > > 0: Run > > 1: Standby > > 2: Retention > > 3: Powerdown > > > > So could you confirm on Hikey960 we should follow PSCI definition for > > state id definition? > > > > Yes, I don't see any reason not to, as this may become reference to some > other platform, it's good to keep it aligned so that copy paste happens > in a good sense for future platforms. :) Thanks for upper confirmation. > >> Juno's implementation is legacy as these recommendations were added > >> later in the specification while Juno is 3 year old platform now. > >> > >> Though strictly speaking it's not violation of the PSCI specification, > >> but I would rather get this fixed not before it's too late and copied to > >> the next generation of platforms. Since the firmware can be easily > >> upgraded that shouldn't be that difficult. > > > > If completely compliant with PSCI recommended state id, we need change > > both for ARM-TF and kernel for this. In ARM-TF, I have sent PR [2]. > > > > OK > > > For the kernel patch, we should change state id as below. Please let me > > know if you have suggestion for this. > > > > I would wait until ATF changes are merged before you patch DT in the kernel. Agree, will sent new version patch after ATF patch merging ahead. Thank you for suggestions. Leo Yan From 1584958894000052180@xxx Fri Nov 24 14:43:09 +0000 2017 X-GM-THRID: 1584834217582212283 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread