Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check
@ 2026-11-16  9:18 Karthik B S
  2026-11-16  9:18 ` [PATCH i-g-t 2/2] lib/igt_kms: Add max uncompressed dotclock limit for non-joiner mode selection Karthik B S
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Karthik B S @ 2026-11-16  9:18 UTC (permalink / raw)
  To: igt-dev; +Cc: chaitanya.kumar.borah, 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>
---
 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] 9+ messages in thread

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  9:18 [PATCH i-g-t 1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check Karthik B S
2026-11-16  9:18 ` [PATCH i-g-t 2/2] lib/igt_kms: Add max uncompressed dotclock limit for non-joiner mode selection Karthik B S
2026-11-17  5:16   ` S, Sowmiya
2026-11-25 10:22     ` Karthik B S
2026-11-25  8:22   ` Nautiyal, Ankit K
2026-11-25 10:23     ` Karthik B S
2026-11-16 20:05 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,1/2] tests/kms_setmode: Fix previous crtc mode lookup in joiner check Patchwork
2026-11-17  7:09 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-18 15:49 ` [PATCH i-g-t 1/2] " B, Jeevan

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