]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1318f11a6d2795a8e269914cfaa59aaf92db30af
tree9b000a937435bafd5e995456ba6c34b3985781e6
parent969d2a044f58dc561f0bddab06acffbd1f40b720
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: afce6977eeeb ("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