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)
commite7e5048f4ad5e7a81f7b788b2e73c76cebd5b55b
tree086e02fc90dc2e0bfcaaca941fce11a55e10d8dc
parenta4efae87ecb21bfb7da96f15ee23815da802024a
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
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c