From patchwork Thu Jun 8 08:55:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Nimkar X-Patchwork-Id: 691461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EA84C7EE2E for ; Thu, 8 Jun 2023 08:56:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235661AbjFHI4Q (ORCPT ); Thu, 8 Jun 2023 04:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235644AbjFHI4M (ORCPT ); Thu, 8 Jun 2023 04:56:12 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733242729; Thu, 8 Jun 2023 01:56:11 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3587xbFF019735; Thu, 8 Jun 2023 08:56:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=e1vi0RkXitXyaD8Zh+Bdc/oErRhEGUNSbSG/QbaiVUw=; b=EYnL0dcVtGA4Tqxd7EftMDB5CsFdmfN4MsXdlY0YPQLuQZA4jr9fQEHyPsV6TcWrc/NU Su3BylwCqYFTQo6YnaYK1PRIvXbUPjtUVyfOCYTsy94FboHirtJ6fmWM9g18UameSdsp ncUcz3HeE2jyi0MqIlS/YSsif5pz91+7OqVdMglGQy0M7oA6RzkrU9yBS9aWDi4Ekn5F zCj6eVwUIUNW5wcRQDOmDSF+Ba+2SOV7VkvCZACgPp1sY09FTdxUb86btbSl0+JCWBgU TfdSDxpJ2kYr0wCZSUAutTSvZu/LofI7CBEMOQjobEVnQe0L11f1kNb3wfyEdl47t75+ ZA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r33uygss3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Jun 2023 08:56:08 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3588u7UG028188 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Jun 2023 08:56:07 GMT Received: from hu-tnimkar-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 8 Jun 2023 01:56:04 -0700 From: Tushar Nimkar To: "Rafael J . Wysocki" , Daniel Lezcano , Ulf Hansson CC: , , , , , Tushar Nimkar , Subject: [PATCH 1/2] dt-bindings: arm: idle-states: Add idle-state-disabled property Date: Thu, 8 Jun 2023 14:25:42 +0530 Message-ID: <20230608085544.16211-2-quic_tnimkar@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230608085544.16211-1-quic_tnimkar@quicinc.com> References: <20230608085544.16211-1-quic_tnimkar@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Rh2LGXxmyQBLN2STaG5s44Jc3G9gy7Bg X-Proofpoint-ORIG-GUID: Rh2LGXxmyQBLN2STaG5s44Jc3G9gy7Bg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-08_06,2023-06-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 mlxlogscore=906 priorityscore=1501 impostorscore=0 mlxscore=0 bulkscore=0 malwarescore=0 suspectscore=0 clxscore=1011 phishscore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306080076 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 + idle-state-name: $ref: /schemas/types.yaml#/definitions/string description: @@ -548,6 +555,7 @@ examples: CPU_SLEEP_0_0: cpu-sleep-0-0 { compatible = "arm,idle-state"; local-timer-stop; + idle-state-disabled; arm,psci-suspend-param = <0x0010000>; entry-latency-us = <250>; exit-latency-us = <500>;