drm/i915/ddi: Add more sanity check to the encoder HW readout
authorImre Deak <imre.deak@intel.com>
Wed, 7 Nov 2018 20:08:35 +0000 (22:08 +0200)
committerImre Deak <imre.deak@intel.com>
Fri, 9 Nov 2018 13:51:43 +0000 (15:51 +0200)
commit9199c322ec83380bacffaadf30fc8ab2bc858039
treea855962ed1323bdcb86c32b816525393943d0e8c
parenta1db9c54eb29afd9842a08b2cbc2bc07a8a602b9
drm/i915/ddi: Add more sanity check to the encoder HW readout

Check for reserved register field values and conflicting
transcoder->port mappings (both MST and non-MST mappings or multiple SST
mappings).

This is also needed for the next patch to determine if a port is in MST
mode during sanitization after HW readout.

Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Antonio Argenziano <antonio.argenziano@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181107200836.10191-1-imre.deak@intel.com
drivers/gpu/drm/i915/intel_ddi.c