Skip to contentSkip to conversation

drm-ci: vkms: kms_flip@modeset-vs-vblank-race flake

DISCUSSION Vignesh Raman 2 participants 5 messages Mar 13, 2025 – Mar 17, 2025

lore
Share & tools
lore
#0 lore raw

Hi Maintainers,

There are some flake test reported for vkms driver testing in drm-ci.

# Board Name: vkms
# Failure Rate: 20
# IGT Version: 1.30-g04bedb923
# Linux Version: 6.14.0-rc4
kms_flip@modeset-vs-vblank-race

DEBUG - Begin test kms_flip@modeset-vs-vblank-race
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o) ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: Dynamic subtest A-Virtual17 failed.
ERROR - Igt error: **** DEBUG ****
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0) ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0) ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: igt_create_fb_with_bo_size(handle=2, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
ERROR - Igt error: (kms_flip:1250) igt_kms-INFO: 1024x768: 60 65000 1024 1048 1184 1344 768 771 777 806 0x48 0xa
ERROR - Igt error: (kms_flip:1250) DEBUG: No stale events found
ERROR - Igt error: (kms_flip:1250) INFO: Expected frametime: 16666us; measured 16665.6us +- 0.500us accuracy 0.01%
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o) ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: Stack trace:
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #0 ../lib/igt_core.c:2055 __igt_fail_assert()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #1 ../tests/kms_flip.c:1023 run_test_on_crtc_set.constprop.0()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #2 ../tests/kms_flip.c:1845 run_test()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #3 ../tests/kms_flip.c:2078 __igt_unique____real_main2001()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #4 ../tests/kms_flip.c:2001 main()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #5 [__libc_init_first+0x8a]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #6 [__libc_start_main+0x85]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #7 [_start+0x21]
ERROR - Igt error: **** END ****
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:2246:
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Failed assertion: found_it
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: DPMS property not found on 39
ERROR - Test kms_flip@modeset-vs-vblank-race: Fail: See "/builds/vigneshraman/linux/results/[email protected]" DEBUG - End test kms_flip@modeset-vs-vblank-race

Pipeline: https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/72473690

Please could you have a look at these test results and let us know if you need more information. Thank you.

Regards,
Vignesh

#1 lore raw

Le 13/03/2025 à 11:45, Vignesh Raman a écrit :

Quoted 2 lines

Hi Maintainers,

Hi Vignesh,

Thanks for the report.

On my setup, this test passed, and the others are skipped.

I think the issue on this specific test may be due to performance (seems to be a timing issue, I will try to slow down my VM). The other tests require suspend/resume, which I failed to setup on my VM.

To understand what is wrong, I would like to have an environment very similar to the CI, how can I reproduce this on my machine? Is there a setup script somewhere I can run to create a virtual machine?

Thanks,
Louis Chauvet

Quoted 84 lines

There are some flake test reported for vkms driver testing in drm-ci.

# Board Name: vkms
# Failure Rate: 20
# IGT Version: 1.30-g04bedb923
# Linux Version: 6.14.0-rc4
kms_flip@modeset-vs-vblank-race

DEBUG - Begin test kms_flip@modeset-vs-vblank-race
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: Dynamic subtest A-Virtual17 failed.
ERROR - Igt error: **** DEBUG ****
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=1, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=2, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS
ERROR - Igt error: (kms_flip:1250) igt_kms-INFO: 1024x768: 60 65000
1024 1048 1184 1344 768 771 777 806 0x48 0xa
ERROR - Igt error: (kms_flip:1250) DEBUG: No stale events found ERROR - Igt error: (kms_flip:1250) INFO: Expected frametime: 16666us; measured 16665.6us +- 0.500us accuracy 0.01%
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: Stack trace:
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #0
../lib/igt_core.c:2055 __igt_fail_assert()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #1
../tests/kms_flip.c:1023 run_test_on_crtc_set.constprop.0()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #2
../tests/kms_flip.c:1845 run_test()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #3
../tests/kms_flip.c:2078 __igt_unique____real_main2001()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #4
../tests/kms_flip.c:2001 main()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #5
[__libc_init_first+0x8a]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #6
[__libc_start_main+0x85]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: #7 [_start+0x21]
ERROR - Igt error: **** END ****
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:2246:
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Failed assertion:
found_it
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: DPMS property not found on 39
ERROR - Test kms_flip@modeset-vs-vblank-race: Fail: See "/builds/vigneshraman/linux/results/[email protected]" DEBUG - End test kms_flip@modeset-vs-vblank-race

Pipeline: https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/72473690

Please could you have a look at these test results and let us know if you need more information. Thank you.

Regards,
Vignesh

Signature · 3 lines
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

Hi Louis,

Quoted 8 lines · Louis Chauvet

Le 13/03/2025 à 11:45, Vignesh Raman a écrit :

Quoted 2 lines

Hi Maintainers,

Hi Vignesh,

Quoted 7 lines

Thanks for the report.

On my setup, this test passed, and the others are skipped.

I think the issue on this specific test may be due to performance (seems to be a timing issue, I will try to slow down my VM). The other tests require suspend/resume, which I failed to setup on my VM.

To understand what is wrong, I would like to have an environment very similar to the CI, how can I reproduce this on my machine? Is there a setup script somewhere I can run to create a virtual machine?

You can follow the instructions below to use the same container that drm-ci uses from mesa (From pipeline https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/72473690). drm-ci uses the crosvm-runner.sh script. You can also build specific IGT version and run the tests from the container. Thanks Corentin for the documentation.

https://gitlab.collabora.com/virgl-es/documentation/-/blob/master/dev-ci-container.md

If you want to run only specific tests for vkms in drm-ci, you can use this commit,
https://gitlab.freedesktop.org/vigneshraman/linux/-/commit/0773affa01a4347056c891bc58887ae1daa0161c

Once the pipeline is created you can use the ci_run_n_monitor.py [1] from mesa project to run only vkms and its dependent jobs.

../mesa/bin/ci/ci_run_n_monitor.py --pipeline-url https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1384344 --target vkms:none

[1] https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/bin/ci/ci_run_n_monitor.py

Please let us know if you need more information. Thanks.

Regards,
Vignesh

Quoted 89 lines

Thanks,
Louis Chauvet

Quoted 84 lines

There are some flake test reported for vkms driver testing in drm-ci.

# Board Name: vkms
# Failure Rate: 20
# IGT Version: 1.30-g04bedb923
# Linux Version: 6.14.0-rc4
kms_flip@modeset-vs-vblank-race

DEBUG - Begin test kms_flip@modeset-vs-vblank-race
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: Dynamic subtest A-Virtual17 failed.
ERROR - Igt error: **** DEBUG ****
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=1, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=2, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_kms-INFO:   1024x768: 60 65000 1024 1048 1184 1344 768 771 777 806 0x48 0xa
ERROR - Igt error: (kms_flip:1250) DEBUG: No stale events found ERROR - Igt error: (kms_flip:1250) INFO: Expected frametime: 16666us; measured 16665.6us +- 0.500us accuracy 0.01%
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: Stack trace:
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #0 ../lib/igt_core.c:2055 __igt_fail_assert()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #1 ../tests/kms_flip.c:1023 run_test_on_crtc_set.constprop.0()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #2 ../tests/kms_flip.c:1845 run_test()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #3 ../tests/kms_flip.c:2078 __igt_unique____real_main2001()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #4 ../tests/kms_flip.c:2001 main()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #5 [__libc_init_first+0x8a]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #6 [__libc_start_main+0x85]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #7 [_start+0x21] ERROR - Igt error: ****  END  ****
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:2246:
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Failed assertion:
found_it
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: DPMS property not found on 39
ERROR - Test kms_flip@modeset-vs-vblank-race: Fail: See "/builds/vigneshraman/linux/results/igt.kms_flip@modeset-vs-vblank- race.log" DEBUG - End test kms_flip@modeset-vs-vblank-race

Pipeline: https://gitlab.freedesktop.org/vigneshraman/linux/-/ jobs/72473690

Please could you have a look at these test results and let us know if you need more information. Thank you.

Regards,
Vignesh

#3 lore raw

Le 14/03/2025 à 13:11, Vignesh Raman a écrit :

Quoted 23 lines

Hi Louis,

Quoted 12 lines · Louis Chauvet

Le 13/03/2025 à 11:45, Vignesh Raman a écrit :

Quoted 2 lines

Hi Maintainers,

Hi Vignesh,

Thanks for the report.

On my setup, this test passed, and the others are skipped.

Quoted 7 lines

I think the issue on this specific test may be due to performance (seems to be a timing issue, I will try to slow down my VM). The other tests require suspend/resume, which I failed to setup on my VM.

