Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 00/15] DP-HDMI PCON DSC fixes
@ 2026-12-04  8:57 Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
                   ` (16 more replies)
  0 siblings, 17 replies; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

The first part of this series, which reworks the HDMI DSC helpers and
fixes the FRL/TMDS downstream bandwidth checks of a DP->HDMI 2.1 PCON,
is already merged. This is the rest of it, the PCON DSC operations.

A DP->HDMI 2.1 PCON that gets a compressed DP stream either decodes it,
if the HDMI link doesn't need DSC, or decodes it and encodes it again
for the HDMI sink, which is also how a DSC 1.1 stream is converted to
the DSC 1.2 that HDMI 2.1 needs. The driver doesn't pick the operation,
doesn't program the PCON DSC encoder per stream, and doesn't check that
the compressed bpp fits the FRL configuration.

The DP spec has three DSC operations for a PCON: pass-through, decoding,
and decoding with re-encoding. The re-encoding is defined only for a
DSC v1.1 source, and a DSC v1.2a (or higher) stream is meant to be passed
through. This series doesn't handle the pass-through: with the external
DP-HDMI 2.1 PCON dongle I tested (BizLink) it doesn't come up, and the
PCON drops the HPD and resets itself some seconds after the enable.
Decoding and re-encoding with the same dongle works, so the series
re-encodes a DSC 1.2a stream too, which is outside what the spec defines.
The pass-through can be added later, for the PCONs on which it works.

Tested with that external dongle and a 4k 240Hz HDMI 2.1 sink on PTL:
4k 60, 120 and 165Hz (decode), and 200 and 240Hz (decode and re-encode)
come up.

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)

Rev5:
 - Rebase. The first part of the series is merged.
 - Drop the pass-through patches: pass-through of a DSC 1.2a stream
   doesn't work with the external PCON dongle I tested, decode and
   re-encode does, so use that for a DSC 1.2a stream too.
 - Add a patch to forget the PCON FRL training state on a long HPD.
 - Keep the FRL 16b/18b overhead in the uncompressed FRL check: without
   it 4k 165Hz at 10bpc and 4k 200Hz at 8bpc are accepted and don't
   come up.
 - Add a helper for the FRL payload bandwidth, used for the compressed
   bpp clamp and the check.
 - Reword the commit messages: a DSC 1.1 stream is converted to DSC 1.2,
   as HDMI 2.1 supports DSC 1.2 and beyond only.

Ankit Nautiyal (15):
  drm/i915/dp: Forget the PCON FRL training state on a long HPD
  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 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: Pick the bpc for a PCON DSC stream
  drm/i915/dp: Allow PCON DSC modes through the FRL bw 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  |  16 +
 drivers/gpu/drm/i915/display/intel_ddi.c      |   4 +-
 .../drm/i915/display/intel_display_types.h    |  29 ++
 drivers/gpu/drm/i915/display/intel_dp.c       | 383 ++++++++++++------
 drivers/gpu/drm/i915/display/intel_dp.h       |   5 +-
 .../drm/i915/display/intel_dp_link_training.c |   5 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     |  23 +-
 drivers/gpu/drm/i915/display/intel_hdmi.h     |   3 +-
 include/drm/display/drm_dp_helper.h           |   1 +
 11 files changed, 370 insertions(+), 124 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:45   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead Ankit Nautiyal
                   ` (15 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

Currently, the intel_dp->frl.is_trained is cleared only when the HDMI link
status IRQ reports the link down. A sink disconnect, or a PCON that resets
itself and drops the HPD, doesn't clear it. As a result, the FRL training
is skipped at the next enable although the HDMI link is gone.

Clear the flag on a long HPD. The next enable then reads the state of
the PCON, and trains the link if it is not already in FRL mode.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 0c7c57d9f3ab..179e0d8b89c2 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -7140,6 +7140,13 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd)
 		intel_dp->reset_link_params = true;
 		intel_dp_invalidate_source_oui(intel_dp);
 
+		/*
+		 * The HDMI link of a PCON is lost with the sink, forget its
+		 * trained state, so that the FRL training is checked again at
+		 * the next enable.
+		 */
+		intel_dp->frl.is_trained = false;
+
 		return IRQ_NONE;
 	}
 
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:36   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 03/15] drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp Ankit Nautiyal
                   ` (14 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

HDMI 2.1 FRL uses 16b/18b line coding, so only 16/18 of the raw FRL
rate carries payload. The FRL bandwidth check compared the required
bandwidth against the raw rate of the PCON and the sink, and so
accepted modes that cannot be carried.

Use the payload bandwidth for the check. The requirement is still
estimated from the full pixel clock including blanking, so it remains
an upper bound.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 179e0d8b89c2..c0cf0938a7b6 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1206,8 +1206,11 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
 	max_frl_bw = min(intel_dp->dfp.pcon_max_frl_bw,
 			 intel_dp_hdmi_sink_max_frl(intel_dp));
 
-	/* converting bw from Gbps to Kbps*/
-	max_frl_bw = max_frl_bw * 1000000;
+	/*
+	 * Convert the rate from Gbps to kbps. FRL uses 16b/18b line coding, so
+	 * only 16/18 of the raw rate carries payload.
+	 */
+	max_frl_bw = max_frl_bw * 1000000 * 16 / 18;
 
 	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
 	if (target_bw > max_frl_bw)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 03/15] drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state Ankit Nautiyal
                   ` (13 subsequent siblings)
  16 siblings, 0 replies; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

The max bpp from intel_hdmi_dsc_get_min_max_bpp() is at most the
uncompressed link bpp, so when picking the compressed bpp we reduce the
target to keep it below the uncompressed link bpp. Doing this
unconditionally makes the search skip both the max and min boundaries,
returning 0 when max_dsc_bpp equals min_dsc_bpp.

That case isn't hit as of now, but an upcoming FRL link-bandwidth clamp
can make max_dsc_bpp == min_dsc_bpp.

Reduce the target only when it equals the uncompressed link bpp, start
at max_dsc_bpp otherwise, and iterate down to and including min_dsc_bpp.

v2: Use link bpp, reuse intel_dp_output_format_link_bpp_x16(). (Suraj)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_hdmi.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c
index 7c44fb03f6c9..b4b39f5edfae 100644
--- a/drivers/gpu/drm/i915/display/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/display/intel_hdmi.c
@@ -3402,13 +3402,15 @@ intel_hdmi_dsc_bpp_fits_chunk_bytes(int bpp, int num_slices, int slice_width,
 }
 
 static int
