]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/dp_mst: Align TUs to avoid splitting symbols across MTPs
authorImre Deak <imre.deak@intel.com>
Mon, 10 Jun 2024 16:49:13 +0000 (19:49 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 13 Jun 2024 18:17:22 +0000 (21:17 +0300)
commit1bcbe192e0dc758873003a0059bce9cc27d4bad1
tree341cb012e7845b3c3967c58d00399c4701a3025a
parentefde66b9654830170f46667a8f0ddf16fae6dbef
drm/i915/dp_mst: Align TUs to avoid splitting symbols across MTPs

Symbols consisting of multiple (4) TU timeslots may get split across
MTPs when using 2 or 1 link lanes. Avoid this, as required by Bspec by
aligning the allocated TUs to 2 when using 2 lanes and 4 when using 1
lane.

Atm, we also have to align the PBNs used to allocate BW along the MST
path, since DRM core keeps track of its own TU value, derived from the
PBN and that TU value must match what the driver calculates.

On some platforms the alignment is only required on 8b/10b links, a
follow-up patch will remove the limitation for those.

Bspec: 49266, 68922

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/20240610164933.2947366-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_mst.c