Skip to content

Handle BPC for HDMI2.1 PCON without DSC1.2 sink and other fixes

Ankit Nautiyal intel-gfx 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14drm/i915/display: Add new member to configure PCON color conversiondrivers/gpu/drm/i915/display/icl_dsi.c drivers/gpu/drm/i915/display/intel_crt.c drivers/gpu/drm/i915/display/intel_crtc_state_dump.c +10 more+62 -250 replies
2/14drm/i915/display: Add new member in intel_dp to store ycbcr420 passthrough capdrivers/gpu/drm/i915/display/intel_display_types.h+1 -00 replies
3/14drm/i915/dp: Add Scaler constraint for YCbCr420 outputdrivers/gpu/drm/i915/display/intel_dp.c+37 -40 replies
4/14drm/i915/dp: Replace intel_dp.dfp members with the new crtc_state sink_formatdrivers/gpu/drm/i915/display/intel_dp.c+135 -570 replies
5/14drm/i915/dp: Compute output format with/without DSCdrivers/gpu/drm/i915/display/intel_dp.c+61 -230 replies
6/14drm/i915/display: Use sink_format instead of ycbcr420_output flagdrivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_hdmi.c drivers/gpu/drm/i915/display/intel_hdmi.h+44 -440 replies
7/14drm/i915/dp: Rearrange check for illegal mode and comments in mode_validdrivers/gpu/drm/i915/display/intel_dp.c+7 -70 replies
8/14drm/i915/dp: Consider output_format while computing dsc bpp for mode_validdrivers/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 -80 replies
9/14drm/i915/dp: Check if mode can be supported with dsc compressed bppdrivers/gpu/drm/i915/display/intel_dp.c+6 -30 replies
10/14drm/i915/display: Add helper function to check if sink_format is 420drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/display/intel_hdmi.c+11 -50 replies
11/14drm/i915/dp: Avoid DSC with output_format YCBCR420drivers/gpu/drm/i915/display/intel_dp.c+4 -00 replies
12/14drm/i915/dp: Handle BPP where HDMI2.1 DFP doesn't support DSCdrivers/gpu/drm/i915/display/intel_dp.c+58 -30 replies
13/14drm/i915/dp: Fix FRL BW check for HDMI2.1 DFPdrivers/gpu/drm/i915/display/intel_dp.c+45 -190 replies
14/14drm/i915/dp: Add a wrapper to check frl/tmds downstream constraintsdrivers/gpu/drm/i915/display/intel_dp.c+23 -280 replies

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchVille Syrjälä
1/14R-b
2/14
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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

Read the v1 thread

Cover letter [Intel-gfx] [PATCH 00/14] Handle BPC for HDMI2.1 PCON without DSC1.2 sink and other fixes

This series fixes issues faced when an HDMI2.1 sink that does not support DSC is connected via HDMI2.1PCON. It also includes other minor HDMI2.1 PCON fixes/refactoring.

Patch 1-2 Have minor fixes/cleanups.
Patch 3-6 Pull the decision making to use DFP conversion capabilities for every mode during compute config, instead of having that decision during DP initializing phase.
Patch 7-8 Calculate the max BPC that can be sufficient with either RGB or YCbcr420 format for the maximum FRL rate supported.

Rev2: Split the refactoring of DFP RG->YCBCR conversion into smaller patches, as suggested by Jani N.
Also dropped the unnecessary helper for DSC1.2 support for HDMI2.1 DFP.

Rev3: As suggested by Ville, added new member sink_format to store the final format that the sink will be using, which might be different than the output format, and thus might need color/format conversion performed by the PCON.

Rev4: Fix typo in switch case as, reported by kernel test bot.

Rev5: Corrected order of setting sink_format and output_format. (Ville) Avoided the flag ycbcr420_output and used the sink_format to facilitate 4:2:2 support at a later stage. (Ville)

Rev6: Added missing changes for sdvo. (Ville) Added check for scaler and DSC constraints with YCbCr420.

Rev7: Split change to add scaler constraint in separate patch, and rebased.

Rev8: Rebased. Fixed check for mode rate with dsc in modevalid. Fixed scaler constraint as per display version.

Rev9: Rebased.

Ankit Nautiyal (14):
drm/i915/display: Add new member to configure PCON color conversion drm/i915/display: Add new member in intel_dp to store ycbcr420
passthrough cap
drm/i915/dp: Add Scaler constraint for YCbCr420 output drm/i915/dp: Replace intel_dp.dfp members with the new crtc_state
sink_format
drm/i915/dp: Compute output format with/without DSC drm/i915/display: Use sink_format instead of ycbcr420_output flag drm/i915/dp: Rearrange check for illegal mode and comments in
mode_valid
drm/i915/dp: Consider output_format while computing dsc bpp for
mode_valid
drm/i915/dp: Check if mode can be supported with dsc compressed bpp drm/i915/display: Add helper function to check if sink_format is 420 drm/i915/dp: Avoid DSC with output_format YCBCR420 drm/i915/dp: Handle BPP where HDMI2.1 DFP doesn't support DSC drm/i915/dp: Fix FRL BW check for HDMI2.1 DFP drm/i915/dp: Add a wrapper to check frl/tmds downstream constraints

 drivers/gpu/drm/i915/display/icl_dsi.c        |   1 +
 drivers/gpu/drm/i915/display/intel_crt.c      |   1 +
 .../drm/i915/display/intel_crtc_state_dump.c  |   5 +-
 drivers/gpu/drm/i915/display/intel_display.c  |   5 +
 .../drm/i915/display/intel_display_types.h    |  18 +-
 drivers/gpu/drm/i915/display/intel_dp.c       | 535 +++++++++++++-----
 drivers/gpu/drm/i915/display/intel_dp.h       |   4 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |   3 +-
 drivers/gpu/drm/i915/display/intel_dvo.c      |   1 +
 drivers/gpu/drm/i915/display/intel_hdmi.c     |  74 +--
 drivers/gpu/drm/i915/display/intel_hdmi.h     |   5 +-
 drivers/gpu/drm/i915/display/intel_lvds.c     |   1 +
 drivers/gpu/drm/i915/display/intel_sdvo.c     |   1 +
 drivers/gpu/drm/i915/display/intel_tv.c       |   1 +
 drivers/gpu/drm/i915/display/vlv_dsi.c        |   1 +
 15 files changed, 475 insertions(+), 181 deletions(-)
Signature · 1 line
2.25.1