PM: dpm_watchdog: Improve DPM watchdog configurability
Status from this message: Applied as 7.3 material, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest posting 2/22 patches 1 replyApplied
- v6 posting 1/22 patches 1 replySuperseded
- v52 patches 7 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 2 patches | 1 reply | Superseded | |
| v3 | 3 patches | 12 replies | Superseded | |
| v2 posting 2/2 | 0 of 3 patches | 0 replies | Superseded | |
| v2 posting 1/2 | 3 patches | 2 replies | Superseded |
Changes in v6 from the cover letter
- Change the prefix "pm_sleep" -> "pm".
Patches in v6 posting 2/2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | PM: sleep: Rename module parameters prefix to "pm"drivers/ | +3 | 0 replies | |
| 2/2 | PM: dpm_watchdog: Allow disabling DPM watchdog by defaultDocumentation/ drivers/ kernel/ | +28 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.
Cover letter [PATCH RESEND v6 0/2] PM: dpm_watchdog: Improve DPM watchdog configurability
This series improves the configurability of the DPM watchdog.
Currently, the DPM watchdog is always enabled if compiled in. Also, the module parameters defined in drivers/base/power/main.c use the generic and non-descriptive "main" prefix.
This series addresses these limitations.
Patch 1 renames the module parameter prefix fordrivers/base/power/main.c from "main" to "pm".
Patch 2 introduces the "dpm_watchdog_enabled" module parameter to allow enabling/disabling the watchdog at boot time and runtime. It also adds CONFIG_DPM_WATCHDOG_ENABLED to set the default value of the module parameter at compile time.
The primary motivation for this configurability revolves around Android GKI (Generic Kernel Image). We want to enable CONFIG_DPM_WATCHDOG in the GKI so the feature is available. However, because the GKI is shared across many different devices, we don't want to inadvertently affect devices that are unaware of this feature. This provides a way to compile it in, but keep it disabled by default for those devices via the kernel command line or module parameters.
To maintain backward compatibility, CONFIG_DPM_WATCHDOG_ENABLED relies on default y. Previously, the DPM watchdog was always active if CONFIG_DPM_WATCHDOG was set. Defaulting this new option to 'y' ensures that the behavior remains unchanged for existing users and defconfigs when they upgrade.
---
Since there was no further feedback on v5, I'm sending out v6. Any feedback would be appreciated.
---
v6:
- Change the prefix "pm_sleep" -> "pm".
v5: https://lore.kernel.org/all/[email protected]
- Rebase to v7.2-rc1.
- Fix Signed-off-by lines.
v4: https://lore.kernel.org/all/[email protected]
- Address review comments.
- Patch 3 in v3 has applied separately.
v3: https://lore.kernel.org/all/[email protected]
- Address review comments on patch 2.
v2: https://lore.kernel.org/all/[email protected]
- Form a new series.
v1: Doesn't exist.
Tzung-Bi Shih (2):
PM: sleep: Rename module parameters prefix to "pm"
PM: dpm_watchdog: Allow disabling DPM watchdog by default
Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ drivers/base/power/main.c | 14 ++++++++++++++ kernel/power/Kconfig | 10 ++++++++++ 3 files changed, 31 insertions(+)
Signature · 1 line
2.55.0.795.g602f6c329a-goog