]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix MST oops due to MSA changes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 15 Oct 2019 19:05:38 +0000 (22:05 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 17 Oct 2019 10:57:00 +0000 (13:57 +0300)
commit4f404bf2b9d7033c0ea2d77b0b061733c9faa72d
tree940da94b950e05ed9d24cb532a6725f78cd53a06
parent7699ecd2ca7aa60ae4803d28aa472b5a440589b6
drm/i915: Fix MST oops due to MSA changes

The MSA MISC computation now depends on the connector state, and
we do it from the DDI .pre_enable() hook. All that is fine for
DP SST but with MST we don't actually pass the connector state
to the dig port's .pre_enable() hook which leads to an oops.

Need to think more how to solve this in a cleaner fashion, but
for now let's just add a NULL check to stop the oopsing.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Fixes: 08be5637da4a ("drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191015190538.27539-1-ville.syrjala@linux.intel.com
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c