All of lore.kernel.org
 help / color / mirror / Atom feed
* PSCI domains without OSI support
@ 2022-07-27  9:09 Dmitry Baryshkov
  2022-07-27 11:14 ` Sudeep Holla
  0 siblings, 1 reply; 12+ messages in thread
From: Dmitry Baryshkov @ 2022-07-27  9:09 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: linux-arm-msm, Bjorn Andersson, Vinod Koul, Linux PM

Hi,

Lately I have been working on improving the msm8996 platform support.
Vendor kernel seems to support domain-like idle (see [1], [2]).
However when I tried changing upstream msm8996.dtsi to use PSCI
domains, I faced the firmware reporting NOT_SUPPORTED to an attempt to
enable OSI (thus rendering PSCI domains useless, as they are now
marked with ALWAYS_ON).

I noticed that vendor kernel makes a call to cpu_suspend() with
power_state following the original format (described in PSCI spec
5.4.2.1). What would be the best way to support this?
- Allow DTS forcing the PSCI power domains even if OSI enablement fails?
- Add a separate cpuidle driver?
- Just forget about it and use plain PSCI as we currently do?

Additional topic: for one of idle states the vendor kernel uses a
proprietary call into the hypervisor ([3]). Up to now we have ignored
this, as 8996 seems to be the only platform using it. I suppose that
adding it to cpuidle-psci.c would be frowned upon. Is this assumption
correct? Would it add another point for adding a separate cpuidle
driver?

[1] https://git.codelinaro.org/clo/la/kernel/msm-3.18/-/blob/LA.UM.6.6.c31-02700-89xx.0/arch/arm/boot/dts/qcom/msm8996-pm.dtsi#L32

[2] https://git.codelinaro.org/clo/la/kernel/msm-3.18/-/blob/LA.UM.6.6.c31-02700-89xx.0/drivers/cpuidle/lpm-levels.c#L927

[3] https://git.codelinaro.org/clo/la/kernel/msm-3.18/-/blob/LA.UM.6.6.c31-02700-89xx.0/drivers/cpuidle/lpm-levels.c#L944

-- 
With best wishes
Dmitry

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

end of thread, other threads:[~2022-08-12 11:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27  9:09 PSCI domains without OSI support Dmitry Baryshkov
2022-07-27 11:14 ` Sudeep Holla
2022-07-27 13:24   ` Dmitry Baryshkov
2022-07-27 13:39     ` Dmitry Baryshkov
2022-07-27 20:51       ` Dmitry Baryshkov
2022-08-05 13:47         ` Ulf Hansson
2022-07-28  8:40     ` Sudeep Holla
2022-07-28  9:15       ` Dmitry Baryshkov
2022-08-05 14:12       ` Ulf Hansson
2022-08-05 16:00         ` Sudeep Holla
2022-08-05 21:39           ` Dmitry Baryshkov
2022-08-12 11:32             ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.