Sorry for the late v2, work kept me away from this longer than
planned.

HDMI 2.1 sinks behind a DP to HDMI 2.1 PCON currently train the FRL
link below what the hardware supports, because the sink's DSC max FRL
rate caps the trained FRL rate even when the PCON has no DSC encoder
and thus never produces compressed transport.
Patch 2 applies the sink's DSC max FRL rate only when the PCON
actually has a DSC 1.2 encoder (the gate intel_dp_pcon_dsc_configure()
already uses).
On a Panther Lake NUC (xe) with a Synaptics VMM7100 PCON and an LG
OLED G4 (Max_FRL_Rate 48 Gbps, DSC_Max_FRL_Rate 24 Gbps) this trains
the FRL link at 48 instead of 24 Gbps, matching Windows/macOS on the
same hardware.

Patch 1 makes the link config prefer DSC over a dithered 6 bpc
uncompressed output for HDMI sinks.
Modes which fit an FRL link uncompressed only with 6 bpc (e.g. 4k120
on a 4 lane HBR3 link) would otherwise select an RGB 6 bpc output,
which the tested Synaptics PCONs cannot display at such pixel clocks
(black screen), and which HDMI cannot carry anyway.

v1 patch 3 ("drm/i915/dp: Check FRL bandwidth limits in the HDMI bpc
computation") is dropped from this series.
Ankit's reworked PCON series covers that part of the problem, and
testing on this hardware was offered for it.

One more thing: patch 1 touches intel_dp_compute_config_limits(),
where the first part of Imre's link caps rework has landed in the
meantime, with the rest of the rework still in flight.
I rebased on top of it and see no conflict, but I don't want to get
in the way of that rework.
So it's up to you whether to take this now or let it wait for Imre's
changes and rebase it on top, either is fine with me.
Sorry Imre if this crosses paths with your series.

Changes in v2:
- Patch 1: apply the limit only to HDMI sinks behind a DFP
  (intel_dp_has_hdmi_sink()), leaving DP and eDP link config policy
  untouched, subject adjusted accordingly. (Ankit)
- Patch 2: no code changes, picked up Ankit's Reviewed-by.
- Dropped v1 patch 3 in favor of Ankit's reworked PCON series.

v1: 
https://lore.kernel.org/r/[email protected]

Alexander Kaplan (2):
  drm/i915/dp: Prefer DSC over 6 bpc uncompressed output for HDMI sinks
  drm/i915/dp: Ignore the sink's DSC max FRL rate without a PCON DSC
    encoder

 drivers/gpu/drm/i915/display/intel_dp.c | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

--
2.54.0

Reply via email to