From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
linux-pm@vger.kernel.org, Len Brown <len.brown@intel.com>,
Pavel Machek <pavel@kernel.org>
Subject: Re: [PATCH v2 0/6] Update last busy timestamp in Runtime PM autosuspend callbacks
Date: Mon, 16 Jun 2025 23:10:33 +0300 [thread overview]
Message-ID: <20250616201033.GE32454@pendragon.ideasonboard.com> (raw)
In-Reply-To: <aFBudUgU2TWyDgn8@kekkonen.localdomain>
On Mon, Jun 16, 2025 at 07:20:21PM +0000, Sakari Ailus wrote:
> On Mon, Jun 16, 2025 at 01:21:02PM +0200, Rafael J. Wysocki wrote:
> > On Mon, Jun 16, 2025 at 8:12 AM Sakari Ailus wrote:
> > >
> > > Folks,
> > >
> > > The original plan for adding pm_runtime_mark_last_busy() calls to
> > > functions dealing with Runtime PM autosuspend originally included a few
> > > intermediate steps of driver conversion, including the use of recently
> > > added __pm_runtime_put_autosuspend(). The review of the set converting the
> > > users first to __pm_runtime_put_autosuspend() concluded this wasn't
> > > necessary. See
> > > <URL:https://lore.kernel.org/all/20241004094101.113349-1-sakari.ailus@linux.intel.com/>.
> > >
> > > This set extends the inclusion of the pm_runtime_mark_last_busy() call to
> > > the _autosuspend() variants of the Runtime PM functions dealing with
> > > suspending devices, i.e. pm_runtime_put_autosuspend(),
> > > pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and
> > > pm_request_autosuspend(). This will introduce, for a brief amount of time,
> > > unnecessary calls to pm_runtime_mark_last_busy() but this wasn't seen as
> > > an issue. Also, all users of these functions, including those that did not
> > > call pm_runtime_mark_last_busy(), will now include that call. Presumably
> > > in the vast majority of the cases a missing call would have been a bug.
> > >
> > > Once this set is merged, I'll post further patches to remove the extra
> > > pm_runtime_mark_last_busy() calls. The current set of these patches is
> > > here
> > > <URL:https://git.kernel.org/pub/scm/linux/kernel/git/sailus/linux-next.git/log/?h=pm-direct-on-next>.
> > >
> > > It'd be best to have all merged within the same cycle.
> > >
> > > Rafael: any thoughts on the merging?
> >
> > I'm going to queue this up for 6.17.
>
> Thank you! :-)
>
> > > Would an immutable branch on top of rc1 be an option?
> >
> > I think so, but does anyone need it?
>
> I guess it's not mandatory but we'll have now a lot of redundant calls to
> the pm_runtime_mark_last_busy(). It just doesn't look very elegant. In the
> end it's all up to what the maintainers prefer.
Those calls should be removed, but for the drivers I maintain, I don't
mind much if the removal is delayed until v6.18. Still, an immutable
branch based on v6.16-rc1 would speed up this work, and I think it's
worth it.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2025-06-16 20:10 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-16 6:12 [PATCH v2 0/6] Update last busy timestamp in Runtime PM autosuspend callbacks Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 1/6] pm: runtime: Document return values of suspend related API functions Sakari Ailus
2025-08-14 22:56 ` Brian Norris
2025-08-29 0:46 ` Brian Norris
2025-08-29 10:23 ` Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 2/6] pm: runtime: Mark last busy stamp in pm_runtime_put_autosuspend() Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 3/6] pm: runtime: Mark last busy stamp in pm_runtime_put_sync_autosuspend() Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 4/6] pm: runtime: Mark last busy stamp in pm_runtime_autosuspend() Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 5/6] pm: runtime: Mark last busy stamp in pm_request_autosuspend() Sakari Ailus
2025-06-16 6:12 ` [PATCH v2 6/6] Documentation: PM: *_autosuspend() functions update last busy time Sakari Ailus
2025-06-16 11:21 ` [PATCH v2 0/6] Update last busy timestamp in Runtime PM autosuspend callbacks Rafael J. Wysocki
2025-06-16 19:20 ` Sakari Ailus
2025-06-16 20:10 ` Laurent Pinchart [this message]
2025-06-18 19:43 ` Rafael J. Wysocki
2025-06-25 9:15 ` Sakari Ailus
2025-06-23 13:28 ` Oliver Neukum
2025-06-25 6:59 ` Sakari Ailus
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=20250616201033.GE32454@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=len.brown@intel.com \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=rafael@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/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.