Skip to content

drm/i915: Improve BW management on MST links

Imre Deak dri-devel intel-gfx oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29drm/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 -260 replies
2/29drm/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
3/29drm/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
4/29drm/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
5/29drm/dp_mst: Allow DSC in any Synaptics last branch devicedrivers/gpu/drm/display/drm_dp_mst_topology.c+13 -81 reply
6/29drm/dp: Add DP_HBLANK_EXPANSION_CAPABLE and DSC_PASSTHROUGH_EN DPCD flagsinclude/drm/display/drm_dp.h+2 -01 reply
7/29drm/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 -03 replies
8/29drm/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+141 -63 replies
9/29drm/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 -32 replies
10/29drm/i915/dp: Specify the FEC overhead as an increment vs. a remainderdrivers/gpu/drm/i915/display/intel_dp.c+4 -42 replies
11/29drm/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 -181 reply
12/29drm/i915/dp_mst: Account for FEC and DSC overhead during BW allocationdrivers/gpu/drm/i915/display/intel_dp_mst.c+74 -250 replies
13/29drm/i915/dp_mst: Add atomic state for all streams on pre-tgl platformsdrivers/gpu/drm/i915/display/intel_dp_mst.c+10 -60 replies
14/29drm/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 -50 replies
15/29drm/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
16/29drm/i915/dp_mst: Add missing DSC compression disablingdrivers/gpu/drm/i915/display/intel_dp_mst.c+2 -00 replies
17/29drm/i915/dp: Rename intel_ddi_disable_fec_state() to intel_ddi_disable_fec()drivers/gpu/drm/i915/display/intel_ddi.c+4 -51 reply
18/29drm/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 -01 reply
19/29drm/i915/dp: Disable FEC ready flag in the sinkdrivers/gpu/drm/i915/display/intel_ddi.c+13 -81 reply
20/29drm/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+107 -41 reply
21/29drm/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
22/29drm/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+31 -174 replies
23/29drm/i915/dp_mst: Enable DSC passthroughdrivers/gpu/drm/i915/display/intel_dp.c+25 -12 replies
24/29drm/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+42 -192 replies
25/29drm/i915: Factor out function to clear pipe update flagsdrivers/gpu/drm/i915/display/intel_display.c+27 -251 reply
26/29drm/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+78 -01 reply
27/29drm/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
28/29drm/i915/dp_mst: Check BW limitations only after all streams are computeddrivers/gpu/drm/i915/display/intel_dp_mst.c+1 -70 replies
29/29drm/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 -372 replies

Reviews trailers per patch

26 of 29 patches have a Reviewed-by or Acked-by.

PatchLyude PaulStanislav LisovskiyAnkit NautiyalArun R Murthy
1/29R-b
2/29R-b
3/29R-b
4/29R-b
5/29R-b
6/29R-b
7/29R-b R-b
8/29R-b
9/29R-b
10/29
11/29R-b
12/29
13/29R-b
14/29R-b
15/29R-b
16/29R-b
17/29R-b
18/29R-b
19/29R-b
20/29R-b
21/29R-b
22/29R-b R-b R-b
23/29R-b
24/29R-b
25/29
26/29R-b
27/29R-b
28/29R-b
29/29R-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 4 reviewers.

Read the v1 thread

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

This is a new version of patches 12-24 in [1], with the following changes/additions:

- Fix accounting for FEC/DSC BW overheads (patch 8, 10-12).
- Add a workaround for a Synpatics HBLANK expansion vs. DSC quirk (patch 6, 7, 20).
- Add support for enabling DSC for each MST stream, required by the above workaround (patch 5, 17-19, 21-26).
- Enable FEC early, once it's known DSC will need it (patch 9).
- Adding a patch from Stan, which fixes DSC issues and allows enabling it (patch 29).

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

Cc Stanislav Lisovskiy <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Ville Syrjälä <[email protected]>

Imre Deak (27):
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       | 115 ++++
 drivers/gpu/drm/display/drm_dp_mst_topology.c | 206 +++++--
 drivers/gpu/drm/i915/display/intel_ddi.c      | 131 ++++-
 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       | 135 ++++-
 drivers/gpu/drm/i915/display/intel_dp.h       |  16 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   | 554 +++++++++++++++---
 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 +
 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 +-
 21 files changed, 1108 insertions(+), 229 deletions(-)
Signature · 1 line
2.39.2