public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Mohammed Bilal <mohammed.bilal@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jeevan.b@intel.com, kunal1.joshi@intel.com,
	sameer.lattannavar@intel.com, sebastian.brzezinka@intel.com,
	Mohammed Bilal <mohammed.bilal@intel.com>
Subject: [PATCH v1 2/2] tests/kms_vrr: Add connector type filtering for LOBF
Date: Wed, 18 Feb 2026 13:34:35 +0530	[thread overview]
Message-ID: <20260218080511.2534901-3-mohammed.bilal@intel.com> (raw)
In-Reply-To: <20260218080511.2534901-1-mohammed.bilal@intel.com>

LOBF is supported only on eDP connectors for display ver < 35.
From display ver >= 35 onwards, both eDP and DP connectors are
supported. Add connector type checks in output_constraint() to
skip unsupported connector types based on the display version.

Signed-off-by: Mohammed Bilal <mohammed.bilal@intel.com>
---
 tests/kms_vrr.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index e46e98727..cc43ce587 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -1007,6 +1007,30 @@ static bool output_constraint(data_t *data, igt_output_t *output, uint32_t flags
 	}
 
 	if (flags & TEST_LINK_OFF) {
+		unsigned int display_ver =
+			intel_display_ver(intel_get_drm_devid(data->drm_fd));
+		uint32_t connector_type =
+			output->config.connector->connector_type;
+
+		/*
+		 * LOBF is supported only on eDP for display ver < 35.
+		 * From display ver >= 35 onwards, both eDP and DP are supported.
+		 */
+		if (display_ver < 35 &&
+		    connector_type != DRM_MODE_CONNECTOR_eDP) {
+			igt_info("%s: LOBF requires eDP on display ver %u.\n",
+				 igt_output_name(output), display_ver);
+			return false;
+		}
+
+		if (display_ver >= 35 &&
+		    connector_type != DRM_MODE_CONNECTOR_eDP &&
+		    connector_type != DRM_MODE_CONNECTOR_DisplayPort) {
+			igt_info("%s: LOBF requires eDP or DP connector.\n",
+				 igt_output_name(output));
+			return false;
+		}
+
 		if (!igt_has_lobf_debugfs(data->drm_fd, output)) {
 			igt_info("i915_edp_lobf_status not present for %s\n",
 				 igt_output_name(output));
-- 
2.48.1


  parent reply	other threads:[~2026-02-18  8:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-18  8:04 [PATCH v1 0/2] Add precondition checks for LOBF subtest Mohammed Bilal
2026-02-18  8:04 ` [PATCH v1 1/2] tests/kms_vrr: Skip LOBF test when aux-less ALPM is not enabled Mohammed Bilal
2026-02-18  8:36   ` B, Jeevan
2026-02-18 11:01   ` Kamil Konieczny
2026-02-18 12:19   ` Sebastian Brzezinka
2026-02-19  5:19   ` S, Sowmiya
2026-02-18  8:04 ` Mohammed Bilal [this message]
2026-02-18  8:42   ` [PATCH v1 2/2] tests/kms_vrr: Add connector type filtering for LOBF B, Jeevan
2026-02-23 16:06     ` Bilal, Mohammed
2026-02-18  8:40 ` ✓ Xe.CI.BAT: success for Add precondition checks for LOBF subtest Patchwork
2026-02-18  9:13 ` ✓ i915.CI.BAT: " Patchwork
2026-02-18  9:37 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-18 12:36 ` ✗ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260218080511.2534901-3-mohammed.bilal@intel.com \
    --to=mohammed.bilal@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jeevan.b@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=sameer.lattannavar@intel.com \
    --cc=sebastian.brzezinka@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox