]> Git Repo - linux.git/commitdiff
drm/i915/rpm: Enable runtime pm autosuspend by default
authorTilak Tangudu <[email protected]>
Tue, 16 Nov 2021 15:52:38 +0000 (21:22 +0530)
committerRodrigo Vivi <[email protected]>
Mon, 22 Nov 2021 14:06:37 +0000 (09:06 -0500)
Let's enable runtime pm autosuspend by default everywhere.
So, we can allow D3hot and bigger power savings on idle scenarios.

But at this time let's not touch the autosuspend_delay time,
what caused some regression on our previous attempt.

Also, the latest identified issue on GuC PM has been fixed by
commit 1a52faed3131 ("drm/i915/guc: Take GT PM ref when deregistering
context")

v1: Enable runtime pm autosuspend by default for Gen12
and later versions.

v2: Enable runtime pm autosuspend by default for all
platforms(Syrjala Ville)

v3: Change commit message(Nikula Jani)

Signed-off-by: Tilak Tangudu <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_runtime_pm.c

index eaf7688f517d092e6b036889e096be78af81d2ec..f26ed1427fdc513f4a211e823fe0832771cbe695 100644 (file)
@@ -600,6 +600,9 @@ void intel_runtime_pm_enable(struct intel_runtime_pm *rpm)
                pm_runtime_use_autosuspend(kdev);
        }
 
+       /* Enable by default */
+       pm_runtime_allow(kdev);
+
        /*
         * The core calls the driver load handler with an RPM reference held.
         * We drop that here and will reacquire it during unloading in
This page took 0.058911 seconds and 4 git commands to generate.