All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
To: Sudeep Holla <sudeep.holla@arm.com>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	linux-arm-msm@vger.kernel.org,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Vinod Koul <vinod.koul@linaro.org>,
	Linux PM <linux-pm@vger.kernel.org>
Subject: Re: PSCI domains without OSI support
Date: Wed, 27 Jul 2022 23:51:01 +0300	[thread overview]
Message-ID: <CAA8EJppWSQTrZgN7yBLhLepuxEiFsBnkhcXOgXrz2qjGj3GcLw@mail.gmail.com> (raw)
In-Reply-To: <CAA8EJpqP9XMcLP+Pmj5OnXD2_SJ9ULBZ_Q492+x56oQnPzqiUA@mail.gmail.com>

On Wed, 27 Jul 2022 at 16:39, Dmitry Baryshkov
<dmitry.baryshkov@linaro.org> wrote:
>
> On Wed, 27 Jul 2022 at 16:24, Dmitry Baryshkov
> <dmitry.baryshkov@linaro.org> wrote:
> >
> > On Wed, 27 Jul 2022 at 14:14, Sudeep Holla <sudeep.holla@arm.com> wrote:
> > >
> > > On Wed, Jul 27, 2022 at 12:09:27PM +0300, Dmitry Baryshkov wrote:
>
> > > > - Allow DTS forcing the PSCI power domains even if OSI enablement fails?
> > >
> > > Meaning DTS flag for this ? If OSI enable fails, why would you want to
> > > still proceed. It is non-compliant and must be fixed if the firmware
> > > supports OSI and expects OSPM to use the same.
> >
> > I'm not sure at this moment. PSCI firmware reports that OSI mode is
> > supported, but then when psci_pd_try_set_osi_mode() tries to switch
> > into OSI mode, it gets NOT_SUPPORTED.
> > Just for the sake of completeness, I added a print to the psci.c to
> > dump the result of the psci_set_osi_mode(false). It also returns
> > NOT_SUPPORTED!
> >
> > My logical assumption would be that the firmware reports support for
> > OS_INITIATED, but then just fails to properly support
> > SET_SUSPEND_MODE.
>
> Okay. From the msm-3.14 commit log:
>
> Add support to terminate all low power modes in PSCI. The lpm-levels will
> work with version 1.0 of PSCI specification using the OS initiated scheme.
> The lpm-levels driver would determine the last man standing and vote into
> TZ accordingly.
>
> Which means that the vendor kernel expected to work in the OSI mode
> without calling SET_SUSPEND (such call doesn't exist in 3.14)

After adding the debugfs file, it's clear that this is the case.

Compare msm8996:
PSCIv1.0
SMC Calling Convention v1.0 is assumed
OSI is supported
Extended StateID format is used

vs sdm845:
PSCIv1.1
SMC Calling Convention v1.2
OSI is supported
Extended StateID format is used
CPU_FREEZE is supported
SET_SUSPEND_MODE is supported

Judging by people reporting 'failure to enable OSI mode' on several
other Qualcomm SoCs (msm8976, msm8953), this bug is present on several
older Qualcomm platforms.

>
> So, this looks like the "force-psci-domains" or "ignore-osi-error"
> flag would be logical.
> The question about testing still holds.

-- 
With best wishes
Dmitry

  reply	other threads:[~2022-07-27 20:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA8EJppWSQTrZgN7yBLhLepuxEiFsBnkhcXOgXrz2qjGj3GcLw@mail.gmail.com \
    --to=dmitry.baryshkov@linaro.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=sudeep.holla@arm.com \
    --cc=ulf.hansson@linaro.org \
    --cc=vinod.koul@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.