Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2468534rwd; Fri, 16 Jun 2023 04:14:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hlyLdSwGKsXV0MU5bxPv1aBNf01XP5ZQWYK5Sl599cxfAC4mx1mpOibgkID7uwRVLF2bj X-Received: by 2002:a17:902:d709:b0:1b0:3df7:5992 with SMTP id w9-20020a170902d70900b001b03df75992mr1142866ply.32.1686914072875; Fri, 16 Jun 2023 04:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914072; cv=none; d=google.com; s=arc-20160816; b=CZ0BUhMkRlzMIk08KPKhVpM1OESoPia5tQ3JCRcBxH8MU32gbWJKbAqhCTl/SWDcDD M7SqV6LqxS7q9TAu9AjC/36KXxACwcla3TIvVPfvkqLx8WU0KrSP88KJCPT2SZsdvLmY 3BMMTOgCZvp3Lq3kq3I7NBqI3BSPSsI3hd8Tai02ce1fVR8gHaI0BOcoa+W8vmTOTHlK b6h77viad5souebpRMjOye2UqxYSSpSAa+UcS4HbhKnC8Tx9W0fOGpnqWglsfzoFEgFi 9XtIY3amYAi7K3l1szJuiC/d3GPLItiysuL0YQrNN+5OFbelMK9PndTpKuSdmvrCEuvu yzsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=O2Zy7CoVcqMDXci8OmLm4vJBu+rnnNU0phz7Y/ATkHY=; b=GduPh1SYsX+t/+AQG3LAQh7QOTQzVgujAJAdlEe9HIKXcu44+9z4dNzeGHpLAxmRgZ IfhN6VpV2TiHvwZD21r1GRtxjLhBUah4CaIIcnTKxxsR4AtygoAGWvPVztMPFVZpIf0U 4CkrI/yqy3kvoA+XIn+omRVPvBD/NhfvbAxpQhoKLf+pQXgb/tDb5tjp42ebxMeZuRDy PBHd/iKsN5zkZ0IQD59GyBh2/XCTQgE9jb7D8DWBZclFgRUV8qYUlCde7g3/dR4prKxM ifkFMUZ82fI2/Nd0cpFBDU24Xhw/iyx/5z5LG6tEFwVl2fjASSl8E5eV6j157zS4giXR 5X3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VeWtNlBw; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902e5ce00b001ae4e665c60si5137902plf.156.2023.06.16.04.14.19; Fri, 16 Jun 2023 04:14:32 -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=@linaro.org header.s=google header.b=VeWtNlBw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344691AbjFPLC2 (ORCPT + 99 others); Fri, 16 Jun 2023 07:02:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345579AbjFPLB6 (ORCPT ); Fri, 16 Jun 2023 07:01:58 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9EA4EF3 for ; Fri, 16 Jun 2023 03:56:15 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-bd729434fa0so508057276.1 for ; Fri, 16 Jun 2023 03:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686912975; x=1689504975; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O2Zy7CoVcqMDXci8OmLm4vJBu+rnnNU0phz7Y/ATkHY=; b=VeWtNlBwXRH9Ch7y9OUM1BwWjuuflpYYIPrMfj7JErWYUr2W4MmNIcBad4zfjRqgNO +MRm0vJskSw4uAtrmfVb18aS9vIbwpCWg3qG7s1GBe5jZ0LyFTweLhadX2WMK6W5bwxL ZbwleeAeXbV79ZkXuJDIOErFb+gANsS92Hmsx2c38C2XuO7h/1+gLY/oipeZZ/5yw+nf nDwb5IovvVhaGL2jxj8tUKR2Rn5xy8MsylK94P/M6E2fzJJgvN2NYunK1eWagKXWdiqU 7p7GUkIFxQaE7PKjB1ovnkfSoQtk8G4XjAPAxgI9g8KXjkBvERt0sM0oPfMzBvGU4vPO Winw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686912975; x=1689504975; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O2Zy7CoVcqMDXci8OmLm4vJBu+rnnNU0phz7Y/ATkHY=; b=LUieWL4XWxf+0dQvHV1e2zjS+hj4j6HhlRosfOhFtniBEBvlHbDDEe9qKAEdIP4WEm F/6teTF9Vgrqq4s3dX4PmOgJVnUI+5C3oRB1CHlodh6BBdjOL9fTNi9n6tv9IhPRo0Lg 7Hchw/HTSRpMnnGGcy9svDg7Z71SAjLJaK6sEfBKYx7kFJ/bY6qXwoRSbQDei1I2RXAO WkXkWbZzYU8BA8ri7/CYCgOIMeNM9Wpfxt7Yw25X6IHaO5KkiNu8p5y/uJJt5Cw2g2P0 zKcnYpTNpLWiq/drDUsM1EJf9uOAvTO73oqmhsfeUtHL7IlZLuds2b0o5bpw/qYKVSNK RZFw== X-Gm-Message-State: AC+VfDxnY4f/rjrJQdAAm/hzm2zL7af1CSlKCT+GCs5XXPYjHgmx56EX fw6URTfTPJstS19mL22WosMqmPFqxIl15Sup/INSjA== X-Received: by 2002:a25:198a:0:b0:ba8:3613:76a8 with SMTP id 132-20020a25198a000000b00ba8361376a8mr1598385ybz.41.1686912974945; Fri, 16 Jun 2023 03:56:14 -0700 (PDT) MIME-Version: 1.0 References: <20230608085544.16211-1-quic_tnimkar@quicinc.com> <443b00b1-76b8-c31d-53d3-42e3592d26e8@quicinc.com> In-Reply-To: <443b00b1-76b8-c31d-53d3-42e3592d26e8@quicinc.com> From: Ulf Hansson Date: Fri, 16 Jun 2023 12:55:39 +0200 Message-ID: Subject: Re: [PATCH 0/2] Add provision to keep idle state disabled To: Tushar Nimkar Cc: "Rafael J . Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_lsrao@quicinc.com, quic_mkshah@quicinc.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 Wed, 14 Jun 2023 at 08:43, Tushar Nimkar wrote: > > 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. Right. I am not saying it's the perfect solution, but it seems like it could potentially solve the problem for many cases. If you want some help to turn the cpuidle-psci driver into a loadable module, just reach out, I am happy to help. [...] Kind regards Uffe