Skip to content

drm/i915: Improve BW management on MST links

Imre Deak dri-devel intel-gfx 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/230 patches 26 repliesIn review
  2. v4 posting 1/21 of 25 patches 2 repliesSuperseded
  3. v325 patches 24 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v222 patches26 repliesSuperseded
v117 patches4 repliesSuperseded

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/30drm/i915/dp_mst: Fix race between connector registration and setupdrivers/gpu/drm/i915/display/intel_dp_mst.c+8 -81 reply
2/30drm/dp_mst: Fix fractional DSC bpp handlingdrivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c drivers/gpu/drm/display/drm_dp_mst_topology.c +4 more+14 -266 replies
3/30drm/dp_mst: Add helper to determine if an MST port is downstream of another portdrivers/gpu/drm/display/drm_dp_mst_topology.c include/drm/display/drm_dp_mst_helper.h+55 -00 replies
4/30drm/dp_mst: Factor out a helper to check the atomic state of a topology managerdrivers/gpu/drm/display/drm_dp_mst_topology.c include/drm/display/drm_dp_mst_helper.h+78 -190 replies
5/30drm/dp_mst: Swap the order of checking root vs. non-root port BW limitationsdrivers/gpu/drm/display/drm_dp_mst_topology.c+8 -50 replies
6/30drm/dp_mst: Allow DSC in any Synaptics last branch devicedrivers/gpu/drm/display/drm_dp_mst_topology.c+13 -81 reply
7/30drm/dp: Add DP_HBLANK_EXPANSION_CAPABLE and DSC_PASSTHROUGH_EN DPCD flagsinclude/drm/display/drm_dp.h+2 -01 reply
8/30drm/dp_mst: Add HBLANK expansion quirk for Synaptics MST hubsdrivers/gpu/drm/display/drm_dp_helper.c include/drm/display/drm_dp_helper.h+9 -01 reply
9/30drm/dp: Add helpers to calculate the link BW overheaddrivers/gpu/drm/display/drm_dp_helper.c drivers/gpu/drm/display/drm_dp_mst_topology.c include/drm/display/drm_dp_helper.h+160 -66 replies
10/30drm/i915/dp_mst: Enable FEC early once it's known DSC is neededdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c+15 -30 replies
11/30drm/i915/dp: Specify the FEC overhead as an increment vs. a remainderdrivers/gpu/drm/i915/display/intel_dp.c+4 -40 replies
12/30drm/i915/dp: Pass actual BW overhead to m_n calculationdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display.h drivers/gpu/drm/i915/display/intel_dp.c +3 more+71 -180 replies
13/30drm/i915/dp_mst: Account for FEC and DSC overhead during BW allocationdrivers/gpu/drm/i915/display/intel_dp_mst.c+82 -257 replies
14/30drm/i915/dp_mst: Add atomic state for all streams on pre-tgl platformsdrivers/gpu/drm/i915/display/intel_dp_mst.c+10 -60 replies
15/30drm/i915/dp_mst: Program the DSC PPS SDP for each streamdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_dp_mst.c+9 -51 reply
16/30drm/i915/dp: Make sure the DSC PPS SDP is disabled whenever DSC is disableddrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp_mst.c+6 -40 replies
17/30drm/i915/dp_mst: Add missing DSC compression disablingdrivers/gpu/drm/i915/display/intel_dp_mst.c+2 -00 replies
18/30drm/i915/dp: Rename intel_ddi_disable_fec_state() to intel_ddi_disable_fec()drivers/gpu/drm/i915/display/intel_ddi.c+4 -50 replies
19/30drm/i915/dp: Wait for FEC detected status in the sinkdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_ddi.h drivers/gpu/drm/i915/display/intel_dp_mst.c+80 -00 replies
20/30drm/i915/dp: Disable FEC ready flag in the sinkdrivers/gpu/drm/i915/display/intel_ddi.c+13 -80 replies
21/30drm/i915/dp_mst: Handle the Synaptics HBlank expansion quirkdrivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp_mst.c+117 -41 reply
22/30drm/i915/dp_mst: Enable decompression in the sink from the MST encoder hooksdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_dp_mst.c+22 -51 reply
23/30drm/i915/dp: Enable DSC via the connector decompression AUXdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h +1 more+101 -210 replies
24/30drm/i915/dp_mst: Enable DSC passthroughdrivers/gpu/drm/i915/display/intel_dp.c+20 -20 replies
25/30drm/i915/dp_mst: Enable MST DSC decompression for all streamsdrivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp_mst.c +1 more+82 -165 replies
26/30drm/i915: Factor out function to clear pipe update flagsdrivers/gpu/drm/i915/display/intel_display.c+27 -253 replies
27/30drm/i915/dp_mst: Force modeset CRTC if DSC toggling requires itdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dp_mst.c drivers/gpu/drm/i915/display/intel_dp_mst.h+94 -01 reply
28/30drm/i915/dp_mst: Improve BW sharing between MST streamsdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h +4 more+161 -70 replies
29/30drm/i915/dp_mst: Check BW limitations only after all streams are computeddrivers/gpu/drm/i915/display/intel_dp_mst.c+1 -70 replies
30/30drm/i915: Query compressed bpp properly using correct DPCD and DP Spec infodrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c+41 -370 replies

