Skip to content

DP-HDMI PCON DSC fixes

Ankit Nautiyal intel-gfx intel-xe 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29drm/i915/hdmi: Split the intel_hdmi_dsc_get_bpp()drivers/gpu/drm/i915/display/intel_hdmi.c+59 -380 replies
2/29drm/i915/dp: Fix FRL BW check for HDMI2.1 DFPdrivers/gpu/drm/i915/display/intel_dp.c+34 -170 replies
3/29drm/i915/dp: Add a wrapper to check frl/tmds downstream constraintsdrivers/gpu/drm/i915/display/intel_dp.c+24 -100 replies
4/29drm/i915/dp: Use the common downstream bw check in compute_bpcdrivers/gpu/drm/i915/display/intel_dp.c+2 -20 replies
5/29drm/i915/hdmi: Expose DSC min/max bpp helpersdrivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+17 -50 replies
6/29drm/i915/hdmi: Add helper to check if DSC chunksize fits the sink limitsdrivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+24 -30 replies
7/29drm/i915/hdmi: Pass pixel clock to DSC slice helperdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+4 -10 replies
8/29drm/i915/dp: Account for FRL 16b/18b encoding overheaddrivers/gpu/drm/i915/display/intel_dp.c+5 -20 replies
9/29drm/i915/hdmi: Clamp the target_bpp only when it equals the link bppdrivers/gpu/drm/i915/display/intel_hdmi.c+11 -40 replies
10/29drm/i915/dp: Add PCON DSC state to crtc_statedrivers/gpu/drm/i915/display/intel_crtc_state_dump.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp.c+46 -00 replies
11/29drm/dp: Add a helper to disable the PCON DSC encoderdrivers/gpu/drm/display/drm_dp_helper.c include/drm/display/drm_dp_helper.h+24 -00 replies
12/29drm/i915/dp: Compute the PCON DSC operationdrivers/gpu/drm/i915/display/intel_dp.c+18 -00 replies
13/29drm/i915/dp: Disable the PCON DSC encoder unless it is neededdrivers/gpu/drm/i915/display/intel_dp.c+7 -00 replies
14/29drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidthdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+10 -30 replies
15/29drm/i915/dp: Add a helper for the DSC stream versiondrivers/gpu/drm/i915/display/intel_dp.c+11 -60 replies
16/29drm/i915/dp: Add a helper for the FRL payload bandwidthdrivers/gpu/drm/i915/display/intel_dp.c+13 -80 replies
17/29drm/i915/dp: Compute the PCON DSC encoder parametersdrivers/gpu/drm/i915/display/intel_dp.c+105 -890 replies
18/29drm/i915/dp: Retrain the PCON FRL link from the link check workdrivers/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+47 -30 replies
19/29drm/i915/dp: Store the PCON FRL rate in the crtc statedrivers/gpu/drm/i915/display/g4x_dp.c drivers/gpu/drm/i915/display/intel_crtc_state_dump.c drivers/gpu/drm/i915/display/intel_ddi.c +3 more+33 -210 replies
20/29drm/i915/dp: Use the FRL rate of the stream on the HDMI linkdrivers/gpu/drm/i915/display/intel_dp.c+25 -190 replies
21/29drm/i915/dp: Allow PCON DSC modes through the FRL bw checkdrivers/gpu/drm/i915/display/intel_dp.c+53 -60 replies
22/29drm/i915/dp: Enable DSC pass-through in the PCONdrivers/gpu/drm/i915/display/intel_dp.c+25 -10 replies
23/29drm/i915/dp: Limit the DP link bpp for DSC pass-through to the FRL bandwidthdrivers/gpu/drm/i915/display/intel_dp.c+51 -40 replies
24/29drm/i915/dp: Select DSC pass-through in the PCON for DSC 1.2a streamsdrivers/gpu/drm/i915/display/intel_dp.c+69 -140 replies
25/29drm/i915/dp: Allow limiting the DSC slice count for the downstream devicedrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_dp.h+20 -10 replies
26/29drm/i915/dp: Check the HDMI sink slice limits for DSC pass-throughdrivers/gpu/drm/i915/display/intel_dp.c+32 -50 replies
27/29drm/i915/dp: Pick the DSC slice count for pass-through within the HDMI limitsdrivers/gpu/drm/i915/display/intel_dp.c+9 -10 replies
28/29drm/i915/dp: Limit the compressed bpp for pass-through to the HDMI sinkdrivers/gpu/drm/i915/display/intel_dp.c+23 -20 replies
29/29drm/i915/dp: Accept DSC 1.2a pass-through modes in the PCON mode checkdrivers/gpu/drm/i915/display/intel_dp.c+22 -60 replies

Reviews trailers per patch

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

PatchSuraj Kandpal
1/29R-b
2/29R-b
3/29R-b
4/29R-b
5/29R-b
6/29R-b
7/29R-b
8/29
9/29
10/29
11/29
12/29
13/29
14/29
15/29
16/29
17/29
18/29
19/29
20/29
21/29
22/29
23/29
24/29
25/29
26/29
27/29
28/29
29/29

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/29] DP-HDMI PCON DSC fixes

