kms_flip: Split the "no events" logic into a separate flag
PATCH 1/2 kms_flip: Split the "no events" logic into a separate flag
From: Ville Syrjälä <[email protected]>
Do not use the TEST_HANG flag to determine whether page flip events are used. Add a new TEST_NOEVENT flag that can be used to disable the use of events instead.
Signed-off-by Ville Syrjälä <[email protected]>
--- tests/kms_flip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
tests/kms_flip.c +4 -3
@@ -57,6 +57,7 @@#define TEST_FB_RECREATE (1 << 12)#define TEST_RMFB (1 << 13)#define TEST_HANG (1 << 14) +#define TEST_NOEVENT (1 << 15)#define EVENT_FLIP (1 << 0)#define EVENT_VBLANK (1 << 1)
@@ -645,7 +646,7 @@ static unsigned int run_test_step(struct test_output *o) }if (do_flip) -do_or_die (do_page_flip (o, new_fb_id, !(o->flags &TEST_HANG ))); +do_or_die (do_page_flip (o, new_fb_id, !(o->flags &TEST_NOEVENT )));if (do_vblank) { do_or_die(do_wait_for_vblank(o, o->pipe, target_seq,
@@ -1005,7 +1006,7 @@ static void run_test_on_crtc(struct test_output *o, int crtc, int duration) ellapsed =event_loop (o, duration); -if (o->flags &TEST_FLIP && !(o->flags &TEST_HANG )) +if (o->flags &TEST_FLIP && !(o->flags &TEST_NOEVENT ))check_final_state (o, &o->flip_state, ellapsed);if (o->flags &TEST_VBLANK )check_final_state (o, &o->vblank_state, ellapsed);
@@ -1108,7 +1109,7 @@ int main(int argc, char **argv) "flip-vs-wf_vblank" }, {15 ,TEST_FLIP |TEST_VBLANK |TEST_VBLANK_BLOCK | TEST_CHECK_TS, "flip-vs-blocking-wf-vblank" }, - { 15, TEST_FLIP | TEST_MODESET | TEST_HANG , "flip-vs-modeset-vs-hang" }, + { 15, TEST_FLIP | TEST_MODESET | TEST_HANG | TEST_NOEVENT, "flip-vs-modeset-vs-hang" }, };int i;
Signature · 6 lines
1.7.12.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/2 kms_flip: Add a flip-vs-panning-vs-hang test
From: Ville Syrjälä <[email protected]>
The flip-vs-panning-vs-hang is just like the regular flip-vs-panning test, except it also hangs the GPU. This will test whether panning works after a pending page flip has been cancelled by a GPU reset, and also whether page flip events get delivered correctly.
Signed-off-by Ville Syrjälä <[email protected]>
--- tests/kms_flip.c | 1 + 1 file changed, 1 insertion(+)
tests/kms_flip.c +1 -0
@@ -1110,6 +1110,7 @@ int main(int argc, char **argv) {15 ,TEST_FLIP |TEST_VBLANK |TEST_VBLANK_BLOCK | TEST_CHECK_TS, "flip-vs-blocking-wf-vblank" }, { 15, TEST_FLIP | TEST_MODESET | TEST_HANG | TEST_NOEVENT, "flip-vs-modeset-vs-hang" }, + { 15, TEST_FLIP | TEST_PAN | TEST_HANG, "flip-vs-panning-vs-hang" }, };int i;
Signature · 6 lines
1.7.12.4 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx