Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp202352imm; Wed, 30 May 2018 21:41:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJpBZbwVJPfPDZHAt3h8olLxJvc2qiHW1YeolZnzAOMol+hu4bySWg3Q3eW9EK7iop80ejp X-Received: by 2002:a17:902:5e3:: with SMTP id f90-v6mr5633695plf.175.1527741666498; Wed, 30 May 2018 21:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527741666; cv=none; d=google.com; s=arc-20160816; b=PgB4k2phZiqSqfw89gS1CtHHw6sLiRY5N+nqAabVEVwL9bMW2a4o3YfmhlC3uVjfBc C1zsHdK96iy/BOXm+/4fsBCr1r+spsuYEZwmFiG8wJJyQdQAcY0otzPWoePqcdBu1M6N yMfHuVOq8U5dhbajL3zpCXsffPANDzT6wAzatfZ/SLwuV4/WZZpx1hMUHxoe5y/ISV9R cPtehTE3knEXjrLDERXf9rxd1bnjftdUVicOCvpzCFQipifuZ8t5rnN7USeXsTtxNsqX LvkyX0TqMf8c6dFnVCHMI8+gSn+ceaPLJul7y0gsUnacgio8iOTZ9bOsyL098D3Q7H5V Hytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=sOTQ1aydbtEWnPrGmkXXmNALMXM6omZiWv62YWuaTOs=; b=y8XpBuzNuwGmmuzzWPtBftGuueDV+TWDvW3r5ixyEivG692fza0T/Mck4DYohSKjag MN8sG/R3+4SaEg3knDTRZZbKJE55Ir7dPhkOtPJIGDg4umbiV8zvrwVCMYpnoMYhu4iI eoQoKjUMBCyEQiaY/mbf4i+5UJh7WQPcX4GjSz3ggwJxEmaJPCl0+/jZWezGpf68yVl0 VmyqVoRsLwhjkezqdDcd74G+uOuDu7aeWe8LwYdteq3955oW46ytR0W3x//uS32EpGrJ 82ua3ZTusmiJg6PXHioDWcj9gsJaGjSxDlj8BPyduSPBNiL6mrV6ke232g15bZtHQxqI 6rwQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si36250998pla.565.2018.05.30.21.40.52; Wed, 30 May 2018 21:41:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753761AbeEaEk0 (ORCPT + 99 others); Thu, 31 May 2018 00:40:26 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48974 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbeEaEkZ (ORCPT ); Thu, 31 May 2018 00:40:25 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4V4dOZ4094552 for ; Thu, 31 May 2018 00:40:25 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ja4xbabj4-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 May 2018 00:40:24 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 31 May 2018 05:40:22 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 31 May 2018 05:40:19 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4V4eII111665434 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 31 May 2018 04:40:18 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C519F42045; Thu, 31 May 2018 05:30:48 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A185A42042; Thu, 31 May 2018 05:30:46 +0100 (BST) Received: from aksadiga.ibm (unknown [9.195.43.157]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 31 May 2018 05:30:46 +0100 (BST) Date: Thu, 31 May 2018 10:10:12 +0530 From: Akshay Adiga To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: stewart@linux.vnet.ibm.com, svaidy@linux.vnet.ibm.com, ego@linux.vnet.ibm.com, mpe@ellerman.id.au Subject: Re: [PATCH] [SCHEME 1] Add support for new idle device tree format References: <1527735184-24465-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527735184-24465-1-git-send-email-akshay.adiga@linux.vnet.ibm.com> User-Agent: NeoMutt/20170306 (1.8.0) X-TM-AS-GCONF: 00 x-cbid: 18053104-4275-0000-0000-000002881B37 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18053104-4276-0000-0000-0000378F1C8D Message-Id: <20180531044003.2zpkgzhsxyph3tdc@aksadiga.ibm> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-31_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1805310051 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 31, 2018 at 08:23:04AM +0530, Akshay Adiga wrote: > This patch adds support for new device-tree format for idle state > description. > > Previously if a older kernel runs on a newer firmware, it may enable > all available states irrespective of its capability of handling it. > New device tree format adds a compatible flag, so that only kernel > which has the capability to handle the version of stop state will enable > it. > > Older kernel will still see stop0 and stop0_lite in older format and we > will depricate it after some time. > > Idea is to bump up the version in firmware if we find a bug or > regression in stop states. A fix will be provided in linux which would > now know about the bumped up version of stop states, where as kernel > without fixes would ignore the states. > > New idle state device tree format : > power-mgt { > ... > ibm,enabled-stop-levels = <0xec000000>; > ibm,cpu-idle-state-psscr-mask = <0x0 0x3003ff 0x0 0x3003ff>; > ibm,cpu-idle-state-latencies-ns = <0x3e8 0x7d0>; > ibm,cpu-idle-state-psscr = <0x0 0x330 0x0 0x300330>; > ibm,cpu-idle-state-flags = <0x100000 0x101000>; > ibm,cpu-idle-state-residency-ns = <0x2710 0x4e20>; > ibm,idle-states { > phandle = <0xff>; > stop4 { > flags = <0x207000>; > compatible = "ibm,cpuidle-state-v1"; > psscr-mask = <0x0 0x3003ff>; > handle = <0x102>; > latency-ns = <0x186a0>; > residency-ns = <0x989680>; > psscr = <0x0 0x300374>; > }; > > ... > stop11 { > ... > compatible = "ibm,cpuoffline-state-v1"; > ... > > }; > }; > > Signed-off-by: Akshay Adiga This is intended to be a RFC patch. The skiboot patch for the device tree is posted here : https://patchwork.ozlabs.org/patch/923120/