[igt-dev] [PATCH i-g-t] tests/kms_big_fb: Use max stride 128K generic in set_max_hw_stride

Vidya Srinivas vidya.srinivas at intel.com
Thu Jul 29 19:06:36 UTC 2021


As per kernel i9xx_plane_max_stride, if I915_FORMAT_MOD_X_TILED
stride should be 16*1024 and for other modifiers 32*1024.
However, we see random CRC failures on kernel 5.4
With 64K or 128K, tests PASS. We are keeping 128K for now
to avoid failures on 5.4 kernel.

But it should try only those formats which can show full length.
However, changing that to 128K again fails. So, not changing
32768 in the check

Signed-off-by: Charlton Lin <charlton.Lin at intel.com>
Signed-off-by: Vidya Srinivas <vidya.srinivas at intel.com>
---
 tests/kms_big_fb.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c
index c6f374bdd073..905b5cfdc47a 100644
--- a/tests/kms_big_fb.c
+++ b/tests/kms_big_fb.c
@@ -754,16 +754,7 @@ test_addfb(data_t *data)
 static void
 set_max_hw_stride(data_t *data)
 {
-	if (intel_display_ver(data->devid) >= 13) {
-		/*
-		 * The stride in bytes must not exceed of the size
-		 * of 128K bytes. For pixel formats of 64bpp will allow
-		 * for a 16K pixel surface.
-		 */
-		data->hw_stride = 131072;
-	} else {
-		data->hw_stride = 32768;
-	}
+	data->hw_stride = 131072;
 }
 
 static data_t data = {};
-- 
2.32.0



More information about the igt-dev mailing list