To understand what is wrong, I would like to have an environment very similar to the CI, how can I reproduce this on my machine? Is there a setup script somewhere I can run to create a virtual machine?

Quoted 8 lines

You can follow the instructions below to use the same container that drm-ci uses from mesa (From pipeline
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/72473690).
drm-ci uses the crosvm-runner.sh script. You can also build specific IGT version and run the tests from the container. Thanks Corentin for the documentation.

https://gitlab.collabora.com/virgl-es/documentation/-/blob/master/dev-ci-container.md

Thank you so much for those information, but I think this gitlab instance is private, is there a public repository somewhere?

Have a nice day,
Louis Chauvet

Quoted 111 lines

If you want to run only specific tests for vkms in drm-ci, you can use this commit,
https://gitlab.freedesktop.org/vigneshraman/linux/-/commit/0773affa01a4347056c891bc58887ae1daa0161c

Once the pipeline is created you can use the ci_run_n_monitor.py [1] from mesa project to run only vkms and its dependent jobs.

../mesa/bin/ci/ci_run_n_monitor.py --pipeline-url
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1384344
--target vkms:none

[1]
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/bin/ci/ci_run_n_monitor.py

Please let us know if you need more information. Thanks.

Regards,
Vignesh

Quoted 91 lines

Thanks,
Louis Chauvet

Quoted 86 lines

There are some flake test reported for vkms driver testing in drm-ci.

# Board Name: vkms
# Failure Rate: 20
# IGT Version: 1.30-g04bedb923
# Linux Version: 6.14.0-rc4
kms_flip@modeset-vs-vblank-race

DEBUG - Begin test kms_flip@modeset-vs-vblank-race
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: Dynamic subtest A-Virtual17 failed.
ERROR - Igt error: **** DEBUG ****
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=1, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=2, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_kms-INFO:   1024x768: 60 65000 1024 1048 1184 1344 768 771 777 806 0x48 0xa
ERROR - Igt error: (kms_flip:1250) DEBUG: No stale events found ERROR - Igt error: (kms_flip:1250) INFO: Expected frametime: 16666us; measured 16665.6us +- 0.500us accuracy 0.01%
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: Stack trace:
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #0 ../lib/igt_core.c:2055 __igt_fail_assert()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #1 ../tests/kms_flip.c:1023 run_test_on_crtc_set.constprop.0() ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #2 ../tests/kms_flip.c:1845 run_test()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #3 ../tests/kms_flip.c:2078 __igt_unique____real_main2001() ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #4 ../tests/kms_flip.c:2001 main()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #5 [__libc_init_first+0x8a]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #6 [__libc_start_main+0x85]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #7 [_start+0x21] ERROR - Igt error: ****  END  ****
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/igt_kms.c:2246:
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Failed assertion:
found_it
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: DPMS property not found on 39
ERROR - Test kms_flip@modeset-vs-vblank-race: Fail: See "/builds/vigneshraman/linux/results/igt.kms_flip@modeset-vs-vblank- race.log"
DEBUG - End test kms_flip@modeset-vs-vblank-race

Pipeline: https://gitlab.freedesktop.org/vigneshraman/linux/-/
jobs/72473690

Please could you have a look at these test results and let us know if you need more information. Thank you.

Regards,
Vignesh

Signature · 3 lines
Louis Chauvet, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

Hi Louis,

Quoted 33 lines · Louis Chauvet

Le 14/03/2025 à 13:11, Vignesh Raman a écrit :

Quoted 30 lines

Hi Louis,

Quoted 12 lines · Louis Chauvet

Le 13/03/2025 à 11:45, Vignesh Raman a écrit :

Quoted 2 lines

Hi Maintainers,

Hi Vignesh,

Thanks for the report.

On my setup, this test passed, and the others are skipped.

Quoted 7 lines

I think the issue on this specific test may be due to performance (seems to be a timing issue, I will try to slow down my VM). The other tests require suspend/resume, which I failed to setup on my VM.

To understand what is wrong, I would like to have an environment very similar to the CI, how can I reproduce this on my machine? Is there a setup script somewhere I can run to create a virtual machine?

You can follow the instructions below to use the same container that drm-ci uses from mesa (From pipeline
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/72473690).
drm-ci uses the crosvm-runner.sh script. You can also build specific IGT version and run the tests from the container. Thanks Corentin for the documentation.

Quoted 3 lines
Quoted 1 line

