drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation
authorImre Deak <imre.deak@intel.com>
Wed, 9 Oct 2024 11:01:34 +0000 (14:01 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Wed, 16 Oct 2024 11:56:15 +0000 (14:56 +0300)
commit69b3d87212676c4c22aa4660435e2066dc7d1311
tree6832f05b193733b12a04c837f743ca1f640782d4
parent8e929cb546ee42c9a61d24fae60605e9e3192354
drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation

The MST branch device may not support the number of DSC slices a mode
requires, handle the error in this case.

Fixes: 4e0837a8d00a ("drm/i915/dp_mst: Account for FEC and DSC overhead during BW allocation")
Cc: stable@vger.kernel.org # v6.8+
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241009110135.1216498-1-imre.deak@intel.com
(cherry picked from commit 802a69b6b8a0502a9e2309afec7e1b77f67874f2)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_dp_mst.c