OSDN Git Service

drm/i915: Remove redundant intel_autoenable_gt_powersave()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Nov 2017 11:27:38 +0000 (11:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Nov 2017 12:46:55 +0000 (12:46 +0000)
commit37cd33006d02d84e08caedea2db48662c18e499e
tree715f050e2682c434de1b083184d3451ea652cce1
parent556fe36d09da5f82879e92bafa0371b4b79f7d6f
drm/i915: Remove redundant intel_autoenable_gt_powersave()

Now that we always execute a context switch upon module load, there is
no need to queue a delayed task for doing so. The purpose of the delayed
task is to enable GT powersaving, for which we need the HW state to be
valid (i.e. having loaded a context and initialised basic state). We
used to defer this operation as historically it was slow (due to slow
register polling, fixed with commit 1758b90e38f5 ("drm/i915: Use a hybrid
scheme for fast register waits")) but now we have a requirement to save
the default HW state.

v2: Load the kernel context (to provide the power context) upon resume.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171112112738.1463-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c