Skip to content

drm/i915/{dp, hdmi}: Restructure DP/HDMI sink format handling

Ville Syrjala intel-gfx intel-xe 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 4 repliesIn review
  2. v19 patches 15 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/i915/hdmi: Add missing intel_pfit_mode_valid() for 4:2:0 also modesdrivers/gpu/drm/i915/display/intel_hdmi.c+5 -00 replies
2/9drm/i915/hdmi: Restructure the sink/output format selectiondrivers/gpu/drm/i915/display/intel_hdmi.c+70 -420 replies
3/9drm/i915/hdmi: Restructure 4:2:0 vs. 4:4:4 mode validationdrivers/gpu/drm/i915/display/intel_hdmi.c+32 -280 replies
4/9drm/i915/dp: Restructure the sink/output format selectiondrivers/gpu/drm/i915/display/intel_dp.c+69 -291 reply
5/9drm/i915/dp: Validate "4:2:0 also" modes twicedrivers/gpu/drm/i915/display/intel_dp.c+78 -731 reply
6/9drm/i915/dp: Require a HDMI sink for YCbCr output via PCONdrivers/gpu/drm/i915/display/intel_dp.c+5 -00 replies
7/9drm/i915/dp: Validate sink format in .mode_valid()drivers/gpu/drm/i915/display/intel_dp.c+4 -00 replies
8/9drm/i915/hdmi: Make the RGB fallback for "4:2:0 only" modes the last resortdrivers/gpu/drm/i915/display/intel_hdmi.c+1 -10 replies
9/9drm/i915/dp: Make the RGB fallback for "4:2:0 only" modes the last resortdrivers/gpu/drm/i915/display/intel_dp.c+1 -10 replies

Reviews trailers per patch

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

PatchAnkit NautiyalNicolas Frattaroli
SeriesT-b
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/9] drm/i915/{dp, hdmi}: Restructure DP/HDMI sink format handling

From: Ville Syrjälä <[email protected]>

Restructure the DP/HDMI sink format handling. I got inspired to do this
by https://lore.kernel.org/dri-devel/[email protected]/

I envision that after this the aforementioned patch could just become something like this:

1. s/intel_foo_compute_formats/intel_foo_compute_formats_auto/
2. Add a new intel_foo_compute_formats()

   intel_foo_compute_formats()
   {
        switch (color_format) {
        case YCBCR420:
                return intel_foo_compute_output_format(YCBCR420);
        case RGB:
                return intel_foo_compute_output_format(RGB);
        case AUTO:
                return intel_foo_compute_formats_auto();
        }
   }

v2: A few more updates to the DP mode validation

Cc Ankit Nautiyal <[email protected]>
Cc Nicolas Frattaroli <[email protected]>

Ville Syrjälä (9):
drm/i915/hdmi: Add missing intel_pfit_mode_valid() for 4:2:0 also
modes
drm/i915/hdmi: Restructure the sink/output format selection drm/i915/hdmi: Restructure 4:2:0 vs. 4:4:4 mode validation drm/i915/dp: Restructure the sink/output format selection drm/i915/dp: Validate "4:2:0 also" modes twice drm/i915/dp: Require a HDMI sink for YCbCr output via PCON drm/i915/dp: Validate sink format in .mode_valid() drm/i915/hdmi: Make the RGB fallback for "4:2:0 only" modes the last
resort
drm/i915/dp: Make the RGB fallback for "4:2:0 only" modes the last
resort

 drivers/gpu/drm/i915/display/intel_dp.c   | 250 +++++++++++++---------
 drivers/gpu/drm/i915/display/intel_hdmi.c | 167 +++++++++------
 2 files changed, 254 insertions(+), 163 deletions(-)
Signature · 1 line
2.52.0