Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH 0/2] Add provision to keep idle state disabled
@ 2023-06-08  8:55 Tushar Nimkar
  2023-06-08  8:55 ` [PATCH 1/2] dt-bindings: arm: idle-states: Add idle-state-disabled property Tushar Nimkar
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Tushar Nimkar @ 2023-06-08  8:55 UTC (permalink / raw)
  To: Rafael J . Wysocki, Daniel Lezcano, Ulf Hansson
  Cc: linux-pm, linux-arm-msm, linux-kernel, quic_lsrao, quic_mkshah,
	Tushar Nimkar

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/

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(+)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2023-06-26  6:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-08  8:55 [PATCH 0/2] Add provision to keep idle state disabled Tushar Nimkar
2023-06-08  8:55 ` [PATCH 1/2] dt-bindings: arm: idle-states: Add idle-state-disabled property Tushar Nimkar
2023-06-08  9:19   ` Conor Dooley
2023-06-09  4:39     ` Tushar Nimkar
2023-06-09 13:14   ` Krzysztof Kozlowski
2023-06-14  6:45     ` Tushar Nimkar
2023-06-15  8:56   ` Sudeep Holla
2023-06-16  5:56     ` Tushar Nimkar
2023-06-16 15:39       ` Sudeep Holla
2023-06-21  6:27         ` Tushar Nimkar
2023-06-08  8:55 ` [PATCH 1/2] dt-bindings: cpu: " Tushar Nimkar
2023-06-09 13:15   ` Krzysztof Kozlowski
2023-06-08  8:55 ` [PATCH 2/2] cpuidle: dt: Add support to keep idle state disabled Tushar Nimkar
2023-06-12 10:26 ` [PATCH 0/2] Add provision " Ulf Hansson
2023-06-14  6:43   ` Tushar Nimkar
2023-06-16 10:55     ` Ulf Hansson
2023-06-21  6:21       ` Tushar Nimkar
2023-06-22 13:01         ` Ulf Hansson
2023-06-26  6:44           ` Tushar Nimkar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox