Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp812946rwd; Thu, 15 Jun 2023 02:21:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ62TNzrTb/GAvJ71MvOFAzw5wwmrmApY+Fcn5zVL/rnBn14MGpOlWVEWFTGxKJoLTFQ31O8 X-Received: by 2002:a05:6a20:c197:b0:11d:d636:21f1 with SMTP id bg23-20020a056a20c19700b0011dd63621f1mr3396709pzb.57.1686820865280; Thu, 15 Jun 2023 02:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686820865; cv=none; d=google.com; s=arc-20160816; b=XQrUP7iw77FpdyTtYzCSSijjfjUxzmgsISuKr9XNemyY+lBm++F/HrbSRg1rDts0f2 GxQaRZ3d8ZSeIIPYMnotoq07R4afwPt8J5w7G3f6gQLv3UFqj6N/hu74Sbz6mJtgd225 b4fd81UlXFMMov5uB+OHNbmTwwDAsJO5TfocHc+ShPRd3Wv2c9A1lWrDqd06H/Yi5KIK ZW4KTER9tQTGxfl1kgF9RZ7O4D7SxGvd03PUmBy0nsfF6NQCeIQggW1ytMtJz3m8iWAY un4ufppoaYcVaupA9sVz0Hm5XAukx85b6FRo1Rws1pWV7RRkuuGmV3IrwXz06qyMZzBa ZRTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=sbG2YUgTG6gMP8tqnT+d2K8sDbO9fbBj8bAsDR+oM54=; b=hULQDd4qydcPxSBNh7HXAI1ewRfA9AWIPYMpjWiTSN16HVTdTrS8z0zOJAgPoxfsCH 9zUjOUoG35GV4GJQ3tbf+EY+sWokJMrWbTBja8s14JXf4zN8sp95ZAoz9GmglYB1BWNA Z6rs+LslFnddmp9UVbVkXqE1ZHjgvHnDzbRogBeOmbzNf2Npx60f9F5DqQATPnMpty5K NYVw0qh/vEaCrC0Vy0ze0zXPEaqNef9xZkA0WbVQSQtI0HrZn6koFCB/qK+EWgzoe6Wj 660KgLIQ//s8qSrIOd+EzpvX0R1jFFA/pZ9QJ3iRsizZfBAtiR7MJS1hFWVAwiA6rKs9 qkAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u199-20020a6279d0000000b00666737b2b8bsi2518540pfc.383.2023.06.15.02.20.52; Thu, 15 Jun 2023 02:21:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240542AbjFOI4g (ORCPT + 99 others); Thu, 15 Jun 2023 04:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230102AbjFOI4e (ORCPT ); Thu, 15 Jun 2023 04:56:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C846B1BDA; Thu, 15 Jun 2023 01:56:33 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BD3BF1FB; Thu, 15 Jun 2023 01:57:17 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F2C0A3F71E; Thu, 15 Jun 2023 01:56:31 -0700 (PDT) Date: Thu, 15 Jun 2023 09:56:29 +0100 From: Sudeep Holla To: Tushar Nimkar Cc: "Rafael J . Wysocki" , Daniel Lezcano , Ulf Hansson , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_lsrao@quicinc.com, quic_mkshah@quicinc.com, Sudeep Holla , devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: arm: idle-states: Add idle-state-disabled property Message-ID: <20230615085629.b2aaumhq7yqhs5lf@bogus> References: <20230608085544.16211-1-quic_tnimkar@quicinc.com> <20230608085544.16211-2-quic_tnimkar@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230608085544.16211-2-quic_tnimkar@quicinc.com> X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 08, 2023 at 02:25:42PM +0530, Tushar Nimkar wrote: > This change adds idle-state-disabled property using which certain or all > idle-states can be kept disabled during boot-up. Once boot-up is completed > same can be enabled using below command. > > echo N > /sys/devices/system/cpu/cpuX/cpuidle/stateX/disable > > Cc: devicetree@vger.kernel.org > Signed-off-by: Tushar Nimkar > --- > Documentation/devicetree/bindings/cpu/idle-states.yaml | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/devicetree/bindings/cpu/idle-states.yaml b/Documentation/devicetree/bindings/cpu/idle-states.yaml > index b8cc826c9501..f999bc666bbd 100644 > --- a/Documentation/devicetree/bindings/cpu/idle-states.yaml > +++ b/Documentation/devicetree/bindings/cpu/idle-states.yaml > @@ -358,6 +358,13 @@ patternProperties: > systems entry-latency-us + exit-latency-us will exceed > wakeup-latency-us by this duration. > > + idle-state-disabled: > + description: | > + If present the idle state stays disabled. It can be enabled back from > + shell using below command. > + echo N > /sys/devices/system/cpu/cpuX/cpuidle/stateX/disable > + type: boolean > + This is clearly a policy and not a hardware or firmware feature to expose in the device tree. So NACK, why can't you load it modules if you don't want idle states in the boot. It is same as choosing any default governor or performance states, will you add those next ? It is simply policy not a feature/property to be exposed in the device tree. -- Regards, Sudeep