]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Take a runtime pm wakeref for atomic commits
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 May 2019 07:53:54 +0000 (08:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 May 2019 08:23:10 +0000 (09:23 +0100)
commit402fae1825d6445664a127ab672b4cac2947edf3
tree71fcdd573ad320b6a3b1e6373fd3dee1a07fcfea
parenta546b60b512fb2989d2327a2c4c9d30bd6a7d75f
drm/i915: Take a runtime pm wakeref for atomic commits

Before we start prepping the system for an atomic modeset, wake the
device up. We then keep track of this wakeref until we complete the
atomic commit, so we hold keep the device awake for all potential HW
access, and do not allow the device to sleep with a pending modeset.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110771
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528075354.22341-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h