-get_dsc_compressed_bpp(int num_slices, int slice_width, int hdmi_max_chunk_bytes,
+get_dsc_compressed_bpp(enum intel_output_format output_format, int bpc,
+		       int num_slices, int slice_width, int hdmi_max_chunk_bytes,
 		       int src_fractional_bpp, int min_dsc_bpp, int max_dsc_bpp)
 {
 	bool bpp_found = false;
 	int bpp_decrement_x16;
 	int bpp_target;
 	int bpp_target_x16;
+	int link_bpp_x16 = intel_dp_output_format_link_bpp_x16(output_format, 3 * bpc);
 
 	/*
 	 * The Sink has a limit of compressed data in bytes for a scanline,
@@ -3433,9 +3435,13 @@ get_dsc_compressed_bpp(int num_slices, int slice_width, int hdmi_max_chunk_bytes
 	if (!src_fractional_bpp)
 		src_fractional_bpp = 1;
 	bpp_decrement_x16 = DIV_ROUND_UP(16, src_fractional_bpp);
-	bpp_target_x16 = (bpp_target * 16) - bpp_decrement_x16;
+	bpp_target_x16 = bpp_target * 16;
 
-	while (bpp_target_x16 > (min_dsc_bpp * 16)) {
+	/* The compressed bpp can't be the same as the uncompressed link bpp */
+	if (bpp_target_x16 == link_bpp_x16)
+		bpp_target_x16 -= bpp_decrement_x16;
+
+	while (bpp_target_x16 >= (min_dsc_bpp * 16)) {
 		int bpp;
 
 		bpp = DIV_ROUND_UP(bpp_target_x16, 16);
@@ -3477,7 +3483,8 @@ intel_hdmi_dsc_get_bpp(int src_fractional_bpp, int slice_width, int num_slices,
 	intel_hdmi_dsc_get_min_max_bpp(output_format, bpc, hdmi_all_bpp,
 				       &min_dsc_bpp, &max_dsc_bpp);
 
-	dsc_bpp_x16 = get_dsc_compressed_bpp(num_slices, slice_width,
+	dsc_bpp_x16 = get_dsc_compressed_bpp(output_format, bpc,
+					     num_slices, slice_width,
 					     hdmi_max_chunk_bytes,
 					     src_fractional_bpp,
 					     min_dsc_bpp, max_dsc_bpp);
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (2 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 03/15] drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:43   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 05/15] drm/dp: Add a helper to disable the PCON DSC encoder Ankit Nautiyal
                   ` (12 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

A DP->HDMI 2.1 PCON handles DSC in one of three ways:
 - it decodes the stream,
 - passes it through to the HDMI sink, or
 - decodes it and encodes it again, if it has a DSC encoder.

Add the state to hold that decision, along with the PCON DSC encoder
PPS override parameters, so that they can be computed during
compute_config and only programmed at enable time.

The pass-through is not handled yet, so for now the state is none, decode,
or decode and re-encode.

The state is not read out since it does not map to any register, and
reading back the DPCD is unreliable. Reset it for every link
configuration attempt and print it in the crtc state dump.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 .../drm/i915/display/intel_crtc_state_dump.c  | 15 +++++++++++
 .../drm/i915/display/intel_display_types.h    | 27 +++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_dp.c       |  1 +
 3 files changed, 43 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c b/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
index 57e64dda79c1..4e9ff59a8d5c 100644
--- a/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
+++ b/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
@@ -73,6 +73,12 @@ static const char * const output_type_str[] = {
 
 #undef OUTPUT_TYPE
 
+static const char * const pcon_dsc_op_str[] = {
+	[INTEL_PCON_NO_DSC] = "none",
+	[INTEL_PCON_DSC_DECODE] = "decode",
+	[INTEL_PCON_DSC_DECODE_ENCODE] = "decode+encode",
+};
+
 static void snprintf_output_types(char *buf, size_t len,
 				  unsigned int output_types)
 {
@@ -243,6 +249,15 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
 			   str_enabled_disabled(pipe_config->fec_enable),
 			   str_enabled_disabled(pipe_config->enhanced_framing));
 
+		drm_printf(&p, "pcon: dsc op %s\n",
+			   pcon_dsc_op_str[pipe_config->pcon_config.dsc_op]);
+		if (pipe_config->pcon_config.dsc_op == INTEL_PCON_DSC_DECODE_ENCODE)
+			drm_printf(&p,
+				   "pcon dsc encoder: slice height: %u, slice width: %u, bpp_x16: %u\n",
+				   pipe_config->pcon_config.dsc_enc.slice_height,
+				   pipe_config->pcon_config.dsc_enc.slice_width,
+				   pipe_config->pcon_config.dsc_enc.bpp_x16);
+
 		drm_printf(&p, "sdp split: %s\n",
 			   str_enabled_disabled(pipe_config->sdp_split_enable));
 
diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index 514ca067e139..0103ac569727 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -968,6 +968,23 @@ enum intel_output_format {
 	INTEL_OUTPUT_FORMAT_YCBCR444,
 };
 
+enum intel_pcon_dsc_op {
+	/* The PCON does not take part in DSC, also used when there is no HDMI 2.1 PCON */
+	INTEL_PCON_NO_DSC,
+	/* PCON decodes the DSC stream from the DP link, HDMI link is uncompressed */
+	INTEL_PCON_DSC_DECODE,
+	/* PCON decodes the DP stream and encodes DSC 1.2 for the HDMI sink */
+	INTEL_PCON_DSC_DECODE_ENCODE,
+};
+
+/* PCON DSC encoder PPS override parameters */
+struct intel_pcon_dsc_enc_config {
+	u16 slice_height;
+	u16 slice_width;
+	/* Compressed Bpp in U6.4 format */
+	u16 bpp_x16;
+};
+
 /* Used by dp and fdi links */
 struct intel_link_m_n {
 	u32 tu;
@@ -1370,6 +1387,16 @@ struct intel_crtc_state {
 		struct drm_dsc_config config;
 	} dsc;
 
+	/*
+	 * Configuration of a DP->HDMI PCON. Only used for state computation,
+	 * not read out from the HW.
+	 */
+	struct {
+		enum intel_pcon_dsc_op dsc_op;
+		/* Only valid for INTEL_PCON_DSC_DECODE_ENCODE */
+		struct intel_pcon_dsc_enc_config dsc_enc;
+	} pcon_config;
+
 	/* DP tunnel used for BW allocation. */
 	struct drm_dp_tunnel_ref dp_tunnel_ref;
 
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index c0cf0938a7b6..2d5f7754eda0 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2514,6 +2514,7 @@ void intel_dp_dsc_reset_config(struct intel_crtc_state *crtc_state)
 
 	memset(&crtc_state->dsc.slice_config, 0, sizeof(crtc_state->dsc.slice_config));
 	memset(&crtc_state->dsc.config, 0, sizeof(crtc_state->dsc.config));
+	memset(&crtc_state->pcon_config, 0, sizeof(crtc_state->pcon_config));
 }
 
 int intel_dp_dsc_compute_config(struct intel_dp *intel_dp,
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 05/15] drm/dp: Add a helper to disable the PCON DSC encoder
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (3 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation Ankit Nautiyal
                   ` (11 subsequent siblings)
  16 siblings, 0 replies; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

The DSC encoder of a PCON is enabled through DPCD 3052h[1], together
with an optional PPS override in DPCD 3052h[3:2]. The existing helpers
only ever set these bits.

Add a helper to clear both, so that a driver can switch the encoder off
when the PCON does not need to encode the stream.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/display/drm_dp_helper.c | 23 +++++++++++++++++++++++
 include/drm/display/drm_dp_helper.h     |  1 +
 2 files changed, 24 insertions(+)

diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
index 2b6ce05556b0..e810addf52bc 100644
--- a/drivers/gpu/drm/display/drm_dp_helper.c
+++ b/drivers/gpu/drm/display/drm_dp_helper.c
@@ -4161,6 +4161,29 @@ int drm_dp_pcon_pps_override_param(struct drm_dp_aux *aux, u8 pps_param[6])
 }
 EXPORT_SYMBOL(drm_dp_pcon_pps_override_param);
 
+/**
+ * drm_dp_pcon_dsc_enc_disable() - Disable the DSC encoder of a PCON
+ * @aux: DisplayPort AUX channel
+ *
+ * Disable the DSC encoder of a PCON, along with the encoder PPS override.
+ *
+ * Returns 0 on success, else returns negative error code.
+ */
+int drm_dp_pcon_dsc_enc_disable(struct drm_dp_aux *aux)
+{
+	u8 buf;
+	int ret;
+
+	ret = drm_dp_dpcd_read_byte(aux, DP_PROTOCOL_CONVERTER_CONTROL_2, &buf);
+	if (ret < 0)
+		return ret;
+
+	buf &= ~(DP_PCON_ENABLE_DSC_ENCODER | DP_PCON_ENCODER_PPS_OVERRIDE_MASK);
+
+	return drm_dp_dpcd_write_byte(aux, DP_PROTOCOL_CONVERTER_CONTROL_2, buf);
+}
+EXPORT_SYMBOL(drm_dp_pcon_dsc_enc_disable);
+
 /*
  * drm_dp_pcon_convert_rgb_to_ycbcr() - Configure the PCon to convert RGB to Ycbcr
  * @aux: displayPort AUX channel
diff --git a/include/drm/display/drm_dp_helper.h b/include/drm/display/drm_dp_helper.h
index f497c9f3a550..32c95f657631 100644
--- a/include/drm/display/drm_dp_helper.h
+++ b/include/drm/display/drm_dp_helper.h
@@ -1019,6 +1019,7 @@ int drm_dp_pcon_dsc_bpp_incr(const u8 pcon_dsc_dpcd[DP_PCON_DSC_ENCODER_CAP_SIZE
 int drm_dp_pcon_pps_default(struct drm_dp_aux *aux);
 int drm_dp_pcon_pps_override_buf(struct drm_dp_aux *aux, u8 pps_buf[128]);
 int drm_dp_pcon_pps_override_param(struct drm_dp_aux *aux, u8 pps_param[6]);
+int drm_dp_pcon_dsc_enc_disable(struct drm_dp_aux *aux);
 bool drm_dp_downstream_rgb_to_ycbcr_conversion(const u8 dpcd[DP_RECEIVER_CAP_SIZE],
 					       const u8 port_cap[4], u8 color_spc);
 int drm_dp_pcon_convert_rgb_to_ycbcr(struct drm_dp_aux *aux, u8 color_spc);
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (4 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 05/15] drm/dp: Add a helper to disable the PCON DSC encoder Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:38   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed Ankit Nautiyal
                   ` (10 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

When the DP stream is compressed and the HDMI link of an HDMI 2.1 PCON
carries it uncompressed, the PCON decodes the DSC stream. Record this in
the PCON DSC state once the DP link configuration is final.

The operations for HDMI links that need DSC are added once such modes
can be selected.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 2d5f7754eda0..999faf29be45 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -129,6 +129,7 @@ bool intel_dp_is_edp(struct intel_dp *intel_dp)
 
 static void intel_dp_unset_edid(struct intel_dp *intel_dp);
 static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp);
+static bool intel_dp_is_hdmi_2_1_sink(struct intel_dp *intel_dp);
 
 /* Is link rate UHBR and thus 128b/132b? */
 bool intel_dp_is_uhbr(const struct intel_crtc_state *crtc_state)
@@ -3013,6 +3014,19 @@ bool intel_dp_joiner_needs_dsc(struct intel_display *display,
 		num_joined_pipes == 4;
 }
 
+static int
+intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
+			     struct intel_crtc_state *crtc_state)
+{
+	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
+		return 0;
+
+	if (crtc_state->dsc.compression_enable)
+		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
+
+	return 0;
+}
+
 static int
 intel_dp_compute_link_for_joined_pipes(struct intel_encoder *encoder,
 				       struct intel_crtc_state *pipe_config,
@@ -3098,6 +3112,10 @@ intel_dp_compute_link_for_joined_pipes(struct intel_encoder *encoder,
 			return -EINVAL;
 	}
 
+	ret = intel_dp_pcon_compute_config(intel_dp, pipe_config);
+	if (ret)
+		return ret;
+
 	drm_dbg_kms(display->drm,
 		    "DP lane count %d clock %d bpp input %d compressed " FXP_Q4_FMT " HDR %s link rate required %d available %d\n",
 		    pipe_config->lane_count, pipe_config->port_clock,
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (5 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:38   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth Ankit Nautiyal
                   ` (9 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

The PCON DSC encoder is only used when the PCON re-encodes the DP stream
as DSC 1.2 for the HDMI sink. Otherwise the PCON either decodes the
stream, or there is no DSC at all.

Currently the encoder is enabled with PPS override parameters whenever
the PCON and the HDMI sink support DSC 1.2, even for streams that do not
need it, and it is never disabled again.

Program the encoder only for the decode and re-encode operation, and
explicitly disable it for all the other operations.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 999faf29be45..a469766c0a6b 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -4610,6 +4610,13 @@ intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
 	    !hdmi_is_dsc_1_2)
 		return;
 
+	if (crtc_state->pcon_config.dsc_op != INTEL_PCON_DSC_DECODE_ENCODE) {
+		ret = drm_dp_pcon_dsc_enc_disable(&intel_dp->aux);
+		if (ret < 0)
+			drm_dbg_kms(display->drm, "Failed to disable pcon DSC encoder\n");
+		return;
+	}
+
 	slice_height = intel_dp_pcon_dsc_enc_slice_height(crtc_state);
 	if (!slice_height)
 		return;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (6 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:33   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 09/15] drm/i915/dp: Add a helper for the FRL payload bandwidth Ankit Nautiyal
                   ` (8 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

While configuring the PCON DSC encoder, intel_hdmi_dsc_get_bpp() picks
the highest compressed bpp that fits the sink's per-scanline chunk-bytes
limit. However it does not account for the FRL link bandwidth, so the
selected bpp can end up exceeding what the trained PCON/sink FRL link can
actually carry.

Add a parameter to limit the maximum bpp to what the link can carry. All
callers pass 0 for now, which means no limit.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c   | 2 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c | 8 +++++++-
 drivers/gpu/drm/i915/display/intel_hdmi.h | 3 ++-
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index a469766c0a6b..e84c060e5563 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -4578,7 +4578,7 @@ intel_dp_pcon_dsc_enc_bpp(struct intel_dp *intel_dp,
 
 	return intel_hdmi_dsc_get_bpp(pcon_fractional_bpp, slice_width,
 				      num_slices, output_format, bpc, hdmi_all_bpp,
-				      hdmi_max_chunk_bytes);
+				      hdmi_max_chunk_bytes, 0);
 }
 
 void
diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.c b/drivers/gpu/drm/i915/display/intel_hdmi.c
index b4b39f5edfae..834900b0d11a 100644
--- a/drivers/gpu/drm/i915/display/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/display/intel_hdmi.c
@@ -3469,13 +3469,15 @@ get_dsc_compressed_bpp(enum intel_output_format output_format, int bpc,
  * @bpc: bits per color
  * @hdmi_all_bpp: sink supports decoding of 1/16th bpp setting
  * @hdmi_max_chunk_bytes: max bytes in a line of chunks supported by sink
+ * @max_link_dsc_bpp: max compressed bpp the link bandwidth can carry, or 0 if not limited
  *
  * @return: compressed bits_per_pixel in step of 1/16 of bits_per_pixel
  */
 int
 intel_hdmi_dsc_get_bpp(int src_fractional_bpp, int slice_width, int num_slices,
 		       enum intel_output_format output_format, int bpc,
-		       bool hdmi_all_bpp, int hdmi_max_chunk_bytes)
+		       bool hdmi_all_bpp, int hdmi_max_chunk_bytes,
+		       int max_link_dsc_bpp)
 {
 	int max_dsc_bpp, min_dsc_bpp;
 	int dsc_bpp_x16;
@@ -3483,6 +3485,10 @@ intel_hdmi_dsc_get_bpp(int src_fractional_bpp, int slice_width, int num_slices,
 	intel_hdmi_dsc_get_min_max_bpp(output_format, bpc, hdmi_all_bpp,
 				       &min_dsc_bpp, &max_dsc_bpp);
 
+	/* Limit the bpp to what the link bandwidth can carry */
+	if (max_link_dsc_bpp)
+		max_dsc_bpp = min(max_dsc_bpp, max_link_dsc_bpp);
+
 	dsc_bpp_x16 = get_dsc_compressed_bpp(output_format, bpc,
 					     num_slices, slice_width,
 					     hdmi_max_chunk_bytes,
diff --git a/drivers/gpu/drm/i915/display/intel_hdmi.h b/drivers/gpu/drm/i915/display/intel_hdmi.h
index 375f1b4decfb..acc025ae507c 100644
--- a/drivers/gpu/drm/i915/display/intel_hdmi.h
+++ b/drivers/gpu/drm/i915/display/intel_hdmi.h
@@ -56,7 +56,8 @@ bool intel_hdmi_bpc_possible(const struct intel_crtc_state *crtc_state,
 int intel_hdmi_tmds_clock(int clock, int bpc, enum intel_output_format sink_format);
 int intel_hdmi_dsc_get_bpp(int src_fractional_bpp, int slice_width,
 			   int num_slices, enum intel_output_format output_format,
-			   int bpc, bool hdmi_all_bpp, int hdmi_max_chunk_bytes);
+			   int bpc, bool hdmi_all_bpp, int hdmi_max_chunk_bytes,
+			   int max_link_dsc_bpp);
 void intel_hdmi_dsc_get_min_max_bpp(enum intel_output_format output_format, u8 bpc,
 				    bool hdmi_all_bpp, int *min_dsc_bpp, int *max_dsc_bpp);
 bool intel_hdmi_dsc_bpp_fits_chunk_bytes(int bpp, int num_slices, int slice_width,
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 09/15] drm/i915/dp: Add a helper for the FRL payload bandwidth
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (7 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  8:57 ` [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters Ankit Nautiyal
                   ` (7 subsequent siblings)
  16 siblings, 0 replies; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

The payload bandwidth of the HDMI FRL link is limited by both the PCON
and the HDMI 2.1 sink. Add a helper for it, so that the following
changes can use it as well.

No functional change.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index e84c060e5563..ca218481182f 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1190,6 +1190,18 @@ static int frl_required_bw(int clock, int bpc,
 	return clock * bpc * 3;
 }
 
+/*
+ * Both the PCON and the HDMI 2.1 sink limit the FRL rate. FRL uses 16b/18b
+ * line coding, so only 16/18 of the raw rate carries payload. Returns kbps.
+ */
+static int intel_dp_hdmi_frl_payload_bw(struct intel_dp *intel_dp)
+{
+	int max_frl_rate = min(intel_dp->dfp.pcon_max_frl_bw,
+			       intel_dp_hdmi_sink_max_frl(intel_dp));
+
+	return max_frl_rate * 1000000 * 16 / 18;
+}
+
 static enum drm_mode_status
 intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
 		      int bpc, enum intel_output_format sink_format,
@@ -1204,14 +1216,7 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
 	target_bw = frl_required_bw(target_clock, bpc, sink_format);
 
 	/* check for MAX FRL BW for both PCON and HDMI2.1 sink */
-	max_frl_bw = min(intel_dp->dfp.pcon_max_frl_bw,
-			 intel_dp_hdmi_sink_max_frl(intel_dp));
-
-	/*
-	 * Convert the rate from Gbps to kbps. FRL uses 16b/18b line coding, so
-	 * only 16/18 of the raw rate carries payload.
-	 */
-	max_frl_bw = max_frl_bw * 1000000 * 16 / 18;
+	max_frl_bw = intel_dp_hdmi_frl_payload_bw(intel_dp);
 
 	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
 	if (target_bw > max_frl_bw)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (8 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 09/15] drm/i915/dp: Add a helper for the FRL payload bandwidth Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:52   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work Ankit Nautiyal
                   ` (6 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

When the HDMI link needs DSC, the PCON can only get it from a
compressed DP stream. It decodes that stream and encodes a DSC 1.2
stream for the HDMI sink, which also converts a DSC 1.1 stream, as
HDMI 2.1 supports DSC 1.2 and beyond only.

The encoder parameters are the slice height and width, and the
compressed bpp. Since they describe the stream the HDMI sink receives,
so compute them for the sink format, within the bandwidth of the FRL link.

Currently these are derived at enable time from the stream going out of
the pipe. Instead, derive these during compute config phase and store the
result in the crtc state.

The enable path now only programs the stored values.

Modes that need DSC on the HDMI link are not selectable yet, so there is
no change in behavior.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 196 +++++++++++++-----------
 1 file changed, 107 insertions(+), 89 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index ca218481182f..272837cc6efa 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1232,6 +1232,69 @@ intel_dp_pcon_sink_support_frl(struct intel_dp *intel_dp)
 		intel_dp_hdmi_sink_max_frl(intel_dp);
 }
 
+static bool intel_dp_pcon_can_encode_dsc(struct intel_dp *intel_dp)
+{
+	struct intel_connector *connector = intel_dp->attached_connector;
+
+	return intel_dp_is_hdmi_2_1_sink(intel_dp) &&
+		connector->base.display_info.hdmi.dsc_cap.v_1p2 &&
+		drm_dp_pcon_enc_is_dsc_1_2(intel_dp->pcon_dsc_dpcd);
+}
+
+/*
+ * Compute the PCON DSC encoder parameters for the stream sent to the HDMI
+ * sink, which is in @sink_format. @enc can be NULL to only check feasibility.
+ */
+static bool
+intel_dp_pcon_dsc_enc_compute(struct intel_dp *intel_dp,
+			      const struct drm_display_mode *mode, int pixel_clock,
+			      int bpc, enum intel_output_format sink_format,
+			      struct intel_pcon_dsc_enc_config *enc)
+{
+	struct intel_connector *connector = intel_dp->attached_connector;
+	const struct drm_display_info *info = &connector->base.display_info;
+	int pcon_max_slices = drm_dp_pcon_dsc_max_slices(intel_dp->pcon_dsc_dpcd);
+	int pcon_max_slice_width = drm_dp_pcon_dsc_max_slice_width(intel_dp->pcon_dsc_dpcd);
+	int slice_height, num_slices, slice_width, max_link_dsc_bpp, bpp_x16;
+
+	if (!intel_dp_pcon_can_encode_dsc(intel_dp))
+		return false;
+
+	slice_height = intel_hdmi_dsc_get_slice_height(mode->vdisplay);
+	if (!slice_height)
+		return false;
+
+	num_slices = intel_hdmi_dsc_get_num_slices(mode, pixel_clock, sink_format,
+						   pcon_max_slices, pcon_max_slice_width,
+						   info->hdmi.dsc_cap.max_slices,
+						   info->hdmi.dsc_cap.clk_per_slice);
+	if (!num_slices)
+		return false;
+
+	slice_width = DIV_ROUND_UP(mode->hdisplay, num_slices);
+
+	/* The compressed stream has to fit the FRL link */
+	max_link_dsc_bpp = intel_dp_hdmi_frl_payload_bw(intel_dp) / pixel_clock;
+	if (!max_link_dsc_bpp)
+		return false;
+
+	bpp_x16 = intel_hdmi_dsc_get_bpp(drm_dp_pcon_dsc_bpp_incr(intel_dp->pcon_dsc_dpcd),
+					 slice_width, num_slices, sink_format, bpc,
+					 info->hdmi.dsc_cap.all_bpp,
+					 info->hdmi.dsc_cap.total_chunk_kbytes * 1024,
+					 max_link_dsc_bpp);
+	if (!bpp_x16)
+		return false;
+
+	if (enc) {
+		enc->slice_height = slice_height;
+		enc->slice_width = slice_width;
+		enc->bpp_x16 = bpp_x16;
+	}
+
+	return true;
+}
+
 static enum drm_mode_status
 intel_dp_hdmi_bw_valid(struct intel_dp *intel_dp,
 		       int target_clock, int bpc,
@@ -3021,14 +3084,47 @@ bool intel_dp_joiner_needs_dsc(struct intel_display *display,
 
 static int
 intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
-			     struct intel_crtc_state *crtc_state)
+			     struct intel_crtc_state *crtc_state,
+			     bool respect_downstream_limits)
 {
+	struct intel_display *display = to_intel_display(intel_dp);
+	const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode;
+	int bpc = crtc_state->pipe_bpp / 3;
+
 	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
 		return 0;
 
 	if (crtc_state->dsc.compression_enable)
 		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
 
+	if (!respect_downstream_limits || !intel_dp_pcon_sink_support_frl(intel_dp))
+		return 0;
+
+	if (intel_dp_frl_bw_valid(intel_dp, adjusted_mode->crtc_clock, bpc,
+				  crtc_state->sink_format, true) == MODE_OK)
+		return 0;
+
+	/*
+	 * The HDMI link needs DSC. The PCON can only get it from a compressed DP
+	 * stream.
+	 *
+	 * A DSC 1.1 stream has to be converted to DSC 1.2, as HDMI 2.1
+	 * supports DSC 1.2 and beyond only. The spec has the pass-through for
+	 * a DSC 1.2a stream, which is not handled yet, so the PCON DSC encoder
+	 * is used for it as well.
+	 */
+	if (!crtc_state->dsc.compression_enable ||
+	    !intel_dp_pcon_dsc_enc_compute(intel_dp, adjusted_mode,
+					   adjusted_mode->crtc_clock, bpc,
+					   crtc_state->sink_format,
+					   &crtc_state->pcon_config.dsc_enc)) {
+		drm_dbg_kms(display->drm,
+			    "HDMI link needs DSC, but the PCON can't provide it\n");
+		return -EINVAL;
+	}
+
+	crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE_ENCODE;
+
 	return 0;
 }
 
@@ -3117,7 +3213,8 @@ intel_dp_compute_link_for_joined_pipes(struct intel_encoder *encoder,
 			return -EINVAL;
 	}
 
-	ret = intel_dp_pcon_compute_config(intel_dp, pipe_config);
+	ret = intel_dp_pcon_compute_config(intel_dp, pipe_config,
+					   respect_downstream_limits);
 	if (ret)
 		return ret;
 
@@ -4540,79 +4637,16 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
 	}
 }
 
-static int
-intel_dp_pcon_dsc_enc_slice_height(const struct intel_crtc_state *crtc_state)
-{
-	int vactive = crtc_state->hw.adjusted_mode.vdisplay;
-
-	return intel_hdmi_dsc_get_slice_height(vactive);
-}
-
-static int
-intel_dp_pcon_dsc_enc_slices(struct intel_dp *intel_dp,
-			     const struct intel_crtc_state *crtc_state)
-{
-	struct intel_connector *connector = intel_dp->attached_connector;
-	const struct drm_display_info *info = &connector->base.display_info;
-	int hdmi_throughput = info->hdmi.dsc_cap.clk_per_slice;
-	int hdmi_max_slices = info->hdmi.dsc_cap.max_slices;
-	int pcon_max_slices = drm_dp_pcon_dsc_max_slices(intel_dp->pcon_dsc_dpcd);
-	int pcon_max_slice_width = drm_dp_pcon_dsc_max_slice_width(intel_dp->pcon_dsc_dpcd);
-
-	return intel_hdmi_dsc_get_num_slices(&crtc_state->hw.adjusted_mode,
-					     crtc_state->hw.adjusted_mode.crtc_clock,
-					     crtc_state->output_format,
-					     pcon_max_slices,
-					     pcon_max_slice_width,
-					     hdmi_max_slices, hdmi_throughput);
-}
-
-static int
-intel_dp_pcon_dsc_enc_bpp(struct intel_dp *intel_dp,
-			  const struct intel_crtc_state *crtc_state,
-			  int num_slices, int slice_width)
-{
-	struct intel_connector *connector = intel_dp->attached_connector;
-	const struct drm_display_info *info = &connector->base.display_info;
-	int output_format = crtc_state->output_format;
-	bool hdmi_all_bpp = info->hdmi.dsc_cap.all_bpp;
-	int pcon_fractional_bpp = drm_dp_pcon_dsc_bpp_incr(intel_dp->pcon_dsc_dpcd);
-	int hdmi_max_chunk_bytes =
-		info->hdmi.dsc_cap.total_chunk_kbytes * 1024;
-	int bpc = crtc_state->pipe_bpp / 3;
-
-	return intel_hdmi_dsc_get_bpp(pcon_fractional_bpp, slice_width,
-				      num_slices, output_format, bpc, hdmi_all_bpp,
-				      hdmi_max_chunk_bytes, 0);
-}
-
 void
 intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
 			    const struct intel_crtc_state *crtc_state)
 {
 	struct intel_display *display = to_intel_display(intel_dp);
-	struct intel_connector *connector = intel_dp->attached_connector;
-	const struct drm_display_info *info;
+	const struct intel_pcon_dsc_enc_config *enc = &crtc_state->pcon_config.dsc_enc;
 	u8 pps_param[6];
-	int slice_height;
-	int slice_width;
-	int num_slices;
-	int bits_per_pixel;
 	int ret;
-	bool hdmi_is_dsc_1_2;
-
-	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
-		return;
-
-	if (!connector)
-		return;
 
-	info = &connector->base.display_info;
-
-	hdmi_is_dsc_1_2 = info->hdmi.dsc_cap.v_1p2;
-
-	if (!drm_dp_pcon_enc_is_dsc_1_2(intel_dp->pcon_dsc_dpcd) ||
-	    !hdmi_is_dsc_1_2)
+	if (!intel_dp_pcon_can_encode_dsc(intel_dp))
 		return;
 
 	if (crtc_state->pcon_config.dsc_op != INTEL_PCON_DSC_DECODE_ENCODE) {
@@ -4622,28 +4656,12 @@ intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
 		return;
 	}
 
-	slice_height = intel_dp_pcon_dsc_enc_slice_height(crtc_state);
-	if (!slice_height)
-		return;
-
-	num_slices = intel_dp_pcon_dsc_enc_slices(intel_dp, crtc_state);
-	if (!num_slices)
-		return;
-
-	slice_width = DIV_ROUND_UP(crtc_state->hw.adjusted_mode.hdisplay,
-				   num_slices);
-
-	bits_per_pixel = intel_dp_pcon_dsc_enc_bpp(intel_dp, crtc_state,
-						   num_slices, slice_width);
-	if (!bits_per_pixel)
-		return;
-
-	pps_param[0] = slice_height & 0xFF;
-	pps_param[1] = slice_height >> 8;
-	pps_param[2] = slice_width & 0xFF;
-	pps_param[3] = slice_width >> 8;
-	pps_param[4] = bits_per_pixel & 0xFF;
-	pps_param[5] = (bits_per_pixel >> 8) & 0x3;
+	pps_param[0] = enc->slice_height & 0xFF;
+	pps_param[1] = enc->slice_height >> 8;
+	pps_param[2] = enc->slice_width & 0xFF;
+	pps_param[3] = enc->slice_width >> 8;
+	pps_param[4] = enc->bpp_x16 & 0xFF;
+	pps_param[5] = (enc->bpp_x16 >> 8) & 0x3;
 
 	ret = drm_dp_pcon_pps_override_param(&intel_dp->aux, pps_param);
 	if (ret < 0)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (9 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:52   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state Ankit Nautiyal
                   ` (5 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

When the HDMI link of a PCON goes down while the stream is active, the
HDMI link status change handler restarts the FRL training, or falls back
to TMDS mode, directly from the short pulse handling. That runs without
any modeset lock, so it can race with a modeset that trains the link as
well, and it has no access to the state of the active stream.

Queue the link check work instead, as it is done for the DP link
retraining, and restart the FRL training there, with the modeset locks
held and only if a stream is active. The work restarts the training only
if the FRL link is not trained and the HDMI link is not active, so it
does nothing after a fallback to TMDS mode.

This allows to use the state of the active stream for the training in
the following changes.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c       | 43 ++++++++++++++++++-
 drivers/gpu/drm/i915/display/intel_dp.h       |  2 +
 .../drm/i915/display/intel_dp_link_training.c |  5 ++-
 3 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 272837cc6efa..2e92e4898ee6 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -4637,6 +4637,42 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
 	}
 }
 
+/*
+ * Restart FRL training after the HDMI link went down while the stream is
+ * active, or fall back to TMDS mode.
+ */
+int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
+			      struct drm_modeset_acquire_ctx *ctx)
+{
+	struct intel_display *display = to_intel_display(encoder);
+	struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
+	u8 pipe_mask;
+	int ret;
+
+	if (!(intel_dp->downstream_ports[2] & DP_PCON_SOURCE_CTL_MODE) ||
+	    !intel_dp_is_hdmi_2_1_sink(intel_dp) ||
+	    intel_dp->frl.is_trained ||
+	    drm_dp_pcon_hdmi_link_active(&intel_dp->aux))
+		return 0;
+
+	/* The connection mutex may be held already by the link retraining */
+	ret = drm_modeset_lock(&display->drm->mode_config.connection_mutex, ctx);
+	if (ret && ret != -EALREADY)
+		return ret;
+
+	ret = intel_dp_get_active_pipes(intel_dp, ctx, &pipe_mask);
+	if (ret)
+		return ret;
+
+	/* Without an active stream the next enable trains the link */
+	if (pipe_mask == 0)
+		return 0;
+
+	intel_dp_check_frl_training(intel_dp);
+
+	return 0;
+}
+
 void
 intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
 			    const struct intel_crtc_state *crtc_state)
@@ -6060,8 +6096,11 @@ intel_dp_handle_hdmi_link_status_change(struct intel_dp *intel_dp)
 
 		intel_dp->frl.is_trained = false;
 
-		/* Restart FRL training or fall back to TMDS mode */
-		intel_dp_check_frl_training(intel_dp);
+		/*
+		 * Restart FRL training or fall back to TMDS mode, from the link
+		 * check work, where the modeset locks can be taken.
+		 */
+		intel_encoder_link_check_queue_work(&dp_to_dig_port(intel_dp)->base, 0);
 	}
 }
 
diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
index 1f4a3aff9abe..070f6229cc39 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.h
+++ b/drivers/gpu/drm/i915/display/intel_dp.h
@@ -188,6 +188,8 @@ void intel_dp_sync_state(struct intel_encoder *encoder,
 			 const struct intel_crtc_state *crtc_state);
 
 void intel_dp_check_frl_training(struct intel_dp *intel_dp);
+int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
+			      struct drm_modeset_acquire_ctx *ctx);
 void intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
 				 const struct intel_crtc_state *crtc_state);
 
diff --git a/drivers/gpu/drm/i915/display/intel_dp_link_training.c b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
index 1efc78b329a6..2c18590bcbff 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_link_training.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_link_training.c
@@ -2635,8 +2635,11 @@ void intel_dp_link_check(struct intel_encoder *encoder)
 	struct drm_modeset_acquire_ctx ctx;
 	int ret;
 
-	intel_modeset_lock_ctx_retry(&ctx, NULL, 0, ret)
+	intel_modeset_lock_ctx_retry(&ctx, NULL, 0, ret) {
 		ret = intel_dp_retrain_link(encoder, &ctx);
+		if (!ret)
+			ret = intel_dp_pcon_frl_recover(encoder, &ctx);
+	}
 }
 
 void intel_dp_check_link_state(struct intel_dp *intel_dp)
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (10 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04 10:00   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link Ankit Nautiyal
                   ` (4 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

Currently the FRL training derives the max rate to train the HDMI link
from the capabilities of the PCON and the HDMI sink, regardless of the
stream that is going to be sent.

Compute the FRL rate together with the PCON DSC operation, store it in
the crtc state and train the link at that rate. For now this is still
the lower of the PCON and sink max rates, so there is no change in
behavior. The upcoming changes will make the rate depend on the stream.

A link that is already trained is kept only if it was trained at least
at the rate the new stream needs, otherwise train it again.

Also reset the trained rate when the sink is gone on a long HPD, now
that it is used to decide if the link has to be retrained.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/g4x_dp.c         |  2 +-
 .../drm/i915/display/intel_crtc_state_dump.c  |  5 ++-
 drivers/gpu/drm/i915/display/intel_ddi.c      |  4 +-
 .../drm/i915/display/intel_display_types.h    |  2 +
 drivers/gpu/drm/i915/display/intel_dp.c       | 39 ++++++++++++-------
 drivers/gpu/drm/i915/display/intel_dp.h       |  3 +-
 6 files changed, 34 insertions(+), 21 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/g4x_dp.c b/drivers/gpu/drm/i915/display/g4x_dp.c
index b867443ff227..f8ac6d51f6ff 100644
--- a/drivers/gpu/drm/i915/display/g4x_dp.c
+++ b/drivers/gpu/drm/i915/display/g4x_dp.c
@@ -709,7 +709,7 @@ static void intel_enable_dp(struct intel_atomic_state *state,
 
 	intel_dp_set_power(intel_dp, DP_SET_POWER_D0);
 	intel_dp_configure_protocol_converter(intel_dp, pipe_config);
-	intel_dp_check_frl_training(intel_dp);
+	intel_dp_check_frl_training(intel_dp, pipe_config);
 	intel_dp_pcon_dsc_configure(intel_dp, pipe_config);
 	intel_dp_start_link_train(state, intel_dp, pipe_config);
 	intel_dp_stop_link_train(intel_dp, pipe_config);
diff --git a/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c b/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
index 4e9ff59a8d5c..967123a11833 100644
--- a/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
+++ b/drivers/gpu/drm/i915/display/intel_crtc_state_dump.c
@@ -249,8 +249,9 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,
 			   str_enabled_disabled(pipe_config->fec_enable),
 			   str_enabled_disabled(pipe_config->enhanced_framing));
 
-		drm_printf(&p, "pcon: dsc op %s\n",
-			   pcon_dsc_op_str[pipe_config->pcon_config.dsc_op]);
+		drm_printf(&p, "pcon: dsc op %s, frl rate: %d Gbps\n",
+			   pcon_dsc_op_str[pipe_config->pcon_config.dsc_op],
+			   pipe_config->pcon_config.frl_rate_gbps);
 		if (pipe_config->pcon_config.dsc_op == INTEL_PCON_DSC_DECODE_ENCODE)
 			drm_printf(&p,
 				   "pcon dsc encoder: slice height: %u, slice width: %u, bpp_x16: %u\n",
diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c
index e21c237b39f4..f8357574710c 100644
--- a/drivers/gpu/drm/i915/display/intel_ddi.c
+++ b/drivers/gpu/drm/i915/display/intel_ddi.c
@@ -2714,7 +2714,7 @@ static void mtl_ddi_pre_enable_dp(struct intel_atomic_state *state,
 	 */
 	intel_dp_sink_set_fec_ready(intel_dp, crtc_state, true);
 
-	intel_dp_check_frl_training(intel_dp);
+	intel_dp_check_frl_training(intel_dp, crtc_state);
 	intel_dp_pcon_dsc_configure(intel_dp, crtc_state);
 
 	/*
@@ -2876,7 +2876,7 @@ static void tgl_ddi_pre_enable_dp(struct intel_atomic_state *state,
 	 */
 	intel_dp_sink_set_fec_ready(intel_dp, crtc_state, true);
 
-	intel_dp_check_frl_training(intel_dp);
+	intel_dp_check_frl_training(intel_dp, crtc_state);
 	intel_dp_pcon_dsc_configure(intel_dp, crtc_state);
 
 	/*
diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
index 0103ac569727..e937c249ca9b 100644
--- a/drivers/gpu/drm/i915/display/intel_display_types.h
+++ b/drivers/gpu/drm/i915/display/intel_display_types.h
@@ -1395,6 +1395,8 @@ struct intel_crtc_state {
 		enum intel_pcon_dsc_op dsc_op;
 		/* Only valid for INTEL_PCON_DSC_DECODE_ENCODE */
 		struct intel_pcon_dsc_enc_config dsc_enc;
+		/* Max FRL rate in Gbps to train the HDMI link at, 0 if no FRL */
+		int frl_rate_gbps;
 	} pcon_config;
 
 	/* DP tunnel used for BW allocation. */
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 2e92e4898ee6..da3aeba84c60 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -3094,6 +3094,9 @@ intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
 	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
 		return 0;
 
+	crtc_state->pcon_config.frl_rate_gbps =
+		min(intel_dp->dfp.pcon_max_frl_bw, intel_dp_hdmi_sink_max_frl(intel_dp));
+
 	if (crtc_state->dsc.compression_enable)
 		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
 
@@ -4507,23 +4510,19 @@ intel_dp_pcon_is_frl_trained(struct intel_dp *intel_dp,
 	return false;
 }
 
-static int intel_dp_pcon_start_frl_training(struct intel_dp *intel_dp)
+static int intel_dp_pcon_start_frl_training(struct intel_dp *intel_dp,
+					    const struct intel_crtc_state *crtc_state)
 {
 	struct intel_display *display = to_intel_display(intel_dp);
 #define TIMEOUT_FRL_READY_MS 500
 #define TIMEOUT_HDMI_LINK_ACTIVE_MS 1000
-	int max_frl_bw, max_pcon_frl_bw, max_edid_frl_bw, ret;
+	int max_frl_bw, ret;
 	u8 max_frl_bw_mask = 0, frl_trained_mask;
 	bool is_active;
 
-	max_pcon_frl_bw = intel_dp->dfp.pcon_max_frl_bw;
-	drm_dbg(display->drm, "PCON max rate = %d Gbps\n", max_pcon_frl_bw);
-
-	max_edid_frl_bw = intel_dp_hdmi_sink_max_frl(intel_dp);
-	drm_dbg(display->drm, "Sink max rate from EDID = %d Gbps\n",
-		max_edid_frl_bw);
-
-	max_frl_bw = min(max_edid_frl_bw, max_pcon_frl_bw);
+	max_frl_bw = crtc_state->pcon_config.frl_rate_gbps;
+	drm_dbg(display->drm, "FRL max rate = %d Gbps (PCON max rate = %d Gbps)\n",
+		max_frl_bw, intel_dp->dfp.pcon_max_frl_bw);
 
 	if (max_frl_bw <= 0)
 		return -EINVAL;
@@ -4607,7 +4606,8 @@ int intel_dp_pcon_set_tmds_mode(struct intel_dp *intel_dp)
 	return 0;
 }
 
-void intel_dp_check_frl_training(struct intel_dp *intel_dp)
+void intel_dp_check_frl_training(struct intel_dp *intel_dp,
+				 const struct intel_crtc_state *crtc_state)
 {
 	struct intel_display *display = to_intel_display(intel_dp);
 
@@ -4617,11 +4617,15 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
 	 * -sink is HDMI2.1
 	 */
 	if (!(intel_dp->downstream_ports[2] & DP_PCON_SOURCE_CTL_MODE) ||
-	    !intel_dp_is_hdmi_2_1_sink(intel_dp) ||
-	    intel_dp->frl.is_trained)
+	    !intel_dp_is_hdmi_2_1_sink(intel_dp))
 		return;
 
-	if (intel_dp_pcon_start_frl_training(intel_dp) < 0) {
+	/* A link trained at a lower rate than the stream needs has to be retrained */
+	if (intel_dp->frl.is_trained &&
+	    intel_dp->frl.trained_rate_gbps >= crtc_state->pcon_config.frl_rate_gbps)
+		return;
+
+	if (intel_dp_pcon_start_frl_training(intel_dp, crtc_state) < 0) {
 		int ret, mode;
 
 		drm_dbg(display->drm,
@@ -4646,6 +4650,7 @@ int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
 {
 	struct intel_display *display = to_intel_display(encoder);
 	struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
+	struct intel_crtc *crtc;
 	u8 pipe_mask;
 	int ret;
 
@@ -4668,7 +4673,10 @@ int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
 	if (pipe_mask == 0)
 		return 0;
 
-	intel_dp_check_frl_training(intel_dp);
+	/* The stream is on the pipe of the connector's CRTC, locked above */
+	crtc = intel_crtc_for_pipe(display, ffs(pipe_mask) - 1);
+
+	intel_dp_check_frl_training(intel_dp, to_intel_crtc_state(crtc->base.state));
 
 	return 0;
 }
@@ -7237,6 +7245,7 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd)
 		 * the next enable.
 		 */
 		intel_dp->frl.is_trained = false;
+		intel_dp->frl.trained_rate_gbps = 0;
 
 		return IRQ_NONE;
 	}
diff --git a/drivers/gpu/drm/i915/display/intel_dp.h b/drivers/gpu/drm/i915/display/intel_dp.h
index 070f6229cc39..83954c2c28e6 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.h
+++ b/drivers/gpu/drm/i915/display/intel_dp.h
@@ -187,7 +187,8 @@ bool intel_dp_initial_fastset_check(struct intel_encoder *encoder,
 void intel_dp_sync_state(struct intel_encoder *encoder,
 			 const struct intel_crtc_state *crtc_state);
 
-void intel_dp_check_frl_training(struct intel_dp *intel_dp);
+void intel_dp_check_frl_training(struct intel_dp *intel_dp,
+				 const struct intel_crtc_state *crtc_state);
 int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
 			      struct drm_modeset_acquire_ctx *ctx);
 void intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (11 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:58   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream Ankit Nautiyal
                   ` (3 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

Currently the FRL rate stored in the crtc state is the lower of the PCON
and sink max rates, as the previous change only made the rate a part of
the state. The HDMI sink has two max FRL rates: one for uncompressed
video and a separate, possibly lower one for compressed video
transport. The max rate helper returns the lower of the two whenever the
PCON has a DSC encoder, even if the HDMI link carries an uncompressed
stream.

Pass to the helpers whether the stream on the HDMI link is compressed,
and use the regular max rate for an uncompressed stream and the sink DSC
max rate for a compressed one.

The capability checks and the bandwidth check for an uncompressed stream
use the regular rate, the check for a compressed stream the DSC rate.
Store the rate matching the PCON DSC operation in the crtc state, which
the FRL training uses.

As a result, modes that fit the HDMI link uncompressed at the regular
max rate of a sink with a lower DSC max rate are not dropped any more
for a PCON with a DSC encoder.

This makes way for allowing the DSC modes through the FRL bandwidth check
using the rate of the compressed stream.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 44 ++++++++++++++-----------
 1 file changed, 25 insertions(+), 19 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index da3aeba84c60..f2505b707cad 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -128,7 +128,7 @@ bool intel_dp_is_edp(struct intel_dp *intel_dp)
 }
 
 static void intel_dp_unset_edid(struct intel_dp *intel_dp);
-static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp);
+static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp, bool dsc);
 static bool intel_dp_is_hdmi_2_1_sink(struct intel_dp *intel_dp);
 
 /* Is link rate UHBR and thus 128b/132b? */
@@ -1191,15 +1191,22 @@ static int frl_required_bw(int clock, int bpc,
 }
 
 /*
- * Both the PCON and the HDMI 2.1 sink limit the FRL rate. FRL uses 16b/18b
- * line coding, so only 16/18 of the raw rate carries payload. Returns kbps.
+ * Both the PCON and the HDMI 2.1 sink limit the FRL rate. The sink has a
+ * separate limit for @dsc, a compressed stream on the HDMI link.
  */
-static int intel_dp_hdmi_frl_payload_bw(struct intel_dp *intel_dp)
+static int intel_dp_pcon_max_frl_rate(struct intel_dp *intel_dp, bool dsc)
 {
-	int max_frl_rate = min(intel_dp->dfp.pcon_max_frl_bw,
-			       intel_dp_hdmi_sink_max_frl(intel_dp));
+	return min(intel_dp->dfp.pcon_max_frl_bw,
+		   intel_dp_hdmi_sink_max_frl(intel_dp, dsc));
+}
 
-	return max_frl_rate * 1000000 * 16 / 18;
+/*
+ * FRL uses 16b/18b line coding, so only 16/18 of the raw rate carries
+ * payload. Returns kbps.
+ */
+static int intel_dp_hdmi_frl_payload_bw(struct intel_dp *intel_dp, bool dsc)
+{
+	return intel_dp_pcon_max_frl_rate(intel_dp, dsc) * 1000000 * 16 / 18;
 }
 
 static enum drm_mode_status
@@ -1216,7 +1223,7 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
 	target_bw = frl_required_bw(target_clock, bpc, sink_format);
 
 	/* check for MAX FRL BW for both PCON and HDMI2.1 sink */
-	max_frl_bw = intel_dp_hdmi_frl_payload_bw(intel_dp);
+	max_frl_bw = intel_dp_hdmi_frl_payload_bw(intel_dp, false);
 
 	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
 	if (target_bw > max_frl_bw)
@@ -1229,7 +1236,7 @@ static bool
 intel_dp_pcon_sink_support_frl(struct intel_dp *intel_dp)
 {
 	return intel_dp->dfp.pcon_max_frl_bw &&
-		intel_dp_hdmi_sink_max_frl(intel_dp);
+		intel_dp_hdmi_sink_max_frl(intel_dp, false);
 }
 
 static bool intel_dp_pcon_can_encode_dsc(struct intel_dp *intel_dp)
@@ -1274,7 +1281,7 @@ intel_dp_pcon_dsc_enc_compute(struct intel_dp *intel_dp,
 	slice_width = DIV_ROUND_UP(mode->hdisplay, num_slices);
 
 	/* The compressed stream has to fit the FRL link */
-	max_link_dsc_bpp = intel_dp_hdmi_frl_payload_bw(intel_dp) / pixel_clock;
+	max_link_dsc_bpp = intel_dp_hdmi_frl_payload_bw(intel_dp, true) / pixel_clock;
 	if (!max_link_dsc_bpp)
 		return false;
 
@@ -3094,8 +3101,8 @@ intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
 	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
 		return 0;
 
-	crtc_state->pcon_config.frl_rate_gbps =
-		min(intel_dp->dfp.pcon_max_frl_bw, intel_dp_hdmi_sink_max_frl(intel_dp));
+	/* The HDMI link carries an uncompressed stream, unless the PCON compresses it */
+	crtc_state->pcon_config.frl_rate_gbps = intel_dp_pcon_max_frl_rate(intel_dp, false);
 
 	if (crtc_state->dsc.compression_enable)
 		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
@@ -3127,6 +3134,7 @@ intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
 	}
 
 	crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE_ENCODE;
+	crtc_state->pcon_config.frl_rate_gbps = intel_dp_pcon_max_frl_rate(intel_dp, true);
 
 	return 0;
 }
@@ -4478,7 +4486,7 @@ static int intel_dp_pcon_set_frl_mask(int max_frl)
 	return 0;
 }
 
-static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp)
+static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp, bool dsc)
 {
 	struct intel_connector *connector = intel_dp->attached_connector;
 	struct drm_connector *drm_connector = &connector->base;
@@ -4487,12 +4495,10 @@ static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp)
 
 	/*
 	 * The sink's DSC max FRL rate only applies to compressed video
-	 * transport, which requires a DSC 1.2 encoder in the PCON. Without
-	 * one the HDMI link always carries uncompressed video, for which
-	 * the regular max FRL rate is the limit.
+	 * transport. For uncompressed video the regular max FRL rate is the
+	 * limit.
 	 */
-	if (drm_dp_pcon_enc_is_dsc_1_2(intel_dp->pcon_dsc_dpcd) &&
-	    dsc_max_frl_rate)
+	if (dsc && dsc_max_frl_rate)
 		return min(max_frl_rate, dsc_max_frl_rate);
 
 	return max_frl_rate;
