drm/i915/psr: Add debugfs support to force a downgrade to PSR1 mode.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 8 Aug 2018 14:19:11 +0000 (16:19 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 10 Aug 2018 09:02:42 +0000 (11:02 +0200)
commit2ac45bdd92e0289ee2d1310f1e07b719c037c6b7
tree32cd1112f1363964ed48400146550c6235231c18
parentc44301fce614644bbd608347881bf1aab940b436
drm/i915/psr: Add debugfs support to force a downgrade to PSR1 mode.

This will make it easier to test PSR1 on PSR2 capable eDP machines.

Changes since v1:
- Remove I915_PSR_DEBUG_FORCE_PSR2, it did nothing, not sure forcing
  PSR2 would even work.
- Handle NULL crtc in intel_psr_set_debugfs_mode. (dhnkrn)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180808141911.7647-2-maarten.lankhorst@linux.intel.com
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_psr.c