DP-HDMI PCON DSC fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest29 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | drm/i915/hdmi: Split the intel_hdmi_dsc_get_bpp()drivers/ | +59 | 0 replies | |
| 2/29 | drm/i915/dp: Fix FRL BW check for HDMI2.1 DFPdrivers/ | +34 | 0 replies | |
| 3/29 | drm/i915/dp: Add a wrapper to check frl/tmds downstream constraintsdrivers/ | +24 | 0 replies | |
| 4/29 | drm/i915/dp: Use the common downstream bw check in compute_bpcdrivers/ | +2 | 0 replies | |
| 5/29 | drm/i915/hdmi: Expose DSC min/max bpp helpersdrivers/ drivers/ | +17 | 0 replies | |
| 6/29 | drm/i915/hdmi: Add helper to check if DSC chunksize fits the sink limitsdrivers/ drivers/ | +24 | 0 replies | |
| 7/29 | drm/i915/hdmi: Pass pixel clock to DSC slice helperdrivers/ drivers/ drivers/ | +4 | 0 replies | |
| 8/29 | drm/i915/dp: Account for FRL 16b/18b encoding overheaddrivers/ | +5 | 0 replies | |
| 9/29 | drm/i915/hdmi: Clamp the target_bpp only when it equals the link bppdrivers/ | +11 | 0 replies | |
| 10/29 | drm/i915/dp: Add PCON DSC state to crtc_statedrivers/ drivers/ drivers/ | +46 | 0 replies | |
| 11/29 | drm/dp: Add a helper to disable the PCON DSC encoderdrivers/ include/ | +24 | 0 replies | |
| 12/29 | drm/i915/dp: Compute the PCON DSC operationdrivers/ | +18 | 0 replies | |
| 13/29 | drm/i915/dp: Disable the PCON DSC encoder unless it is neededdrivers/ | +7 | 0 replies | |
| 14/29 | drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidthdrivers/ drivers/ drivers/ | +10 | 0 replies | |
| 15/29 | drm/i915/dp: Add a helper for the DSC stream versiondrivers/ | +11 | 0 replies | |
| 16/29 | drm/i915/dp: Add a helper for the FRL payload bandwidthdrivers/ | +13 | 0 replies | |
| 17/29 | drm/i915/dp: Compute the PCON DSC encoder parametersdrivers/ | +105 | 0 replies | |
| 18/29 | drm/i915/dp: Retrain the PCON FRL link from the link check workdrivers/ drivers/ drivers/ | +47 | 0 replies | |
| 19/29 | drm/i915/dp: Store the PCON FRL rate in the crtc statedrivers/ drivers/ drivers/ +3 more | +33 | 0 replies | |
| 20/29 | drm/i915/dp: Use the FRL rate of the stream on the HDMI linkdrivers/ | +25 | 0 replies | |
| 21/29 | drm/i915/dp: Allow PCON DSC modes through the FRL bw checkdrivers/ | +53 | 0 replies | |
| 22/29 | drm/i915/dp: Enable DSC pass-through in the PCONdrivers/ | +25 | 0 replies | |
| 23/29 | drm/i915/dp: Limit the DP link bpp for DSC pass-through to the FRL bandwidthdrivers/ | +51 | 0 replies | |
| 24/29 | drm/i915/dp: Select DSC pass-through in the PCON for DSC 1.2a streamsdrivers/ | +69 | 0 replies | |
| 25/29 | drm/i915/dp: Allow limiting the DSC slice count for the downstream devicedrivers/ drivers/ | +20 | 0 replies | |
| 26/29 | drm/i915/dp: Check the HDMI sink slice limits for DSC pass-throughdrivers/ | +32 | 0 replies | |
| 27/29 | drm/i915/dp: Pick the DSC slice count for pass-through within the HDMI limitsdrivers/ | +9 | 0 replies | |
| 28/29 | drm/i915/dp: Limit the compressed bpp for pass-through to the HDMI sinkdrivers/ | +23 | 0 replies | |
| 29/29 | drm/i915/dp: Accept DSC 1.2a pass-through modes in the PCON mode checkdrivers/ | +22 | 0 replies |
Reviews trailers per patch
7 of 29 patches have a Reviewed-by or Acked-by.
| Patch | Suraj Kandpal |
|---|---|
| 1/29 | R-b |
| 2/29 | R-b |
| 3/29 | R-b |
| 4/29 | R-b |
| 5/29 | R-b |
| 6/29 | R-b |
| 7/29 | R-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.
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