]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
drm/i915/dp: Allocate/free DP tunnel BW during modeset
authorImre Deak <imre.deak@intel.com>
Tue, 20 Feb 2024 21:18:36 +0000 (23:18 +0200)
committerImre Deak <imre.deak@intel.com>
Tue, 27 Feb 2024 15:34:57 +0000 (17:34 +0200)
Allocate and free the DP tunnel BW required by a stream while
enabling/disabling the stream during a modeset.

v2:
- Move the allocation up from encoder hooks to
  intel_atomic_commit_tail().
v3:
- Update the commit subject. (Ville)

Reviewed-by: Uma Shankar <uma.shankar@intel.com> (v1)
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240220211841.448846-17-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c

index bea441590204485c5043987275eafb118cf7ea3f..ed7301808604de96b95bbd79bb2b6f398ede68e7 100644 (file)
@@ -54,6 +54,7 @@
 #include "intel_dp_aux.h"
 #include "intel_dp_link_training.h"
 #include "intel_dp_mst.h"
+#include "intel_dp_tunnel.h"
 #include "intel_dpio_phy.h"
 #include "intel_dsi.h"
 #include "intel_fdi.h"
index 6a2dec97f79b67b47a852edf09c420797e3c605d..97655a3b6d6818ccd9f00a0aace70c3b3323b5b1 100644 (file)
@@ -7124,6 +7124,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)
 
        intel_commit_modeset_disables(state);
 
+       intel_dp_tunnel_atomic_alloc_bw(state);
+
        /* FIXME: Eventually get rid of our crtc->config pointer */
        for_each_new_intel_crtc_in_state(state, crtc, new_crtc_state, i)
                crtc->config = new_crtc_state;