Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp396439rwd; Thu, 8 Jun 2023 02:11:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6XsE5vZJdJFd4gAO/eXi5GCAlmz9LkjlydJxpmtQiLvlemokr9nlEP3+tmgdykCJqXVZeW X-Received: by 2002:a17:902:e742:b0:1b0:e0a:b7ab with SMTP id p2-20020a170902e74200b001b00e0ab7abmr6602970plf.31.1686215482485; Thu, 08 Jun 2023 02:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686215482; cv=none; d=google.com; s=arc-20160816; b=YiJ5cgzs2yuDrYGej3QdpHL0K3MVMxBgwCAlseNdbJ2CWR16a4mervjguJSn0nxLqx FGAYuqt7lNNw25fYurD4edqRXB6fUG/SRf9kKXOMlv7VLwEA5krPSuurrY4uD2zbZga+ UoE8alZ97d/89gDFTMBABeyjtBgVxiO9qkz9whj+MWck3TPmsWtti4sbrWMjQJxiLuUy hjKXq64PeAAU16Ub1EXm8jBKxODjnkPHmuwxDkmbyRy/AVmWM0kFxpEbjtfVSim3QbHz HIPix2f3KtwOsGr6b8lnHT5wlQ015GVk4aVSLvUKO9u/v8HQNjFVAxEOadicgYV194El fmkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e1vi0RkXitXyaD8Zh+Bdc/oErRhEGUNSbSG/QbaiVUw=; b=e4mkujDMoORGt3/OxRSdMxSCm+lH4Ubfw0a1+tJKiIr2+3kcK6SV8Cm5vqik+jNMgy JDeLpMtkOfkwUSNBFj3joNFIohwjHEwn1fhvjgGDWo0SEgXiTgwpzbsv3ElJLoTgqCIp js3ujK3OymmLWJJ7ksxUamLb34cxFX0cX21kIeCwYANc8VxXQYxzUeW0cSP+BMkN/GCs gybZzRdjb9bnTJnRVGiVBT7T1KssRViMFenc/h5HIF6+/POVcJ66b+Qentk8LFEEuZLP 1euh3rfkNmbXxD0c2tK29/200+i5oXnJuHjBwETJpsHSlq9r2JHVD0TM2raYyFo5EQrO CSBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EYnL0dcV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lk14-20020a17090308ce00b001b02a9bb4casi758892plb.443.2023.06.08.02.11.10; Thu, 08 Jun 2023 02:11:22 -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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=EYnL0dcV; 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=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235470AbjFHI4S (ORCPT + 99 others); Thu, 8 Jun 2023 04:56:18 -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 Content-Type: text/plain 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,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 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>; -- 2.17.1