]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Split a setting of MSA to MST and SST
authorGwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Wed, 13 Nov 2019 12:52:41 +0000 (14:52 +0200)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 13 Nov 2019 13:00:10 +0000 (15:00 +0200)
commit453bb4ca18bc0045cdcd437809b5e7d955f4ab92
treea699ddcca8699e1919bc47681e62e322117189b2
parent9a1acd28664eae8538a3398e21248ba29ab7dbe4
drm/i915: Split a setting of MSA to MST and SST

The setting of MSA is done by the DDI .pre_enable() hook. And when we are
using MST, the MSA is only set to first mst stream by calling of
DDI .pre_eanble() hook. It raies issues to non-first mst streams.
Wrong MSA or missed MSA packets might show scrambled screen or wrong
screen.

This splits a setting of MSA to MST and SST cases. And In the MST case it
will call a setting of MSA after an allocating of Virtual Channel from
MST encoder pre_enable callback.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112212
Fixes: 08be5637da4a ("drm/i915/dp: Add support of BT.2020 Colorimetry to DP MSA")
Fixes: 4f404bf2b9d7 ("drm/i915: Fix MST oops due to MSA changes")
Signed-off-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191106212636.502471-1-gwan-gyeong.mun@intel.com
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
[vsyrjala: nuke spurious newline]
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
(cherry picked from commit bd8c9cca88765caee0dfa93967c6d8f16b4cbfb9)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191113125241.20547-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_dp_mst.c