]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove crtc->config dereference from drrs_ctl
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 11 Oct 2018 10:04:48 +0000 (12:04 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 17 Oct 2018 12:58:54 +0000 (14:58 +0200)
commit794a9967bf2795cbd7cd86d77ee29327952eb41e
treec8eae89f91520533144855b827ea42dc3e60d504
parent586f01a922f9800ac926937b518508100b2836a9
drm/i915: Remove crtc->config dereference from drrs_ctl

Wait for idle, and iterate over connectors instead of encoders.
With this information we know crtc->state is the actual state,
and we can enable/disable drrs safely.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181011100457.8776-2-maarten.lankhorst@linux.intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_debugfs.c