Skip to content

Commit 0909bf2

Browse files
committed
drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation
jira NONE_AUTOMATION Rebuild_History Non-Buildable kernel-5.14.0-570.18.1.el9_6 commit-author Imre Deak <imre.deak@intel.com> commit 802a69b Empty-Commit: Cherry-Pick Conflicts during history rebuild. Will be included in final tarball splat. Ref for failed cherry-pick at: ciq/ciq_backports/kernel-5.14.0-570.18.1.el9_6/802a69b6.failed The MST branch device may not support the number of DSC slices a mode requires, handle the error in this case. Fixes: 4e0837a ("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 802a69b) Signed-off-by: Jonathan Maple <jmaple@ciq.com> # Conflicts: # drivers/gpu/drm/i915/display/intel_dp_mst.c
1 parent 8676f46 commit 0909bf2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation
2+
3+
jira NONE_AUTOMATION
4+
Rebuild_History Non-Buildable kernel-5.14.0-570.18.1.el9_6
5+
commit-author Imre Deak <imre.deak@intel.com>
6+
commit 802a69b6b8a0502a9e2309afec7e1b77f67874f2
7+
Empty-Commit: Cherry-Pick Conflicts during history rebuild.
8+
Will be included in final tarball splat. Ref for failed cherry-pick at:
9+
ciq/ciq_backports/kernel-5.14.0-570.18.1.el9_6/802a69b6.failed
10+
11+
The MST branch device may not support the number of DSC slices a mode
12+
requires, handle the error in this case.
13+
14+
Fixes: 4e0837a8d00a ("drm/i915/dp_mst: Account for FEC and DSC overhead during BW allocation")
15+
Cc: stable@vger.kernel.org # v6.8+
16+
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
17+
Signed-off-by: Imre Deak <imre.deak@intel.com>
18+
Link: https://patchwork.freedesktop.org/patch/msgid/20241009110135.1216498-1-imre.deak@intel.com
19+
(cherry picked from commit 802a69b6b8a0502a9e2309afec7e1b77f67874f2)
20+
Signed-off-by: Jonathan Maple <jmaple@ciq.com>
21+
22+
# Conflicts:
23+
# drivers/gpu/drm/i915/display/intel_dp_mst.c
24+
diff --cc drivers/gpu/drm/i915/display/intel_dp_mst.c
25+
index 3dc3c85fef64,2822ae116003..000000000000
26+
--- a/drivers/gpu/drm/i915/display/intel_dp_mst.c
27+
+++ b/drivers/gpu/drm/i915/display/intel_dp_mst.c
28+
@@@ -152,7 -153,7 +152,11 @@@ static int intel_dp_mst_dsc_get_slice_c
29+
{
30+
const struct drm_display_mode *adjusted_mode =
31+
&crtc_state->hw.adjusted_mode;
32+
++<<<<<<< HEAD
33+
+ int num_joined_pipes = crtc_state->joiner_pipes;
34+
++=======
35+
+ int num_joined_pipes = intel_crtc_num_joined_pipes(crtc_state);
36+
++>>>>>>> 802a69b6b8a0 (drm/i915/dp_mst: Handle error during DSC BW overhead/slice calculation)
37+
38+
return intel_dp_dsc_get_slice_count(connector,
39+
adjusted_mode->clock,
40+
* Unmerged path drivers/gpu/drm/i915/display/intel_dp_mst.c

0 commit comments

Comments
 (0)