Reviews trailers per patch

All 30 patches have a Reviewed-by or Acked-by.

PatchLyude PaulStanislav LisovskiyVille SyrjäläAnkit NautiyalArun R MurthyMaxime RipardHarry WentlandAlex Deucher
1/30R-b
2/30R-b R-b A-b A-b A-b
3/30R-b
4/30R-b
5/30R-b
6/30R-b R-b
7/30R-b R-b
8/30R-b R-b
9/30R-b R-b R-b R-b A-b
10/30R-b
11/30R-b
12/30R-b
13/30R-b R-b
14/30R-b
15/30R-b R-b
16/30R-b
17/30R-b
18/30R-b
19/30R-b
20/30R-b
21/30R-b R-b
22/30R-b R-b
23/30R-b
24/30R-b R-b
25/30R-b R-b
26/30R-b R-b
27/30R-b R-b
28/30R-b
29/30R-b
30/30R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v4 thread

Cover letter [Intel-gfx] [PATCH v4 00/30] drm/i915: Improve BW management on MST links

This is v4 of [1] with the following changes:

- Fix a race condition between connector setup and registration (added patch 1).
- Rename DRM_DP_OVERHEAD_SSC to DRM_DP_OVERHEAD_SSC_REF_CLK (Ville, patch 9).
- Fix setting crtc_state->fec_enable, once crtc_state->port_clock required for it is already set (patch 10).
- Fix passing the correct fec_enable parameter to intel_dp_bw_fec_overhead() (patch 12).
- Fix TU size, making it match the payload size in the payload table (Patch 13).
- Apply the HBLANK expansion quirk whenever the HBLANK period is 300ns or less (Patch 21).
- Fix refcounting of the DSC AUX decompression device (Stan, patch 25).
- Fix HW readout/sanitize for the connector DSC decompression enabled state (patch 25).
- Move intel_crtc_needs_modeset() check to callers of clear_pipe_update_flags_on_modeset_crtc() (Ville, patch 26).
- Fix forcing modeset on CRTC due to a change in MST topology (Ville, patch 27).
- Add missing DocBooks, fix typos.

[1] https://lore.kernel.org/all/[email protected]

Cc Stanislav Lisovskiy <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Ville Syrjälä <[email protected]>
Cc Ankit Nautiyal <[email protected]>
Cc Arun R Murthy <[email protected]>

