OSDN Git Service

drm/i915/dsc: force full modeset whenever DSC is enabled at probe
authorJani Nikula <jani.nikula@intel.com>
Thu, 13 Feb 2020 14:04:11 +0000 (16:04 +0200)
committerJani Nikula <jani.nikula@intel.com>
Sat, 15 Feb 2020 17:20:02 +0000 (19:20 +0200)
commita4277aa398d76db109d6b8420934f68daf69a6c3
tree60e6534dd0d9a2ed3e9cd1f14b90f4bb7f8d897e
parentb18e249bf6168d0cea736334187ef08a90dd8b43
drm/i915/dsc: force full modeset whenever DSC is enabled at probe

We lack full state readout of DSC config, which may lead to DSC enable
using a config that's all zeros, failing spectacularly. Force full
modeset and thus compute config at probe to get a sane state, until we
implement DSC state readout. Any fastset that did appear to work with
DSC at probe, worked by coincidence. [1] is an example of a change that
triggered the issue on TGL DSI DSC.

[1] http://patchwork.freedesktop.org/patch/msgid/20200212150102.7600-1-ville.syrjala@linux.intel.com

Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Vandita Kulkarni <vandita.kulkarni@intel.com>
Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Cc: stable@vger.kernel.org
Fixes: fbacb15ea814 ("drm/i915/dsc: add basic hardware state readout support")
Acked-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200213140412.32697-3-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_display.c