All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2 1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check
@ 2026-11-25 10:23 Karthik B S
  2026-11-25 10:23 ` [PATCH i-g-t v2 2/2] lib/igt_kms: Add max uncompressed dotclock limit for non-joiner mode selection Karthik B S
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Karthik B S @ 2026-11-25 10:23 UTC (permalink / raw)
  To: igt-dev; +Cc: jeevan.b, sowmiya.s, ankit.k.nautiyal, Karthik B S

crtc points to crtcs[i], so crtc[i - 1] is crtcs[2 * i - 1] rather than
the previous crtc. For i > 1 the joiner check looks at the wrong mode,
or past the configured crtcs, when deciding whether the previous crtc
needs a consecutive pipe.

Use crtcs[i - 1] as is already done for the crtc index and connector
of the previous crtc.

Fixes: df584c804e3a ("tests/kms_setmode: Fix the corner case in handling 5k+ modes")
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_setmode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_setmode.c b/tests/kms_setmode.c
index a65ea8b23..702261581 100644
--- a/tests/kms_setmode.c
+++ b/tests/kms_setmode.c
@@ -817,7 +817,7 @@ static void test_one_combination(const struct test_config *tconf,
 			     ((crtc->crtc_idx >= (tconf->resources->count_crtcs - 1)) ||
 			      ((i < (crtc_count - 1)) && (abs(crtcs[i + 1].crtc_idx - crtc->crtc_idx) <= 1)))) ||
 			    ((i > 0) && (igt_check_force_joiner_status(drm_fd, prev_conn_name) ||
-					 igt_bigjoiner_possible(drm_fd, &crtc[i - 1].mode, max_dotclock)) &&
+					 igt_bigjoiner_possible(drm_fd, &crtcs[i - 1].mode, max_dotclock)) &&
 			     (abs(crtc->crtc_idx - crtcs[i - 1].crtc_idx) <= 1))) {
 				igt_info("Combo: %s is not possible with selected mode(s).\n", test_name);
 				goto out;
-- 
2.43.0


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

end of thread, other threads:[~2026-11-27  9:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 10:23 [PATCH i-g-t v2 1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check Karthik B S
2026-11-25 10:23 ` [PATCH i-g-t v2 2/2] lib/igt_kms: Add max uncompressed dotclock limit for non-joiner mode selection Karthik B S
2026-11-25 10:42   ` Jani Nikula
2026-11-25 11:22     ` Karthik B S
2026-11-25 22:34 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,v2,1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check Patchwork
2026-11-25 23:15 ` ✗ i915.CI.BAT: failure " Patchwork
2026-11-26  5:26 ` ✓ i915.CI.BAT: success " Patchwork
2026-11-26  7:45 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-27  5:09 ` ✓ i915.CI.Full: " Patchwork
2026-11-27  9:43 ` Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.