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)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Mon, 27 Jun 2022 11:36:03 +0000 (17:06 +0530)
commit138c2fca6f408f397ea8fbbbf33203f244d96e01
tree9b000a937435bafd5e995456ba6c34b3985781e6
parent421f5410965dbc65b7bf7d2b2323203920ad370c
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
drivers/gpu/drm/i915/i915_driver.c