@@ -4578,7 +4584,7 @@ static bool intel_dp_is_hdmi_2_1_sink(struct intel_dp *intel_dp)
 {
 	if (drm_dp_is_branch(intel_dp->dpcd) &&
 	    intel_dp_has_hdmi_sink(intel_dp) &&
-	    intel_dp_hdmi_sink_max_frl(intel_dp) > 0)
+	    intel_dp_hdmi_sink_max_frl(intel_dp, false) > 0)
 		return true;
 
 	return false;
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (12 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:58   ` sashiko-bot
  2026-12-04  8:57 ` [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Ankit Nautiyal
                   ` (2 subsequent siblings)
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

Currently the bpc for the HDMI link is picked only from the bpcs that fit
the FRL link uncompressed. No bpc is found for a mode that needs DSC on
the HDMI link, even though an HDMI 2.1 PCON can decode the DP stream and
encode DSC 1.2 for the HDMI sink.

If the DP stream is compressed and no bpc fits the HDMI link
uncompressed, pick the highest bpc the PCON can encode for the HDMI
link. The PCON can't encode an uncompressed stream, so this is done only
in the pass that compresses the DP stream, after the uncompressed bpcs
are tried.

The mode valid check still prunes such modes. The next change lets them
through.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 43 ++++++++++++++++++++++---
 1 file changed, 39 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index f2505b707cad..94744ead1a6e 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1302,6 +1302,20 @@ intel_dp_pcon_dsc_enc_compute(struct intel_dp *intel_dp,
 	return true;
 }
 
+/*
+ * Whether the PCON can compress a stream that doesn't fit the HDMI FRL link
+ * uncompressed. The DP stream has to be compressed for that as well.
+ */
+static bool
+intel_dp_hdmi_dsc_possible(struct intel_dp *intel_dp,
+			   const struct drm_display_mode *mode, int pixel_clock,
+			   int bpc, enum intel_output_format sink_format)
+{
+	return intel_dp_pcon_sink_support_frl(intel_dp) &&
+		intel_dp_pcon_dsc_enc_compute(intel_dp, mode, pixel_clock, bpc,
+					      sink_format, NULL);
+}
+
 static enum drm_mode_status
 intel_dp_hdmi_bw_valid(struct intel_dp *intel_dp,
 		       int target_clock, int bpc,
@@ -1835,9 +1849,11 @@ bool intel_dp_supports_dsc(struct intel_dp *intel_dp,
 
 static int intel_dp_hdmi_compute_bpc(struct intel_dp *intel_dp,
 				     const struct intel_crtc_state *crtc_state,
-				     int bpc, bool respect_downstream_limits)
+				     int bpc, bool respect_downstream_limits,
+				     bool dsc)
 {
 	int clock = crtc_state->hw.adjusted_mode.crtc_clock;
+	int max_bpc;
 
 	/*
 	 * Current bpc could already be below 8bpc due to
@@ -1854,6 +1870,8 @@ static int intel_dp_hdmi_compute_bpc(struct intel_dp *intel_dp,
 	if (!respect_downstream_limits)
 		bpc = 8;
 
+	max_bpc = bpc;
+
 	for (; bpc >= 8; bpc -= 2) {
 		if (intel_hdmi_bpc_possible(crtc_state, bpc,
 					    intel_dp_has_hdmi_sink(intel_dp)) &&
@@ -1862,12 +1880,27 @@ static int intel_dp_hdmi_compute_bpc(struct intel_dp *intel_dp,
 			return bpc;
 	}
 
+	/*
+	 * No bpc fits the HDMI link uncompressed. If the DP stream is compressed
+	 * the PCON may be able to compress the stream for the HDMI link as well.
+	 */
+	if (!dsc || !respect_downstream_limits)
+		return -EINVAL;
+
+	for (bpc = max_bpc; bpc >= 8; bpc -= 2) {
+		if (intel_hdmi_bpc_possible(crtc_state, bpc,
+					    intel_dp_has_hdmi_sink(intel_dp)) &&
+		    intel_dp_hdmi_dsc_possible(intel_dp, &crtc_state->hw.adjusted_mode,
+					       clock, bpc, crtc_state->sink_format))
+			return bpc;
+	}
+
 	return -EINVAL;
 }
 
 static int intel_dp_max_bpp(struct intel_dp *intel_dp,
 			    const struct intel_crtc_state *crtc_state,
-			    bool respect_downstream_limits)
+			    bool respect_downstream_limits, bool dsc)
 {
 	struct intel_display *display = to_intel_display(intel_dp);
 	struct intel_connector *connector = intel_dp->attached_connector;
@@ -1882,7 +1915,8 @@ static int intel_dp_max_bpp(struct intel_dp *intel_dp,
 		int max_hdmi_bpc;
 
 		max_hdmi_bpc = intel_dp_hdmi_compute_bpc(intel_dp, crtc_state, bpc,
-							 respect_downstream_limits);
+							 respect_downstream_limits,
+							 dsc);
 		if (max_hdmi_bpc < 0)
 			return 0;
 
@@ -2964,7 +2998,8 @@ intel_dp_compute_config_limits(struct intel_dp *intel_dp,
 		limits->pipe.max_bpp = min(crtc_state->max_pipe_bpp, 24);
 	} else {
 		limits->pipe.max_bpp = intel_dp_max_bpp(intel_dp, crtc_state,
-							respect_downstream_limits);
+							respect_downstream_limits,
+							dsc);
 	}
 
 	if (!dsc && intel_dp_in_hdr_mode(conn_state)) {
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (13 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream Ankit Nautiyal
@ 2026-12-04  8:57 ` Ankit Nautiyal
  2026-12-04  9:53   ` sashiko-bot
  2026-12-04  9:31 ` ✓ CI.KUnit: success for DP-HDMI PCON DSC fixes (rev5) Patchwork
  2026-12-04 10:10 ` ✓ Xe.CI.BAT: " Patchwork
  16 siblings, 1 reply; 30+ messages in thread
From: Ankit Nautiyal @ 2026-12-04  8:57 UTC (permalink / raw)
  To: intel-gfx, intel-xe
  Cc: dri-devel, alexander.kaplan, suraj.kandpal, Ankit Nautiyal

Currently the FRL bandwidth check rejects every mode whose uncompressed
bandwidth exceeds the FRL rate, even though an HDMI 2.1 PCON can decode
the DP stream and encode DSC 1.2 for the HDMI sink. High bandwidth modes
(e.g. 4k120, 8k60) get pruned for such PCONs, although the PCON and the
sink can carry them. The previous change lets the bpc selection use the
DSC encoder of the PCON, but the mode valid check still prunes such
modes.

Accept such a mode in the mode valid check if the HDMI link can carry it
compressed, and the DP stream can be compressed too: the PCON can't
encode an uncompressed stream. This is the same check that the bpc
selection uses, so a mode that is listed can also be configured.

The DP spec defines the decoding and re-encoding only for a DSC v1.1
source, and the pass-through for a DSC v1.2a (or higher) one. The
pass-through is not handled here, so a DSC 1.2a stream is re-encoded as
well for now.

Tested with a BizLink USB-C to DP80 cable (PCON) and an HDMI 2.1 panel

This takes care of the FIXME in the FRL bandwidth check.

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 94744ead1a6e..be40a882e90d 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -1225,7 +1225,6 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
 	/* check for MAX FRL BW for both PCON and HDMI2.1 sink */
 	max_frl_bw = intel_dp_hdmi_frl_payload_bw(intel_dp, false);
 
-	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
 	if (target_bw > max_frl_bw)
 		return MODE_CLOCK_HIGH;
 
@@ -1339,12 +1338,22 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector,
 {
 	struct intel_dp *intel_dp = intel_attached_dp(connector);
 	int bpc = 8; /* Assume 8bpc for the DP++/HDMI/DVI TMDS/FRL bw check */
+	enum drm_mode_status status;
 
 	if (intel_dp->dfp.max_dotclock &&
 	    target_clock > intel_dp->dfp.max_dotclock)
 		return MODE_CLOCK_HIGH;
 
-	return intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true);
+	status = intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true);
+	if (status != MODE_CLOCK_HIGH)
+		return status;
+
+	/* The PCON may be able to compress the stream for the HDMI link */
+	if (intel_dp_has_dsc(connector) &&
+	    intel_dp_hdmi_dsc_possible(intel_dp, mode, target_clock, bpc, sink_format))
+		return MODE_OK;
+
+	return status;
 }
 
 static enum drm_mode_status
-- 
2.50.1


^ permalink raw reply related	[flat|nested] 30+ messages in thread

* ✓ CI.KUnit: success for DP-HDMI PCON DSC fixes (rev5)
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (14 preceding siblings ...)
  2026-12-04  8:57 ` [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Ankit Nautiyal
@ 2026-12-04  9:31 ` Patchwork
  2026-12-04 10:10 ` ✓ Xe.CI.BAT: " Patchwork
  16 siblings, 0 replies; 30+ messages in thread
From: Patchwork @ 2026-12-04  9:31 UTC (permalink / raw)
  To: Ankit Nautiyal; +Cc: intel-xe

== Series Details ==

Series: DP-HDMI PCON DSC fixes (rev5)
URL   : https://patchwork.freedesktop.org/series/171346/
State : success

== Summary ==

+ trap cleanup EXIT
+ kunitconfigs=('/kernel/drivers/gpu/tests/.kunitconfig' '/kernel/drivers/gpu/drm/xe/.kunitconfig' '/kernel/drivers/gpu/drm/tests/.kunitconfig' '/kernel/drivers/gpu/drm/ttm/tests/.kunitconfig' '/kernel/drivers/dma-buf/.kunitconfig')
+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/tests/.kunitconfig
[09:29:25] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[09:29:30] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[09:29:51] Starting KUnit Kernel (1/1)...
[09:29:51] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[09:29:52] ================= gpu_buddy (15 subtests) ==================
[09:29:52] [PASSED] gpu_test_buddy_alloc_limit
[09:29:52] [PASSED] gpu_test_buddy_alloc_optimistic
[09:29:52] [PASSED] gpu_test_buddy_alloc_pessimistic
[09:29:52] [PASSED] gpu_test_buddy_alloc_pathological
[09:29:52] [PASSED] gpu_test_buddy_alloc_contiguous
[09:29:52] [PASSED] gpu_test_buddy_alloc_clear
[09:29:52] [PASSED] gpu_test_buddy_alloc_range
[09:29:52] [PASSED] gpu_test_buddy_alloc_range_bias
[09:29:52] [PASSED] gpu_test_buddy_alloc_range_clear_guard
[09:29:53] [PASSED] gpu_test_buddy_fragmentation_performance
[09:29:54] [PASSED] gpu_test_buddy_dirty_tracker_performance
[09:29:54] [PASSED] gpu_test_buddy_alloc_exceeds_max_order
[09:29:54] [PASSED] gpu_test_buddy_offset_aligned_allocation
[09:29:54] [PASSED] gpu_test_buddy_subtree_offset_alignment_stress
[09:29:54] [PASSED] gpu_test_buddy_addr_to_block
[09:29:54] ==================== [PASSED] gpu_buddy ====================
[09:29:54] ============================================================
[09:29:54] Testing complete. Ran 15 tests: passed: 15
[09:29:54] Elapsed time: 28.344s total, 5.189s configuring, 20.987s building, 2.096s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/xe/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[09:29:54] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[09:29:56] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[09:30:35] Starting KUnit Kernel (1/1)...
[09:30:35] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[09:30:35] ================ xe_ggtt_iov (10 subtests) =================
[09:30:35] [PASSED] init_shared_pf
[09:30:35] [PASSED] init_partial_overlap
[09:30:35] [PASSED] alloc_usable_pool_low
[09:30:35] [PASSED] alloc_shareable_pool_high
[09:30:35] [PASSED] alloc_partial_overlap
[09:30:35] [PASSED] alloc_partial_overlap_usable_full
[09:30:35] [PASSED] alloc_partial_overlap_shareable_full
[09:30:35] [PASSED] alloc_shareable_pool_unavailable
[09:30:35] [PASSED] alloc_shareable_pool_oversized
[09:30:35] [PASSED] alloc_shareable_aligned_addr
[09:30:35] =================== [PASSED] xe_ggtt_iov ===================
[09:30:35] =================== xe_ggtt (3 subtests) ===================
[09:30:35] [PASSED] init_native
[09:30:35] [PASSED] alloc_usable_pool_native
[09:30:35] [PASSED] alloc_usable_pool_oversized
[09:30:35] ===================== [PASSED] xe_ggtt =====================
[09:30:35] ================== guc_buf (11 subtests) ===================
[09:30:35] [PASSED] test_smallest
[09:30:35] [PASSED] test_largest
[09:30:35] [PASSED] test_granular
[09:30:35] [PASSED] test_unique
[09:30:35] [PASSED] test_overlap
[09:30:35] [PASSED] test_reusable
[09:30:35] [PASSED] test_too_big
[09:30:35] [PASSED] test_flush
[09:30:35] [PASSED] test_lookup
[09:30:35] [PASSED] test_data
[09:30:35] [PASSED] test_class
[09:30:35] ===================== [PASSED] guc_buf =====================
[09:30:35] =================== guc_dbm (7 subtests) ===================
[09:30:35] [PASSED] test_empty
[09:30:35] [PASSED] test_default
[09:30:35] ======================== test_size  ========================
[09:30:35] [PASSED] 4
[09:30:35] [PASSED] 8
[09:30:35] [PASSED] 32
[09:30:35] [PASSED] 256
[09:30:35] ==================== [PASSED] test_size ====================
[09:30:35] ======================= test_reuse  ========================
[09:30:35] [PASSED] 4
[09:30:35] [PASSED] 8
[09:30:35] [PASSED] 32
[09:30:35] [PASSED] 256
[09:30:35] =================== [PASSED] test_reuse ====================
[09:30:35] =================== test_range_overlap  ====================
[09:30:35] [PASSED] 4
[09:30:35] [PASSED] 8
[09:30:35] [PASSED] 32
[09:30:35] [PASSED] 256
[09:30:35] =============== [PASSED] test_range_overlap ================
[09:30:35] =================== test_range_compact  ====================
[09:30:35] [PASSED] 4
[09:30:35] [PASSED] 8
[09:30:35] [PASSED] 32
[09:30:35] [PASSED] 256
[09:30:35] =============== [PASSED] test_range_compact ================
[09:30:35] ==================== test_range_spare  =====================
[09:30:35] [PASSED] 4
[09:30:35] [PASSED] 8
[09:30:35] [PASSED] 32
[09:30:35] [PASSED] 256
[09:30:35] ================ [PASSED] test_range_spare =================
[09:30:35] ===================== [PASSED] guc_dbm =====================
[09:30:35] ================== guc_idm (22 subtests) ===================
[09:30:35] [PASSED] bad_init
[09:30:35] [PASSED] no_init
[09:30:35] [PASSED] init_fini
[09:30:35] [PASSED] check_init_small
[09:30:35] [PASSED] check_init_shared
[09:30:35] [PASSED] check_used
[09:30:35] [PASSED] check_quota
[09:30:35] [PASSED] check_all
[09:30:35] [PASSED] check_limits
[09:30:35] [PASSED] check_overlap
[09:30:35] [PASSED] check_overlap_alloc
[09:30:35] [PASSED] check_overlap_release
[09:30:35] [PASSED] check_overlap_partial_init
[09:30:35] [PASSED] check_overlap_partial_shared_range_blocking
[09:30:35] [PASSED] check_used_usable
[09:30:35] [PASSED] check_used_shareable
[09:30:35] [PASSED] check_used_mixed
[09:30:35] [PASSED] check_release_usable_range
[09:30:35] [PASSED] check_release_shareable_range
[09:30:35] [PASSED] check_split_boundaries
[09:30:35] [PASSED] check_shareable_spare
[09:30:35] [PASSED] check_shareable_spare_fragmented_tail
[09:30:35] ===================== [PASSED] guc_idm =====================
[09:30:35] ============== guc_klv_helpers (13 subtests) ===============
[09:30:35] [PASSED] test_count
[09:30:35] [PASSED] test_encode_u32
[09:30:35] [PASSED] test_encode_u64
[09:30:35] [PASSED] test_encode_string
[09:30:35] [PASSED] test_encode_object_raw
[09:30:35] [PASSED] test_encode_object_klv
[09:30:35] [PASSED] test_encode_object_nested
[09:30:35] [PASSED] test_encode_object_basic
[09:30:35] ===================== test_decode_u16  =====================
[09:30:35] [PASSED] empty
[09:30:35] [PASSED] valid
[09:30:35] [PASSED] max
[09:30:35] [PASSED] big
[09:30:35] [PASSED] long
[09:30:35] ================= [PASSED] test_decode_u16 =================
[09:30:35] ===================== test_decode_u32  =====================
[09:30:35] [PASSED] empty
[09:30:35] [PASSED] valid
[09:30:35] [PASSED] max
[09:30:35] [PASSED] long
[09:30:35] ================= [PASSED] test_decode_u32 =================
[09:30:35] ===================== test_decode_u64  =====================
[09:30:35] [PASSED] empty
[09:30:35] [PASSED] short
[09:30:35] [PASSED] valid
[09:30:35] [PASSED] max
[09:30:35] [PASSED] long
[09:30:35] ================= [PASSED] test_decode_u64 =================
[09:30:35] ===================== test_decode_str  =====================
[09:30:35] [PASSED] empty
[09:30:35] [PASSED] one
[09:30:35] [PASSED] one_trash
[09:30:35] [PASSED] two
[09:30:35] [PASSED] two_trash
[09:30:35] [PASSED] three
[09:30:35] [PASSED] dword
[09:30:35] [PASSED] four
[09:30:35] [PASSED] five
[09:30:35] [PASSED] six
[09:30:35] [PASSED] seven
[09:30:35] [PASSED] qword
[09:30:35] ================= [PASSED] test_decode_str =================
[09:30:35] [PASSED] test_print
[09:30:35] ================= [PASSED] guc_klv_helpers =================
[09:30:35] =================== xe_log (6 subtests) ====================
[09:30:35] [PASSED] demo_cper
[09:30:35] [PASSED] demo_dmesg
[09:30:35] [PASSED] test_cper_null_xe
[09:30:35] ======================= test_dmesg  ========================
[09:30:35] [PASSED] test_fatal
[09:30:35] [PASSED] test_fatal_tile
[09:30:35] [PASSED] test_fatal_gt
[09:30:35] [PASSED] test_fatal_comp
[09:30:35] [PASSED] test_fatal_comp_tile
[09:30:35] [PASSED] test_fatal_comp_gt
[09:30:35] [PASSED] test_fatal_all
[09:30:35] [PASSED] test_recoverable
[09:30:35] [PASSED] test_recoverable_tile
[09:30:35] [PASSED] test_recoverable_gt
[09:30:35] [PASSED] test_recoverable_comp
[09:30:35] [PASSED] test_recoverable_comp_tile
[09:30:35] [PASSED] test_recoverable_comp_gt
[09:30:35] [PASSED] test_recoverable_all
[09:30:35] [PASSED] test_info
[09:30:35] [PASSED] test_info_tile
[09:30:35] [PASSED] test_info_gt
[09:30:35] [PASSED] test_info_err
[09:30:35] [PASSED] test_info_comp
[09:30:35] [PASSED] test_info_comp_tile
[09:30:35] [PASSED] test_info_comp_gt
[09:30:35] [PASSED] test_info_all
[09:30:35] [PASSED] test_hw_fatal
[09:30:35] [PASSED] test_hw_recoverable
[09:30:35] [PASSED] test_hw_corrected
[09:30:35] [PASSED] test_hw_informational
[09:30:35] =================== [PASSED] test_dmesg ====================
[09:30:35] ====================== test_sw_cper  =======================
[09:30:35] [PASSED] sw-fatal-errno
[09:30:35] [PASSED] sw-recoverable-errno
[09:30:35] [PASSED] sw-corrected
[09:30:35] [PASSED] sw-informational
[09:30:35] [PASSED] sw-with-error-class
[09:30:35] ================== [PASSED] test_sw_cper ===================
[09:30:35] ====================== test_invalid  =======================
[09:30:35] [SKIPPED] no-component no-location no-warn (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] reserved location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] unknown location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] nonzero-device-id location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] invalid-tile-id location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] invalid-gt-id location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] unknown component class (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] unknown system component (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] unknown hardware component (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] [SKIPPED] unknown component and location (requires CONFIG_DRM_XE_DEBUG)
[09:30:35] ================== [SKIPPED] test_invalid ==================
[09:30:35] ===================== [PASSED] xe_log ======================
[09:30:35] ================== no_relay (3 subtests) ===================
[09:30:35] [PASSED] xe_drops_guc2pf_if_not_ready
[09:30:35] [PASSED] xe_drops_guc2vf_if_not_ready
[09:30:35] [PASSED] xe_rejects_send_if_not_ready
[09:30:35] ==================== [PASSED] no_relay =====================
[09:30:35] ================== pf_relay (14 subtests) ==================
[09:30:35] [PASSED] pf_rejects_guc2pf_too_short
[09:30:35] [PASSED] pf_rejects_guc2pf_too_long
[09:30:35] [PASSED] pf_rejects_guc2pf_no_payload
[09:30:35] [PASSED] pf_fails_no_payload
[09:30:35] [PASSED] pf_fails_bad_origin
[09:30:35] [PASSED] pf_fails_bad_type
[09:30:35] [PASSED] pf_txn_reports_error
[09:30:35] [PASSED] pf_txn_sends_pf2guc
[09:30:35] [PASSED] pf_sends_pf2guc
[09:30:35] [SKIPPED] pf_loopback_nop (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[09:30:35] [SKIPPED] pf_loopback_echo (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[09:30:35] [SKIPPED] pf_loopback_fail (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[09:30:35] [SKIPPED] pf_loopback_busy (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[09:30:35] [SKIPPED] pf_loopback_retry (requires CONFIG_DRM_XE_DEBUG_SRIOV)
[09:30:35] ==================== [PASSED] pf_relay =====================
[09:30:35] ================== vf_relay (3 subtests) ===================
[09:30:35] [PASSED] vf_rejects_guc2vf_too_short
[09:30:35] [PASSED] vf_rejects_guc2vf_too_long
[09:30:35] [PASSED] vf_rejects_guc2vf_no_payload
[09:30:35] ==================== [PASSED] vf_relay =====================
[09:30:35] ================ pf_gt_config (9 subtests) =================
[09:30:35] [PASSED] fair_contexts_1vf
[09:30:35] [PASSED] fair_doorbells_1vf
[09:30:35] [PASSED] fair_ggtt_1vf
[09:30:35] ====================== fair_vram_1vf  ======================
[09:30:35] [PASSED] 3.50 GiB
[09:30:35] [PASSED] 11.5 GiB
[09:30:35] [PASSED] 15.5 GiB
[09:30:35] [PASSED] 31.5 GiB
[09:30:35] [PASSED] 63.5 GiB
[09:30:35] [PASSED] 1.91 GiB
[09:30:35] ================== [PASSED] fair_vram_1vf ==================
[09:30:35] ================ fair_vram_1vf_admin_only  =================
[09:30:35] [PASSED] 3.50 GiB
[09:30:35] [PASSED] 11.5 GiB
[09:30:35] [PASSED] 15.5 GiB
[09:30:35] [PASSED] 31.5 GiB
[09:30:35] [PASSED] 63.5 GiB
[09:30:35] [PASSED] 1.91 GiB
[09:30:35] ============ [PASSED] fair_vram_1vf_admin_only =============
[09:30:35] ====================== fair_contexts  ======================
[09:30:35] [PASSED] 1 VF
[09:30:35] [PASSED] 2 VFs
[09:30:35] [PASSED] 3 VFs
[09:30:35] [PASSED] 4 VFs
[09:30:35] [PASSED] 5 VFs
[09:30:35] [PASSED] 6 VFs
[09:30:35] [PASSED] 7 VFs
[09:30:35] [PASSED] 8 VFs
[09:30:35] [PASSED] 9 VFs
[09:30:35] [PASSED] 10 VFs
[09:30:35] [PASSED] 11 VFs
[09:30:35] [PASSED] 12 VFs
[09:30:35] [PASSED] 13 VFs
[09:30:35] [PASSED] 14 VFs
[09:30:35] [PASSED] 15 VFs
[09:30:35] [PASSED] 16 VFs
[09:30:35] [PASSED] 17 VFs
[09:30:35] [PASSED] 18 VFs
[09:30:35] [PASSED] 19 VFs
[09:30:35] [PASSED] 20 VFs
[09:30:35] [PASSED] 21 VFs
[09:30:35] [PASSED] 22 VFs
[09:30:35] [PASSED] 23 VFs
[09:30:35] [PASSED] 24 VFs
[09:30:35] [PASSED] 25 VFs
[09:30:35] [PASSED] 26 VFs
[09:30:35] [PASSED] 27 VFs
[09:30:35] [PASSED] 28 VFs
[09:30:35] [PASSED] 29 VFs
[09:30:35] [PASSED] 30 VFs
[09:30:35] [PASSED] 31 VFs
[09:30:35] [PASSED] 32 VFs
[09:30:35] [PASSED] 33 VFs
[09:30:35] [PASSED] 34 VFs
[09:30:35] [PASSED] 35 VFs
[09:30:35] [PASSED] 36 VFs
[09:30:35] [PASSED] 37 VFs
[09:30:35] [PASSED] 38 VFs
[09:30:35] [PASSED] 39 VFs
[09:30:35] [PASSED] 40 VFs
[09:30:35] [PASSED] 41 VFs
[09:30:35] [PASSED] 42 VFs
[09:30:35] [PASSED] 43 VFs
[09:30:35] [PASSED] 44 VFs
[09:30:35] [PASSED] 45 VFs
[09:30:35] [PASSED] 46 VFs
[09:30:35] [PASSED] 47 VFs
[09:30:35] [PASSED] 48 VFs
[09:30:35] [PASSED] 49 VFs
[09:30:35] [PASSED] 50 VFs
[09:30:35] [PASSED] 51 VFs
[09:30:35] [PASSED] 52 VFs
[09:30:35] [PASSED] 53 VFs
[09:30:35] [PASSED] 54 VFs
[09:30:35] [PASSED] 55 VFs
[09:30:35] [PASSED] 56 VFs
[09:30:35] [PASSED] 57 VFs
[09:30:35] [PASSED] 58 VFs
[09:30:35] [PASSED] 59 VFs
[09:30:35] [PASSED] 60 VFs
[09:30:35] [PASSED] 61 VFs
[09:30:35] [PASSED] 62 VFs
[09:30:35] [PASSED] 63 VFs
[09:30:35] ================== [PASSED] fair_contexts ==================
[09:30:35] ===================== fair_doorbells  ======================
[09:30:35] [PASSED] 1 VF
[09:30:35] [PASSED] 2 VFs
[09:30:35] [PASSED] 3 VFs
[09:30:35] [PASSED] 4 VFs
[09:30:35] [PASSED] 5 VFs
[09:30:35] [PASSED] 6 VFs
[09:30:35] [PASSED] 7 VFs
[09:30:35] [PASSED] 8 VFs
[09:30:35] [PASSED] 9 VFs
[09:30:35] [PASSED] 10 VFs
[09:30:35] [PASSED] 11 VFs
[09:30:35] [PASSED] 12 VFs
[09:30:35] [PASSED] 13 VFs
[09:30:35] [PASSED] 14 VFs
[09:30:35] [PASSED] 15 VFs
[09:30:35] [PASSED] 16 VFs
[09:30:35] [PASSED] 17 VFs
[09:30:35] [PASSED] 18 VFs
[09:30:35] [PASSED] 19 VFs
[09:30:35] [PASSED] 20 VFs
[09:30:35] [PASSED] 21 VFs
[09:30:35] [PASSED] 22 VFs
[09:30:35] [PASSED] 23 VFs
[09:30:35] [PASSED] 24 VFs
[09:30:35] [PASSED] 25 VFs
[09:30:35] [PASSED] 26 VFs
[09:30:35] [PASSED] 27 VFs
[09:30:35] [PASSED] 28 VFs
[09:30:35] [PASSED] 29 VFs
[09:30:35] [PASSED] 30 VFs
[09:30:35] [PASSED] 31 VFs
[09:30:35] [PASSED] 32 VFs
[09:30:35] [PASSED] 33 VFs
[09:30:35] [PASSED] 34 VFs
[09:30:35] [PASSED] 35 VFs
[09:30:35] [PASSED] 36 VFs
[09:30:35] [PASSED] 37 VFs
[09:30:35] [PASSED] 38 VFs
[09:30:35] [PASSED] 39 VFs
[09:30:35] [PASSED] 40 VFs
[09:30:35] [PASSED] 41 VFs
[09:30:35] [PASSED] 42 VFs
[09:30:35] [PASSED] 43 VFs
[09:30:35] [PASSED] 44 VFs
[09:30:35] [PASSED] 45 VFs
[09:30:35] [PASSED] 46 VFs
[09:30:35] [PASSED] 47 VFs
[09:30:35] [PASSED] 48 VFs
[09:30:35] [PASSED] 49 VFs
[09:30:35] [PASSED] 50 VFs
[09:30:35] [PASSED] 51 VFs
[09:30:35] [PASSED] 52 VFs
[09:30:35] [PASSED] 53 VFs
[09:30:35] [PASSED] 54 VFs
[09:30:35] [PASSED] 55 VFs
[09:30:35] [PASSED] 56 VFs
[09:30:35] [PASSED] 57 VFs
[09:30:35] [PASSED] 58 VFs
[09:30:35] [PASSED] 59 VFs
[09:30:35] [PASSED] 60 VFs
[09:30:35] [PASSED] 61 VFs
[09:30:35] [PASSED] 62 VFs
[09:30:35] [PASSED] 63 VFs
[09:30:35] ================= [PASSED] fair_doorbells ==================
[09:30:35] ======================== fair_ggtt  ========================
[09:30:35] [PASSED] 1 VF
[09:30:35] [PASSED] 2 VFs
[09:30:35] [PASSED] 3 VFs
[09:30:35] [PASSED] 4 VFs
[09:30:35] [PASSED] 5 VFs
[09:30:35] [PASSED] 6 VFs
[09:30:35] [PASSED] 7 VFs
[09:30:35] [PASSED] 8 VFs
[09:30:35] [PASSED] 9 VFs
[09:30:35] [PASSED] 10 VFs
[09:30:35] [PASSED] 11 VFs
[09:30:35] [PASSED] 12 VFs
[09:30:35] [PASSED] 13 VFs
[09:30:35] [PASSED] 14 VFs
[09:30:35] [PASSED] 15 VFs
[09:30:35] [PASSED] 16 VFs
[09:30:35] [PASSED] 17 VFs
[09:30:35] [PASSED] 18 VFs
[09:30:35] [PASSED] 19 VFs
[09:30:35] [PASSED] 20 VFs
[09:30:35] [PASSED] 21 VFs
[09:30:35] [PASSED] 22 VFs
[09:30:35] [PASSED] 23 VFs
[09:30:35] [PASSED] 24 VFs
[09:30:35] [PASSED] 25 VFs
[09:30:35] [PASSED] 26 VFs
[09:30:35] [PASSED] 27 VFs
[09:30:35] [PASSED] 28 VFs
[09:30:35] [PASSED] 29 VFs
[09:30:35] [PASSED] 30 VFs
[09:30:35] [PASSED] 31 VFs
[09:30:35] [PASSED] 32 VFs
[09:30:35] [PASSED] 33 VFs
[09:30:35] [PASSED] 34 VFs
[09:30:35] [PASSED] 35 VFs
[09:30:35] [PASSED] 36 VFs
[09:30:35] [PASSED] 37 VFs
[09:30:35] [PASSED] 38 VFs
[09:30:35] [PASSED] 39 VFs
[09:30:35] [PASSED] 40 VFs
[09:30:35] [PASSED] 41 VFs
[09:30:35] [PASSED] 42 VFs
[09:30:35] [PASSED] 43 VFs
[09:30:35] [PASSED] 44 VFs
[09:30:35] [PASSED] 45 VFs
[09:30:35] [PASSED] 46 VFs
[09:30:35] [PASSED] 47 VFs
[09:30:35] [PASSED] 48 VFs
[09:30:35] [PASSED] 49 VFs
[09:30:35] [PASSED] 50 VFs
[09:30:35] [PASSED] 51 VFs
[09:30:35] [PASSED] 52 VFs
[09:30:35] [PASSED] 53 VFs
[09:30:35] [PASSED] 54 VFs
[09:30:35] [PASSED] 55 VFs
[09:30:35] [PASSED] 56 VFs
[09:30:35] [PASSED] 57 VFs
[09:30:35] [PASSED] 58 VFs
[09:30:35] [PASSED] 59 VFs
[09:30:35] [PASSED] 60 VFs
[09:30:35] [PASSED] 61 VFs
[09:30:35] [PASSED] 62 VFs
[09:30:35] [PASSED] 63 VFs
[09:30:35] ==================== [PASSED] fair_ggtt ====================
[09:30:35] ======================== fair_vram  ========================
[09:30:35] [PASSED] 1 VF
[09:30:35] [PASSED] 2 VFs
[09:30:35] [PASSED] 3 VFs
[09:30:35] [PASSED] 4 VFs
[09:30:35] [PASSED] 5 VFs
[09:30:35] [PASSED] 6 VFs
[09:30:35] [PASSED] 7 VFs
[09:30:35] [PASSED] 8 VFs
[09:30:35] [PASSED] 9 VFs
[09:30:35] [PASSED] 10 VFs
[09:30:35] [PASSED] 11 VFs
[09:30:35] [PASSED] 12 VFs
[09:30:35] [PASSED] 13 VFs
[09:30:35] [PASSED] 14 VFs
[09:30:35] [PASSED] 15 VFs
[09:30:35] [PASSED] 16 VFs
[09:30:36] [PASSED] 17 VFs
[09:30:36] [PASSED] 18 VFs
[09:30:36] [PASSED] 19 VFs
[09:30:36] [PASSED] 20 VFs
[09:30:36] [PASSED] 21 VFs
[09:30:36] [PASSED] 22 VFs
[09:30:36] [PASSED] 23 VFs
[09:30:36] [PASSED] 24 VFs
[09:30:36] [PASSED] 25 VFs
[09:30:36] [PASSED] 26 VFs
[09:30:36] [PASSED] 27 VFs
[09:30:36] [PASSED] 28 VFs
[09:30:36] [PASSED] 29 VFs
[09:30:36] [PASSED] 30 VFs
[09:30:36] [PASSED] 31 VFs
[09:30:36] [PASSED] 32 VFs
[09:30:36] [PASSED] 33 VFs
[09:30:36] [PASSED] 34 VFs
[09:30:36] [PASSED] 35 VFs
[09:30:36] [PASSED] 36 VFs
[09:30:36] [PASSED] 37 VFs
[09:30:36] [PASSED] 38 VFs
[09:30:36] [PASSED] 39 VFs
[09:30:36] [PASSED] 40 VFs
[09:30:36] [PASSED] 41 VFs
[09:30:36] [PASSED] 42 VFs
[09:30:36] [PASSED] 43 VFs
[09:30:36] [PASSED] 44 VFs
[09:30:36] [PASSED] 45 VFs
[09:30:36] [PASSED] 46 VFs
[09:30:36] [PASSED] 47 VFs
[09:30:36] [PASSED] 48 VFs
[09:30:36] [PASSED] 49 VFs
[09:30:36] [PASSED] 50 VFs
[09:30:36] [PASSED] 51 VFs
[09:30:36] [PASSED] 52 VFs
[09:30:36] [PASSED] 53 VFs
[09:30:36] [PASSED] 54 VFs
[09:30:36] [PASSED] 55 VFs
[09:30:36] [PASSED] 56 VFs
[09:30:36] [PASSED] 57 VFs
[09:30:36] [PASSED] 58 VFs
[09:30:36] [PASSED] 59 VFs
[09:30:36] [PASSED] 60 VFs
[09:30:36] [PASSED] 61 VFs
[09:30:36] [PASSED] 62 VFs
[09:30:36] [PASSED] 63 VFs
[09:30:36] ==================== [PASSED] fair_vram ====================
[09:30:36] ================== [PASSED] pf_gt_config ===================
[09:30:36] ===================== lmtt (1 subtest) =====================
[09:30:36] ======================== test_ops  =========================
[09:30:36] [PASSED] 2-level
[09:30:36] [PASSED] multi-level
[09:30:36] ==================== [PASSED] test_ops =====================
[09:30:36] ====================== [PASSED] lmtt =======================
[09:30:36] ================= sriov_packet (1 subtest) =================
[09:30:36] [PASSED] test_descriptor_init
[09:30:36] ================== [PASSED] sriov_packet ===================
[09:30:36] ================= pf_service (11 subtests) =================
[09:30:36] [PASSED] pf_negotiate_any
[09:30:36] [PASSED] pf_negotiate_base_match
[09:30:36] [PASSED] pf_negotiate_base_newer
[09:30:36] [PASSED] pf_negotiate_base_next
[09:30:36] [SKIPPED] pf_negotiate_base_older (no older minor)
[09:30:36] [PASSED] pf_negotiate_base_prev
[09:30:36] [PASSED] pf_negotiate_latest_match
[09:30:36] [PASSED] pf_negotiate_latest_newer
[09:30:36] [PASSED] pf_negotiate_latest_next
[09:30:36] [SKIPPED] pf_negotiate_latest_older (no older minor)
[09:30:36] [SKIPPED] pf_negotiate_latest_prev (no prev major)
[09:30:36] =================== [PASSED] pf_service ====================
[09:30:36] ================= xe_guc_g2g (2 subtests) ==================
[09:30:36] ============== xe_live_guc_g2g_kunit_default  ==============
[09:30:36] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[09:30:36] ============== xe_live_guc_g2g_kunit_allmem  ===============
[09:30:36] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[09:30:36] =================== [SKIPPED] xe_guc_g2g ===================
[09:30:36] =================== xe_mocs (2 subtests) ===================
[09:30:36] ================ xe_live_mocs_kernel_kunit  ================
[09:30:36] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[09:30:36] ================ xe_live_mocs_reset_kunit  =================
[09:30:36] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[09:30:36] ==================== [SKIPPED] xe_mocs =====================
[09:30:36] ================= xe_migrate (3 subtests) ==================
[09:30:36] ================= xe_migrate_sanity_kunit  =================
[09:30:36] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[09:30:36] ================== xe_validate_ccs_kunit  ==================
[09:30:36] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[09:30:36] ============= xe_migrate_access_memory_kunit  ==============
[09:30:36] ========= [SKIPPED] xe_migrate_access_memory_kunit =========
[09:30:36] =================== [SKIPPED] xe_migrate ===================
[09:30:36] ================== xe_dma_buf (1 subtest) ==================
[09:30:36] ==================== xe_dma_buf_kunit  =====================
[09:30:36] ================ [SKIPPED] xe_dma_buf_kunit ================
[09:30:36] =================== [SKIPPED] xe_dma_buf ===================
[09:30:36] ================= xe_bo_shrink (1 subtest) =================
[09:30:36] =================== xe_bo_shrink_kunit  ====================
[09:30:36] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[09:30:36] ================== [SKIPPED] xe_bo_shrink ==================
[09:30:36] ==================== xe_bo (2 subtests) ====================
[09:30:36] ================== xe_ccs_migrate_kunit  ===================
[09:30:36] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[09:30:36] ==================== xe_bo_evict_kunit  ====================
[09:30:36] =============== [SKIPPED] xe_bo_evict_kunit ================
[09:30:36] ===================== [SKIPPED] xe_bo ======================
[09:30:36] =================== xe_any (9 subtests) ====================
[09:30:36] [PASSED] test_to_xe
[09:30:36] [PASSED] test_to_dev
[09:30:36] [PASSED] test_to_pdev
[09:30:36] [PASSED] test_to_drm
[09:30:36] [PASSED] test_if_pdev
[09:30:36] [PASSED] test_if_xe
[09:30:36] [PASSED] test_if_tile
[09:30:36] [PASSED] test_if_gt
[09:30:36] [PASSED] test_to_id
[09:30:36] ===================== [PASSED] xe_any ======================
[09:30:36] ==================== args (13 subtests) ====================
[09:30:36] [PASSED] count_args_test
[09:30:36] [PASSED] call_args_example
[09:30:36] [PASSED] call_args_test
[09:30:36] [PASSED] drop_first_arg_example
[09:30:36] [PASSED] drop_first_arg_test
[09:30:36] [PASSED] first_arg_example
[09:30:36] [PASSED] first_arg_test
[09:30:36] [PASSED] last_arg_example
[09:30:36] [PASSED] last_arg_test
[09:30:36] [PASSED] pick_arg_example
[09:30:36] [PASSED] if_args_example
[09:30:36] [PASSED] if_args_test
[09:30:36] [PASSED] sep_comma_example
[09:30:36] ====================== [PASSED] args =======================
[09:30:36] =================== xe_pci (3 subtests) ====================
[09:30:36] ==================== check_graphics_ip  ====================
[09:30:36] [PASSED] 12.00 Xe_LP
[09:30:36] [PASSED] 12.10 Xe_LP+
[09:30:36] [PASSED] 12.55 Xe_HPG
[09:30:36] [PASSED] 12.60 Xe_HPC
[09:30:36] [PASSED] 12.70 Xe_LPG
[09:30:36] [PASSED] 12.71 Xe_LPG
[09:30:36] [PASSED] 12.74 Xe_LPG+
[09:30:36] [PASSED] 20.01 Xe2_HPG
[09:30:36] [PASSED] 20.02 Xe2_HPG
[09:30:36] [PASSED] 20.04 Xe2_LPG
[09:30:36] [PASSED] 30.00 Xe3_LPG
[09:30:36] [PASSED] 30.01 Xe3_LPG
[09:30:36] [PASSED] 30.03 Xe3_LPG
[09:30:36] [PASSED] 30.04 Xe3_LPG
[09:30:36] [PASSED] 30.05 Xe3_LPG
[09:30:36] [PASSED] 35.10 Xe3p_LPG
[09:30:36] [PASSED] 35.11 Xe3p_XPC
[09:30:36] ================ [PASSED] check_graphics_ip ================
[09:30:36] ===================== check_media_ip  ======================
[09:30:36] [PASSED] 12.00 Xe_M
[09:30:36] [PASSED] 12.55 Xe_HPM
[09:30:36] [PASSED] 13.00 Xe_LPM+
[09:30:36] [PASSED] 13.01 Xe2_HPM
[09:30:36] [PASSED] 20.00 Xe2_LPM
[09:30:36] [PASSED] 30.00 Xe3_LPM
[09:30:36] [PASSED] 30.02 Xe3_LPM
[09:30:36] [PASSED] 35.00 Xe3p_LPM
[09:30:36] [PASSED] 35.03 Xe3p_HPM
[09:30:36] ================= [PASSED] check_media_ip ==================
[09:30:36] =================== check_platform_desc  ===================
[09:30:36] [PASSED] 0x9A60 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A68 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A70 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A40 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A49 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A59 (TIGERLAKE)
[09:30:36] [PASSED] 0x9A78 (TIGERLAKE)
[09:30:36] [PASSED] 0x9AC0 (TIGERLAKE)
[09:30:36] [PASSED] 0x9AC9 (TIGERLAKE)
[09:30:36] [PASSED] 0x9AD9 (TIGERLAKE)
[09:30:36] [PASSED] 0x9AF8 (TIGERLAKE)
[09:30:36] [PASSED] 0x4C80 (ROCKETLAKE)
[09:30:36] [PASSED] 0x4C8A (ROCKETLAKE)
[09:30:36] [PASSED] 0x4C8B (ROCKETLAKE)
[09:30:36] [PASSED] 0x4C8C (ROCKETLAKE)
[09:30:36] [PASSED] 0x4C90 (ROCKETLAKE)
[09:30:36] [PASSED] 0x4C9A (ROCKETLAKE)
[09:30:36] [PASSED] 0x4680 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4682 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4688 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x468A (ALDERLAKE_S)
[09:30:36] [PASSED] 0x468B (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4690 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4692 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4693 (ALDERLAKE_S)
[09:30:36] [PASSED] 0x46A0 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46A1 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46A2 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46A3 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46A6 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46A8 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46AA (ALDERLAKE_P)
[09:30:36] [PASSED] 0x462A (ALDERLAKE_P)
[09:30:36] [PASSED] 0x4626 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x4628 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46B0 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46B1 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46B2 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46B3 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46C0 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46C1 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46C2 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46C3 (ALDERLAKE_P)
[09:30:36] [PASSED] 0x46D0 (ALDERLAKE_N)
[09:30:36] [PASSED] 0x46D1 (ALDERLAKE_N)
[09:30:36] [PASSED] 0x46D2 (ALDERLAKE_N)
[09:30:36] [PASSED] 0x46D3 (ALDERLAKE_N)
[09:30:36] [PASSED] 0x46D4 (ALDERLAKE_N)
[09:30:36] [PASSED] 0xA721 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7A1 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7A9 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7AC (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7AD (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA720 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7A0 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7A8 (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7AA (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA7AB (ALDERLAKE_P)
[09:30:36] [PASSED] 0xA780 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA781 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA782 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA783 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA788 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA789 (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA78A (ALDERLAKE_S)
[09:30:36] [PASSED] 0xA78B (ALDERLAKE_S)
[09:30:36] [PASSED] 0x4905 (DG1)
[09:30:36] [PASSED] 0x4906 (DG1)
[09:30:36] [PASSED] 0x4907 (DG1)
[09:30:36] [PASSED] 0x4908 (DG1)
[09:30:36] [PASSED] 0x4909 (DG1)
[09:30:36] [PASSED] 0x56C0 (DG2)
[09:30:36] [PASSED] 0x56C2 (DG2)
[09:30:36] [PASSED] 0x56C1 (DG2)
[09:30:36] [PASSED] 0x7D51 (METEORLAKE)
[09:30:36] [PASSED] 0x7DD1 (METEORLAKE)
[09:30:36] [PASSED] 0x7D41 (METEORLAKE)
[09:30:36] [PASSED] 0x7D67 (METEORLAKE)
[09:30:36] [PASSED] 0xB640 (METEORLAKE)
[09:30:36] [PASSED] 0x56A0 (DG2)
[09:30:36] [PASSED] 0x56A1 (DG2)
[09:30:36] [PASSED] 0x56A2 (DG2)
[09:30:36] [PASSED] 0x56BE (DG2)
[09:30:36] [PASSED] 0x56BF (DG2)
[09:30:36] [PASSED] 0x5690 (DG2)
[09:30:36] [PASSED] 0x5691 (DG2)
[09:30:36] [PASSED] 0x5692 (DG2)
[09:30:36] [PASSED] 0x56A5 (DG2)
[09:30:36] [PASSED] 0x56A6 (DG2)
[09:30:36] [PASSED] 0x56B0 (DG2)
[09:30:36] [PASSED] 0x56B1 (DG2)
[09:30:36] [PASSED] 0x56BA (DG2)
[09:30:36] [PASSED] 0x56BB (DG2)
[09:30:36] [PASSED] 0x56BC (DG2)
[09:30:36] [PASSED] 0x56BD (DG2)
[09:30:36] [PASSED] 0x5693 (DG2)
[09:30:36] [PASSED] 0x5694 (DG2)
[09:30:36] [PASSED] 0x5695 (DG2)
[09:30:36] [PASSED] 0x56A3 (DG2)
[09:30:36] [PASSED] 0x56A4 (DG2)
[09:30:36] [PASSED] 0x56B2 (DG2)
[09:30:36] [PASSED] 0x56B3 (DG2)
[09:30:36] [PASSED] 0x5696 (DG2)
[09:30:36] [PASSED] 0x5697 (DG2)
[09:30:36] [PASSED] 0xB69 (PVC)
[09:30:36] [PASSED] 0xB6E (PVC)
[09:30:36] [PASSED] 0xBD4 (PVC)
[09:30:36] [PASSED] 0xBD5 (PVC)
[09:30:36] [PASSED] 0xBD6 (PVC)
[09:30:36] [PASSED] 0xBD7 (PVC)
[09:30:36] [PASSED] 0xBD8 (PVC)
[09:30:36] [PASSED] 0xBD9 (PVC)
[09:30:36] [PASSED] 0xBDA (PVC)
[09:30:36] [PASSED] 0xBDB (PVC)
[09:30:36] [PASSED] 0xBE0 (PVC)
[09:30:36] [PASSED] 0xBE1 (PVC)
[09:30:36] [PASSED] 0xBE5 (PVC)
[09:30:36] [PASSED] 0x7D40 (METEORLAKE)
[09:30:36] [PASSED] 0x7D45 (METEORLAKE)
[09:30:36] [PASSED] 0x7D55 (METEORLAKE)
[09:30:36] [PASSED] 0x7D60 (METEORLAKE)
[09:30:36] [PASSED] 0x7DD5 (METEORLAKE)
[09:30:36] [PASSED] 0x6420 (LUNARLAKE)
[09:30:36] [PASSED] 0x64A0 (LUNARLAKE)
[09:30:36] [PASSED] 0x64B0 (LUNARLAKE)
[09:30:36] [PASSED] 0xE202 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE209 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE20B (BATTLEMAGE)
[09:30:36] [PASSED] 0xE20C (BATTLEMAGE)
[09:30:36] [PASSED] 0xE20D (BATTLEMAGE)
[09:30:36] [PASSED] 0xE210 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE211 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE212 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE216 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE220 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE221 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE222 (BATTLEMAGE)
[09:30:36] [PASSED] 0xE223 (BATTLEMAGE)
[09:30:36] [PASSED] 0xB080 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB081 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB082 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB083 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB084 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB085 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB086 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB087 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB08F (PANTHERLAKE)
[09:30:36] [PASSED] 0xB090 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB0A0 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB0A1 (PANTHERLAKE)
[09:30:36] [PASSED] 0xB0B0 (PANTHERLAKE)
[09:30:36] [PASSED] 0xFD80 (PANTHERLAKE)
[09:30:36] [PASSED] 0xFD81 (PANTHERLAKE)
[09:30:36] [PASSED] 0xD740 (NOVALAKE_S)
[09:30:36] [PASSED] 0xD741 (NOVALAKE_S)
[09:30:36] [PASSED] 0xD742 (NOVALAKE_S)
[09:30:36] [PASSED] 0xD743 (NOVALAKE_S)
[09:30:36] [PASSED] 0xD745 (NOVALAKE_S)
[09:30:36] [PASSED] 0xD74A (NOVALAKE_S)
[09:30:36] [PASSED] 0xD74B (NOVALAKE_S)
[09:30:36] [PASSED] 0x674C (CRESCENTISLAND)
[09:30:36] [PASSED] 0x674D (CRESCENTISLAND)
[09:30:36] [PASSED] 0x674E (CRESCENTISLAND)
[09:30:36] [PASSED] 0x674F (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6750 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6751 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6752 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6753 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6754 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6755 (CRESCENTISLAND)
[09:30:36] [PASSED] 0x6756 (CRESCENTISLAND)
[09:30:36] [PASSED] 0xD750 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD751 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD752 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD753 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD754 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD755 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD756 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD757 (NOVALAKE_P)
[09:30:36] [PASSED] 0xD75F (NOVALAKE_P)
[09:30:36] =============== [PASSED] check_platform_desc ===============
[09:30:36] ===================== [PASSED] xe_pci ======================
[09:30:36] ============= xe_rtp_tables_test (5 subtests) ==============
[09:30:36] ================== xe_rtp_table_gt_test  ===================
[09:30:36] [PASSED] gt_was/14011060649
[09:30:36] [PASSED] gt_was/14011059788
[09:30:36] [PASSED] gt_was/14015795083
[09:30:36] [PASSED] gt_was/16021867713
[09:30:36] [PASSED] gt_was/14019449301
[09:30:36] [PASSED] gt_was/16028005424
[09:30:36] [PASSED] gt_was/14026578760
[09:30:36] [PASSED] gt_was/1409420604
[09:30:36] [PASSED] gt_was/1408615072
[09:30:36] [PASSED] gt_was/22010523718
[09:30:36] [PASSED] gt_was/14011006942
[09:30:36] [PASSED] gt_was/14014830051
[09:30:36] [PASSED] gt_was/18018781329
[09:30:36] [PASSED] gt_was/1509235366
[09:30:36] [PASSED] gt_was/18018781329
[09:30:36] [PASSED] gt_was/16016694945
[09:30:36] [PASSED] gt_was/14018575942
[09:30:36] [PASSED] gt_was/22016670082
[09:30:36] [PASSED] gt_was/22016670082
[09:30:36] [PASSED] gt_was/14017421178
[09:30:36] [PASSED] gt_was/16025250150
[09:30:36] [PASSED] gt_was/14021871409
[09:30:36] [PASSED] gt_was/16021865536
[09:30:36] [PASSED] gt_was/14021486841
[09:30:36] [PASSED] gt_was/14025160223
[09:30:36] [PASSED] gt_was/14026144927, 16029437861, 14026127056
[09:30:36] [PASSED] gt_was/14025635424
[09:30:36] [PASSED] gt_was/16028005424
[09:30:36] ============== [PASSED] xe_rtp_table_gt_test ===============
[09:30:36] ================== xe_rtp_table_gt_test  ===================
[09:30:36] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[09:30:36] [PASSED] gt_tunings/Tuning: 32B Access Enable
[09:30:36] [PASSED] gt_tunings/Tuning: L3 cache
[09:30:36] [PASSED] gt_tunings/Tuning: L3 cache - media
[09:30:36] [PASSED] gt_tunings/Tuning: Compression Overfetch
[09:30:36] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[09:30:36] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[09:30:36] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[09:30:36] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[09:30:36] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[09:30:36] [PASSED] gt_tunings/Tuning: Stateless compression control
[09:30:36] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[09:30:36] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[09:30:36] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[09:30:36] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[09:30:36] [PASSED] gt_tunings/Tuning: Force All Non-Compressible Memory Reads to be 256B Overfetches
[09:30:36] ============== [PASSED] xe_rtp_table_gt_test ===============
[09:30:36] ================== xe_rtp_table_oob_test  ==================
[09:30:36] [PASSED] oob_was/1607983814
[09:30:36] [PASSED] oob_was/16010904313
[09:30:36] [PASSED] oob_was/18022495364
[09:30:36] [PASSED] oob_was/22012773006
[09:30:36] [PASSED] oob_was/14014475959
[09:30:36] [PASSED] oob_was/22011391025
[09:30:36] [PASSED] oob_was/22012727170
[09:30:36] [PASSED] oob_was/22012727685
[09:30:36] [PASSED] oob_was/22016596838
[09:30:36] [PASSED] oob_was/18020744125
[09:30:36] [PASSED] oob_was/1409600907
[09:30:36] [PASSED] oob_was/22014953428
[09:30:36] [PASSED] oob_was/16017236439
[09:30:36] [PASSED] oob_was/14019821291
[09:30:36] [PASSED] oob_was/14015076503
[09:30:36] [PASSED] oob_was/22016122933
[09:30:36] [PASSED] oob_was/14018913170
[09:30:36] [PASSED] oob_was/14018094691
[09:30:36] [PASSED] oob_was/18024947630
[09:30:36] [PASSED] oob_was/16022287689
[09:30:36] [PASSED] oob_was/13011645652
[09:30:36] [PASSED] oob_was/14022293748
[09:30:36] [PASSED] oob_was/22019794406
[09:30:36] [PASSED] oob_was/22019338487
[09:30:36] [PASSED] oob_was/16023588340
[09:30:36] [PASSED] oob_was/14019789679
[09:30:36] [PASSED] oob_was/14022866841
[09:30:36] [PASSED] oob_was/16021333562
[09:30:36] [PASSED] oob_was/14016712196
[09:30:36] [PASSED] oob_was/14015568240
[09:30:36] [PASSED] oob_was/18013179988
[09:30:36] [PASSED] oob_was/1508761755
[09:30:36] [PASSED] oob_was/16023105232
[09:30:36] [PASSED] oob_was/16026508708
[09:30:36] [PASSED] oob_was/14020001231
[09:30:36] [PASSED] oob_was/16023683509
[09:30:36] [PASSED] oob_was/14025515070
[09:30:36] [PASSED] oob_was/15015404425_disable
[09:30:36] [PASSED] oob_was/16026007364
[09:30:36] [PASSED] oob_was/14020316580
[09:30:36] [PASSED] oob_was/14025883347
[09:30:36] [PASSED] oob_was/16029380221
[09:30:36] [PASSED] oob_was/22022079272
[09:30:36] [PASSED] oob_was/16029897822
[09:30:36] [PASSED] oob_was/14026539277
[09:30:36] [PASSED] oob_was/14028564128
[09:30:36] [PASSED] oob_was/14027054324
[09:30:36] [PASSED] oob_was/14025941587
[09:30:36] [PASSED] oob_was/16030224309
[09:30:36] [PASSED] oob_was/14028709524
[09:30:36] [PASSED] oob_was/14028250015
[09:30:36] [PASSED] oob_was/16031259911
[09:30:36] [PASSED] oob_was/14028597154
[09:30:36] ============== [PASSED] xe_rtp_table_oob_test ==============
[09:30:36] ================ xe_rtp_table_dev_oob_test  ================
[09:30:36] [PASSED] device_oob_was/22010954014
[09:30:36] [PASSED] device_oob_was/15015404425
[09:30:36] [PASSED] device_oob_was/22019338487_display
[09:30:36] [PASSED] device_oob_was/14022085890
[09:30:36] [PASSED] device_oob_was/14026633728
[09:30:36] [PASSED] device_oob_was/14026746987
[09:30:36] [PASSED] device_oob_was/14026779378
[09:30:36] [PASSED] device_oob_was/14028586678
[09:30:36] [PASSED] device_oob_was/14028434957
[09:30:36] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[09:30:36] ========== xe_rtp_table_missing_upper_bound_test  ==========
[09:30:36] [PASSED] register_whitelist/WaAllowPMDepthAndInvocationCountAccessFromUMD, 1408556865
[09:30:36] [PASSED] register_whitelist/1508744258, 14012131227, 1808121037
[09:30:36] [PASSED] register_whitelist/1806527549
[09:30:36] [PASSED] register_whitelist/allow_read_ctx_timestamp
[09:30:36] [PASSED] register_whitelist/allow_read_queue_timestamp
[09:30:36] [PASSED] register_whitelist/16014440446
[09:30:36] [PASSED] register_whitelist/16017236439
[09:30:36] [PASSED] register_whitelist/16020183090
[09:30:36] [PASSED] register_whitelist/14024997852
[09:30:36] [PASSED] register_whitelist/14024997852
[09:30:36] ====== [PASSED] xe_rtp_table_missing_upper_bound_test ======
[09:30:36] =============== [PASSED] xe_rtp_tables_test ================
[09:30:36] =================== xe_rtp (3 subtests) ====================
[09:30:36] =================== xe_rtp_rules_tests  ====================
[09:30:36] [PASSED] no
[09:30:36] [PASSED] yes
[09:30:36] [PASSED] no-and-no
[09:30:36] [PASSED] no-and-yes
[09:30:36] [PASSED] yes-and-no
[09:30:36] [PASSED] yes-and-yes
[09:30:36] [PASSED] no-or-no
[09:30:36] [PASSED] no-or-yes
[09:30:36] [PASSED] yes-or-no
[09:30:36] [PASSED] yes-or-yes
[09:30:36] [PASSED] no-yes-or-yes-no
[09:30:36] [PASSED] no-yes-or-yes-yes
[09:30:36] [PASSED] yes-yes-or-no-yes
[09:30:36] [PASSED] yes-yes-or-yes-yes
[09:30:36] [PASSED] no-no-or-yes-or-no
[09:30:36] [PASSED] or
[09:30:36] [PASSED] or-yes
[09:30:36] [PASSED] or-no
[09:30:36] [PASSED] yes-or
[09:30:36] [PASSED] no-or
[09:30:36] [PASSED] no-or-or-yes
[09:30:36] [PASSED] yes-or-or-no
[09:30:36] [PASSED] no-or-or-no
[09:30:36] [PASSED] missing-context-engine-class
[09:30:36] [PASSED] missing-context-engine-class-or-yes
[09:30:36] [PASSED] missing-context-engine-class-or-or-yes
[09:30:36] =============== [PASSED] xe_rtp_rules_tests ================
[09:30:36] =============== xe_rtp_process_to_sr_tests  ================
[09:30:36] [PASSED] coalesce-same-reg
[09:30:36] [PASSED] coalesce-same-reg-literal-and-func
[09:30:36] [PASSED] no-match-no-add
[09:30:36] [PASSED] two-regs-two-entries
[09:30:36] [PASSED] clr-one-set-other
[09:30:36] [PASSED] set-field
[09:30:36] [PASSED] conflict-duplicate
[09:30:36] [PASSED] conflict-not-disjoint
[09:30:36] [PASSED] conflict-not-disjoint-literal-and-func
[09:30:36] [PASSED] conflict-reg-type
[09:30:36] [PASSED] bad-mcr-reg-forced-to-regular
[09:30:36] [PASSED] bad-regular-reg-forced-to-mcr
[09:30:36] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[09:30:36] ================== xe_rtp_process_tests  ===================
[09:30:36] [PASSED] active1
[09:30:36] [PASSED] active2
[09:30:36] [PASSED] active-inactive
[09:30:36] [PASSED] inactive-active
[09:30:36] [PASSED] inactive-active-inactive
[09:30:36] [PASSED] inactive-inactive-inactive
[09:30:36] ============== [PASSED] xe_rtp_process_tests ===============
[09:30:36] ===================== [PASSED] xe_rtp ======================
[09:30:36] ==================== xe_wa (1 subtest) =====================
[09:30:36] ======================== xe_wa_gt  =========================
[09:30:36] [PASSED] TIGERLAKE B0
[09:30:36] [PASSED] DG1 A0
[09:30:36] [PASSED] DG1 B0
[09:30:36] [PASSED] ALDERLAKE_S A0
[09:30:36] [PASSED] ALDERLAKE_S B0
[09:30:36] [PASSED] ALDERLAKE_S C0
[09:30:36] [PASSED] ALDERLAKE_S D0
[09:30:36] [PASSED] ALDERLAKE_P A0
[09:30:36] [PASSED] ALDERLAKE_P B0
[09:30:36] [PASSED] ALDERLAKE_P C0
[09:30:36] [PASSED] ALDERLAKE_S RPLS D0
[09:30:36] [PASSED] ALDERLAKE_P RPLU E0
[09:30:36] [PASSED] DG2 G10 C0
[09:30:36] [PASSED] DG2 G11 B1
[09:30:36] [PASSED] DG2 G12 A1
[09:30:36] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[09:30:36] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[09:30:36] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[09:30:36] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[09:30:36] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[09:30:36] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[09:30:36] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[09:30:36] ==================== [PASSED] xe_wa_gt =====================
[09:30:36] ====================== [PASSED] xe_wa ======================
[09:30:36] ============================================================
[09:30:36] Testing complete. Ran 869 tests: passed: 840, skipped: 29
[09:30:36] Elapsed time: 41.933s total, 2.564s configuring, 38.603s building, 0.750s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[09:30:36] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[09:30:38] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[09:31:04] Starting KUnit Kernel (1/1)...
[09:31:04] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[09:31:04] ============ drm_test_pick_cmdline (2 subtests) ============
[09:31:04] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[09:31:04] =============== drm_test_pick_cmdline_named  ===============
[09:31:04] [PASSED] NTSC
[09:31:04] [PASSED] NTSC-J
[09:31:04] [PASSED] PAL
[09:31:04] [PASSED] PAL-M
[09:31:04] =========== [PASSED] drm_test_pick_cmdline_named ===========
[09:31:04] ============== [PASSED] drm_test_pick_cmdline ==============
[09:31:04] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[09:31:04] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[09:31:04] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[09:31:04] =========== drm_validate_clone_mode (2 subtests) ===========
[09:31:04] ============== drm_test_check_in_clone_mode  ===============
[09:31:04] [PASSED] in_clone_mode
[09:31:04] [PASSED] not_in_clone_mode
[09:31:04] ========== [PASSED] drm_test_check_in_clone_mode ===========
[09:31:04] =============== drm_test_check_valid_clones  ===============
[09:31:04] [PASSED] not_in_clone_mode
[09:31:04] [PASSED] valid_clone
[09:31:04] [PASSED] invalid_clone
[09:31:04] =========== [PASSED] drm_test_check_valid_clones ===========
[09:31:04] ============= [PASSED] drm_validate_clone_mode =============
[09:31:04] ============= drm_validate_modeset (1 subtest) =============
[09:31:04] [PASSED] drm_test_check_connector_changed_modeset
[09:31:04] ============== [PASSED] drm_validate_modeset ===============
[09:31:04] ====== drm_test_bridge_get_current_state (1 subtest) =======
[09:31:04] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[09:31:04] ======== [PASSED] drm_test_bridge_get_current_state ========
[09:31:04] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[09:31:04] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[09:31:04] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[09:31:04] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[09:31:04] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[09:31:04] ============== drm_bridge_alloc (2 subtests) ===============
[09:31:04] [PASSED] drm_test_drm_bridge_alloc_basic
[09:31:04] [PASSED] drm_test_drm_bridge_alloc_get_put
[09:31:04] ================ [PASSED] drm_bridge_alloc =================
[09:31:04] ============= drm_bridge_bus_fmt (5 subtests) ==============
[09:31:04] [PASSED] drm_test_bridge_rgb_yuv_rgb
[09:31:04] [PASSED] drm_test_bridge_must_convert_to_yuv444
[09:31:04] [PASSED] drm_test_bridge_hdmi_auto_rgb
[09:31:04] [PASSED] drm_test_bridge_auto_first
[09:31:04] [PASSED] drm_test_bridge_rgb_yuv_no_path
[09:31:04] =============== [PASSED] drm_bridge_bus_fmt ================
[09:31:04] ============= drm_cmdline_parser (40 subtests) =============
[09:31:04] [PASSED] drm_test_cmdline_force_d_only
[09:31:04] [PASSED] drm_test_cmdline_force_D_only_dvi
[09:31:04] [PASSED] drm_test_cmdline_force_D_only_hdmi
[09:31:04] [PASSED] drm_test_cmdline_force_D_only_not_digital
[09:31:04] [PASSED] drm_test_cmdline_force_e_only
[09:31:04] [PASSED] drm_test_cmdline_res
[09:31:04] [PASSED] drm_test_cmdline_res_vesa
[09:31:04] [PASSED] drm_test_cmdline_res_vesa_rblank
[09:31:04] [PASSED] drm_test_cmdline_res_rblank
[09:31:04] [PASSED] drm_test_cmdline_res_bpp
[09:31:04] [PASSED] drm_test_cmdline_res_refresh
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[09:31:04] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[09:31:04] [PASSED] drm_test_cmdline_res_margins_force_on
[09:31:04] [PASSED] drm_test_cmdline_res_vesa_margins
[09:31:04] [PASSED] drm_test_cmdline_name
[09:31:04] [PASSED] drm_test_cmdline_name_bpp
[09:31:04] [PASSED] drm_test_cmdline_name_option
[09:31:04] [PASSED] drm_test_cmdline_name_bpp_option
[09:31:04] [PASSED] drm_test_cmdline_rotate_0
[09:31:04] [PASSED] drm_test_cmdline_rotate_90
[09:31:04] [PASSED] drm_test_cmdline_rotate_180
[09:31:04] [PASSED] drm_test_cmdline_rotate_270
[09:31:04] [PASSED] drm_test_cmdline_hmirror
[09:31:04] [PASSED] drm_test_cmdline_vmirror
[09:31:04] [PASSED] drm_test_cmdline_margin_options
[09:31:04] [PASSED] drm_test_cmdline_multiple_options
[09:31:04] [PASSED] drm_test_cmdline_bpp_extra_and_option
[09:31:04] [PASSED] drm_test_cmdline_extra_and_option
[09:31:04] [PASSED] drm_test_cmdline_freestanding_options
[09:31:04] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[09:31:04] [PASSED] drm_test_cmdline_panel_orientation
[09:31:04] ================ drm_test_cmdline_invalid  =================
[09:31:04] [PASSED] margin_only
[09:31:04] [PASSED] interlace_only
[09:31:04] [PASSED] res_missing_x
[09:31:04] [PASSED] res_missing_y
[09:31:04] [PASSED] res_bad_y
[09:31:04] [PASSED] res_missing_y_bpp
[09:31:04] [PASSED] res_bad_bpp
[09:31:04] [PASSED] res_bad_refresh
[09:31:04] [PASSED] res_bpp_refresh_force_on_off
[09:31:04] [PASSED] res_invalid_mode
[09:31:04] [PASSED] res_bpp_wrong_place_mode
[09:31:04] [PASSED] name_bpp_refresh
[09:31:04] [PASSED] name_refresh
[09:31:04] [PASSED] name_refresh_wrong_mode
[09:31:04] [PASSED] name_refresh_invalid_mode
[09:31:04] [PASSED] rotate_multiple
[09:31:04] [PASSED] rotate_invalid_val
[09:31:04] [PASSED] rotate_truncated
[09:31:04] [PASSED] invalid_option
[09:31:04] [PASSED] invalid_tv_option
[09:31:04] [PASSED] truncated_tv_option
[09:31:04] ============ [PASSED] drm_test_cmdline_invalid =============
[09:31:04] =============== drm_test_cmdline_tv_options  ===============
[09:31:04] [PASSED] NTSC
[09:31:04] [PASSED] NTSC_443
[09:31:04] [PASSED] NTSC_J
[09:31:04] [PASSED] PAL
[09:31:04] [PASSED] PAL_M
[09:31:04] [PASSED] PAL_N
[09:31:04] [PASSED] SECAM
[09:31:04] [PASSED] MONO_525
[09:31:04] [PASSED] MONO_625
[09:31:04] =========== [PASSED] drm_test_cmdline_tv_options ===========
[09:31:04] =============== [PASSED] drm_cmdline_parser ================
[09:31:04] ========== drmm_connector_hdmi_init (20 subtests) ==========
[09:31:04] [PASSED] drm_test_connector_hdmi_init_valid
[09:31:04] [PASSED] drm_test_connector_hdmi_init_bpc_8
[09:31:04] [PASSED] drm_test_connector_hdmi_init_bpc_10
[09:31:04] [PASSED] drm_test_connector_hdmi_init_bpc_12
[09:31:04] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[09:31:04] [PASSED] drm_test_connector_hdmi_init_bpc_null
[09:31:04] [PASSED] drm_test_connector_hdmi_init_formats_empty
[09:31:04] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[09:31:04] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[09:31:04] [PASSED] supported_formats=0x9 yuv420_allowed=1
[09:31:04] [PASSED] supported_formats=0x9 yuv420_allowed=0
[09:31:04] [PASSED] supported_formats=0x5 yuv420_allowed=1
[09:31:04] [PASSED] supported_formats=0x5 yuv420_allowed=0
[09:31:04] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[09:31:04] [PASSED] drm_test_connector_hdmi_init_null_ddc
[09:31:04] [PASSED] drm_test_connector_hdmi_init_null_product
[09:31:04] [PASSED] drm_test_connector_hdmi_init_null_vendor
[09:31:04] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[09:31:04] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[09:31:04] [PASSED] drm_test_connector_hdmi_init_product_valid
[09:31:04] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[09:31:04] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[09:31:04] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[09:31:04] ========= drm_test_connector_hdmi_init_type_valid  =========
[09:31:04] [PASSED] HDMI-A
[09:31:04] [PASSED] HDMI-B
[09:31:04] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[09:31:04] ======== drm_test_connector_hdmi_init_type_invalid  ========
[09:31:04] [PASSED] Unknown
[09:31:04] [PASSED] VGA
[09:31:04] [PASSED] DVI-I
[09:31:04] [PASSED] DVI-D
[09:31:04] [PASSED] DVI-A
[09:31:04] [PASSED] Composite
[09:31:04] [PASSED] SVIDEO
[09:31:04] [PASSED] LVDS
[09:31:04] [PASSED] Component
[09:31:04] [PASSED] DIN
[09:31:04] [PASSED] DP
[09:31:04] [PASSED] TV
[09:31:04] [PASSED] eDP
[09:31:04] [PASSED] Virtual
[09:31:04] [PASSED] DSI
[09:31:04] [PASSED] DPI
[09:31:04] [PASSED] Writeback
[09:31:04] [PASSED] SPI
[09:31:04] [PASSED] USB
[09:31:04] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[09:31:04] ============ [PASSED] drmm_connector_hdmi_init =============
[09:31:04] ============= drmm_connector_init (3 subtests) =============
[09:31:04] [PASSED] drm_test_drmm_connector_init
[09:31:04] [PASSED] drm_test_drmm_connector_init_null_ddc
[09:31:04] ========= drm_test_drmm_connector_init_type_valid  =========
[09:31:04] [PASSED] Unknown
[09:31:04] [PASSED] VGA
[09:31:04] [PASSED] DVI-I
[09:31:04] [PASSED] DVI-D
[09:31:04] [PASSED] DVI-A
[09:31:04] [PASSED] Composite
[09:31:04] [PASSED] SVIDEO
[09:31:04] [PASSED] LVDS
[09:31:04] [PASSED] Component
[09:31:04] [PASSED] DIN
[09:31:04] [PASSED] DP
[09:31:04] [PASSED] HDMI-A
[09:31:04] [PASSED] HDMI-B
[09:31:04] [PASSED] TV
[09:31:04] [PASSED] eDP
[09:31:04] [PASSED] Virtual
[09:31:04] [PASSED] DSI
[09:31:04] [PASSED] DPI
[09:31:04] [PASSED] Writeback
[09:31:04] [PASSED] SPI
[09:31:04] [PASSED] USB
[09:31:04] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[09:31:04] =============== [PASSED] drmm_connector_init ===============
[09:31:04] ========= drm_connector_dynamic_init (6 subtests) ==========
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_init
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_init_properties
[09:31:04] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[09:31:04] [PASSED] Unknown
[09:31:04] [PASSED] VGA
[09:31:04] [PASSED] DVI-I
[09:31:04] [PASSED] DVI-D
[09:31:04] [PASSED] DVI-A
[09:31:04] [PASSED] Composite
[09:31:04] [PASSED] SVIDEO
[09:31:04] [PASSED] LVDS
[09:31:04] [PASSED] Component
[09:31:04] [PASSED] DIN
[09:31:04] [PASSED] DP
[09:31:04] [PASSED] HDMI-A
[09:31:04] [PASSED] HDMI-B
[09:31:04] [PASSED] TV
[09:31:04] [PASSED] eDP
[09:31:04] [PASSED] Virtual
[09:31:04] [PASSED] DSI
[09:31:04] [PASSED] DPI
[09:31:04] [PASSED] Writeback
[09:31:04] [PASSED] SPI
[09:31:04] [PASSED] USB
[09:31:04] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[09:31:04] ======== drm_test_drm_connector_dynamic_init_name  =========
[09:31:04] [PASSED] Unknown
[09:31:04] [PASSED] VGA
[09:31:04] [PASSED] DVI-I
[09:31:04] [PASSED] DVI-D
[09:31:04] [PASSED] DVI-A
[09:31:04] [PASSED] Composite
[09:31:04] [PASSED] SVIDEO
[09:31:04] [PASSED] LVDS
[09:31:04] [PASSED] Component
[09:31:04] [PASSED] DIN
[09:31:04] [PASSED] DP
[09:31:04] [PASSED] HDMI-A
[09:31:04] [PASSED] HDMI-B
[09:31:04] [PASSED] TV
[09:31:04] [PASSED] eDP
[09:31:04] [PASSED] Virtual
[09:31:04] [PASSED] DSI
[09:31:04] [PASSED] DPI
[09:31:04] [PASSED] Writeback
[09:31:04] [PASSED] SPI
[09:31:04] [PASSED] USB
[09:31:04] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[09:31:04] =========== [PASSED] drm_connector_dynamic_init ============
[09:31:04] ==== drm_connector_dynamic_register_early (4 subtests) =====
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[09:31:04] ====== [PASSED] drm_connector_dynamic_register_early =======
[09:31:04] ======= drm_connector_dynamic_register (7 subtests) ========
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[09:31:04] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[09:31:04] ========= [PASSED] drm_connector_dynamic_register ==========
[09:31:04] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[09:31:04] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[09:31:04] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[09:31:04] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[09:31:04] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[09:31:04] ========== drm_test_get_tv_mode_from_name_valid  ===========
[09:31:04] [PASSED] NTSC
[09:31:04] [PASSED] NTSC-443
[09:31:04] [PASSED] NTSC-J
[09:31:04] [PASSED] PAL
[09:31:04] [PASSED] PAL-M
[09:31:04] [PASSED] PAL-N
[09:31:04] [PASSED] SECAM
[09:31:04] [PASSED] Mono
[09:31:04] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[09:31:04] [PASSED] drm_test_get_tv_mode_from_name_truncated
[09:31:04] ============ [PASSED] drm_get_tv_mode_from_name ============
[09:31:04] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[09:31:04] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[09:31:04] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[09:31:04] [PASSED] VIC 96
[09:31:04] [PASSED] VIC 97
[09:31:04] [PASSED] VIC 101
[09:31:04] [PASSED] VIC 102
[09:31:04] [PASSED] VIC 106
[09:31:04] [PASSED] VIC 107
[09:31:04] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[09:31:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[09:31:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[09:31:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[09:31:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[09:31:04] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[09:31:04] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[09:31:04] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[09:31:04] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[09:31:04] [PASSED] Automatic
[09:31:04] [PASSED] Full
[09:31:04] [PASSED] Limited 16:235
[09:31:04] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[09:31:04] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[09:31:04] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[09:31:04] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[09:31:04] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[09:31:04] [PASSED] RGB
[09:31:04] [PASSED] YUV 4:2:0
[09:31:04] [PASSED] YUV 4:2:2
[09:31:04] [PASSED] YUV 4:4:4
[09:31:04] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[09:31:04] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[09:31:04] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[09:31:04] ============= drm_damage_helper (21 subtests) ==============
[09:31:04] [PASSED] drm_test_damage_iter_no_damage
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_src_moved
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_not_visible
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[09:31:04] [PASSED] drm_test_damage_iter_no_damage_no_fb
[09:31:04] [PASSED] drm_test_damage_iter_simple_damage
[09:31:04] [PASSED] drm_test_damage_iter_single_damage
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_outside_src
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_src_moved
[09:31:04] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[09:31:04] [PASSED] drm_test_damage_iter_damage
[09:31:04] [PASSED] drm_test_damage_iter_damage_one_intersect
[09:31:04] [PASSED] drm_test_damage_iter_damage_one_outside
[09:31:04] [PASSED] drm_test_damage_iter_damage_src_moved
[09:31:04] [PASSED] drm_test_damage_iter_damage_not_visible
[09:31:04] ================ [PASSED] drm_damage_helper ================
[09:31:04] ============== drm_dp_mst_helper (3 subtests) ==============
[09:31:04] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[09:31:04] [PASSED] Clock 154000 BPP 30 DSC disabled
[09:31:04] [PASSED] Clock 234000 BPP 30 DSC disabled
[09:31:04] [PASSED] Clock 297000 BPP 24 DSC disabled
[09:31:04] [PASSED] Clock 332880 BPP 24 DSC enabled
[09:31:04] [PASSED] Clock 324540 BPP 24 DSC enabled
[09:31:04] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[09:31:04] ============== drm_test_dp_mst_calc_pbn_div  ===============
[09:31:04] [PASSED] Link rate 2000000 lane count 4
[09:31:04] [PASSED] Link rate 2000000 lane count 2
[09:31:04] [PASSED] Link rate 2000000 lane count 1
[09:31:04] [PASSED] Link rate 1350000 lane count 4
[09:31:04] [PASSED] Link rate 1350000 lane count 2
[09:31:04] [PASSED] Link rate 1350000 lane count 1
[09:31:04] [PASSED] Link rate 1000000 lane count 4
[09:31:04] [PASSED] Link rate 1000000 lane count 2
[09:31:04] [PASSED] Link rate 1000000 lane count 1
[09:31:04] [PASSED] Link rate 810000 lane count 4
[09:31:04] [PASSED] Link rate 810000 lane count 2
[09:31:04] [PASSED] Link rate 810000 lane count 1
[09:31:04] [PASSED] Link rate 540000 lane count 4
[09:31:04] [PASSED] Link rate 540000 lane count 2
[09:31:04] [PASSED] Link rate 540000 lane count 1
[09:31:04] [PASSED] Link rate 270000 lane count 4
[09:31:04] [PASSED] Link rate 270000 lane count 2
[09:31:04] [PASSED] Link rate 270000 lane count 1
[09:31:04] [PASSED] Link rate 162000 lane count 4
[09:31:04] [PASSED] Link rate 162000 lane count 2
[09:31:04] [PASSED] Link rate 162000 lane count 1
[09:31:04] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[09:31:04] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[09:31:04] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[09:31:04] [PASSED] DP_POWER_UP_PHY with port number
[09:31:04] [PASSED] DP_POWER_DOWN_PHY with port number
[09:31:04] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[09:31:04] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[09:31:04] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[09:31:04] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[09:31:04] [PASSED] DP_QUERY_PAYLOAD with port number
[09:31:04] [PASSED] DP_QUERY_PAYLOAD with VCPI
[09:31:04] [PASSED] DP_REMOTE_DPCD_READ with port number
[09:31:04] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[09:31:04] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[09:31:04] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[09:31:04] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[09:31:04] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[09:31:04] [PASSED] DP_REMOTE_I2C_READ with port number
[09:31:04] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[09:31:04] [PASSED] DP_REMOTE_I2C_READ with transactions array
[09:31:04] [PASSED] DP_REMOTE_I2C_WRITE with port number
[09:31:04] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[09:31:04] [PASSED] DP_REMOTE_I2C_WRITE with data array
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[09:31:04] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[09:31:04] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[09:31:04] ================ [PASSED] drm_dp_mst_helper ================
[09:31:04] ================== drm_exec (7 subtests) ===================
[09:31:04] [PASSED] sanitycheck
[09:31:04] [PASSED] test_lock
[09:31:04] [PASSED] test_lock_unlock
[09:31:04] [PASSED] test_duplicates
[09:31:04] [PASSED] test_prepare
[09:31:04] [PASSED] test_prepare_array
[09:31:04] [PASSED] test_multiple_loops
[09:31:04] ==================== [PASSED] drm_exec =====================
[09:31:04] =========== drm_format_helper_test (17 subtests) ===========
[09:31:04] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[09:31:04] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[09:31:04] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[09:31:04] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[09:31:04] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[09:31:04] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[09:31:04] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[09:31:04] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[09:31:04] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[09:31:04] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[09:31:04] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[09:31:04] ============== drm_test_fb_xrgb8888_to_mono  ===============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[09:31:04] ==================== drm_test_fb_swab  =====================
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ================ [PASSED] drm_test_fb_swab =================
[09:31:04] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[09:31:04] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[09:31:04] [PASSED] single_pixel_source_buffer
[09:31:04] [PASSED] single_pixel_clip_rectangle
[09:31:04] [PASSED] well_known_colors
[09:31:04] [PASSED] destination_pitch
[09:31:04] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[09:31:04] ================= drm_test_fb_clip_offset  =================
[09:31:04] [PASSED] pass through
[09:31:04] [PASSED] horizontal offset
[09:31:04] [PASSED] vertical offset
[09:31:04] [PASSED] horizontal and vertical offset
[09:31:04] [PASSED] horizontal offset (custom pitch)
[09:31:04] [PASSED] vertical offset (custom pitch)
[09:31:04] [PASSED] horizontal and vertical offset (custom pitch)
[09:31:04] ============= [PASSED] drm_test_fb_clip_offset =============
[09:31:04] =================== drm_test_fb_memcpy  ====================
[09:31:04] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[09:31:04] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[09:31:04] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[09:31:04] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[09:31:04] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[09:31:04] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[09:31:04] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[09:31:04] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[09:31:04] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[09:31:04] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[09:31:04] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[09:31:04] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[09:31:04] =============== [PASSED] drm_test_fb_memcpy ================
[09:31:04] ============= [PASSED] drm_format_helper_test ==============
[09:31:04] ================= drm_format (18 subtests) =================
[09:31:04] [PASSED] drm_test_format_block_width_invalid
[09:31:04] [PASSED] drm_test_format_block_width_one_plane
[09:31:04] [PASSED] drm_test_format_block_width_two_plane
[09:31:04] [PASSED] drm_test_format_block_width_three_plane
[09:31:04] [PASSED] drm_test_format_block_width_tiled
[09:31:04] [PASSED] drm_test_format_block_height_invalid
[09:31:04] [PASSED] drm_test_format_block_height_one_plane
[09:31:04] [PASSED] drm_test_format_block_height_two_plane
[09:31:04] [PASSED] drm_test_format_block_height_three_plane
[09:31:04] [PASSED] drm_test_format_block_height_tiled
[09:31:04] [PASSED] drm_test_format_min_pitch_invalid
[09:31:04] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[09:31:04] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[09:31:04] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[09:31:04] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[09:31:04] [PASSED] drm_test_format_min_pitch_two_plane
[09:31:04] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[09:31:04] [PASSED] drm_test_format_min_pitch_tiled
[09:31:04] =================== [PASSED] drm_format ====================
[09:31:04] ============== drm_framebuffer (10 subtests) ===============
[09:31:04] ========== drm_test_framebuffer_check_src_coords  ==========
[09:31:04] [PASSED] Success: source fits into fb
[09:31:04] [PASSED] Fail: overflowing fb with x-axis coordinate
[09:31:04] [PASSED] Fail: overflowing fb with y-axis coordinate
[09:31:04] [PASSED] Fail: overflowing fb with source width
[09:31:04] [PASSED] Fail: overflowing fb with source height
[09:31:04] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[09:31:04] [PASSED] drm_test_framebuffer_cleanup
[09:31:04] =============== drm_test_framebuffer_create  ===============
[09:31:04] [PASSED] ABGR8888 normal sizes
[09:31:04] [PASSED] ABGR8888 max sizes
[09:31:04] [PASSED] ABGR8888 pitch greater than min required
[09:31:04] [PASSED] ABGR8888 pitch less than min required
[09:31:04] [PASSED] ABGR8888 Invalid width
[09:31:04] [PASSED] ABGR8888 Invalid buffer handle
[09:31:04] [PASSED] No pixel format
[09:31:04] [PASSED] ABGR8888 Width 0
[09:31:04] [PASSED] ABGR8888 Height 0
[09:31:04] [PASSED] ABGR8888 Out of bound height * pitch combination
[09:31:04] [PASSED] ABGR8888 Large buffer offset
[09:31:04] [PASSED] ABGR8888 Buffer offset for inexistent plane
[09:31:04] [PASSED] ABGR8888 Invalid flag
[09:31:04] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[09:31:04] [PASSED] ABGR8888 Valid buffer modifier
[09:31:04] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[09:31:04] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] NV12 Normal sizes
[09:31:04] [PASSED] NV12 Max sizes
[09:31:04] [PASSED] NV12 Invalid pitch
[09:31:04] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[09:31:04] [PASSED] NV12 different  modifier per-plane
[09:31:04] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[09:31:04] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] NV12 Modifier for inexistent plane
[09:31:04] [PASSED] NV12 Handle for inexistent plane
[09:31:04] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[09:31:04] [PASSED] YVU420 Normal sizes
[09:31:04] [PASSED] YVU420 Max sizes
[09:31:04] [PASSED] YVU420 Invalid pitch
[09:31:04] [PASSED] YVU420 Different pitches
[09:31:04] [PASSED] YVU420 Different buffer offsets/pitches
[09:31:04] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[09:31:04] [PASSED] YVU420 Valid modifier
[09:31:04] [PASSED] YVU420 Different modifiers per plane
[09:31:04] [PASSED] YVU420 Modifier for inexistent plane
[09:31:04] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[09:31:04] [PASSED] X0L2 Normal sizes
[09:31:04] [PASSED] X0L2 Max sizes
[09:31:04] [PASSED] X0L2 Invalid pitch
[09:31:04] [PASSED] X0L2 Pitch greater than minimum required
[09:31:04] [PASSED] X0L2 Handle for inexistent plane
[09:31:04] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[09:31:04] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[09:31:04] [PASSED] X0L2 Valid modifier
[09:31:04] [PASSED] X0L2 Modifier for inexistent plane
[09:31:04] =========== [PASSED] drm_test_framebuffer_create ===========
[09:31:04] [PASSED] drm_test_framebuffer_free
[09:31:04] [PASSED] drm_test_framebuffer_init
[09:31:04] [PASSED] drm_test_framebuffer_init_bad_format
[09:31:04] [PASSED] drm_test_framebuffer_init_dev_mismatch
[09:31:04] [PASSED] drm_test_framebuffer_lookup
[09:31:04] [PASSED] drm_test_framebuffer_lookup_inexistent
[09:31:04] [PASSED] drm_test_framebuffer_modifiers_not_supported
[09:31:04] ================= [PASSED] drm_framebuffer =================
[09:31:04] ================ drm_gem_shmem (8 subtests) ================
[09:31:04] [PASSED] drm_gem_shmem_test_obj_create
[09:31:04] [PASSED] drm_gem_shmem_test_obj_create_private
[09:31:04] [PASSED] drm_gem_shmem_test_pin_pages
[09:31:04] [PASSED] drm_gem_shmem_test_vmap
[09:31:04] [PASSED] drm_gem_shmem_test_get_sg_table
[09:31:04] [PASSED] drm_gem_shmem_test_get_pages_sgt
[09:31:04] [PASSED] drm_gem_shmem_test_madvise
[09:31:04] [PASSED] drm_gem_shmem_test_purge
[09:31:04] ================== [PASSED] drm_gem_shmem ==================
[09:31:04] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[09:31:04] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[09:31:04] [PASSED] Automatic
[09:31:04] [PASSED] Full
[09:31:04] [PASSED] Limited 16:235
[09:31:04] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[09:31:04] [PASSED] drm_test_check_disable_connector
[09:31:04] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[09:31:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[09:31:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[09:31:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[09:31:04] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[09:31:04] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[09:31:04] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[09:31:04] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[09:31:04] [PASSED] drm_test_check_output_bpc_dvi
[09:31:04] [PASSED] drm_test_check_output_bpc_format_vic_1
[09:31:04] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[09:31:04] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[09:31:04] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[09:31:04] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[09:31:04] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[09:31:04] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[09:31:04] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[09:31:04] ============ drm_test_check_hdmi_color_format  =============
[09:31:04] [PASSED] AUTO -> RGB
[09:31:04] [PASSED] YCBCR422 -> YUV422
[09:31:04] [PASSED] YCBCR420 -> YUV420
[09:31:04] [PASSED] YCBCR444 -> YUV444
[09:31:04] [PASSED] RGB -> RGB
[09:31:04] ======== [PASSED] drm_test_check_hdmi_color_format =========
[09:31:04] ======== drm_test_check_hdmi_color_format_420_only  ========
[09:31:04] [PASSED] RGB should fail
[09:31:04] [PASSED] YUV444 should fail
[09:31:04] [PASSED] YUV422 should fail
[09:31:04] [PASSED] YUV420 should work
[09:31:04] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[09:31:04] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[09:31:04] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[09:31:04] [PASSED] drm_test_check_broadcast_rgb_value
[09:31:04] [PASSED] drm_test_check_bpc_8_value
[09:31:04] [PASSED] drm_test_check_bpc_10_value
[09:31:04] [PASSED] drm_test_check_bpc_12_value
[09:31:04] [PASSED] drm_test_check_format_value
[09:31:04] [PASSED] drm_test_check_tmds_char_value
[09:31:04] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[09:31:04] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[09:31:04] [PASSED] drm_test_check_mode_valid
[09:31:04] [PASSED] drm_test_check_mode_valid_reject
[09:31:04] [PASSED] drm_test_check_mode_valid_reject_rate
[09:31:04] [PASSED] drm_test_check_mode_valid_reject_max_clock
[09:31:04] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[09:31:04] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[09:31:04] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[09:31:04] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[09:31:04] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[09:31:04] [PASSED] drm_test_check_infoframes
[09:31:04] [PASSED] drm_test_check_reject_avi_infoframe
[09:31:04] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[09:31:04] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[09:31:04] [PASSED] drm_test_check_reject_audio_infoframe
[09:31:04] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[09:31:04] ================= drm_managed (2 subtests) =================
[09:31:04] [PASSED] drm_test_managed_release_action
[09:31:04] [PASSED] drm_test_managed_run_action
[09:31:04] =================== [PASSED] drm_managed ===================
[09:31:04] =================== drm_mm (6 subtests) ====================
[09:31:04] [PASSED] drm_test_mm_init
[09:31:04] [PASSED] drm_test_mm_debug
[09:31:04] [PASSED] drm_test_mm_align32
[09:31:04] [PASSED] drm_test_mm_align64
[09:31:04] [PASSED] drm_test_mm_lowest
[09:31:04] [PASSED] drm_test_mm_highest
[09:31:04] ===================== [PASSED] drm_mm ======================
[09:31:04] ============= drm_modes_analog_tv (5 subtests) =============
[09:31:04] [PASSED] drm_test_modes_analog_tv_mono_576i
[09:31:04] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[09:31:04] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[09:31:04] [PASSED] drm_test_modes_analog_tv_pal_576i
[09:31:04] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[09:31:04] =============== [PASSED] drm_modes_analog_tv ===============
[09:31:04] ============== drm_panic_helper (3 subtests) ===============
[09:31:04] ============= drm_test_panic_screen_user_map  ==============
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] ========= [PASSED] drm_test_panic_screen_user_map ==========
[09:31:04] ============= drm_test_panic_screen_user_page  =============
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] ========= [PASSED] drm_test_panic_screen_user_page =========
[09:31:04] ========== drm_test_panic_screen_user_set_pixel  ===========
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen user, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 494 x 494 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1920 x 1080 	XR24 little-endian (0x34325258)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG16 little-endian (0x36314752)
[09:31:04] [PASSED] Panic screen kmsg, mode: 1024 x 768 	RG24 little-endian (0x34324752)
[09:31:04] ====== [PASSED] drm_test_panic_screen_user_set_pixel =======
[09:31:04] ================ [PASSED] drm_panic_helper =================
[09:31:04] ============== drm_plane_helper (2 subtests) ===============
[09:31:04] =============== drm_test_check_plane_state  ================
[09:31:04] [PASSED] clipping_simple
[09:31:04] [PASSED] clipping_rotate_reflect
[09:31:04] [PASSED] positioning_simple
[09:31:04] [PASSED] upscaling
[09:31:04] [PASSED] downscaling
[09:31:04] [PASSED] rounding1
[09:31:04] [PASSED] rounding2
[09:31:04] [PASSED] rounding3
[09:31:04] [PASSED] rounding4
[09:31:04] =========== [PASSED] drm_test_check_plane_state ============
[09:31:04] =========== drm_test_check_invalid_plane_state  ============
[09:31:04] [PASSED] positioning_invalid
[09:31:04] [PASSED] upscaling_invalid
[09:31:04] [PASSED] downscaling_invalid
[09:31:04] ======= [PASSED] drm_test_check_invalid_plane_state ========
[09:31:04] ================ [PASSED] drm_plane_helper =================
[09:31:04] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[09:31:04] ====== drm_test_connector_helper_tv_get_modes_check  =======
[09:31:04] [PASSED] None
[09:31:04] [PASSED] PAL
[09:31:04] [PASSED] NTSC
[09:31:04] [PASSED] Both, NTSC Default
[09:31:04] [PASSED] Both, PAL Default
[09:31:04] [PASSED] Both, NTSC Default, with PAL on command-line
[09:31:04] [PASSED] Both, PAL Default, with NTSC on command-line
[09:31:04] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[09:31:04] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[09:31:04] ================== drm_rect (9 subtests) ===================
[09:31:04] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[09:31:04] [PASSED] drm_test_rect_clip_scaled_not_clipped
[09:31:04] [PASSED] drm_test_rect_clip_scaled_clipped
[09:31:04] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[09:31:04] ================= drm_test_rect_intersect  =================
[09:31:04] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[09:31:04] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[09:31:04] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[09:31:04] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[09:31:04] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[09:31:04] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[09:31:04] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[09:31:04] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[09:31:04] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[09:31:04] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[09:31:04] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[09:31:04] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[09:31:04] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[09:31:04] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[09:31:04] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[09:31:04] ============= [PASSED] drm_test_rect_intersect =============
[09:31:04] ================ drm_test_rect_calc_hscale  ================
[09:31:04] [PASSED] normal use
[09:31:04] [PASSED] out of max range
[09:31:04] [PASSED] out of min range
[09:31:04] [PASSED] zero dst
[09:31:04] [PASSED] negative src
[09:31:04] [PASSED] negative dst
[09:31:04] ============ [PASSED] drm_test_rect_calc_hscale ============
[09:31:04] ================ drm_test_rect_calc_vscale  ================
[09:31:04] [PASSED] normal use
[09:31:04] [PASSED] out of max range
[09:31:04] [PASSED] out of min range
[09:31:04] [PASSED] zero dst
[09:31:04] [PASSED] negative src
[09:31:04] [PASSED] negative dst
[09:31:04] ============ [PASSED] drm_test_rect_calc_vscale ============
[09:31:04] ================== drm_test_rect_rotate  ===================
[09:31:04] [PASSED] reflect-x
[09:31:04] [PASSED] reflect-y
[09:31:04] [PASSED] rotate-0
[09:31:04] [PASSED] rotate-90
[09:31:04] [PASSED] rotate-180
[09:31:04] [PASSED] rotate-270
[09:31:04] ============== [PASSED] drm_test_rect_rotate ===============
[09:31:04] ================ drm_test_rect_rotate_inv  =================
[09:31:04] [PASSED] reflect-x
[09:31:04] [PASSED] reflect-y
[09:31:04] [PASSED] rotate-0
[09:31:04] [PASSED] rotate-90
[09:31:04] [PASSED] rotate-180
[09:31:04] [PASSED] rotate-270
[09:31:04] ============ [PASSED] drm_test_rect_rotate_inv =============
[09:31:04] ==================== [PASSED] drm_rect =====================
[09:31:04] ============ drm_sysfb_modeset_test (1 subtest) ============
[09:31:04] ============ drm_test_sysfb_build_fourcc_list  =============
[09:31:04] [PASSED] no native formats
[09:31:04] [PASSED] XRGB8888 as native format
[09:31:04] [PASSED] remove duplicates
[09:31:04] [PASSED] convert alpha formats
[09:31:04] [PASSED] random formats
[09:31:04] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[09:31:04] ============= [PASSED] drm_sysfb_modeset_test ==============
[09:31:04] ================== drm_fixp (2 subtests) ===================
[09:31:04] [PASSED] drm_test_int2fixp
[09:31:04] [PASSED] drm_test_sm2fixp
[09:31:04] ==================== [PASSED] drm_fixp =====================
[09:31:04] ============================================================
[09:31:04] Testing complete. Ran 667 tests: passed: 667
[09:31:04] Elapsed time: 28.413s total, 2.575s configuring, 25.516s building, 0.301s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[09:31:04] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[09:31:07] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[09:31:17] Starting KUnit Kernel (1/1)...
[09:31:17] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[09:31:17] ================= ttm_device (5 subtests) ==================
[09:31:17] [PASSED] ttm_device_init_basic
[09:31:17] [PASSED] ttm_device_init_multiple
[09:31:17] [PASSED] ttm_device_fini_basic
[09:31:17] [PASSED] ttm_device_init_no_vma_man
[09:31:17] ================== ttm_device_init_pools  ==================
[09:31:17] [PASSED] No DMA allocations, no DMA32 required
[09:31:17] [PASSED] DMA allocations, DMA32 required
[09:31:17] [PASSED] No DMA allocations, DMA32 required
[09:31:17] [PASSED] DMA allocations, no DMA32 required
[09:31:17] ============== [PASSED] ttm_device_init_pools ==============
[09:31:17] =================== [PASSED] ttm_device ====================
[09:31:17] ================== ttm_pool (8 subtests) ===================
[09:31:17] ================== ttm_pool_alloc_basic  ===================
[09:31:17] [PASSED] One page
[09:31:17] [PASSED] More than one page
[09:31:17] [PASSED] Above the allocation limit
[09:31:17] [PASSED] One page, with coherent DMA mappings enabled
[09:31:17] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[09:31:17] ============== [PASSED] ttm_pool_alloc_basic ===============
[09:31:17] ============== ttm_pool_alloc_basic_dma_addr  ==============
[09:31:17] [PASSED] One page
[09:31:17] [PASSED] More than one page
[09:31:17] [PASSED] Above the allocation limit
[09:31:17] [PASSED] One page, with coherent DMA mappings enabled
[09:31:17] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[09:31:17] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[09:31:17] [PASSED] ttm_pool_alloc_order_caching_match
[09:31:17] [PASSED] ttm_pool_alloc_caching_mismatch
[09:31:17] [PASSED] ttm_pool_alloc_order_mismatch
[09:31:17] [PASSED] ttm_pool_free_dma_alloc
[09:31:17] [PASSED] ttm_pool_free_no_dma_alloc
[09:31:17] [PASSED] ttm_pool_fini_basic
[09:31:17] ==================== [PASSED] ttm_pool =====================
[09:31:17] ================ ttm_resource (8 subtests) =================
[09:31:17] ================= ttm_resource_init_basic  =================
[09:31:17] [PASSED] Init resource in TTM_PL_SYSTEM
[09:31:17] [PASSED] Init resource in TTM_PL_VRAM
[09:31:17] [PASSED] Init resource in a private placement
[09:31:17] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[09:31:17] ============= [PASSED] ttm_resource_init_basic =============
[09:31:17] [PASSED] ttm_resource_init_pinned
[09:31:17] [PASSED] ttm_resource_fini_basic
[09:31:17] [PASSED] ttm_resource_manager_init_basic
[09:31:17] [PASSED] ttm_resource_manager_usage_basic
[09:31:17] [PASSED] ttm_resource_manager_set_used_basic
[09:31:17] [PASSED] ttm_sys_man_alloc_basic
[09:31:17] [PASSED] ttm_sys_man_free_basic
[09:31:17] ================== [PASSED] ttm_resource ===================
[09:31:17] =================== ttm_tt (15 subtests) ===================
[09:31:17] ==================== ttm_tt_init_basic  ====================
[09:31:17] [PASSED] Page-aligned size
[09:31:17] [PASSED] Extra pages requested
[09:31:17] ================ [PASSED] ttm_tt_init_basic ================
[09:31:17] [PASSED] ttm_tt_init_misaligned
[09:31:17] [PASSED] ttm_tt_fini_basic
[09:31:17] [PASSED] ttm_tt_fini_sg
[09:31:17] [PASSED] ttm_tt_fini_shmem
[09:31:17] [PASSED] ttm_tt_create_basic
[09:31:17] [PASSED] ttm_tt_create_invalid_bo_type
[09:31:17] [PASSED] ttm_tt_create_ttm_exists
[09:31:17] [PASSED] ttm_tt_create_failed
[09:31:17] [PASSED] ttm_tt_destroy_basic
[09:31:17] [PASSED] ttm_tt_populate_null_ttm
[09:31:17] [PASSED] ttm_tt_populate_populated_ttm
[09:31:17] [PASSED] ttm_tt_unpopulate_basic
[09:31:17] [PASSED] ttm_tt_unpopulate_empty_ttm
[09:31:17] [PASSED] ttm_tt_swapin_basic
[09:31:17] ===================== [PASSED] ttm_tt ======================
[09:31:17] =================== ttm_bo (14 subtests) ===================
[09:31:17] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[09:31:17] [PASSED] Cannot be interrupted and sleeps
[09:31:17] [PASSED] Cannot be interrupted, locks straight away
[09:31:17] [PASSED] Can be interrupted, sleeps
[09:31:17] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[09:31:17] [PASSED] ttm_bo_reserve_locked_no_sleep
[09:31:17] [PASSED] ttm_bo_reserve_no_wait_ticket
[09:31:17] [PASSED] ttm_bo_reserve_double_resv
[09:31:17] [PASSED] ttm_bo_reserve_interrupted
[09:31:17] [PASSED] ttm_bo_reserve_deadlock
[09:31:17] [PASSED] ttm_bo_unreserve_basic
[09:31:17] [PASSED] ttm_bo_unreserve_pinned
[09:31:17] [PASSED] ttm_bo_unreserve_bulk
[09:31:17] [PASSED] ttm_bo_fini_basic
[09:31:17] [PASSED] ttm_bo_fini_shared_resv
[09:31:17] [PASSED] ttm_bo_pin_basic
[09:31:17] [PASSED] ttm_bo_pin_unpin_resource
[09:31:17] [PASSED] ttm_bo_multiple_pin_one_unpin
[09:31:17] ===================== [PASSED] ttm_bo ======================
[09:31:17] ============== ttm_bo_validate (22 subtests) ===============
[09:31:17] ============== ttm_bo_init_reserved_sys_man  ===============
[09:31:17] [PASSED] Buffer object for userspace
[09:31:17] [PASSED] Kernel buffer object
[09:31:17] [PASSED] Shared buffer object
[09:31:17] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[09:31:17] ============== ttm_bo_init_reserved_mock_man  ==============
[09:31:17] [PASSED] Buffer object for userspace
[09:31:17] [PASSED] Kernel buffer object
[09:31:17] [PASSED] Shared buffer object
[09:31:17] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[09:31:17] [PASSED] ttm_bo_init_reserved_resv
[09:31:17] ================== ttm_bo_validate_basic  ==================
[09:31:17] [PASSED] Buffer object for userspace
[09:31:17] [PASSED] Kernel buffer object
[09:31:17] [PASSED] Shared buffer object
[09:31:17] ============== [PASSED] ttm_bo_validate_basic ==============
[09:31:17] [PASSED] ttm_bo_validate_invalid_placement
[09:31:17] ============= ttm_bo_validate_same_placement  ==============
[09:31:17] [PASSED] System manager
[09:31:17] [PASSED] VRAM manager
[09:31:17] ========= [PASSED] ttm_bo_validate_same_placement ==========
[09:31:17] [PASSED] ttm_bo_validate_failed_alloc
[09:31:17] [PASSED] ttm_bo_validate_pinned
[09:31:17] [PASSED] ttm_bo_validate_busy_placement
[09:31:17] ================ ttm_bo_validate_multihop  =================
[09:31:17] [PASSED] Buffer object for userspace
[09:31:17] [PASSED] Kernel buffer object
[09:31:17] [PASSED] Shared buffer object
[09:31:17] ============ [PASSED] ttm_bo_validate_multihop =============
[09:31:17] ========== ttm_bo_validate_no_placement_signaled  ==========
[09:31:17] [PASSED] Buffer object in system domain, no page vector
[09:31:17] [PASSED] Buffer object in system domain with an existing page vector
[09:31:17] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[09:31:17] ======== ttm_bo_validate_no_placement_not_signaled  ========
[09:31:17] [PASSED] Buffer object for userspace
[09:31:17] [PASSED] Kernel buffer object
[09:31:17] [PASSED] Shared buffer object
[09:31:17] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[09:31:17] [PASSED] ttm_bo_validate_move_fence_signaled
[09:31:17] ========= ttm_bo_validate_move_fence_not_signaled  =========
[09:31:17] [PASSED] Waits for GPU
[09:31:17] [PASSED] Tries to lock straight away
[09:31:17] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[09:31:17] [PASSED] ttm_bo_validate_swapout
[09:31:17] [PASSED] ttm_bo_validate_happy_evict
[09:31:17] [PASSED] ttm_bo_validate_all_pinned_evict
[09:31:17] [PASSED] ttm_bo_validate_allowed_only_evict
[09:31:17] [PASSED] ttm_bo_validate_deleted_evict
[09:31:17] [PASSED] ttm_bo_validate_busy_domain_evict
[09:31:17] [PASSED] ttm_bo_validate_evict_gutting
[09:31:17] [PASSED] ttm_bo_validate_recursive_evict
[09:31:17] ================= [PASSED] ttm_bo_validate =================
[09:31:17] ============================================================
[09:31:17] Testing complete. Ran 102 tests: passed: 102
[09:31:17] Elapsed time: 12.929s total, 2.553s configuring, 10.111s building, 0.236s running

+ for kcfg in "${kunitconfigs[@]}"
+ [[ ! -f /kernel/drivers/dma-buf/.kunitconfig ]]
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/dma-buf/.kunitconfig
[09:31:17] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[09:31:20] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[09:31:29] Starting KUnit Kernel (1/1)...
[09:31:29] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[09:31:29] =============== dma-buf-fence (12 subtests) ================
[09:31:29] [PASSED] test_sanitycheck
[09:31:29] [PASSED] test_signaling
[09:31:29] [PASSED] test_add_callback
[09:31:29] [PASSED] test_late_add_callback
[09:31:29] [PASSED] test_rm_callback
[09:31:29] [PASSED] test_late_rm_callback
[09:31:29] [PASSED] test_status
[09:31:29] [PASSED] test_error
[09:31:29] [PASSED] test_wait
[09:31:29] [PASSED] test_wait_timeout
[09:31:29] [PASSED] test_stub
[09:31:29] [SKIPPED] test_race_signal_callback (requires at least 2 CPUs)
[09:31:29] ================== [PASSED] dma-buf-fence ==================
[09:31:29] ============ dma-buf-fence-chain (11 subtests) =============
[09:31:29] [PASSED] test_sanitycheck
[09:31:29] [PASSED] test_find_seqno
[09:31:29] [PASSED] test_find_signaled
[09:31:29] [PASSED] test_find_out_of_order
[09:31:34] [PASSED] test_find_gap
[09:31:34] [PASSED] test_find_race
[09:31:34] [PASSED] test_signal_forward
[09:31:34] [PASSED] test_signal_backward
[09:31:34] [PASSED] test_wait_forward
[09:31:34] [PASSED] test_wait_backward
[09:31:34] [PASSED] test_wait_random
[09:31:34] =============== [PASSED] dma-buf-fence-chain ===============
[09:31:34] ============ dma-buf-fence-unwrap (11 subtests) ============
[09:31:34] [PASSED] test_sanitycheck
[09:31:34] [PASSED] test_unwrap_array
[09:31:34] [PASSED] test_unwrap_chain
[09:31:34] [PASSED] test_unwrap_chain_array
[09:31:34] [PASSED] test_unwrap_merge
[09:31:34] [PASSED] test_unwrap_merge_duplicate
[09:31:34] [PASSED] test_unwrap_merge_seqno
[09:31:34] [PASSED] test_unwrap_merge_order
[09:31:34] [PASSED] test_unwrap_merge_complex
[09:31:34] [PASSED] test_unwrap_merge_complex_seqno
[09:31:34] [PASSED] test_dedup_empty
[09:31:34] ============== [PASSED] dma-buf-fence-unwrap ===============
[09:31:34] ================ dma-buf-resv (5 subtests) =================
[09:31:34] [PASSED] test_sanitycheck
[09:31:34] ===================== test_signaling  ======================
[09:31:34] [PASSED] kernel
[09:31:34] [PASSED] write
[09:31:34] [PASSED] read
[09:31:34] [PASSED] bookkeep
[09:31:34] ================= [PASSED] test_signaling ==================
[09:31:34] ====================== test_for_each  ======================
[09:31:34] [PASSED] kernel
[09:31:34] [PASSED] write
[09:31:34] [PASSED] read
[09:31:34] [PASSED] bookkeep
[09:31:34] ================== [PASSED] test_for_each ==================
[09:31:34] ================= test_for_each_unlocked  ==================
[09:31:34] [PASSED] kernel
[09:31:34] [PASSED] write
[09:31:34] [PASSED] read
[09:31:34] [PASSED] bookkeep
[09:31:34] ============= [PASSED] test_for_each_unlocked ==============
[09:31:34] ===================== test_get_fences  =====================
[09:31:34] [PASSED] kernel
[09:31:34] [PASSED] write
[09:31:34] [PASSED] read
[09:31:34] [PASSED] bookkeep
[09:31:34] ================= [PASSED] test_get_fences =================
[09:31:34] ================== [PASSED] dma-buf-resv ===================
[09:31:34] ============================================================
[09:31:34] Testing complete. Ran 51 tests: passed: 50, skipped: 1
[09:31:34] Elapsed time: 16.759s total, 2.558s configuring, 8.828s building, 5.334s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel



^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth
  2026-12-04  8:57 ` [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth Ankit Nautiyal
@ 2026-12-04  9:33   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:33 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/i915/hdmi: commit subject mismatches
  intel_hdmi_dsc_get_bpp() change
--

commit 8b4e22eb1e4b64b0b98e7622e004d1fabc6aaaef
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth

This commit adds an optional max_link_dsc_bpp parameter to
intel_hdmi_dsc_get_bpp() to cap the selected DSC bpp, while updating the
caller in intel_dp_pcon_dsc_enc_bpp() to pass 0 for now.

> drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth

[Severity: Low]
Should the commit subject reflect that this patch only adds the
max_link_dsc_bpp parameter to intel_hdmi_dsc_get_bpp()?

Nothing in this commit computes or references FRL link bandwidth, and
intel_dp_pcon_dsc_enc_bpp() passes 0 so runtime behavior is unchanged.
Something like "drm/i915/hdmi: Add max_link_dsc_bpp parameter to
intel_hdmi_dsc_get_bpp()" would match the code changes and avoid
misleading readers of git log or bisectors.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=8

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead
  2026-12-04  8:57 ` [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead Ankit Nautiyal
@ 2026-12-04  9:36   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:36 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] drm/i915/dp: 16/18 FRL scaling in intel_dp_frl_bw_valid()
  rejects valid modes
- [Low] drm/i915/dp: missing Fixes trailer for FRL bandwidth fix
--

commit 107918ff8c7591551a5888b705f8709b7104d051
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> drm/i915/dp: Account for FRL 16b/18b encoding overhead
>
> HDMI 2.1 FRL uses 16b/18b line coding, so only 16/18 of the raw FRL
> rate carries payload. The FRL bandwidth check compared the required
> bandwidth against the raw rate of the PCON and the sink, and so
> accepted modes that cannot be carried.
>
> Use the payload bandwidth for the check. The requirement is still
> estimated from the full pixel clock including blanking, so it remains
> an upper bound.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

[Severity: Low]
This looks like a bug fix for the FRL bandwidth check.  Should this
include:

  Fixes: 2f78347e3634 ("drm/i915: Capture max frl rate for PCON in dfp cap structure")

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 179e0d8b89c2c..c0cf0938a7b64 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1206,8 +1206,11 @@ intel_dp_frl_bw_valid(struct intel_dp *intel_dp, int target_clock,
>  	max_frl_bw = min(intel_dp->dfp.pcon_max_frl_bw,
>  			 intel_dp_hdmi_sink_max_frl(intel_dp));
>  
> -	/* converting bw from Gbps to Kbps*/
> -	max_frl_bw = max_frl_bw * 1000000;
> +	/*
> +	 * Convert the rate from Gbps to kbps. FRL uses 16b/18b line coding, so
> +	 * only 16/18 of the raw rate carries payload.
> +	 */
> +	max_frl_bw = max_frl_bw * 1000000 * 16 / 18;
>  
>  	/* #FIXME check bandwidth with DSC if both PCON and HDMI sink support DSC */
>  	if (target_bw > max_frl_bw)

[Severity: High]
Does scaling max_frl_bw by 16/18 without adjusting frl_required_bw() reject
valid HDMI 2.1 modes?

frl_required_bw() still multiplies the full pixel clock, including blanking,
by bpc * 3, whereas FRL carries blanking at much lower overhead than active
pixels.  For 3840x2160@120Hz (1188 MHz) at 8 bpc on a 32 Gbps FRL link,
target_bw is 28,512,000 kbps against a reduced max_frl_bw of 28,444,444 kbps.

That causes intel_dp_mode_valid_downstream() to prune standard 1188 MHz modes
on 32 Gbps links, and intel_dp_hdmi_compute_bpc() to downgrade valid 10 bpc
to 8 bpc on 40 Gbps links (and 12 bpc to 10 bpc on 24/48 Gbps links).

Separately, for reduced-blanking timings such as CVT-RBv2, the full pixel
clock estimate is not an upper bound either because FRL also incurs roughly
2% RS-FEC, super-block, and map framing overhead beyond 16b/18b coding.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=2

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation
  2026-12-04  8:57 ` [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation Ankit Nautiyal
@ 2026-12-04  9:38   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:38 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/dp: intel_dp_pcon_compute_config() checks sink
  instead of PCON FRL
--

commit de210caf4878edfc0415e925316be92c717fcd9d
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Compute the PCON DSC operation

This commit adds intel_dp_pcon_compute_config() to record
INTEL_PCON_DSC_DECODE in crtc_state->pcon_config.dsc_op when DP DSC is
enabled on an HDMI 2.1 sink, and calls it from
intel_dp_compute_link_for_joined_pipes().

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 2d5f7754eda0c..999faf29be458 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c

[ ... ]

> @@ -3013,6 +3014,19 @@ bool intel_dp_joiner_needs_dsc(struct intel_display *display,
>  		num_joined_pipes == 4;
>  }
>  
> +static int
> +intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
> +			     struct intel_crtc_state *crtc_state)
> +{
> +	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
> +		return 0;
> +
> +	if (crtc_state->dsc.compression_enable)
> +		crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE;
> +
> +	return 0;
> +}

[Severity: Medium]
Should intel_dp_pcon_compute_config() check HDMI 2.1 PCON capability
instead of intel_dp_is_hdmi_2_1_sink()?

intel_dp_is_hdmi_2_1_sink() only checks that a branch device has an HDMI
sink reporting FRL support, without checking
intel_dp->dfp.pcon_max_frl_bw.

With DP DSC enabled, a non-HDMI-2.1 PCON connected to an HDMI 2.1 sink
records INTEL_PCON_DSC_DECODE (contradicting enum intel_pcon_dsc_op),
while an HDMI 2.1 PCON driving an HDMI 2.0 sink leaves dsc_op as
INTEL_PCON_NO_DSC.

This misclassifies crtc_state->pcon_config.dsc_op in CRTC state tracking
and intel_crtc_state_dump().  Checking intel_dp->dfp.pcon_max_frl_bw > 0
(or reusing intel_dp_pcon_sink_support_frl() if both ends must support
FRL) would avoid the mismatch.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=6

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed
  2026-12-04  8:57 ` [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed Ankit Nautiyal
@ 2026-12-04  9:38   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:38 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/i915/dp: intel_dp_pcon_dsc_configure() skips disable on
  sink checks
- [Low] drm/i915/dp: missing Fixes trailer for commit 10fec80b48c5
--

commit 00ba4aeec950179a86038a063b9758f78b472573
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> drm/i915/dp: Disable the PCON DSC encoder unless it is needed
>
> The PCON DSC encoder is only used when the PCON re-encodes the DP stream
> as DSC 1.2 for the HDMI sink. Otherwise the PCON either decodes the
> stream, or there is no DSC at all.
>
> Currently the encoder is enabled with PPS override parameters whenever
> the PCON and the HDMI sink support DSC 1.2, even for streams that do not
> need it, and it is never disabled again.
>
> Program the encoder only for the decode and re-encode operation, and
> explicitly disable it for all the other operations.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

[Severity: Low]
This fixes the unconditional PCON DSC encoder enablement in
intel_dp_pcon_dsc_configure().  Should this include:

  Fixes: 10fec80b48c5 ("drm/i915/display: Configure PCON for DSC1.1 to DSC1.2 encoding")

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 999faf29be458..a469766c0a6b2 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -4610,6 +4610,13 @@ intel_dp_pcon_dsc_configure(struct intel_dp *intel_dp,
>  	    !hdmi_is_dsc_1_2)
>  		return;
>  
> +	if (crtc_state->pcon_config.dsc_op != INTEL_PCON_DSC_DECODE_ENCODE) {
> +		ret = drm_dp_pcon_dsc_enc_disable(&intel_dp->aux);
> +		if (ret < 0)
> +			drm_dbg_kms(display->drm, "Failed to disable pcon DSC encoder\n");
> +		return;
> +	}

[Severity: Medium]
Can this skip disabling the PCON DSC encoder when the downstream HDMI sink
is swapped to one that does not support HDMI 2.1 or DSC 1.2?

DP_PCON_ENABLE_DSC_ENCODER and DP_PCON_ENCODER_PPS_OVERRIDE_MASK live in
DP_PROTOCOL_CONVERTER_CONTROL_2 on the PCON itself, and neither output
disable nor intel_dp_configure_protocol_converter() clears them.

Because intel_dp_pcon_dsc_configure() returns early on
!intel_dp_is_hdmi_2_1_sink() and !hdmi_is_dsc_1_2, a DSC 1.2-capable PCON
left with its encoder enabled from an earlier modeset will not reach
drm_dp_pcon_dsc_enc_disable(), causing a blank or corrupted display.

Disabling the encoder based on PCON capability before the sink checks (and
clearing intel_dp->pcon_dsc_dpcd in intel_dp_unset_edid()) would avoid
leaving stale encoder state on the PCON.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=7

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state
  2026-12-04  8:57 ` [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state Ankit Nautiyal
@ 2026-12-04  9:43   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:43 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/dp: intel_pipe_config_compare() omits pcon_config on
  fastset
--

commit 11d426d40cc5b9c42754f59b9f85ca99d5db238b
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Add PCON DSC state to crtc_state

This commit adds pcon_config to struct intel_crtc_state to track DP->HDMI
PCON DSC operation and encoder override parameters, resets it in
intel_dp_dsc_reset_config(), and prints it in intel_crtc_state_dump().

> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 514ca067e1399..0103ac5697276 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h

[ ... ]

> @@ -1370,6 +1387,16 @@ struct intel_crtc_state {
>  		struct drm_dsc_config config;
>  	} dsc;
>  
> +	/*
> +	 * Configuration of a DP->HDMI PCON. Only used for state computation,
> +	 * not read out from the HW.
> +	 */
> +	struct {
> +		enum intel_pcon_dsc_op dsc_op;
> +		/* Only valid for INTEL_PCON_DSC_DECODE_ENCODE */
> +		struct intel_pcon_dsc_enc_config dsc_enc;
> +	} pcon_config;
> +
>  	/* DP tunnel used for BW allocation. */
>  	struct drm_dp_tunnel_ref dp_tunnel_ref;

[Severity: Medium]
Should intel_pipe_config_compare() compare pcon_config when fastset is
true?

Since pcon_config is not read out from hardware, it cannot be checked
during state verification.  However, intel_crtc_check_fastset() calls
intel_pipe_config_compare(..., true) to downgrade modesets to fastsets,
and intel_ddi_update_pipe_dp() does not reprogram the PCON.

If the HDMI sink behind an active PCON is swapped for one with different
capabilities, intel_dp_detect() updates the sink caps in place.  A later
commit setting mode_changed (such as changing HDR_OUTPUT_METADATA) then
computes a new pcon_config while DP-side fields match.

intel_crtc_check_fastset() downgrades that commit to a fastset, skipping
PCON reprogramming and leaving HDMI output blank or corrupted until a full
modeset occurs.  Comparing pcon_config under if (fastset) would force a
full modeset on changes without affecting state readout verification.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=4

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD
  2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
@ 2026-12-04  9:45   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:45 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [Medium] drm/i915/dp: long HPD without modeset breaks HDMI FRL link
  recovery
- [Medium] drm/i915/dp: unlocked intel_dp->frl.is_trained write races
  with enable
- [Medium] drm/i915/dp: unlocked race on frl.is_trained in
  intel_dp_hpd_pulse()
- [Low] drm/i915/dp: missing Fixes tag for PCON FRL state reset on long
  HPD
--

commit f7ef6c5b005b15275af0bf3883f1f982970ce603
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> drm/i915/dp: Forget the PCON FRL training state on a long HPD
>
> Currently, the intel_dp->frl.is_trained is cleared only when the HDMI link
> status IRQ reports the link down. A sink disconnect, or a PCON that resets
> itself and drops the HPD, doesn't clear it. As a result, the FRL training
> is skipped at the next enable although the HDMI link is gone.
>
> Clear the flag on a long HPD. The next enable then reads the state of
> the PCON, and trains the link if it is not already in FRL mode.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

[Severity: Low]
This looks like a bug fix for PCON FRL training state tracking.  Should
this include:

  Fixes: ced42f2df5fd ("drm/i915: Add support for starting FRL training for HDMI2.1 via PCON")

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 0c7c57d9f3abf..179e0d8b89c2c 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -7140,6 +7140,13 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd)
>  		intel_dp->reset_link_params = true;
>  		intel_dp_invalidate_source_oui(intel_dp);
>  
> +		/*
> +		 * The HDMI link of a PCON is lost with the sink, forget its
> +		 * trained state, so that the FRL training is checked again at
> +		 * the next enable.
> +		 */
> +		intel_dp->frl.is_trained = false;

[Severity: Medium]
Can clearing intel_dp->frl.is_trained on a long HPD break FRL link
recovery when no modeset follows?

If a transient long HPD occurs while the upstream DP link stays up and
the sink EDID is unchanged (such as a Type-C HPD deassert/reassert
without unplugging), intel_dp_detect() reports the connector connected
and intel_dp_check_link_state() -> intel_dp_needs_link_retrain() only
checks the upstream DP link via intel_dp_link_ok(), so no encoder enable
runs.

intel_dp->frl.is_trained then stays false while the stream remains
active, causing intel_dp_handle_hdmi_link_status_change() (which gates
recovery on intel_dp->frl.is_trained && !is_active) to silently ignore
later HDMI link drops until a full modeset occurs.

[Severity: Medium]
Can this unlocked write to intel_dp->frl.is_trained race with modeset
enable and lose the long HPD invalidation?

intel_dp_hpd_pulse() runs from i915_digport_work_func() with no modeset
locks held, while mtl_ddi_pre_enable_dp() (and tgl_ddi_pre_enable_dp() /
intel_enable_dp()) calls intel_dp_check_frl_training() before
intel_dp_start_link_train() calls intel_hpd_block():

CPU0 (modeset enable)             CPU1 (dig_port_work)
mtl_ddi_pre_enable_dp()
  intel_dp_check_frl_training()
    intel_dp_pcon_start_frl_training()
      poll intel_dp_pcon_is_frl_trained()
                                  i915_digport_work_func()
                                    intel_dp_hpd_pulse(..., true)
                                      intel_dp->frl.is_trained = false
      intel_dp->frl.is_trained = true  <-- overwrites long HPD reset

Because intel_dp_pcon_start_frl_training() polls DPCD for up to 1.5s
without blocking HPD, a sink disconnect or PCON reset in that window is
overwritten back to true, so the next enable skips FRL training even
though the HDMI link is gone.  The concurrent plain read/write is also a
data race (contrast intel_dp_invalidate_source_oui() above using
WRITE_ONCE()).

[Severity: Medium]
Can a delayed long HPD in i915_digport_work_func() also clobber a
freshly trained intel_dp->frl.is_trained state back to false?

CPU0 (modeset enable)             CPU1 (dig_port_work)
                                  i915_digport_work_func()
                                    intel_dp_hpd_pulse(..., true)
                                      intel_dp_read_dprx_caps()
mtl_ddi_pre_enable_dp()
  intel_dp_check_frl_training()
    intel_dp_pcon_start_frl_training()
      intel_dp->frl.is_trained = true
                                      intel_dp->frl.is_trained = false
                                        <-- clobbers trained state

If intel_dp_hpd_pulse() is delayed behind another port or inside
intel_dp_read_dprx_caps(), it can clear intel_dp->frl.is_trained right
after FRL training finishes, disabling later HDMI_LINK_STATUS_CHANGED
recovery.  Later in this series, commit "drm/i915/dp: Store the PCON FRL
rate in the crtc state" adds an unlocked write to
intel_dp->frl.trained_rate_gbps beside this one, which can also leave
torn state with is_trained true and trained_rate_gbps zero.

Serializing FRL state updates with modeset enable, or blocking HPD
across FRL training, would prevent both races.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=1

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work
  2026-12-04  8:57 ` [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work Ankit Nautiyal
@ 2026-12-04  9:52   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:52 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 6 potential
issues to consider:
- [Medium] drm/i915/dp: TOCTOU race before hw_done in
  intel_dp_pcon_frl_recover()
- [Medium] drm/i915/dp: missing connected check and lock in
  intel_dp_pcon_frl_recover()
- [Medium] drm/i915/dp: intel_dp_pcon_frl_recover() accesses AUX on
  suspended display
- [Medium] drm/i915/dp: race between intel_dp_pcon_frl_recover() and HPD
  pulse work
- [Low] drm/i915/dp: redundant -EALREADY check in
  intel_dp_pcon_frl_recover()
- [Low] drm/i915/dp: missing Fixes trailer for commit 9488a030ac91
--

commit 1499fb0865199b2ac41ce39175d24f1ae4317106
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

> drm/i915/dp: Retrain the PCON FRL link from the link check work
>
> When the HDMI link of a PCON goes down while the stream is active, the
> HDMI link status change handler restarts the FRL training, or falls back
> to TMDS mode, directly from the short pulse handling. That runs without
> any modeset lock, so it can race with a modeset that trains the link as
> well, and it has no access to the state of the active stream.
>
> Queue the link check work instead, as it is done for the DP link
> retraining, and restart the FRL training there, with the modeset locks
> held and only if a stream is active. The work restarts the training only
> if the FRL link is not trained and the HDMI link is not active, so it
> does nothing after a fallback to TMDS mode.
>
> This allows to use the state of the active stream for the training in
> the following changes.
>
> Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

[Severity: Low]
This fixes a concurrency bug in intel_dp_handle_hdmi_link_status_change().
Should this include:

  Fixes: 9488a030ac91 ("drm/i915: Add support for enabling link status and recovery")

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 272837cc6efa4..2e92e4898ee6b 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -4637,6 +4637,42 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
>  	}
>  }
>  
> +/*
> + * Restart FRL training after the HDMI link went down while the stream is
> + * active, or fall back to TMDS mode.
> + */
> +int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
> +			      struct drm_modeset_acquire_ctx *ctx)
> +{
> +	struct intel_display *display = to_intel_display(encoder);
> +	struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> +	u8 pipe_mask;
> +	int ret;
> +
> +	if (!(intel_dp->downstream_ports[2] & DP_PCON_SOURCE_CTL_MODE) ||
> +	    !intel_dp_is_hdmi_2_1_sink(intel_dp) ||
> +	    intel_dp->frl.is_trained ||
> +	    drm_dp_pcon_hdmi_link_active(&intel_dp->aux))
> +		return 0;

[Severity: Medium]
Can intel_dp_pcon_frl_recover() race with intel_dp_detect() and attempt FRL
recovery on a disconnected port?

When the connector is disconnected, intel_dp_retrain_link() returns 0 early
without taking mode_config.connection_mutex, so intel_dp_link_check() still
calls intel_dp_pcon_frl_recover().  This early check then reads
downstream_ports, dpcd, and connector->base.display_info without holding
connection_mutex, racing with intel_dp_detect().

On disconnect while the CRTC is still active, a long HPD clears
frl.is_trained while intel_dp_unset_edid() leaves downstream_ports, dpcd,
and display_info populated.  A pending link_check_work then passes the early
check, takes connection_mutex and crtc->base.mutex, and either writes TMDS
fallback DPCD registers to the disconnected port or polls in
intel_dp_pcon_start_frl_training() for up to 1.5 seconds while holding those
locks.  Checking intel_dp_is_connected() and locking connection_mutex before
reading the DPCD state would avoid this.

[Severity: Medium]
Can drm_dp_pcon_hdmi_link_active() issue DP AUX transfers against suspended
display hardware on non-TypeC DDI ports?

intel_ddi_init() only sets encoder->suspend_complete (which calls
intel_encoder_link_check_flush_work()) for TypeC encoders, and
__intel_display_driver_pm_suspend() does not flush display->wq.unordered.
Moving FRL recovery from dig_port_work onto encoder->link_check_work allows
a pending work item to run after display access, IRQs, and power domains are
suspended.

Because drm_dp_pcon_hdmi_link_active() runs before acquiring
connection_mutex and checking pipe_mask == 0, it performs AUX MMIO and
runtime PM calls against suspended hardware whenever frl.is_trained is
false.  Flushing link_check_work for all DDI encoders on suspend and moving
the AUX read after the active-pipe check would prevent this.

> +
> +	/* The connection mutex may be held already by the link retraining */
> +	ret = drm_modeset_lock(&display->drm->mode_config.connection_mutex, ctx);
> +	if (ret && ret != -EALREADY)
> +		return ret;

[Severity: Low]
Is the ret != -EALREADY check needed here?  With a non-NULL ctx,
drm_modeset_lock() already converts -EALREADY to 0 internally in
modeset_lock(), so this branch is dead code and "if (ret) return ret;"
matches intel_dp_retrain_link() and intel_dp_get_active_pipes().

> +
> +	ret = intel_dp_get_active_pipes(intel_dp, ctx, &pipe_mask);
> +	if (ret)
> +		return ret;
> +
> +	/* Without an active stream the next enable trains the link */
> +	if (pipe_mask == 0)
> +		return 0;
> +
> +	intel_dp_check_frl_training(intel_dp);

[Severity: Medium]
Can intel_dp_pcon_frl_recover() tear down a working TMDS fallback link
because drm_dp_pcon_hdmi_link_active() is checked before
wait_for_connector_hw_done()?

A non-blocking atomic modeset drops the modeset locks and runs
intel_atomic_commit_tail() on display->wq.modeset.  If link_check_work runs
concurrently, intel_dp_pcon_frl_recover() reads frl.is_trained and
DP_PCON_HDMI_TX_LINK_STATUS before intel_dp_get_active_pipes() waits on
hw_done, and never re-checks them afterward (unlike intel_dp_retrain_link(),
which re-checks intel_dp_needs_link_retrain()):

CPU0 (wq.modeset)                 CPU1 (wq.unordered)
intel_atomic_commit_tail()
                                  intel_dp_pcon_frl_recover()
                                    frl.is_trained == false
                                    drm_dp_pcon_hdmi_link_active()
                                      -> false
  intel_dp_check_frl_training()
    intel_dp_pcon_set_tmds_mode()
  signal hw_done
                                    intel_dp_get_active_pipes()
                                      wait_for_connector_hw_done()
                                    intel_dp_check_frl_training()
                                      drm_dp_pcon_frl_prepare()
                                        <-- tears down active TMDS link

When the modeset falls back to TMDS mode, frl.is_trained remains false while
the HDMI link is active in TMDS mode.  intel_dp_check_frl_training() then
sees !frl.is_trained and calls drm_dp_pcon_frl_prepare(), disrupting the
active display and repeating up to 1.5 seconds of FRL polling under
connection_mutex and crtc->base.mutex; the pre-wait AUX read can also race
with the in-flight modeset's training.  Re-checking frl.is_trained and
drm_dp_pcon_hdmi_link_active() after intel_dp_get_active_pipes() would close
this window.

[Severity: Medium]
Can intel_dp_pcon_frl_recover() race with HPD pulse handling on
frl.is_trained and DP_PCON_HDMI_LINK_CONFIG_1?

Previously, FRL recovery ran in dig_port_work, which serialized it against
intel_dp_hpd_pulse() and intel_dp_handle_hdmi_link_status_change().  In
encoder->link_check_work, intel_dp_pcon_frl_recover() runs on
display->wq.unordered without calling intel_hpd_block(encoder) or sharing a
lock with dig_port_work:

CPU0 (wq.unordered)                 CPU1 (hotplug.dp_wq)
intel_dp_pcon_frl_recover()
  ...
  intel_dp_pcon_start_frl_training()
    intel_dp_pcon_is_frl_trained()
      -> true
                                    intel_dp_hpd_pulse() (long HPD)
                                      frl.is_trained = false
    frl.is_trained = true  <-- overwrites long-HPD reset

Losing the long-HPD reset leaves frl.is_trained set, so the next enable
skips FRL training even though the HDMI link is down.  A concurrent short
HPD in intel_dp_handle_hdmi_link_status_change() can also read is_active as
false before training finishes, then see frl.is_trained == true and clear
DP_PCON_ENABLE_HDMI_LINK via an unlocked read-modify-write, tearing down the
freshly trained link.  Blocking HPD with intel_hpd_block(encoder) around FRL
recovery would serialize it with dig_port_work.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=11

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters
  2026-12-04  8:57 ` [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters Ankit Nautiyal
@ 2026-12-04  9:52   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:52 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/i915/dp: missing PCON and sink DSC capability checks in
  compute
--

commit 436e850e3ddf87d0b01bc7a145ea30594fd044f0
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Compute the PCON DSC encoder parameters

This commit moves computation of the PCON DSC encoder slice height, slice
width, and compressed bpp from enable time to compute config, storing the
parameters in the crtc state for intel_dp_pcon_dsc_configure() to program.

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index ca218481182fd..272837cc6efa4 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1232,6 +1232,69 @@ intel_dp_pcon_sink_support_frl(struct intel_dp *intel_dp)
>  		intel_dp_hdmi_sink_max_frl(intel_dp);
>  }
>  
> +static bool intel_dp_pcon_can_encode_dsc(struct intel_dp *intel_dp)
> +{
> +	struct intel_connector *connector = intel_dp->attached_connector;
> +
> +	return intel_dp_is_hdmi_2_1_sink(intel_dp) &&
> +		connector->base.display_info.hdmi.dsc_cap.v_1p2 &&
> +		drm_dp_pcon_enc_is_dsc_1_2(intel_dp->pcon_dsc_dpcd);
> +}
> +
> +/*
> + * Compute the PCON DSC encoder parameters for the stream sent to the HDMI
> + * sink, which is in @sink_format. @enc can be NULL to only check feasibility.
> + */
> +static bool
> +intel_dp_pcon_dsc_enc_compute(struct intel_dp *intel_dp,
> +			      const struct drm_display_mode *mode, int pixel_clock,
> +			      int bpc, enum intel_output_format sink_format,
> +			      struct intel_pcon_dsc_enc_config *enc)
> +{
> +	struct intel_connector *connector = intel_dp->attached_connector;
> +	const struct drm_display_info *info = &connector->base.display_info;
> +	int pcon_max_slices = drm_dp_pcon_dsc_max_slices(intel_dp->pcon_dsc_dpcd);
> +	int pcon_max_slice_width = drm_dp_pcon_dsc_max_slice_width(intel_dp->pcon_dsc_dpcd);
> +	int slice_height, num_slices, slice_width, max_link_dsc_bpp, bpp_x16;
> +
> +	if (!intel_dp_pcon_can_encode_dsc(intel_dp))
> +		return false;
> +
> +	slice_height = intel_hdmi_dsc_get_slice_height(mode->vdisplay);
> +	if (!slice_height)
> +		return false;
> +
> +	num_slices = intel_hdmi_dsc_get_num_slices(mode, pixel_clock, sink_format,
> +						   pcon_max_slices, pcon_max_slice_width,
> +						   info->hdmi.dsc_cap.max_slices,
> +						   info->hdmi.dsc_cap.clk_per_slice);
> +	if (!num_slices)
> +		return false;
> +
> +	slice_width = DIV_ROUND_UP(mode->hdisplay, num_slices);
> +
> +	/* The compressed stream has to fit the FRL link */
> +	max_link_dsc_bpp = intel_dp_hdmi_frl_payload_bw(intel_dp) / pixel_clock;
> +	if (!max_link_dsc_bpp)
> +		return false;
> +
> +	bpp_x16 = intel_hdmi_dsc_get_bpp(drm_dp_pcon_dsc_bpp_incr(intel_dp->pcon_dsc_dpcd),
> +					 slice_width, num_slices, sink_format, bpc,
> +					 info->hdmi.dsc_cap.all_bpp,
> +					 info->hdmi.dsc_cap.total_chunk_kbytes * 1024,
> +					 max_link_dsc_bpp);
> +	if (!bpp_x16)
> +		return false;
> +
> +	if (enc) {
> +		enc->slice_height = slice_height;
> +		enc->slice_width = slice_width;
> +		enc->bpp_x16 = bpp_x16;
> +	}
> +
> +	return true;
> +}

[Severity: Medium]
Should intel_dp_pcon_can_encode_dsc() and intel_dp_pcon_dsc_enc_compute()
validate the PCON and HDMI sink DSC capabilities before accepting a mode?

intel_dp_pcon_can_encode_dsc() checks only the DSC 1.2 version flags and
skips DP_PCON_DSC_ENCODER_SUPPORTED and DP_PCON_DSC_PPS_ENC_OVERRIDE in
DP_PCON_DSC_ENCODER, even though intel_dp_pcon_dsc_configure()
unconditionally writes PPS override parameters.

intel_dp_pcon_dsc_enc_compute() also skips validating sink_format against
info->hdmi.dsc_cap.native_420 (for INTEL_OUTPUT_FORMAT_YCBCR420) and
DP_PCON_DSC_ENC_COLOR_FMT_CAP.

Similarly, bpc is not checked against info->hdmi.dsc_cap.bpc_supported
(which drm_parse_dsc_info() defaults to 8 bpc independently of
uncompressed deep-color support) or DP_PCON_DSC_ENC_COLOR_DEPTH_CAP.

On a PCON or HDMI 2.1 sink whose DSC capabilities are narrower than its
uncompressed ones (for example, 10 bpc uncompressed but only 8 bpc with
DSC), intel_dp_pcon_compute_config() will accept the mode and program
unsupported parameters, causing blank or corrupted display output.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=10

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check
  2026-12-04  8:57 ` [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Ankit Nautiyal
@ 2026-12-04  9:53   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:53 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [Medium] drm/i915/dp: PCON DSC mode_valid misses per-mode DP DSC and
  FEC checks
- [Medium] drm/i915/dp: FRL training skips rate reduction for PCON DSC
  modes
- [Medium] drm/i915/dp: PCON DSC compute omits sink/PCON format, bpc,
  and PPS caps
--

commit bc75fbbf3bd6bf6b6b5b7a81601106a79bf3cab6
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Allow PCON DSC modes through the FRL bw check

This commit updates intel_dp_mode_valid_downstream() to accept modes that
exceed uncompressed HDMI FRL bandwidth when both connector DP DSC and PCON
HDMI DSC encoding are available, and removes the corresponding FIXME comment
in intel_dp_frl_bw_valid().

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 94744ead1a6e9..be40a882e90da 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c

[ ... ]

> @@ -1339,12 +1338,22 @@ intel_dp_mode_valid_downstream(struct intel_connector *connector,
>  {
>  	struct intel_dp *intel_dp = intel_attached_dp(connector);
>  	int bpc = 8; /* Assume 8bpc for the DP++/HDMI/DVI TMDS/FRL bw check */
> +	enum drm_mode_status status;
>  
>  	if (intel_dp->dfp.max_dotclock &&
>  	    target_clock > intel_dp->dfp.max_dotclock)
>  		return MODE_CLOCK_HIGH;
>  
> -	return intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true);
> +	status = intel_dp_hdmi_bw_valid(intel_dp, target_clock, bpc, sink_format, true);
> +	if (status != MODE_CLOCK_HIGH)
> +		return status;
> +
> +	/* The PCON may be able to compress the stream for the HDMI link */
> +	if (intel_dp_has_dsc(connector) &&
> +	    intel_dp_hdmi_dsc_possible(intel_dp, mode, target_clock, bpc, sink_format))
> +		return MODE_OK;
> +
> +	return status;
>  }

[Severity: Medium]
Is checking intel_dp_has_dsc() sufficient here to guarantee that DP DSC can
be enabled for the mode?

intel_dp_has_dsc() only checks static connector capabilities and skips FEC
support, intel_dp_mode_valid_with_dsc(), joiner needs, and DSC bubble
dotclock limits.  In intel_dp_mode_valid_format(), a mode that fits the DP
link uncompressed still reaches here even when local dsc is false.

At modeset time, intel_dp_compute_formats() with respect_downstream_limits
set requires DP DSC and fails, for example in intel_dp_supports_dsc() without
FEC.  intel_dp_compute_config() then falls back to ignoring downstream limits
and either fails with -EINVAL or drives an out-of-spec uncompressed FRL link.

[Severity: Medium]
Does switching from an uncompressed mode to one of these PCON DSC modes leave
the HDMI FRL link running above the sink's DSC_Max_FRL_Rate?

intel_dp_pcon_compute_config() selects the lower dsc_max_frl_rate for PCON
DSC streams, but intel_dp_check_frl_training() skips retraining whenever
frl.trained_rate_gbps >= pcon_config.frl_rate_gbps.
intel_dp_pcon_is_frl_trained() similarly accepts any higher trained mask.

On an HDMI 2.1 sink where dsc_max_frl_rate is below max_frl_rate (such as
40 Gbps vs 48 Gbps), switching from an uncompressed mode to a PCON DSC mode
leaves the FRL link above the sink's DSC limit, which can cause the sink to
reject or corrupt the compressed stream.

[Severity: Medium]
Can intel_dp_hdmi_dsc_possible() accept YCbCr 4:2:0 or deep-color modes that
exceed the HDMI sink's or PCON's DSC encoder capabilities?

intel_dp_pcon_dsc_enc_compute() never checks sink_format against
hdmi.dsc_cap.native_420 or DP_PCON_DSC_ENC_COLOR_FMT_CAP, nor bpc against
hdmi.dsc_cap.bpc_supported or DP_PCON_DSC_ENC_COLOR_DEPTH_CAP.

intel_dp_pcon_can_encode_dsc() also omits DP_PCON_DSC_ENCODER_SUPPORTED and
DP_PCON_DSC_PPS_ENC_OVERRIDE, even though intel_dp_pcon_dsc_configure()
programs PPS override parameters.

On a sink that advertises DSC 1.2 without Native 4:2:0 DSC, or only 8 bpc DSC
while supporting 10/12 bpc uncompressed, unsupported modes pass validation
and get programmed into the PCON, causing blank or corrupted output.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=15

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream
  2026-12-04  8:57 ` [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream Ankit Nautiyal
@ 2026-12-04  9:58   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:58 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] drm/i915/dp: intel_dp_hdmi_compute_bpc() ignores sink and PCON
  DSC bpc caps
- [Medium] drm/i915/dp: PCON DSC ignores sink native_420 and PCON color
  format caps
- [Medium] drm/i915/dp: intel_dp_check_frl_training() skips lower DSC
  FRL retraining
- [Low] drm/i915/dp: intel_dp_hdmi_sink_max_frl() ignores zero DSC FRL
  rate
--

commit 1707d6510af7a4b652b9374bcbb1a3e1c3e1df5a
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Pick the bpc for a PCON DSC stream

This commit adds a fallback in intel_dp_hdmi_compute_bpc() to pick the
highest bpc that an HDMI 2.1 PCON can DSC-encode when no bpc fits the
HDMI FRL link uncompressed and the DP stream is compressed.

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index f2505b707cad5..94744ead1a6e9 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
> @@ -1302,6 +1302,20 @@ intel_dp_pcon_dsc_enc_compute(struct intel_dp *intel_dp,
>  	return true;
>  }
>  
> +/*
> + * Whether the PCON can compress a stream that doesn't fit the HDMI FRL link
> + * uncompressed. The DP stream has to be compressed for that as well.
> + */
> +static bool
> +intel_dp_hdmi_dsc_possible(struct intel_dp *intel_dp,
> +			   const struct drm_display_mode *mode, int pixel_clock,
> +			   int bpc, enum intel_output_format sink_format)
> +{
> +	return intel_dp_pcon_sink_support_frl(intel_dp) &&
> +		intel_dp_pcon_dsc_enc_compute(intel_dp, mode, pixel_clock, bpc,
> +					      sink_format, NULL);
> +}

[Severity: Medium]
Can intel_dp_hdmi_dsc_possible() accept a sink_format that the HDMI sink or
PCON DSC encoder cannot compress?

intel_dp_pcon_dsc_enc_compute() only checks v_1p2 and PCON DSC 1.2 support
via intel_dp_pcon_can_encode_dsc().  It never checks
info->hdmi.dsc_cap.native_420 for INTEL_OUTPUT_FORMAT_YCBCR420 or
DP_PCON_DSC_ENC_COLOR_FMT_CAP in intel_dp->pcon_dsc_dpcd.

On an HDMI 2.1 sink that supports DSC 1.2 for RGB without native 4:2:0 DSC
decoding, driving a 4:2:0 mode that requires FRL DSC will configure PCON DSC
encoding in an unsupported format and produce blank or corrupted output.

[Severity: Low]
What happens here if the HDMI sink advertises DSC 1.2 support but reports a
DSC_Max_FRL_Rate of 0 (or an unrecognized rate code that
drm_get_max_frl_rate() maps to 0)?

intel_dp_pcon_dsc_enc_compute() calls intel_dp_hdmi_frl_payload_bw(intel_dp,
true), which reaches intel_dp_hdmi_sink_max_frl():

drivers/gpu/drm/i915/display/intel_dp.c:intel_dp_hdmi_sink_max_frl() {
	...
	if (dsc && dsc_max_frl_rate)
		return min(max_frl_rate, dsc_max_frl_rate);

	return max_frl_rate;
}

When dsc is true and dsc_max_frl_rate is 0, this falls through and returns
the uncompressed max_frl_rate instead of 0.  PCON DSC is then enabled on a
sink that does not advertise compressed FRL transport, causing link failure.

Checking if (dsc) without && dsc_max_frl_rate would return 0 and let
intel_dp_pcon_dsc_enc_compute() reject the mode cleanly.

[ ... ]

> @@ -1862,12 +1880,27 @@ static int intel_dp_hdmi_compute_bpc(struct intel_dp *intel_dp,
>  			return bpc;
>  	}
>  
> +	/*
> +	 * No bpc fits the HDMI link uncompressed. If the DP stream is compressed
> +	 * the PCON may be able to compress the stream for the HDMI link as well.
> +	 */
> +	if (!dsc || !respect_downstream_limits)
> +		return -EINVAL;
> +
> +	for (bpc = max_bpc; bpc >= 8; bpc -= 2) {
> +		if (intel_hdmi_bpc_possible(crtc_state, bpc,
> +					    intel_dp_has_hdmi_sink(intel_dp)) &&
> +		    intel_dp_hdmi_dsc_possible(intel_dp, &crtc_state->hw.adjusted_mode,
> +					       clock, bpc, crtc_state->sink_format))
> +			return bpc;
> +	}
> +
>  	return -EINVAL;
>  }

[Severity: High]
Should this loop validate bpc against the sink and PCON DSC color depth
capabilities rather than only uncompressed HDMI deep-color limits?

intel_hdmi_bpc_possible() only checks uncompressed EDID deep-color flags,
and neither intel_dp_hdmi_dsc_possible() nor intel_dp_pcon_dsc_enc_compute()
checks info->hdmi.dsc_cap.bpc_supported or DP_PCON_DSC_ENC_COLOR_DEPTH_CAP
in intel_dp->pcon_dsc_dpcd.

On an HDMI 2.1 sink that advertises 12 bpc uncompressed deep color but only
8 or 10 bpc in its HF-VSDB DSC capabilities, this picks 12 bpc and
configures an unsupported compressed color depth, resulting in a blank or
corrupted screen.

[Severity: Medium]
Now that this loop allows switching to a PCON DSC stream, does
intel_dp_check_frl_training() fail to retrain the FRL link down when the
sink's DSC_Max_FRL_Rate is lower than its uncompressed Max_FRL_Rate?

After an uncompressed modeset trains the FRL link at a higher rate (for
example 48 Gbps), intel_dp->frl.is_trained stays true across modesets.  A
later PCON DSC modeset sets crtc_state->pcon_config.frl_rate_gbps to the
lower compressed rate (for example 24 Gbps), but this returns early:

drivers/gpu/drm/i915/display/intel_dp.c:intel_dp_check_frl_training() {
	...
	if (intel_dp->frl.is_trained &&
	    intel_dp->frl.trained_rate_gbps >= crtc_state->pcon_config.frl_rate_gbps)
		return;
	...
}

intel_dp_pcon_is_frl_trained() has the same *frl_trained_mask >=
max_frl_bw_mask check.  The PCON then transmits compressed video above the
sink's DSC_Max_FRL_Rate, breaking display output on the mode switch.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=14

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link
  2026-12-04  8:57 ` [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link Ankit Nautiyal
@ 2026-12-04  9:58   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04  9:58 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] drm/i915/dp: FRL link not retrained down to sink DSC max FRL
  rate
- [Medium] drm/i915/dp: stale FRL state after failed retrain TMDS
  fallback
- [Medium] drm/i915/dp: intel_dp_hdmi_sink_max_frl() ignores zero DSC
  max FRL rate
- [Medium] drm/i915/dp: race between FRL retraining and HPD pulse on
  intel_dp->frl
--

commit e1a3040089835da203f6f54ee67ab293bf6c6ee8
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Use the FRL rate of the stream on the HDMI link

This commit passes a boolean indicating whether the HDMI stream is
compressed to the sink and PCON FRL rate helpers, and stores the
matching FRL rate in crtc_state->pcon_config.frl_rate_gbps.

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index da3aeba84c602..f2505b707cad5 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c

[ ... ]

> @@ -3094,8 +3101,8 @@ intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
>  	if (!intel_dp_is_hdmi_2_1_sink(intel_dp))
>  		return 0;
>  
> -	crtc_state->pcon_config.frl_rate_gbps =
> -		min(intel_dp->dfp.pcon_max_frl_bw, intel_dp_hdmi_sink_max_frl(intel_dp));
> +	/* The HDMI link carries an uncompressed stream, unless the PCON compresses it */
> +	crtc_state->pcon_config.frl_rate_gbps = intel_dp_pcon_max_frl_rate(intel_dp, false);

[Severity: Medium]
Can a failed FRL retrain now leave intel_dp->frl.is_trained true while the
PCON has fallen back to TMDS mode?

With stream-dependent FRL rates, switching from a PCON DSC mode trained at a
lower rate to an uncompressed mode at a higher rate calls
intel_dp_pcon_start_frl_training() while intel_dp->frl.is_trained is still
true.  drm_dp_pcon_frl_prepare() tears down the previous FRL link, and if
training then fails, intel_dp_check_frl_training() switches the PCON to TMDS
via intel_dp_pcon_set_tmds_mode() without clearing intel_dp->frl.is_trained
or intel_dp->frl.trained_rate_gbps.

Later modesets requesting a rate at or below the stale trained_rate_gbps
will then skip FRL training and remain stuck in TMDS mode, and
intel_dp_pcon_frl_recover() will return early because is_trained is still
set.

[Severity: Medium]
Is there a data race between FRL retraining and HPD pulse handling on
intel_dp->frl and DP_PCON_HDMI_LINK_CONFIG_1?

When switching from a lower DSC FRL rate to a higher uncompressed FRL rate,
intel_dp_check_frl_training() runs before intel_dp_start_link_train(), so
intel_hpd_block() is not active yet:

CPU0                             CPU1
intel_dp_check_frl_training()
  ...
  drm_dp_pcon_frl_prepare()
  /* HDMI link down;
     frl.is_trained is true */
                                 intel_dp_hpd_pulse()
                                   ...
                                   intel_dp_handle_hdmi_link_status_change()
                                     /* is_trained && !is_active */
                                     clear DP_PCON_ENABLE_HDMI_LINK
                                       <-- aborts FRL retrain

Tearing down the active HDMI link can itself trigger a short HPD.
intel_dp_handle_hdmi_link_status_change() then does an unsynchronized
read-modify-write on DP_PCON_HDMI_LINK_CONFIG_1 and clears
intel_dp->frl.is_trained, causing FRL training to time out and fall back to
TMDS mode.  A concurrent long HPD in intel_dp_hpd_pulse() can also race with
the two-field update of trained_rate_gbps and is_trained at the end of
intel_dp_pcon_start_frl_training().

Clearing intel_dp->frl.is_trained before tearing down the link and
synchronizing FRL training with HPD pulse handling (for example via
intel_hpd_block() / intel_hpd_unblock()) would avoid these races.

> @@ -3127,6 +3134,7 @@ intel_dp_pcon_compute_config(struct intel_dp *intel_dp,
>  	}
>  
>  	crtc_state->pcon_config.dsc_op = INTEL_PCON_DSC_DECODE_ENCODE;
> +	crtc_state->pcon_config.frl_rate_gbps = intel_dp_pcon_max_frl_rate(intel_dp, true);

[Severity: High]
Does the FRL training path fail to retrain the link down when switching from
an uncompressed mode to a PCON DSC mode with a lower sink DSC max FRL rate?

When an uncompressed mode trains the FRL link at the sink's regular max rate
(for example 48 Gbps), intel_dp->frl.is_trained and trained_rate_gbps are
not cleared on disable.  On a later modeset to a PCON DSC mode capped by
DSC_Max_FRL_Rate (for example 24 Gbps), intel_dp_check_frl_training() checks
trained_rate_gbps >= crtc_state->pcon_config.frl_rate_gbps and returns early
without retraining.

Even if intel_dp->frl.is_trained were false, intel_dp_pcon_is_frl_trained()
also accepts *frl_trained_mask >= max_frl_bw_mask, so
intel_dp_pcon_start_frl_training() jumps straight to frl_trained.
intel_dp_pcon_dsc_configure() then enables the PCON DSC encoder over an FRL
link exceeding the sink's DSC_Max_FRL_Rate, which can cause a blank display
or link failure.

[ ... ]

> @@ -4478,7 +4486,7 @@ static int intel_dp_pcon_set_frl_mask(int max_frl)
>  	return 0;
>  }
>  
> -static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp)
> +static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp, bool dsc)
>  {
>  	struct intel_connector *connector = intel_dp->attached_connector;
>  	struct drm_connector *drm_connector = &connector->base;
> @@ -4487,12 +4495,10 @@ static int intel_dp_hdmi_sink_max_frl(struct intel_dp *intel_dp)
>  
>  	/*
>  	 * The sink's DSC max FRL rate only applies to compressed video
> -	 * transport, which requires a DSC 1.2 encoder in the PCON. Without
> -	 * one the HDMI link always carries uncompressed video, for which
> -	 * the regular max FRL rate is the limit.
> +	 * transport. For uncompressed video the regular max FRL rate is the
> +	 * limit.
>  	 */
> -	if (drm_dp_pcon_enc_is_dsc_1_2(intel_dp->pcon_dsc_dpcd) &&
> -	    dsc_max_frl_rate)
> +	if (dsc && dsc_max_frl_rate)
>  		return min(max_frl_rate, dsc_max_frl_rate);
>  
>  	return max_frl_rate;

[Severity: Medium]
When dsc is true and the sink reports a zero dsc_max_frl_rate, shouldn't
this return 0 instead of falling back to max_frl_rate?

In HDMI 2.1, a zero DSC_Max_FRL_Rate (or an unrecognized rate code mapped to
0 by drm_get_max_frl_rate()) indicates that compressed transport over FRL is
unsupported.  Because intel_dp_pcon_can_encode_dsc() only checks
dsc_cap.v_1p2, falling through to max_frl_rate allows
intel_dp_pcon_dsc_enc_compute() to succeed and intel_dp_pcon_compute_config()
to enable INTEL_PCON_DSC_DECODE_ENCODE at the uncompressed FRL rate, which
can cause link failure or a blank screen.

Changing the condition to "if (dsc)" so it returns min(max_frl_rate,
dsc_max_frl_rate) would return 0 when compressed FRL is unsupported.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=13

^ permalink raw reply	[flat|nested] 30+ messages in thread

* Re: [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state
  2026-12-04  8:57 ` [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state Ankit Nautiyal
@ 2026-12-04 10:00   ` sashiko-bot
  0 siblings, 0 replies; 30+ messages in thread
From: sashiko-bot @ 2026-12-04 10:00 UTC (permalink / raw)
  To: Ankit Nautiyal, intel-gfx, intel-xe; +Cc: dri-devel

Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [Medium] drm/i915/dp: intel_dp_check_frl_training() leaves stale FRL
  state on failure
- [Medium] drm/i915/dp: intel_dp_pcon_frl_recover() fails with zero
  frl_rate_gbps
- [Medium] drm/i915/dp: HPD pulse races with FRL training on frl state
  and DPCD
- [Medium] drm/i915/dp: unlocked read and TOCTOU in
  intel_dp_pcon_frl_recover()
- [Medium] drm/i915/dp: intel_dp_pcon_frl_recover() may see zero
  frl_rate_gbps
--

commit c3d65efbf1eff2d1822dd7d0fa85881a9934f871
Author: Ankit Nautiyal <ankit.k.nautiyal@intel.com>

drm/i915/dp: Store the PCON FRL rate in the crtc state

This commit computes the PCON FRL rate in intel_dp_pcon_compute_config(),
stores it in crtc_state->pcon_config.frl_rate_gbps, and uses it during FRL
training and recovery.  It also retrains an already-trained FRL link when a
new stream requires a higher rate and clears frl.trained_rate_gbps on long
HPD.

> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 2e92e4898ee6b..da3aeba84c602 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c

[ ... ]

> @@ -4507,23 +4510,19 @@ intel_dp_pcon_is_frl_trained(struct intel_dp *intel_dp,
>  	return false;
>  }
>  
> -static int intel_dp_pcon_start_frl_training(struct intel_dp *intel_dp)
> +static int intel_dp_pcon_start_frl_training(struct intel_dp *intel_dp,
> +					    const struct intel_crtc_state *crtc_state)
>  {
>  	struct intel_display *display = to_intel_display(intel_dp);
>  #define TIMEOUT_FRL_READY_MS 500
>  #define TIMEOUT_HDMI_LINK_ACTIVE_MS 1000
> -	int max_frl_bw, max_pcon_frl_bw, max_edid_frl_bw, ret;
> +	int max_frl_bw, ret;
>  	u8 max_frl_bw_mask = 0, frl_trained_mask;
>  	bool is_active;
>  
> -	max_pcon_frl_bw = intel_dp->dfp.pcon_max_frl_bw;
> -	drm_dbg(display->drm, "PCON max rate = %d Gbps\n", max_pcon_frl_bw);
> -
> -	max_edid_frl_bw = intel_dp_hdmi_sink_max_frl(intel_dp);
> -	drm_dbg(display->drm, "Sink max rate from EDID = %d Gbps\n",
> -		max_edid_frl_bw);
> -
> -	max_frl_bw = min(max_edid_frl_bw, max_pcon_frl_bw);
> +	max_frl_bw = crtc_state->pcon_config.frl_rate_gbps;
> +	drm_dbg(display->drm, "FRL max rate = %d Gbps (PCON max rate = %d Gbps)\n",
> +		max_frl_bw, intel_dp->dfp.pcon_max_frl_bw);
>  
>  	if (max_frl_bw <= 0)
>  		return -EINVAL;

[Severity: Medium]
Can crtc_state->pcon_config.frl_rate_gbps be 0 here for a BIOS-inherited
state?

pcon_config is not read out from hardware during
intel_modeset_readout_hw_state(), and intel_dp_initial_fastset_check() does
not force a full modeset for uncompressed DP-to-HDMI PCON outputs.  Once
intel_dp_detect() populates the HDMI 2.1 sink caps, an inactive HDMI link
handled by intel_dp_pcon_frl_recover() passes that inherited crtc_state here,
causing intel_dp_pcon_start_frl_training() to return -EINVAL and fall back to
TMDS mode instead of recovering FRL.

[ ... ]

> @@ -4607,7 +4606,8 @@ int intel_dp_pcon_set_tmds_mode(struct intel_dp *intel_dp)
>  	return 0;
>  }
>  
> -void intel_dp_check_frl_training(struct intel_dp *intel_dp)
> +void intel_dp_check_frl_training(struct intel_dp *intel_dp,
> +				 const struct intel_crtc_state *crtc_state)
>  {
>  	struct intel_display *display = to_intel_display(intel_dp);
>  
> @@ -4617,11 +4617,15 @@ void intel_dp_check_frl_training(struct intel_dp *intel_dp)
>  	 * -sink is HDMI2.1
>  	 */
>  	if (!(intel_dp->downstream_ports[2] & DP_PCON_SOURCE_CTL_MODE) ||
> -	    !intel_dp_is_hdmi_2_1_sink(intel_dp) ||
> -	    intel_dp->frl.is_trained)
> +	    !intel_dp_is_hdmi_2_1_sink(intel_dp))
>  		return;
>  
> -	if (intel_dp_pcon_start_frl_training(intel_dp) < 0) {
> +	/* A link trained at a lower rate than the stream needs has to be retrained */
> +	if (intel_dp->frl.is_trained &&
> +	    intel_dp->frl.trained_rate_gbps >= crtc_state->pcon_config.frl_rate_gbps)
> +		return;
> +
> +	if (intel_dp_pcon_start_frl_training(intel_dp, crtc_state) < 0) {
>  		int ret, mode;
>  
>  		drm_dbg(display->drm,

[Severity: Medium]
Does this leave intel_dp->frl.is_trained and intel_dp->frl.trained_rate_gbps
stale if retraining to a higher rate fails?

When retraining runs with frl.is_trained already true,
drm_dp_pcon_frl_prepare() clears DP_PCON_ENABLE_HDMI_LINK and tears down the
previous FRL link.  If training then fails and intel_dp_check_frl_training()
switches the PCON to TMDS mode without clearing frl.is_trained and
frl.trained_rate_gbps, later modesets requesting at most the old rate take
the early return and stay stuck in TMDS mode, and intel_dp_pcon_frl_recover()
skips recovery.  Resetting both fields before drm_dp_pcon_frl_prepare() would
keep software state in sync with hardware.

> @@ -4646,6 +4650,7 @@ int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
>  {
>  	struct intel_display *display = to_intel_display(encoder);
>  	struct intel_dp *intel_dp = enc_to_intel_dp(encoder);
> +	struct intel_crtc *crtc;
>  	u8 pipe_mask;
>  	int ret;
>  
> @@ -4668,7 +4673,10 @@ int intel_dp_pcon_frl_recover(struct intel_encoder *encoder,
>  	if (pipe_mask == 0)
>  		return 0;
>  
> -	intel_dp_check_frl_training(intel_dp);
> +	/* The stream is on the pipe of the connector's CRTC, locked above */
> +	crtc = intel_crtc_for_pipe(display, ffs(pipe_mask) - 1);
> +
> +	intel_dp_check_frl_training(intel_dp, to_intel_crtc_state(crtc->base.state));
>  
>  	return 0;
>  }

[Severity: Medium]
Can intel_dp_pcon_frl_recover() pass a crtc_state whose
pcon_config.frl_rate_gbps was computed as 0 before EDID detection?

During intel_display_driver_probe(), intel_initial_commit() runs before
intel_hpd_init() and intel_dp_set_edid().  Even on a Type-C port where
intel_ddi_initial_fastset_check() forces a full modeset,
intel_dp_is_hdmi_2_1_sink() is still false during that commit, leaving
frl_rate_gbps at 0 while intel_dp_stop_link_train() queues link_check_work.
Once intel_dp_detect() populates the HDMI 2.1 sink caps,
intel_dp_pcon_frl_recover() runs with frl_rate_gbps == 0, fails with -EINVAL,
and demotes the link to TMDS mode instead of training FRL.

[Severity: Medium]
Can intel_dp_pcon_frl_recover() tear down an active TMDS link because
drm_dp_pcon_hdmi_link_active() is not re-checked after
intel_dp_get_active_pipes()?

CPU0 (commit worker)                CPU1 (link_check_work)
intel_atomic_commit_tail()          intel_dp_pcon_frl_recover()
  ...                                 if (frl.is_trained ||
                                          drm_dp_pcon_hdmi_link_active())
                                        /* link not active yet */
                                      intel_dp_get_active_pipes()
                                        wait_for_connector_hw_done()
  intel_dp_check_frl_training()
    intel_dp_pcon_start_frl_training() /* fails */
    intel_dp_pcon_set_tmds_mode()
  /* hw_done signalled */
                                        /* unblocks, no re-check */
                                      intel_dp_check_frl_training()
                                        drm_dp_pcon_frl_prepare()
                                          <-- tears down active TMDS link

Because intel_dp_get_active_pipes() waits in wait_for_connector_hw_done() for
in-flight nonblocking commits, an initial check before that wait is stale by
the time it returns.  Additionally, when intel_dp_retrain_link() returns
early on !intel_dp_is_connected(intel_dp) without locking
mode_config.connection_mutex, intel_dp_pcon_frl_recover() reads
downstream_ports, dpcd, pcon_dsc_dpcd, and connector->base.display_info
before acquiring connection_mutex, racing with intel_dp_detect().

[ ... ]

> @@ -7237,6 +7245,7 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd)
>  		 * the next enable.
>  		 */
>  		intel_dp->frl.is_trained = false;
> +		intel_dp->frl.trained_rate_gbps = 0;
>  
>  		return IRQ_NONE;
>  	}

[Severity: Medium]
Can concurrent HPD pulses race with FRL retraining on intel_dp->frl and
DP_PCON_HDMI_LINK_CONFIG_1?

intel_hpd_block() is not called until intel_dp_start_link_train(), after
intel_dp_check_frl_training(), and i915_digport_work_func() runs
intel_dp_hpd_pulse() without modeset locks:

CPU0 (modeset)                  CPU1 (i915_digport_work_func)
intel_dp_check_frl_training()
  /* is_trained still true */
  intel_dp_pcon_start_frl_training()
    drm_dp_pcon_frl_prepare()
      /* HDMI link inactive */
    drm_dp_pcon_frl_enable()
                                intel_dp_hpd_pulse()
                                  intel_dp_handle_hdmi_link_status_change()
                                    /* sees is_trained && !is_active */
                                    clear DP_PCON_ENABLE_HDMI_LINK
                                      <-- aborts FRL training
                                    frl.is_trained = false

During a rate-upgrade retrain, drm_dp_pcon_frl_prepare() drops the HDMI link
while frl.is_trained is still true and polls for up to 1.5 s, allowing a
short HPD to clear DP_PCON_ENABLE_HDMI_LINK mid-training or clobber
frl.is_trained after training succeeds.  Similarly, a long HPD resets
frl.is_trained then frl.trained_rate_gbps in reverse order from
intel_dp_pcon_start_frl_training() with no lock, which can leave is_trained
true with trained_rate_gbps == 0 or lose the disconnect reset.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204085746.391918-1-ankit.k.nautiyal@intel.com?part=12

^ permalink raw reply	[flat|nested] 30+ messages in thread

* ✓ Xe.CI.BAT: success for DP-HDMI PCON DSC fixes (rev5)
  2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
                   ` (15 preceding siblings ...)
  2026-12-04  9:31 ` ✓ CI.KUnit: success for DP-HDMI PCON DSC fixes (rev5) Patchwork
@ 2026-12-04 10:10 ` Patchwork
  16 siblings, 0 replies; 30+ messages in thread
From: Patchwork @ 2026-12-04 10:10 UTC (permalink / raw)
  To: Ankit Nautiyal; +Cc: intel-xe

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

== Series Details ==

Series: DP-HDMI PCON DSC fixes (rev5)
URL   : https://patchwork.freedesktop.org/series/171346/
State : success

== Summary ==

CI Bug Log - changes from xe-6293-f9b8124c80c95744f0510148991dab1a3befffab_BAT -> xe-pw-171346v5_BAT
====================================================

Summary
-------

  **SUCCESS**

  No regressions found.

  

Participating hosts (13 -> 13)
------------------------------

  No changes in participating hosts


Changes
-------

  No changes found


Build changes
-------------

  * Linux: xe-6293-f9b8124c80c95744f0510148991dab1a3befffab -> xe-pw-171346v5

  IGT_9224: 9224
  xe-6293-f9b8124c80c95744f0510148991dab1a3befffab: f9b8124c80c95744f0510148991dab1a3befffab
  xe-pw-171346v5: 171346v5

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-171346v5/index.html

[-- Attachment #2: Type: text/html, Size: 1400 bytes --]

^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2026-12-04 10:10 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  8:57 [PATCH v5 00/15] DP-HDMI PCON DSC fixes Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Ankit Nautiyal
2026-12-04  9:45   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 02/15] drm/i915/dp: Account for FRL 16b/18b encoding overhead Ankit Nautiyal
2026-12-04  9:36   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 03/15] drm/i915/hdmi: Clamp the target_bpp only when it equals the link bpp Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 04/15] drm/i915/dp: Add PCON DSC state to crtc_state Ankit Nautiyal
2026-12-04  9:43   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 05/15] drm/dp: Add a helper to disable the PCON DSC encoder Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 06/15] drm/i915/dp: Compute the PCON DSC operation Ankit Nautiyal
2026-12-04  9:38   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 07/15] drm/i915/dp: Disable the PCON DSC encoder unless it is needed Ankit Nautiyal
2026-12-04  9:38   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 08/15] drm/i915/dp: Clamp PCON DSC bpp to the FRL link bandwidth Ankit Nautiyal
2026-12-04  9:33   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 09/15] drm/i915/dp: Add a helper for the FRL payload bandwidth Ankit Nautiyal
2026-12-04  8:57 ` [PATCH v5 10/15] drm/i915/dp: Compute the PCON DSC encoder parameters Ankit Nautiyal
2026-12-04  9:52   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 11/15] drm/i915/dp: Retrain the PCON FRL link from the link check work Ankit Nautiyal
2026-12-04  9:52   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 12/15] drm/i915/dp: Store the PCON FRL rate in the crtc state Ankit Nautiyal
2026-12-04 10:00   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 13/15] drm/i915/dp: Use the FRL rate of the stream on the HDMI link Ankit Nautiyal
2026-12-04  9:58   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 14/15] drm/i915/dp: Pick the bpc for a PCON DSC stream Ankit Nautiyal
2026-12-04  9:58   ` sashiko-bot
2026-12-04  8:57 ` [PATCH v5 15/15] drm/i915/dp: Allow PCON DSC modes through the FRL bw check Ankit Nautiyal
2026-12-04  9:53   ` sashiko-bot
2026-12-04  9:31 ` ✓ CI.KUnit: success for DP-HDMI PCON DSC fixes (rev5) Patchwork
2026-12-04 10:10 ` ✓ Xe.CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox