Skip to content

Commit e7e5048

Browse files
committed
drm/i915/dp: Allocate/free DP tunnel BW during modeset
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
1 parent a4efae8 commit e7e5048

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
#include "intel_dp_aux.h"
5555
#include "intel_dp_link_training.h"
5656
#include "intel_dp_mst.h"
57+
#include "intel_dp_tunnel.h"
5758
#include "intel_dpio_phy.h"
5859
#include "intel_dsi.h"
5960
#include "intel_fdi.h"

drivers/gpu/drm/i915/display/intel_display.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7124,6 +7124,8 @@ static void intel_atomic_commit_tail(struct intel_atomic_state *state)
71247124

71257125
intel_commit_modeset_disables(state);
71267126

7127+
intel_dp_tunnel_atomic_alloc_bw(state);
7128+
71277129
/* FIXME: Eventually get rid of our crtc->config pointer */
71287130
for_each_new_intel_crtc_in_state(state, crtc, new_crtc_state, i)
71297131
crtc->config = new_crtc_state;

0 commit comments

Comments
 (0)