Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2278090rwd; Wed, 14 Jun 2023 00:03:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7RcqvvJR6iA/AMBcLaIqKFVQRC4e4HauEBklO6Yq0ADkCyNqrdH0S+82wblBbvOzUa+zem X-Received: by 2002:a17:906:da87:b0:974:1c91:a752 with SMTP id xh7-20020a170906da8700b009741c91a752mr14423620ejb.5.1686726192698; Wed, 14 Jun 2023 00:03:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726192; cv=none; d=google.com; s=arc-20160816; b=0B1fLmyV1jxeTnyRRnaYIfnuWiG4ZcnPDgctSXVqZFEWRHqvjcvq/xW5pyHcjdNzns q93SJQmm0BL5RRl6mcO1vycWHJlViovh3pkfH9UilSmRhlGsaWArsbFMMYyLNWKAgKt2 op83Qdf/Kikjen6YT5t8QpfY25ZJkxjBxERbqVJpAz+ZWtvsQ24BnAzbqhCzvGogV6tc liRzQZchCRf336tYwXWJp/D0Gu/5GWPdrgti9FFP/VEFgU5Lir6f4CMNVKQVB8wwMMg8 4KOMHf87UQ/bNxu0cbr1tYHehXikUJSbjMGeJavMj/sIX+4tmX3ZTlVgBe+KEX8mumD3 hmjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OHJVjMCHbOTg9z9Hw3Zobx6VP/+k/cKz+YRT4tNpl4A=; b=yzoi8Q2Hz6ax+g4QdDkE7qkds17b9DV9yVBCsIfZ/n49h4asX+jH6g3fd61ugHc2Qv xsD1Lc+xIJPPCITjfsGSBFiMy0NxLA0dukDYShPTaVLO0xI5Zeqt9HHuqFyYznk0pEfk YiLczQDAbV/KI+g9AbLfbC4x9mSH2udYJAyL58nW7td6VCzDlDhDzHB3RVtJb2b37N3g OznoISHLVbwhIsPDo8gT8PF8ATgmqnhhHLk5wAKsMNMUubycE3Faxm7t2x24vm+lWO61 5TOj/e9prvE0mcToQzDQNDN17gxmCHqPUbXUORMRY9Zak0nHYNM4LD1C6Tvg0/EKB/Z/ /Q7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZOIfFzxy; 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 v17-20020a170906339100b00973aab0b96esi7536178eja.386.2023.06.14.00.02.43; Wed, 14 Jun 2023 00:03:12 -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=ZOIfFzxy; 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 S234610AbjFNGno (ORCPT + 99 others); Wed, 14 Jun 2023 02:43:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbjFNGnn (ORCPT ); Wed, 14 Jun 2023 02:43:43 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42DE41A3; Tue, 13 Jun 2023 23:43:42 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35E6hRFs028347; Wed, 14 Jun 2023 06:43:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=OHJVjMCHbOTg9z9Hw3Zobx6VP/+k/cKz+YRT4tNpl4A=; b=ZOIfFzxycPj5wZiFJb6+A5sttY3rEjPOe55zWFuAzThhjMGOF3q2pA+Sjyhmyd9/SGWL pfdWFHzaWglpRpVLS38Vo4aoLxgLfBKsF9KlO5I4zD2hltshYo0eczhC2cryw+GZZ3Cp lYnosQkf+jS73nrFeNzR9A1kh3y3NexUBMCLbOWRsQywcaaOcM4uLPjiORvCGwdU0IOS yNTCcz+Mt+iatSrefx9180w26sSCw093ayR6zeVBTBdZMhRxBQ4vuJ2mkDF3Lvd6X/N+ KtUtSmq24BrAo2CCSXulfs3SXj4/bDLib/dVZOZAw0vrYwbzZtqj99R+U/Dcnm1DaDvW Hw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r6q4r27g6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jun 2023 06:43:39 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35E6hbc0026999 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Jun 2023 06:43:37 GMT Received: from [10.217.198.86] (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; Tue, 13 Jun 2023 23:43:34 -0700 Message-ID: <443b00b1-76b8-c31d-53d3-42e3592d26e8@quicinc.com> Date: Wed, 14 Jun 2023 12:13:19 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 0/2] Add provision to keep idle state disabled To: Ulf Hansson CC: "Rafael J . Wysocki" , Daniel Lezcano , , , , , References: <20230608085544.16211-1-quic_tnimkar@quicinc.com> Content-Language: en-US From: Tushar Nimkar In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: H5mFTQsSmriRQmg1VqrrhotXgjuuIHsw X-Proofpoint-ORIG-GUID: H5mFTQsSmriRQmg1VqrrhotXgjuuIHsw 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-14_03,2023-06-12_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 spamscore=0 mlxscore=0 mlxlogscore=753 clxscore=1015 priorityscore=1501 adultscore=0 bulkscore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306140057 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thanks for response Ulf. On 6/12/2023 3:56 PM, Ulf Hansson wrote: > On Thu, 8 Jun 2023 at 10:56, Tushar Nimkar wrote: >> >> CPUidle already has CPUIDLE_FLAG_OFF to keep idle state disabled, >> Lets extend the support to set this flag using device tree. >> >> This allows to keep an idle state disabled and they can be enabled back using >> sysfs after certain point using below command. >> >> echo N > /sys/devices/system/cpu/cpuX/cpuidle/stateX/disable >> >> This helps in cases where vendors want to keep cpuidle off until home >> screen comes up. In the past attempt was done at [1] but it was not considered >> safe option to export cpu_idle_poll_ctrl(). >> >> [1] https://patchwork.kernel.org/project/linux-arm-msm/patch/1637831676-32737-1-git-send-email-quic_mkshah@quicinc.com/ > > Before considering this, I don't recall if I ever received a reply to > my earlier suggestion to the above thread. So, let me repeat my > question. > > I am wondering if a similar improvement can be achieved by > modularizing the cpuidle-psci driver. If insmodding it after the > homescreen, we allow only ARM WFI during boot. This should achieve the > similar results as we get with $subject series, right? > > [...] > This will not work for targets which does not have DLKM support. >> >> Thanks, >> Tushar Nimkar. >> >> Tushar Nimkar (2): >> dt-bindings: cpu: idle-states: Add idle-state-disabled property >> cpuidle: dt: Add support to keep idle state disabled >> >> Documentation/devicetree/bindings/cpu/idle-states.yaml | 8 ++++++++ >> drivers/cpuidle/dt_idle_states.c | 3 +++ >> 2 files changed, 11 insertions(+) >> > > Kind regards > Uffe Thanks, Tushar