OSDN Git Service

drm/i915/dgfx: Disable d3cold at gfx root port
authorAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 16 Jun 2022 12:22:49 +0000 (17:52 +0530)
committerJani Nikula <jani.nikula@intel.com>
Mon, 27 Jun 2022 15:12:05 +0000 (18:12 +0300)
commit7d23a80dc9720a378707edc03a7275d5a372355f
tree7827ff31f476244bfdf5e77bdcf05eae080318bb
parent9efdd519d001ee3e761f6ff80d5eb123387421c1
drm/i915/dgfx: Disable d3cold at gfx root port

Currently i915 disables d3cold for i915 pci dev.
This blocks D3 for i915 gfx pci upstream bridge (VSP).
Let's disable d3cold at gfx root port to make sure that
i915 gfx VSP can transition to D3 to save some power.

We don't need to disable/enable d3cold in rpm, s2idle
suspend/resume handlers. Disabling/Enabling d3cold at
gfx root port in probe/remove phase is sufficient.

Fixes: 1a085e23411d ("drm/i915: Disable D3Cold in s2idle and runtime pm")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Badal Nilawar <badal.nilawar@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220616122249.5007-1-anshuman.gupta@intel.com
(cherry picked from commit 138c2fca6f408f397ea8fbbbf33203f244d96e01)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_driver.c