From: Lina Iyer <ilina@codeaurora.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>,
Linux PM <linux-pm@vger.kernel.org>,
linux-arm-msm <linux-arm-msm@vger.kernel.org>
Subject: Re: [PATCH v5 2/2] PM / Domains: use device's next wakeup to determine domain idle state
Date: Thu, 19 Nov 2020 08:47:13 -0700 [thread overview]
Message-ID: <X7aTgQrHQmClrEt3@codeaurora.org> (raw)
In-Reply-To: <CAPDyKFpKookuX2ynBfy44kyfZq48JPaUrEHevetsyoc83=UnsA@mail.gmail.com>
On Thu, Nov 19 2020 at 02:57 -0700, Ulf Hansson wrote:
>On Mon, 16 Nov 2020 at 16:57, Lina Iyer <ilina@codeaurora.org> wrote:
>>
>> On Fri, Nov 13 2020 at 03:34 -0700, Ulf Hansson wrote:
>> >On Wed, 11 Nov 2020 at 17:51, Lina Iyer <ilina@codeaurora.org> wrote:
>> >>
>> >> On Tue, Nov 10 2020 at 03:02 -0700, Ulf Hansson wrote:
>> >> >On Mon, 9 Nov 2020 at 18:41, Lina Iyer <ilina@codeaurora.org> wrote:
>> >> >>
>> >> >> On Mon, Nov 09 2020 at 08:27 -0700, Ulf Hansson wrote:
>> >> >> >On Fri, 6 Nov 2020 at 17:48, Lina Iyer <ilina@codeaurora.org> wrote:
>> >> >> >>
>> >> >> [...]
>>
>> What you are suggesting is that, we should not power down the domain in
>> such a case. This would be a really hard problem to debug when a device
>> leaves a stale wakeup behind and we no longer power off the domain
>> because of that. Tracking that back to the device will be a monumental
>> effort. Ignoring the next wakeup though might involve a power/perf
>> penalty (no worse than today), but we would not have a difficult problem
>> to solve.
>
>Hmm, you have a good point!
>
>Additionally, I guess it should be a rather seldom situation, as in
>principle the wakeup irq should have been triggered already.
>
>That said, I am okay to stick with your suggested approach.
>
>Although, please add a comment in the code, to make it clear that the
>behaviour is deliberate. Perhaps we should also clarify the function
>description of dev_pm_genpd_set_next_wakeup() (in patch1) to make the
>behaviour more clear for the user.
>
Sure, will update with comments.
>>
Let's revisit the patch again after I repost, to make sure this is what
we want, atleast for now.
Thanks for your review, Ulf.
--Lina
next prev parent reply other threads:[~2020-11-19 15:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-06 16:48 [PATCH v5 0/2] Better domain idle from device wakeup patterns Lina Iyer
2020-11-06 16:48 ` [PATCH v5 1/2] PM / domains: inform PM domain of a device's next wakeup Lina Iyer
2020-11-06 16:48 ` [PATCH v5 2/2] PM / Domains: use device's next wakeup to determine domain idle state Lina Iyer
2020-11-09 15:26 ` Ulf Hansson
2020-11-09 17:41 ` Lina Iyer
2020-11-10 10:01 ` Ulf Hansson
2020-11-11 16:27 ` Lina Iyer
2020-11-13 10:33 ` Ulf Hansson
2020-11-16 15:57 ` Lina Iyer
2020-11-19 9:56 ` Ulf Hansson
2020-11-19 15:47 ` Lina Iyer [this message]
2020-11-19 17:46 ` Lina Iyer
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=X7aTgQrHQmClrEt3@codeaurora.org \
--to=ilina@codeaurora.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=ulf.hansson@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).