Imre Deak (28):
drm/i915/dp_mst: Fix race between connector registration and setup drm/dp_mst: Add helper to determine if an MST port is downstream of
another port
drm/dp_mst: Factor out a helper to check the atomic state of a
topology manager
drm/dp_mst: Swap the order of checking root vs. non-root port BW
limitations
drm/dp_mst: Allow DSC in any Synaptics last branch device drm/dp: Add DP_HBLANK_EXPANSION_CAPABLE and DSC_PASSTHROUGH_EN DPCD
flags
drm/dp_mst: Add HBLANK expansion quirk for Synaptics MST hubs drm/dp: Add helpers to calculate the link BW overhead drm/i915/dp_mst: Enable FEC early once it's known DSC is needed drm/i915/dp: Specify the FEC overhead as an increment vs. a remainder drm/i915/dp: Pass actual BW overhead to m_n calculation drm/i915/dp_mst: Account for FEC and DSC overhead during BW allocation drm/i915/dp_mst: Add atomic state for all streams on pre-tgl platforms drm/i915/dp_mst: Program the DSC PPS SDP for each stream drm/i915/dp: Make sure the DSC PPS SDP is disabled whenever DSC is
disabled
drm/i915/dp_mst: Add missing DSC compression disabling drm/i915/dp: Rename intel_ddi_disable_fec_state() to
intel_ddi_disable_fec()
drm/i915/dp: Wait for FEC detected status in the sink drm/i915/dp: Disable FEC ready flag in the sink drm/i915/dp_mst: Handle the Synaptics HBlank expansion quirk drm/i915/dp_mst: Enable decompression in the sink from the MST encoder
hooks
drm/i915/dp: Enable DSC via the connector decompression AUX drm/i915/dp_mst: Enable DSC passthrough
drm/i915/dp_mst: Enable MST DSC decompression for all streams drm/i915: Factor out function to clear pipe update flags drm/i915/dp_mst: Force modeset CRTC if DSC toggling requires it drm/i915/dp_mst: Improve BW sharing between MST streams drm/i915/dp_mst: Check BW limitations only after all streams are
computed

Stanislav Lisovskiy (1):
drm/i915: Query compressed bpp properly using correct DPCD and DP Spec
info

Ville Syrjälä (1):
drm/dp_mst: Fix fractional DSC bpp handling

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |   2 +-
 .../display/amdgpu_dm/amdgpu_dm_mst_types.c   |   2 +-
 drivers/gpu/drm/display/drm_dp_helper.c       | 134 +++++
 drivers/gpu/drm/display/drm_dp_mst_topology.c | 206 +++++--
 drivers/gpu/drm/i915/display/intel_ddi.c      | 136 ++++-
 drivers/gpu/drm/i915/display/intel_ddi.h      |   3 +
 drivers/gpu/drm/i915/display/intel_display.c  | 101 ++--
 drivers/gpu/drm/i915/display/intel_display.h  |   4 +-
 .../drm/i915/display/intel_display_types.h    |   3 +
 drivers/gpu/drm/i915/display/intel_dp.c       | 256 +++++++-
 drivers/gpu/drm/i915/display/intel_dp.h       |  23 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   | 564 +++++++++++++++---
 drivers/gpu/drm/i915/display/intel_dp_mst.h   |   5 +
 drivers/gpu/drm/i915/display/intel_fdi.c      |   5 +-
 drivers/gpu/drm/i915/display/intel_link_bw.c  |  16 +-
 drivers/gpu/drm/i915/display/intel_link_bw.h  |   1 +
 .../drm/i915/display/intel_modeset_setup.c    |   6 +
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |   3 +-
 .../gpu/drm/tests/drm_dp_mst_helper_test.c    |   6 +-
 include/drm/display/drm_dp.h                  |   2 +
 include/drm/display/drm_dp_helper.h           |  18 +
 include/drm/display/drm_dp_mst_helper.h       |   9 +-
 22 files changed, 1270 insertions(+), 235 deletions(-)
Signature · 1 line
2.39.2