https://gitlab.collabora.com/virgl-es/documentation/-/blob/master/dev- ci-container.md

Thank you so much for those information, but I think this gitlab instance is private, is there a public repository somewhere?

Please can you check this link,
https://github.com/vigneshraman/dev-ci-container/blob/main/dev-ci-container.md

Regards,
Vignesh

Quoted 116 lines

Have a nice day,
Louis Chauvet

Quoted 111 lines

If you want to run only specific tests for vkms in drm-ci, you can use
this commit,
https://gitlab.freedesktop.org/vigneshraman/linux/-/ commit/0773affa01a4347056c891bc58887ae1daa0161c

Once the pipeline is created you can use the ci_run_n_monitor.py [1] from mesa project to run only vkms and its dependent jobs.

../mesa/bin/ci/ci_run_n_monitor.py --pipeline-url
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1384344
--target vkms:none

[1]
https://gitlab.freedesktop.org/mesa/mesa/-/blob/main/bin/ci/ ci_run_n_monitor.py

Please let us know if you need more information. Thanks.

Regards,
Vignesh

Quoted 91 lines

Thanks,
Louis Chauvet

Quoted 86 lines

There are some flake test reported for vkms driver testing in drm-ci.

# Board Name: vkms
# Failure Rate: 20
# IGT Version: 1.30-g04bedb923
# Linux Version: 6.14.0-rc4
kms_flip@modeset-vs-vblank-race

DEBUG - Begin test kms_flip@modeset-vs-vblank-race
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: Dynamic subtest A-Virtual17 failed.
ERROR - Igt error: **** DEBUG ****
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=1, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(width=1024, height=768, format=XR24(0x34325258), modifier=0x0, size=0)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG:
igt_create_fb_with_bo_size(handle=2, pitch=4096)
ERROR - Igt error: (kms_flip:1250) ioctl_wrappers-DEBUG: Test requirement passed: igt_has_fb_modifiers(fd)
ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_fb-DEBUG: Test requirement
passed: cairo_surface_status(fb->cairo_surface) == CAIRO_STATUS_SUCCESS ERROR - Igt error: (kms_flip:1250) igt_kms-INFO:   1024x768: 60 65000 1024 1048 1184 1344 768 771 777 806 0x48 0xa
ERROR - Igt error: (kms_flip:1250) DEBUG: No stale events found ERROR - Igt error: (kms_flip:1250) INFO: Expected frametime: 16666us; measured 16665.6us +- 0.500us accuracy 0.01%
ERROR - Igt error: (kms_flip:1250) CRITICAL: Test assertion failure function run_test_step, file ../tests/kms_flip.c:979:
ERROR - Igt error: (kms_flip:1250) CRITICAL: Failed assertion: end - start > 0.9 * actual_frame_time(o) && end - start < 2.6 * actual_frame_time(o)
ERROR - Igt error: (kms_flip:1250) CRITICAL: wait for two vblanks took 47374 usec (frame time 16665.600000 usec)
ERROR - Igt error: (kms_flip:1250) igt_core-INFO: Stack trace:
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #0 ../lib/igt_core.c:2055 __igt_fail_assert()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #1 ../tests/kms_flip.c:1023 run_test_on_crtc_set.constprop.0() ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #2 ../tests/kms_flip.c:1845 run_test()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #3 ../tests/kms_flip.c:2078 __igt_unique____real_main2001() ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #4 ../tests/kms_flip.c:2001 main()
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #5 [__libc_init_first+0x8a]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #6 [__libc_start_main+0x85]
ERROR - Igt error: (kms_flip:1250) igt_core-INFO:   #7 [_start+0x21] ERROR - Igt error: ****  END  ****
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Test assertion failure function kmstest_set_connector_dpms, file ../lib/ igt_kms.c:2246:
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Failed assertion:
found_it
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: Last errno: 9, Bad file descriptor
ERROR - Igt error: (kms_flip:1250) igt_kms-CRITICAL: DPMS property not found on 39
ERROR - Test kms_flip@modeset-vs-vblank-race: Fail: See "/builds/vigneshraman/linux/results/igt.kms_flip@modeset-vs-vblank- race.log"
DEBUG - End test kms_flip@modeset-vs-vblank-race

Pipeline: https://gitlab.freedesktop.org/vigneshraman/linux/-/
jobs/72473690

Please could you have a look at these test results and let us know if you need more information. Thank you.

Regards,
Vignesh