]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branches 'pm-runtime' and 'pm-powercap'
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jul 2025 16:01:15 +0000 (18:01 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jul 2025 16:01:15 +0000 (18:01 +0200)
Merge runtime PM updates and power capping updates for 6.17-rc1:

 - Document return values of suspend-related API functions in the
   runtime PM framework (Sakari Ailus)

 - Mark last busy stamp in multiple autosuspend-related functions in the
   runtime PM framework and update its documentation (Sakari Ailus)

 - Take active children into account in pm_runtime_get_if_in_use() for
   consistency (Rafael Wysocki)

 - Fix NULL pointer dereference in get_pd_power_uw() in the dtpm_cpu
   power capping driver (Sivan Zohar-Kotzer)

 - Add support for the Bartlett Lake platform to the Intel RAPL power
   capping driver (Qiao Wei)

 - Add PL4 support for Panther Lake to the intel_rapl_msr power capping
   driver (Zhang Rui)

* pm-runtime:
  PM: runtime: Take active children into account in pm_runtime_get_if_in_use()
  Documentation: PM: *_autosuspend() functions update last busy time
  PM: runtime: Mark last busy stamp in pm_request_autosuspend()
  PM: runtime: Mark last busy stamp in pm_runtime_autosuspend()
  PM: runtime: Mark last busy stamp in pm_runtime_put_sync_autosuspend()
  PM: runtime: Mark last busy stamp in pm_runtime_put_autosuspend()
  PM: runtime: Document return values of suspend-related API functions

* pm-powercap:
  powercap: dtpm_cpu: Fix NULL pointer dereference in get_pd_power_uw()
  powercap: intel_rapl: Add support for Bartlett Lake platform
  powercap: intel_rapl_msr: Add PL4 support for Panther Lake

1  2  3 
drivers/base/power/runtime.c
include/linux/pm_runtime.h

index 05ff3d2209e6ddaaf62260614d0e8c332a8bae13,2ba0dfd1de5a40dd1acfc11294233ad40afaa447,c55a7c70bc1a88286f9b131bcabd3d8af8a1bdb7..f835b85bd4d96b9bb47802ddbe5455d23a0e51ed
@@@@ -2039,20 -2022,13 -2013,13 +2048,20 @@@@ EXPORT_SYMBOL_GPL(pm_runtime_force_susp
    * pm_runtime_force_resume - Force a device into resume state if needed.
    * @dev: Device to resume.
    *
 -- * Prior invoking this function we expect the user to have brought the device
 -- * into low power state by a call to pm_runtime_force_suspend(). Here we reverse
 -- * those actions and bring the device into full power, if it is expected to be
 -- * used on system resume.  In the other case, we defer the resume to be managed
 -- * via runtime PM.
 ++ * This function expects that either pm_runtime_force_suspend() has put the
 ++ * device into a low-power state prior to calling it, or the device had been
 ++ * runtime-suspended before the preceding system-wide suspend transition and it
 ++ * was left in suspend during that transition.
 +  *
  - * Typically this function may be invoked from a system resume callback.
 ++ * The actions carried out by pm_runtime_force_suspend(), or by a runtime
 ++ * suspend in general, are reversed and the device is brought back into full
 ++ * power if it is expected to be used on system resume, which is the case when
 ++ * its needs_force_resume flag is set or when its smart_suspend flag is set and
 ++ * its runtime PM status is "active".
  + *
 -  * Typically this function may be invoked from a system resume callback.
 ++ * In other cases, the resume is deferred to be managed via runtime PM.
 ++ *
 ++ * Typically, this function may be invoked from a system resume callback.
    */
   int pm_runtime_force_resume(struct device *dev)
   {
Simple merge