The PCON mode_valid path currently does not fully account for the bandwidth limitations of the PCON <-> HDMI link. The DSC capability between the PCON and the HDMI sink also needs to be taken into account, which currently isn't. Furthermore, the compressed bpp chosen needs to fit the FRL configuration, which is also missing.

This series:
- reworks the HDMI DSC helpers so they can be reused across the mode_valid, compute_config and FRL bandwidth check paths
- fixes the FRL/TMDS downstream bandwidth checks, and allows PCON DSC modes through the FRL check
- Clamps the programmed DSC bpp to the FRL link bandwidth.
- Adds the PCON DSC operations (decode, decode and re-encode and pass-through), and uses the FRL rate of the stream on the HDMI link.

This series is sent as a whole to have all the solution in one place. It will be split in 3 series and merged in this order:
1. Groundwork (patches 1-9): FRL/TMDS downstream bandwidth checks and the HDMI DSC helpers. A couple of patches are still to be reviewed, so these will be separated out for CI testing and merged first.
2. PCON DSC operations (patches 10-21): PCON DSC state, decode and decode and re-encode operations and the FRL rate of the stream.
3. DSC pass-through (patches 22-29): pass-through of a DSC 1.2a stream, within the limits of the HDMI sink.

Rev2:
- Rebase and address comments from Suraj.
- Drop drm/i915/dp: Use FRL pair check for the DFP dotclock limit as no longer required.

Rev3:
- Address Comments from Sashiko.
- Account for FRL encoding overhead during bw calculation.
- Pass pixel clock instead of using mode->crtc_clock to make it work with mode-valid case.
- Clamp the target bpp only when it equals the pipe bpp to avoid missing the case when dsc min_bpp and max_bpp are same.

Rev4:
- Add the PCON DSC operations as per DP Spec: decode, decode and re-encode, and pass-through for a DSC 1.2a stream.
- Add the PCON DSC state to crtc_state, compute the operation and the PCON DSC encoder parameters in compute_config, and only program them at enable. Disable the PCON DSC encoder unless it is needed.
- Enable DSC pass-through in the PCON, and limit the slice count and the compressed bpp of the DP stream to what the HDMI sink supports.
- Store the FRL rate in crtc_state, use the regular or the DSC max FRL rate depending on the stream on the HDMI link, and retrain the FRL link from the link check work.
- Use link bpp instead of pipe bpp in the target_bpp clamp patch and reuse intel_dp_output_format_link_bpp_x16(). (Suraj)

Ankit Nautiyal (29):
drm/i915/hdmi: Split the intel_hdmi_dsc_get_bpp() drm/i915/dp: Fix FRL BW check for HDMI2.1 DFP
drm/i915/dp: Add a wrapper to check frl/tmds downstream constraints drm/i915/dp: Use the common downstream bw check in compute_bpc drm/i915/hdmi: Expose DSC min/max bpp helpers drm/i915/hdmi: Add helper to check if DSC chunksize fits the sink
limits
drm/i915/hdmi: Pass pixel clock to DSC slice helper drm/i915/dp: Account for FRL 16b/18b encoding overhead drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp drm/i915/dp: Add PCON DSC state to crtc_state
drm/dp: Add a helper to disable the PCON DSC encoder drm/i915/dp: Compute the PCON DSC operation
drm/i915/dp: Disable the PCON DSC encoder unless it is needed drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth drm/i915/dp: Add a helper for the DSC stream version drm/i915/dp: Add a helper for the FRL payload bandwidth drm/i915/dp: Compute the PCON DSC encoder parameters drm/i915/dp: Retrain the PCON FRL link from the link check work drm/i915/dp: Store the PCON FRL rate in the crtc state drm/i915/dp: Use the FRL rate of the stream on the HDMI link drm/i915/dp: Allow PCON DSC modes through the FRL bw check drm/i915/dp: Enable DSC pass-through in the PCON drm/i915/dp: Limit the DP link bpp for DSC pass-through to the FRL
bandwidth
drm/i915/dp: Select DSC pass-through in the PCON for DSC 1.2a streams drm/i915/dp: Allow limiting the DSC slice count for the downstream
device
drm/i915/dp: Check the HDMI sink slice limits for DSC pass-through drm/i915/dp: Pick the DSC slice count for pass-through within the HDMI
limits
drm/i915/dp: Limit the compressed bpp for pass-through to the HDMI
sink
drm/i915/dp: Accept DSC 1.2a pass-through modes in the PCON mode check

 drivers/gpu/drm/display/drm_dp_helper.c       |  23 +
 drivers/gpu/drm/i915/display/g4x_dp.c         |   2 +-
 .../drm/i915/display/intel_crtc_state_dump.c  |  17 +
 drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
 .../drm/i915/display/intel_display_types.h    |  31 +
 drivers/gpu/drm/i915/display/intel_dp.c       | 668 ++++++++++++++----
 drivers/gpu/drm/i915/display/intel_dp.h       |  13 +-
 .../drm/i915/display/intel_dp_link_training.c |   5 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     | 138 +++-
 drivers/gpu/drm/i915/display/intel_hdmi.h     |   8 +-
 include/drm/display/drm_dp_helper.h           |   1 +
 11 files changed, 731 insertions(+), 179 deletions(-)
Signature · 1 line
2.50.1