]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/icl: fix transcoder state readout
authorJani Nikula <jani.nikula@intel.com>
Tue, 4 Dec 2018 10:19:26 +0000 (12:19 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 4 Dec 2018 17:05:51 +0000 (19:05 +0200)
commit0716931a82b4d0e211d2ef66616ad7130107e455
tree18edd3aa820771aab8091653f6d023395fef48b5
parent5179749925933575a67f9d8f16d0cc204f98a29f
drm/i915/icl: fix transcoder state readout

Commit 2ca711caeca2 ("drm/i915/icl: Consider DSI for getting transcoder
state") clobbers the previously read TRANS_DDI_FUNC_CTL_EDP register
contents with TRANS_DDI_FUNC_CTL_DSI0 contents. Fix the state readout,
and handle DSI 1 while at it.

Use a bitmask for iterating and logging transcoders, because the allowed
combinations are a bit funky.

Fixes: 2ca711caeca2 ("drm/i915/icl: Consider DSI for getting transcoder state")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108928
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: Madhav Chauhan <madhav.chauhan@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181204101926.17174-1-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_display.c