drm/i915/dp: Fix the computation for compressed_bpp for DISPLAY < 13
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Tue, 5 Mar 2024 05:44:43 +0000 (11:14 +0530)
committerAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Mon, 1 Apr 2024 05:28:11 +0000 (10:58 +0530)
commit5a1da42b50f3594e18738885c2f23ed36629dd00
tree068e9eb529452ac6e09c12744f77d3ce98d8da8b
parent29cdef8539c36f4bee0e9af01df9406c32dfd4d4
drm/i915/dp: Fix the computation for compressed_bpp for DISPLAY < 13

For DISPLAY < 13, compressed bpp is chosen from a list of
supported compressed bpps. Fix the condition to choose the
appropriate compressed bpp from the list.

Fixes: 1c56e9a39833 ("drm/i915/dp: Get optimal link config to have best compressed bpp")
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: <stable@vger.kernel.org> # v6.7+
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10162
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240305054443.2489895-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c