public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v1] lib/igt_kms: Fix invalid mode timing in igt_kms_get_full_edid()
@ 2026-03-11  8:10 Mohammed Bilal
  2026-03-11 22:20 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mohammed Bilal @ 2026-03-11  8:10 UTC (permalink / raw)
  To: igt-dev; +Cc: kunal1.joshi, Mohammed Bilal

The mode timing values for 2288x1287 were invalid,
causing an incorrect refresh rate to be calculated.

Fixed by using proper timing values with correct blanking periods.

Signed-off-by: Mohammed Bilal <mohammed.bilal@intel.com>
---
 lib/igt_kms.c | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 0b05ddd72..01e61904b 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -162,16 +162,17 @@ const struct edid *igt_kms_get_full_edid(void)
 	static struct edid edid;
 	drmModeModeInfo mode = {};
 
-	mode.clock = 148500;
+	/* 2288x1287 @ 60Hz with proper timing values */
+	mode.clock = 193882;
 	mode.hdisplay = 2288;
-	mode.hsync_start = 2008;
-	mode.hsync_end = 2052;
-	mode.htotal = 2200;
+	mode.hsync_start = 2336;
+	mode.hsync_end = 2368;
+	mode.htotal = 2448;
 	mode.vdisplay = 1287;
-	mode.vsync_start = 1084;
-	mode.vsync_end = 1089;
-	mode.vtotal = 1125;
-	mode.vrefresh = 144;
+	mode.vsync_start = 1290;
+	mode.vsync_end = 1295;
+	mode.vtotal = 1320;
+	mode.vrefresh = 60;
 	edid_init_with_mode(&edid, &mode);
 
 	std_timing_set(&edid.standard_timings[0], 256, 60, STD_TIMING_16_10);
-- 
2.48.1


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

end of thread, other threads:[~2026-03-16  8:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11  8:10 [PATCH i-g-t v1] lib/igt_kms: Fix invalid mode timing in igt_kms_get_full_edid() Mohammed Bilal
2026-03-11 22:20 ` ✓ i915.CI.BAT: success for " Patchwork
2026-03-11 22:35 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-12 16:47 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-12 17:20 ` ✗ i915.CI.Full: failure " Patchwork
2026-03-16  8:34 ` [i-g-t,v1] " Joshi, Kunal1

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