OSDN Git Service

drm/i915: Fix intel_dp_mst_compute_link_config
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Mon, 5 Sep 2022 08:57:42 +0000 (11:57 +0300)
committerStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Tue, 6 Sep 2022 07:31:21 +0000 (10:31 +0300)
commitc6266862de1665b8c8006f58612db2dea66a29f6
tree68a2aa1f7eb3fa24e43f9ee4231aa27aacdd6e10
parent797e2c3f2762c356aadcdb53dd6bb8b8d966f7b5
drm/i915: Fix intel_dp_mst_compute_link_config

We currently always exit that bpp loop because
drm_dp_atomic_find_vcpi_slots doesn't care if we actually
can fit those or not.
I think that wasn't the initial intention here, especially when
we keep trying with lower bpps, we are supposed to keep trying
until we actually find some _working_ configuration, which isn't the
case here.
So added that drm_dp_mst_check here, so that we can make sure
that try all the bpps before we fail.

Reviewed-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220905085744.29637-3-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c