]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass cpu transcoder to assert_pipe()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 12 Nov 2019 16:38:12 +0000 (18:38 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Dec 2019 15:24:06 +0000 (17:24 +0200)
commitb104e8b200974f9d1a431d1ce15f0e6d547dc859
tree40b55b3734a0adb605377793e0fb9cc81e536a09
parenta722146b5f52f514aabf0d04c3dbdd39850d0a8c
drm/i915: Pass cpu transcoder to assert_pipe()

In order to eliminate intel_pipe_to_cpu_transcoder() (and its
crtc->config usage) let's pass the cpu transcoder to
assert_pipe() so we don't have to do the pipe->cpu transcoder
lookup on HSW+.

On VLV/CHV this can get called during eDP init, which
happens before crtc->config->cpu_transcoder is even
populated. So currently we're always reading PIPECONF(A)
there even if we're trying to check the state of some
other pipe.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191112163812.22075-4-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display.h