[PATCH i-g-t 1/3] tests/amdgpu/amd_color: fix EINVAL failure in DCN2.1

Melissa Wen mwen at igalia.com
Sun Jun 1 19:14:44 UTC 2025


Creating a 64x64 fb for primary returns EINVAL in DCN2.1, as below:

Starting subtest: crtc-lut-accuracy
(amd_color:14772) igt_kms-CRITICAL: Test assertion failure function igt_display_commit_atomic, file ../lib/igt_kms.c:4530:
(amd_color:14772) igt_kms-CRITICAL: Failed assertion: ret == 0
(amd_color:14772) igt_kms-CRITICAL: Last errno: 22, Invalid argument
(amd_color:14772) igt_kms-CRITICAL: error: -22 != 0
Stack trace:
  #0 ../lib/igt_core.c:1989 __igt_fail_assert()
  #1 [igt_display_commit_atomic+0x44]
  #2 ../tests/amdgpu/amd_color.c:159 __igt_unique____real_main395()
  #3 ../tests/amdgpu/amd_color.c:395 main()
  #4 ../sysdeps/nptl/libc_start_call_main.h:74 __libc_start_call_main()
  #5 ../csu/libc-start.c:128 __libc_start_main@@GLIBC_2.34()
  #6 [_start+0x21]
Subtest crtc-lut-accuracy failed.

crtc-lut-accuracy fails due to `[drm] Mode Validation Warning: Unknown
Status failed` likely related to dml/bandwidth limitation in this
hardware and therefore not related to any CRC mismatches. Use the
display size instead, as usual to all color tests, and also because
64x64 size seems unsupported by this hw.

Signed-off-by: Melissa Wen <mwen at igalia.com>
---
 tests/amdgpu/amd_color.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/tests/amdgpu/amd_color.c b/tests/amdgpu/amd_color.c
index 4a98df3be..e34d11ef0 100644
--- a/tests/amdgpu/amd_color.c
+++ b/tests/amdgpu/amd_color.c
@@ -333,7 +333,7 @@ static void test_crtc_lut_accuracy(data_t *data)
 	igt_crc_t ref_crc, new_crc;
 	igt_fb_t afb;
 	lut_t lut_degamma, lut_regamma;
-	int i, w, h;
+	int i;
 
 	test_init(data);
 
@@ -352,11 +352,7 @@ static void test_crtc_lut_accuracy(data_t *data)
 	lut_init(&lut_regamma, data->regamma_lut_size);
 	lut_gen_regamma_srgb(&lut_regamma, 0xffff);
 
-	/* Don't draw across the whole screen to improve perf. */
-	w = 64;
-	h = 64;
-
-	igt_create_fb(data->fd, w, h, DRM_FORMAT_XRGB8888, 0, &afb);
+	igt_create_fb(data->fd, data->w, data->h, DRM_FORMAT_XRGB8888, 0, &afb);
 	igt_plane_set_fb(data->primary, &afb);
 	igt_display_commit_atomic(display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
 
-- 
2.47.2



More information about the igt-dev mailing list