tests/kms_busy: Only test agains one engine
PATCH 1/1 tests/kms_busy: Only test agains one engine
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
--- tests/kms_busy.c | 111 +++++++++++++++++++++++++++---------------------------- 1 file changed, 55 insertions(+), 56 deletions(-)
tests/kms_busy.c +55 -56
@@ -309,7 +309,8 @@ static void test_pageflip_modeset_hang(igt_display_t *dpy, igt_main {igt_display_t display = { .drm_fd =-1 , .n_pipes =IGT_MAX_PIPES }; -const struct intel_execution_engine *e; +/* we only test on render */ +const struct intel_execution_engine *e = intel_execution_engines[1 ];igt_skip_on_simulation ();
@@ -333,82 +334,80 @@ igt_mainigt_skip_on (n >= display.n_pipes); } -for (e = intel_execution_engines; e->name; e++) { -igt_subtest_f ("%sflip-%s-%s" , - e->exec_id ==0 ?"basic-" :"" , - e->name, kmstest_pipe_name(n)) { +igt_subtest_f ("%sflip-%s-%s" , + e->exec_id ==0 ?"basic-" :"" , + e->name, kmstest_pipe_name(n)) { +igt_require (gem_has_ring (display.drm_fd, + e->exec_id | e->flags)); + +test_flip (&display, e->exec_id | e->flags, n, false); + } +igt_subtest_f ("%smodeset-%s-%s" , + e->exec_id ==0 ?"basic-" :"" , + e->name, kmstest_pipe_name(n)) { +igt_require (gem_has_ring (display.drm_fd, + e->exec_id | e->flags)); + +test_flip (&display, e->exec_id | e->flags, n, true); + } + + igt_subtest_group { +igt_hang_t hang; + + igt_fixture {igt_require (gem_has_ring (display.drm_fd, e->exec_id | e->flags)); -test_flip (&display, e->exec_id | e->flags, n, false); + hang =igt_allow_hang (display.drm_fd,0 ,0 ); } -igt_subtest_f ("%smodeset-%s-%s" , - e->exec_id ==0 ?"basic-" :"" , + +igt_subtest_f ("extended-pageflip-modeset-hang-oldfb-%s-%s" , e->name, kmstest_pipe_name(n)) {igt_require (gem_has_ring (display.drm_fd, e->exec_id | e->flags)); -test_flip (&display, e->exec_id | e->flags, n, true); +test_pageflip_modeset_hang (&display, e->exec_id | e->flags, n); } - igt_subtest_group { -igt_hang_t hang; - - igt_fixture { -igt_require (gem_has_ring (display.drm_fd, - e->exec_id | e->flags)); +igt_fixture + igt_require(display.is_atomic); - hang =igt_allow_hang (display.drm_fd,0 ,0 ); - } +igt_subtest_f ("extended-pageflip-hang-oldfb-%s-%s" , + e->name, kmstest_pipe_name(n)) +test_hang (&display, e->exec_id | e->flags, n, false, false); -igt_subtest_f ("extended-pageflip-modeset-hang-oldfb-%s-%s" , - e->name, kmstest_pipe_name(n)) { -igt_require (gem_has_ring (display.drm_fd, - e->exec_id | e->flags)); +igt_subtest_f ("extended-pageflip-hang-newfb-%s-%s" , + e->name, kmstest_pipe_name(n)) +test_hang (&display, e->exec_id | e->flags, n, false, true); -test_pageflip_modeset_hang (&display, e->exec_id | e->flags, n); - } +igt_subtest_f ("extended-modeset-hang-oldfb-%s-%s" , + e->name, kmstest_pipe_name(n)) +test_hang (&display, e->exec_id | e->flags, n, true, false); -igt_fixture - igt_require(display.is_atomic); +igt_subtest_f ("extended-modeset-hang-newfb-%s-%s" , + e->name, kmstest_pipe_name(n)) +test_hang (&display, e->exec_id | e->flags, n, true, true); -igt_subtest_f ("extended-pageflip-hang-oldfb-%s-%s" , - e->name, kmstest_pipe_name(n)) -test_hang (&display, e->exec_id | e->flags, n, false, false); - -igt_subtest_f ("extended-pageflip-hang-newfb-%s-%s" , - e->name, kmstest_pipe_name(n)) -test_hang (&display, e->exec_id | e->flags, n, false, true); - -igt_subtest_f ("extended-modeset-hang-oldfb-%s-%s" , - e->name, kmstest_pipe_name(n)) -test_hang (&display, e->exec_id | e->flags, n, true, false); - -igt_subtest_f ("extended-modeset-hang-newfb-%s-%s" , - e->name, kmstest_pipe_name(n)) -test_hang (&display, e->exec_id | e->flags, n, true, true); - -igt_subtest_f ("extended-modeset-hang-oldfb-with-reset-%s-%s" , - e->name, kmstest_pipe_name(n)) { -igt_set_module_param_int ("force_reset_modeset_test" ,1 ); +igt_subtest_f ("extended-modeset-hang-oldfb-with-reset-%s-%s" , + e->name, kmstest_pipe_name(n)) { +igt_set_module_param_int ("force_reset_modeset_test" ,1 ); -test_hang (&display, e->exec_id | e->flags, n, true, false); +test_hang (&display, e->exec_id | e->flags, n, true, false); -igt_set_module_param_int ("force_reset_modeset_test" ,0 ); - } +igt_set_module_param_int ("force_reset_modeset_test" ,0 ); + } -igt_subtest_f ("extended-modeset-hang-newfb-with-reset-%s-%s" , - e->name, kmstest_pipe_name(n)) { -igt_set_module_param_int ("force_reset_modeset_test" ,1 ); +igt_subtest_f ("extended-modeset-hang-newfb-with-reset-%s-%s" , + e->name, kmstest_pipe_name(n)) { +igt_set_module_param_int ("force_reset_modeset_test" ,1 ); -test_hang (&display, e->exec_id | e->flags, n, true, true); +test_hang (&display, e->exec_id | e->flags, n, true, true); -igt_set_module_param_int ("force_reset_modeset_test" ,0 ); - } +igt_set_module_param_int ("force_reset_modeset_test" ,0 ); + } - igt_fixture { -igt_disallow_hang (display.drm_fd, hang); - } + igt_fixture { +igt_disallow_hang (display.drm_fd, hang); } } }
Signature · 6 lines
2.13.3 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Daniel Vetter (2017-08-03 13:05:29)
Quoted 7 lines
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Then test against all engines simultaneously.
Quoted 2 lines
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
kms has a separate waiting interface, it would be prudent to not assume that coverage elsewhere gives coverage of kms. Note also that kms has a number of special paths for domain handling which require care and attention.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Chris Wilson
Quoting Daniel Vetter (2017-08-03 13:05:29)
Quoted 7 lines
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Then test against all engines simultaneously.
What's the benefit of that? Just making sure that we handle multiple dma_fence on the same obj/fb? Afaics the current test doesn't do that either.
Quoted 7 lines
Quoted 2 lines
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
kms has a separate waiting interface, it would be prudent to not assume that coverage elsewhere gives coverage of kms. Note also that kms has a number of special paths for domain handling which require care and attention.
Again, sounds like a neat extension of test coverage, but I'm just aiming to make the current coverage more efficient in terms of machine time used. Atm kbl takes 15' longer than hsw, and these kms_busy tests are a big chunk of that (another one is that somehow everything related to modeset just takes a bit longer, the final one is that kbl has more features, so skips less).
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Daniel Vetter (2017-08-03 16:17:57)
Quoted 10 lines · Chris Wilson
Quoted 9 lines
Quoting Daniel Vetter (2017-08-03 13:05:29)
Quoted 7 lines
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Quoted 5 lines
Quoted 1 line
Then test against all engines simultaneously.
What's the benefit of that? Just making sure that we handle multiple
dma_fenceon the same obj/fb? Afaics the current test doesn't do that either.
We increase the potential source for errors, keep the cursory check that any engine can generate content for a flip, and all without adding any significant time (a couple of extra microseconds to submit, 10us to handle the extra interrupts).
Quoted 11 lines
Quoted 7 lines
Quoted 2 lines
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
kms has a separate waiting interface, it would be prudent to not assume that coverage elsewhere gives coverage of kms. Note also that kms has a number of special paths for domain handling which require care and attention.
Again, sounds like a neat extension of test coverage, but I'm just aiming to make the current coverage more efficient in terms of machine time used.
Indeed, so use all engines instead of an arbitrary choice. -Chris
_______________________________________________
Intel-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Op 03-08-17 om 14:05 schreef Daniel Vetter:
Quoted 8 lines
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Quoted 8 lines
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Arkadiusz Hiler <[email protected]>Signed-off-by Daniel Vetter <[email protected]>---
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 tests/kms_busy: Only test against one engine
In reply to Daniel VetterBack when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
v2: Make it compile. Oops. Also make sure we don't break fast-feedback.testlist.
Adding a mode where we depend upon all engines isn't really possible, because there's only 1 exclusive fence and that's the only thing a flip waits for.
--- tests/intel-ci/fast-feedback.testlist | 6 +- tests/kms_busy.c | 109 +++++++++++++++++----------------- 2 files changed, 56 insertions(+), 59 deletions(-)
tests/intel-ci/fast-feedback.testlist +3 -3
@@ -196,9 +196,9 @@ igt@kms_addfb_basic@unused-handle igt@kms_addfb_basic@unused-modifier igt@kms_addfb_basic@unused-offsets igt@kms_addfb_basic@unused-pitches -igt@kms_busy@basic-flip-default-a -igt@kms_busy@basic-flip-default-b -igt@kms_busy@basic-flip-default-c +igt@kms_busy@basic-flip-a +igt@kms_busy@basic-flip-b +igt@kms_busy@basic-flip-c igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy igt@kms_cursor_legacy@basic-flip-after-cursor-atomic
tests/kms_busy.c +53 -56
142 lines not on this page · raw message
Signature · 6 lines
2.5.5 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH i-g-t] tests/kms_busy: Only test against one engine
Quoted 18 lines · Daniel Vetter
Back when we used cs flips it made sense to go through different engines, since a buffer busy on an engine that we couldnt' use for cs flipping ended up in different paths.
But with atomic we use a worker for all flips, and going through the combinatorial growth of engines just wastes precious machine time. More so the more modern the platform is.
Of course gem tests should still do some diagonal testing across all engines, but the kms side can afford to be a bit cheaper.
v2: Make it compile. Oops. Also make sure we don't break fast-feedback.testlist.
Adding a mode where we depend upon all engines isn't really possible, because there's only 1 exclusive fence and that's the only thing a flip waits for.
Quoted 5 lines
Cc Chris Wilson <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Arkadiusz Hiler <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx