Skip to content

drm/i915/dp: Clean up link BW/DSC slice config computation

Imre Deak dri-devel intel-gfx intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest50 patches 78 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/50drm/dp: Parse all DSC slice count caps for eDP 1.5drivers/gpu/drm/display/drm_dp_helper.c+18 -232 replies
2/50drm/dp: Add drm_dp_dsc_sink_slice_count_mask()drivers/gpu/drm/display/drm_dp_helper.c include/drm/display/drm_dp_helper.h+61 -241 reply
3/50drm/i915/dp: Fix DSC sink's slice count capability checkdrivers/gpu/drm/i915/display/intel_dp.c+13 -53 replies
4/50drm/i915/dp: Return a fixed point BPP value from intel_dp_output_bpp()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c+26 -221 reply
5/50drm/i915/dp: Use a mode's crtc_clock vs. clock during state computationdrivers/gpu/drm/i915/display/intel_dp.c+3 -21 reply
6/50drm/i915/dp: Factor out intel_dp_link_bw_overhead()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c+34 -161 reply
7/50drm/i915/dp: Fix BW check in is_bw_sufficient_for_dsc_config()drivers/gpu/drm/i915/display/intel_dp.c+1 -11 reply
8/50drm/i915/dp: Use the effective data rate for DP BW calculationdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_link_training.c +1 more+33 -191 reply
9/50drm/i915/dp: Use the effective data rate for DP compressed BW calculationdrivers/gpu/drm/i915/display/intel_dp.c+16 -111 reply
9/50drm/i915/dp: Use the effective data rate for DP compressed BW calculationdrivers/gpu/drm/i915/display/intel_dp.c+16 -111 reply
10/50drm/i915/dp: Account with MST, SSC BW overhead for uncompressed DP-MST stream BWdrivers/gpu/drm/i915/display/intel_dp_mst.c+4 -11 reply
11/50drm/i915/dp: Account with DSC BW overhead for compressed DP-SST stream BWdrivers/gpu/drm/i915/display/intel_dp.c+5 -11 reply
12/50drm/i915/dp: Account with pipe joiner max compressed BPP limit for DP-MST and eDPdrivers/gpu/drm/i915/display/intel_dp.c+8 -81 reply
13/50drm/i915/dp: Drop unused timeslots param from dsc_compute_link_config()drivers/gpu/drm/i915/display/intel_dp.c+7 -111 reply
14/50drm/i915/dp: Factor out align_max_sink_dsc_input_bpp()drivers/gpu/drm/i915/display/intel_dp.c+18 -105 replies
15/50drm/i915/dp: Factor out align_max_vesa_compressed_bpp_x16()drivers/gpu/drm/i915/display/intel_dp.c+20 -155 replies
16/50drm/i915/dp: Fail state computation for invalid min/max link BPP valuesdrivers/gpu/drm/i915/display/intel_dp.c+6 -12 replies
17/50drm/i915/dp: Fail state computation for invalid max throughput BPP valuedrivers/gpu/drm/i915/display/intel_dp.c+0 -22 replies
18/50drm/i915/dp: Fail state computation for invalid max sink compressed BPP valuedrivers/gpu/drm/i915/display/intel_dp.c+1 -22 replies
19/50drm/i915/dp: Fail state computation for invalid DSC source input BPP valuesdrivers/gpu/drm/i915/display/intel_dp.c+21 -71 reply
20/50drm/i915/dp: Align min/max DSC input BPPs to sink capsdrivers/gpu/drm/i915/display/intel_dp.c+23 -21 reply
21/50drm/i915/dp: Align min/max compressed BPPs when calculating BPP limitsdrivers/gpu/drm/i915/display/intel_dp.c+57 -02 replies
22/50drm/i915/dp: Drop intel_dp parameter from intel_dp_compute_config_link_bpp_limits()drivers/gpu/drm/i915/display/intel_dp.c+4 -51 reply
23/50drm/i915/dp: Pass intel_output_format to intel_dp_dsc_sink_{min_max}_compressed_bpp()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h+12 -161 reply
24/50drm/i915/dp: Pass mode clock to dsc_throughput_quirk_max_bpp_x16()drivers/gpu/drm/i915/display/intel_dp.c+4 -61 reply
25/50drm/i915/dp: Factor out compute_min_compressed_bpp_x16()drivers/gpu/drm/i915/display/intel_dp.c+18 -83 replies
26/50drm/i915/dp: Factor out compute_max_compressed_bpp_x16()drivers/gpu/drm/i915/display/intel_dp.c+49 -331 reply
27/50drm/i915/dp: Add intel_dp_mode_valid_with_dsc()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h drivers/gpu/drm/i915/display/intel_dp_mst.c+57 -361 reply
28/50drm/i915/dp: Unify detect and compute time DSC mode BW validationdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h+18 -1271 reply
29/50drm/i915/dp: Use helpers to align min/max compressed BPPsdrivers/gpu/drm/i915/display/intel_dp.c+5 -182 replies
30/50drm/i915/dp: Simplify computing DSC BPPs for eDPdrivers/gpu/drm/i915/display/intel_dp.c+3 -131 reply
31/50drm/i915/dp: Simplify computing DSC BPPs for DP-SSTdrivers/gpu/drm/i915/display/intel_dp.c+8 -212 replies
32/50drm/i915/dp: Simplify computing forced DSC BPP for DP-SSTdrivers/gpu/drm/i915/display/intel_dp.c+4 -101 reply
33/50drm/i915/dp: Unify computing compressed BPP for DP-SST and eDPdrivers/gpu/drm/i915/display/intel_dp.c+13 -81 reply
34/50drm/i915/dp: Simplify eDP vs. DP compressed BPP computationdrivers/gpu/drm/i915/display/intel_dp.c+2 -301 reply
35/50drm/i915/dp: Simplify computing the DSC compressed BPP for DP-MSTdrivers/gpu/drm/i915/display/intel_dp_mst.c+6 -421 reply
36/50drm/i915/dsc: Track the detaild DSC slice configurationdrivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_vdsc.c drivers/gpu/drm/i915/display/intel_vdsc.h+12 -01 reply
37/50drm/i915/dsc: Track the DSC stream count in the DSC slice config statedrivers/gpu/drm/i915/display/icl_dsi.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_types.h +2 more+12 -121 reply
38/50drm/i915/dsi: Move initialization of DSI DSC streams-per-pipe to fill_dsc()drivers/gpu/drm/i915/display/icl_dsi.c drivers/gpu/drm/i915/display/intel_bios.c+5 -63 replies
39/50drm/i915/dsi: Track the detailed DSC slice configurationdrivers/gpu/drm/i915/display/intel_bios.c+8 -31 reply
40/50drm/i915/dp: Track the detailed DSC slice configurationdrivers/gpu/drm/i915/display/intel_dp.c+21 -113 replies
41/50drm/i915/dsc: Switch to using intel_dsc_line_slice_count()drivers/gpu/drm/i915/display/intel_bios.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp.c +1 more+11 -141 reply
42/50drm/i915/dp: Factor out intel_dp_dsc_min_slice_count()drivers/gpu/drm/i915/display/intel_dp.c+17 -61 reply
43/50drm/i915/dp: Use int for DSC slice count variablesdrivers/gpu/drm/i915/display/intel_dp.c+5 -61 reply
44/50drm/i915/dp: Rename test_slice_count to slices_per_linedrivers/gpu/drm/i915/display/intel_dp.c+5 -51 reply
45/50drm/i915/dp: Simplify the DSC slice config loop's slices-per-pipe iterationdrivers/gpu/drm/i915/display/intel_dp.c+13 -201 reply
46/50drm/i915/dsc: Add intel_dsc_get_slice_config()drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_vdsc.c drivers/gpu/drm/i915/display/intel_vdsc.h+59 -151 reply
47/50drm/i915/dsi: Use intel_dsc_get_slice_config()drivers/gpu/drm/i915/display/intel_bios.c+13 -121 reply
48/50drm/i915/dp: Unify DP and eDP slice count computationdrivers/gpu/drm/i915/display/intel_dp.c+25 -251 reply
49/50drm/i915/dp: Add intel_dp_dsc_get_slice_config()drivers/gpu/drm/i915/display/intel_dp.c+28 -94 replies
50/50drm/i915/dp: Use intel_dp_dsc_get_slice_config()drivers/gpu/drm/i915/display/intel_dp.c+3 -324 replies

Reviews trailers per patch

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

PatchLuca CoelhoJouni HöganderVinod Govindapillai
1/50R-b
2/50R-b
3/50R-b
4/50R-b
5/50R-b
6/50R-b
7/50R-b
8/50R-b
9/50R-b R-b
9/50R-b R-b
10/50R-b
11/50R-b
12/50R-b
13/50R-b
14/50R-b R-b
15/50R-b R-b
16/50R-b R-b
17/50R-b R-b
18/50R-b R-b
19/50R-b
20/50R-b
21/50R-b
22/50R-b
23/50R-b
24/50R-b
25/50R-b
26/50R-b
27/50R-b
28/50R-b
29/50R-b R-b
30/50R-b
31/50R-b
32/50R-b
33/50R-b
34/50R-b
35/50R-b
36/50R-b
37/50R-b
38/50R-b
39/50R-b
40/50R-b
41/50R-b
42/50R-b
43/50R-b
44/50R-b
45/50R-b
46/50R-b
47/50R-b
48/50R-b
49/50R-b
50/50R-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 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/50] drm/i915/dp: Clean up link BW/DSC slice config computation

This patchset cleans up the DP link BW and the DSC slice config computation with the following aims:

- Fix the BW calculation taking into account all the MST,DSC,SSC,FEC related overhead and use the proper UHBR/non-UHBR BW utilization factor (which depends on the symbol size vs. effective data size ratio).
- Unify the BW calculation during mode validation and state computation.
- Unify the BW calculation for eDP / DP-SST / DP-MST.
- Compute the DSC slice configuration in a way better reflecting the pipe/DSC stream engine/slice parameters of the config.

Cc Ankit Nautiyal <[email protected]>

Imre Deak (50):
drm/dp: Parse all DSC slice count caps for eDP 1.5
drm/dp: Add drm_dp_dsc_sink_slice_count_mask() drm/i915/dp: Fix DSC sink's slice count capability check drm/i915/dp: Return a fixed point BPP value from intel_dp_output_bpp() drm/i915/dp: Use a mode's crtc_clock vs. clock during state
computation
drm/i915/dp: Factor out intel_dp_link_bw_overhead() drm/i915/dp: Fix BW check in is_bw_sufficient_for_dsc_config() drm/i915/dp: Use the effective data rate for DP BW calculation drm/i915/dp: Use the effective data rate for DP compressed BW
calculation
drm/i915/dp: Account with MST,SSC BW overhead for uncompressed DP-MST
stream BW
drm/i915/dp: Account with DSC BW overhead for compressed DP-SST stream
BW
drm/i915/dp: Account with pipe joiner max compressed BPP limit for
DP-MST and eDP
drm/i915/dp: Drop unused timeslots param from
dsc_compute_link_config()
drm/i915/dp: Factor out align_max_sink_dsc_input_bpp() drm/i915/dp: Factor out align_max_vesa_compressed_bpp_x16() drm/i915/dp: Fail state computation for invalid min/max link BPP
values
drm/i915/dp: Fail state computation for invalid max throughput BPP
value
drm/i915/dp: Fail state computation for invalid max sink compressed
BPP value
drm/i915/dp: Fail state computation for invalid DSC source input BPP
values
drm/i915/dp: Align min/max DSC input BPPs to sink caps drm/i915/dp: Align min/max compressed BPPs when calculating BPP limits drm/i915/dp: Drop intel_dp parameter from
intel_dp_compute_config_link_bpp_limits()
drm/i915/dp: Pass intel_output_format to
intel_dp_dsc_sink_{min_max}_compressed_bpp()
drm/i915/dp: Pass mode clock to dsc_throughput_quirk_max_bpp_x16() drm/i915/dp: Factor out compute_min_compressed_bpp_x16() drm/i915/dp: Factor out compute_max_compressed_bpp_x16() drm/i915/dp: Add intel_dp_mode_valid_with_dsc() drm/i915/dp: Unify detect and compute time DSC mode BW validation drm/i915/dp: Use helpers to align min/max compressed BPPs drm/i915/dp: Simplify computing DSC BPPs for eDP drm/i915/dp: Simplify computing DSC BPPs for DP-SST drm/i915/dp: Simplify computing forced DSC BPP for DP-SST drm/i915/dp: Unify computing compressed BPP for DP-SST and eDP drm/i915/dp: Simplify eDP vs. DP compressed BPP computation drm/i915/dp: Simplify computing the DSC compressed BPP for DP-MST drm/i915/dsc: Track the detaild DSC slice configuration drm/i915/dsc: Track the DSC stream count in the DSC slice config state drm/i915/dsi: Move initialization of DSI DSC streams-per-pipe to

    fill_dsc()

drm/i915/dsi: Track the detailed DSC slice configuration drm/i915/dp: Track the detailed DSC slice configuration drm/i915/dsc: Switch to using intel_dsc_line_slice_count() drm/i915/dp: Factor out intel_dp_dsc_min_slice_count() drm/i915/dp: Use int for DSC slice count variables drm/i915/dp: Rename test_slice_count to slices_per_line drm/i915/dp: Simplify the DSC slice config loop's slices-per-pipe
iteration
drm/i915/dsc: Add intel_dsc_get_slice_config() drm/i915/dsi: Use intel_dsc_get_slice_config() drm/i915/dp: Unify DP and eDP slice count computation drm/i915/dp: Add intel_dp_dsc_get_slice_config() drm/i915/dp: Use intel_dp_dsc_get_slice_config()

 drivers/gpu/drm/display/drm_dp_helper.c       | 103 ++-
 drivers/gpu/drm/i915/display/icl_dsi.c        |   6 -
 drivers/gpu/drm/i915/display/intel_bios.c     |  27 +-
 drivers/gpu/drm/i915/display/intel_display.c  |   2 +-
 .../drm/i915/display/intel_display_types.h    |   7 +-
 drivers/gpu/drm/i915/display/intel_dp.c       | 868 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dp.h       |  26 +-
 .../drm/i915/display/intel_dp_link_training.c |   4 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   | 110 +--
 drivers/gpu/drm/i915/display/intel_vdsc.c     |  71 +-
 drivers/gpu/drm/i915/display/intel_vdsc.h     |   6 +
 include/drm/display/drm_dp_helper.h           |   3 +
 12 files changed, 658 insertions(+), 575 deletions(-)
Signature · 1 line
2.49.1