]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Disable runtime-pm using lowlevel functions if !HAS_RC6
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Aug 2018 22:36:31 +0000 (23:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Aug 2018 14:19:50 +0000 (15:19 +0100)
commit08ea70a417baa1c0e5faa580070cd2ffd04e6285
treec5b5162603d7a9dc9361aa4f0011efc651542904
parentdc5977da99ea28094b8fa4e9bacbd29bedc41de5
drm/i915: Disable runtime-pm using lowlevel functions if !HAS_RC6

If we cannot setup rc6, we cannot let the GPU suspend itself as it
cannot save its state (to a powercontext). As such, we must disable
runtime-pm, but we should do so using the low-level pm-runtime function
which leaves our own debugging functions intact (and continue to detect
errors in our runtime-pm handling should we ever be able to enable rc6).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180812223642.24865-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_pm.c