]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/rkl: Don't try to access transcoder D
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 3 Jun 2020 21:15:23 +0000 (14:15 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 4 Jun 2020 21:00:23 +0000 (14:00 -0700)
commitcf16c467da7c74aef0aeccb893633bb443a659e2
tree4bcf548cff17f8e0c3ced9db30ac9ba9d62821e4
parent3c190997dbdc00c319f766b3dbace5de868fc141
drm/i915/rkl: Don't try to access transcoder D

There are a couple places in our driver that loop over transcoders A..D
for gen11+; since RKL only has three pipes/transcoders, this can lead to
unclaimed register reads/writes.  We should add checks for transcoder
existence where appropriate.

v2: Move one transcoder check that wound up in the wrong function after
    conflict resolution.  It belongs in bdw_get_trans_port_sync_config
    rather than bxt_get_dsi_transcoder_state.

v3: Switch loops to use for_each_cpu_transcoder_masked() since this
    iterator already checks the platform's transcoder mask for us.
    (Ville)

Cc: Aditya Swarup <aditya.swarup@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200603211529.3005059-10-matthew.d.roper@intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_irq.c