public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 16/18] tests/kms_flip: add basic tests for flip, flip vs dpms, and flip modeset
Date: Fri, 14 Aug 2015 14:56:52 +0200	[thread overview]
Message-ID: <20150814125652.GP17734@phenom.ffwll.local> (raw)
In-Reply-To: <1439497901-14310-16-git-send-email-jbarnes@virtuousgeek.org>

On Thu, Aug 13, 2015 at 01:31:39PM -0700, Jesse Barnes wrote:
> Simple variants that don't do multiple output or interruptible testing.
> 
> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> ---
>  tests/kms_flip.c | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_flip.c b/tests/kms_flip.c
> index a595d9f..a0e4112 100644
> --- a/tests/kms_flip.c
> +++ b/tests/kms_flip.c
> @@ -80,6 +80,7 @@
>  #define TEST_TS_CONT		(1 << 27)
>  #define TEST_BO_TOOBIG		(1 << 28)
>  #define TEST_HANG_ONCE		(1 << 29)
> +#define TEST_BASIC		(1 << 30)
>  
>  #define EVENT_FLIP		(1 << 0)
>  #define EVENT_VBLANK		(1 << 1)
> @@ -1649,7 +1650,7 @@ int main(int argc, char **argv)
>  					"blt-wf_vblank-vs-modeset" },
>  		{ 60,  TEST_VBLANK | TEST_MODESET | TEST_WITH_DUMMY_RCS,
>  					"rcs-wf_vblank-vs-modeset" },
> -
> +		{ 30, TEST_FLIP | TEST_BASIC, "basic-plain-flip" },

I think for better coverage we should pick the timestamp checking ones
here. Also we need one to cover vblank since kms_vblank can't be used. And
we can do that all in one testcases to save testing time!

>  		{ 30, TEST_FLIP , "plain-flip" },
>  		{ 30, TEST_FLIP | TEST_EBUSY , "busy-flip" },
>  		{ 30, TEST_FLIP | TEST_FENCE_STRESS , "flip-vs-fences" },
> @@ -1657,12 +1658,14 @@ int main(int argc, char **argv)
>  		{ 30, TEST_FLIP | TEST_CHECK_TS | TEST_FB_RECREATE,
>  			"plain-flip-fb-recreate" },
>  		{ 30, TEST_FLIP | TEST_RMFB | TEST_MODESET , "flip-vs-rmfb" },
> +		{ 60, TEST_FLIP | TEST_DPMS | TEST_EINVAL | TEST_BASIC, "basic-flip-vs-dpms" },
>  		{ 60, TEST_FLIP | TEST_DPMS | TEST_EINVAL, "flip-vs-dpms" },
>  		{ 60, TEST_FLIP | TEST_DPMS | TEST_WITH_DUMMY_BCS, "blt-flip-vs-dpms" },
>  		{ 60, TEST_FLIP | TEST_DPMS | TEST_WITH_DUMMY_RCS, "render-flip-vs-dpms" },
>  		{ 30,  TEST_FLIP | TEST_PAN, "flip-vs-panning" },
>  		{ 60, TEST_FLIP | TEST_PAN | TEST_WITH_DUMMY_BCS, "blt-flip-vs-panning" },
>  		{ 60, TEST_FLIP | TEST_PAN | TEST_WITH_DUMMY_RCS, "render-flip-vs-panning" },
> +		{ 60, TEST_FLIP | TEST_MODESET | TEST_EINVAL | TEST_BASIC, "basic-flip-vs-modeset" },
>  		{ 60, TEST_FLIP | TEST_MODESET | TEST_EINVAL, "flip-vs-modeset" },
>  		{ 60, TEST_FLIP | TEST_MODESET | TEST_WITH_DUMMY_BCS, "blt-flip-vs-modeset" },
>  		{ 60, TEST_FLIP | TEST_MODESET | TEST_WITH_DUMMY_RCS, "render-flip-vs-modeset" },
> @@ -1721,6 +1724,9 @@ int main(int argc, char **argv)
>  		igt_subtest(tests[i].name)
>  			run_test(tests[i].duration, tests[i].flags);
>  
> +		if (tests[i].flags & TEST_BASIC)
> +			continue;

This means you remove the tests you marked as BASIC from the 2x and
interruptible sets. What about instead adding the basic prefix at runtime,
i.e. for all my requests:
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index a595d9f1d69f..aaf03b07df87 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -80,6 +80,7 @@
 #define TEST_TS_CONT		(1 << 27)
 #define TEST_BO_TOOBIG		(1 << 28)
 #define TEST_HANG_ONCE		(1 << 29)
+#define TEST_BASIC		(1 << 31)
 
 #define EVENT_FLIP		(1 << 0)
 #define EVENT_VBLANK		(1 << 1)
@@ -1650,20 +1651,20 @@ int main(int argc, char **argv)
 		{ 60,  TEST_VBLANK | TEST_MODESET | TEST_WITH_DUMMY_RCS,
 					"rcs-wf_vblank-vs-modeset" },
 
-		{ 30, TEST_FLIP , "plain-flip" },
+		{ 30, TEST_FLIP, "plain-flip" },
 		{ 30, TEST_FLIP | TEST_EBUSY , "busy-flip" },
 		{ 30, TEST_FLIP | TEST_FENCE_STRESS , "flip-vs-fences" },
 		{ 30, TEST_FLIP | TEST_CHECK_TS, "plain-flip-ts-check" },
 		{ 30, TEST_FLIP | TEST_CHECK_TS | TEST_FB_RECREATE,
 			"plain-flip-fb-recreate" },
 		{ 30, TEST_FLIP | TEST_RMFB | TEST_MODESET , "flip-vs-rmfb" },
-		{ 60, TEST_FLIP | TEST_DPMS | TEST_EINVAL, "flip-vs-dpms" },
+		{ 60, TEST_FLIP | TEST_DPMS | TEST_EINVAL | TEST_BASIC, "flip-vs-dpms" },
 		{ 60, TEST_FLIP | TEST_DPMS | TEST_WITH_DUMMY_BCS, "blt-flip-vs-dpms" },
 		{ 60, TEST_FLIP | TEST_DPMS | TEST_WITH_DUMMY_RCS, "render-flip-vs-dpms" },
 		{ 30,  TEST_FLIP | TEST_PAN, "flip-vs-panning" },
 		{ 60, TEST_FLIP | TEST_PAN | TEST_WITH_DUMMY_BCS, "blt-flip-vs-panning" },
 		{ 60, TEST_FLIP | TEST_PAN | TEST_WITH_DUMMY_RCS, "render-flip-vs-panning" },
-		{ 60, TEST_FLIP | TEST_MODESET | TEST_EINVAL, "flip-vs-modeset" },
+		{ 60, TEST_FLIP | TEST_MODESET | TEST_EINVAL | TEST_BASIC, "flip-vs-modeset" },
 		{ 60, TEST_FLIP | TEST_MODESET | TEST_WITH_DUMMY_BCS, "blt-flip-vs-modeset" },
 		{ 60, TEST_FLIP | TEST_MODESET | TEST_WITH_DUMMY_RCS, "render-flip-vs-modeset" },
 		{ 30,  TEST_FLIP | TEST_VBLANK_EXPIRED_SEQ,
@@ -1671,7 +1672,7 @@ int main(int argc, char **argv)
 
 		{ 30, TEST_FLIP | TEST_VBLANK | TEST_VBLANK_ABSOLUTE |
 		      TEST_CHECK_TS, "flip-vs-absolute-wf_vblank" },
-		{ 30, TEST_FLIP | TEST_VBLANK | TEST_CHECK_TS,
+		{ 30, TEST_FLIP | TEST_VBLANK | TEST_CHECK_TS | TEST_BASIC,
 					"flip-vs-wf_vblank" },
 		{ 30, TEST_FLIP | TEST_VBLANK | TEST_VBLANK_BLOCK |
 			TEST_CHECK_TS, "flip-vs-blocking-wf-vblank" },
@@ -1718,7 +1719,9 @@ int main(int argc, char **argv)
 		test_nonblocking_read(drm_fd);
 
 	for (i = 0; i < sizeof(tests) / sizeof (tests[0]); i++) {
-		igt_subtest(tests[i].name)
+		igt_subtest_f("%s%s",
+			      tests[i].flags & TEST_BASIC ? "basic-" : "",
+			      tests[i].name)
 			run_test(tests[i].duration, tests[i].flags);
 
 		if (tests[i].flags & TEST_NO_2X_OUTPUT)


Totally untested ;-)

Cheers, Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-08-14 12:56 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 20:31 [PATCH 01/18] tests/gem_storedw_loop: add new store_dword test to unify per-ring ones Jesse Barnes
2015-08-13 20:31 ` [PATCH 02/18] tests/drv_module_reload: rename drv_module_reload to include in BATs Jesse Barnes
2015-08-14 12:20   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 03/18] tests/drv_module_reload_basic: use linear_blits after module_reload for sanity check Jesse Barnes
2015-08-14 12:22   ` Daniel Vetter
2015-08-14 15:22     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 04/18] tests/drm_import_export: mark flink and prime tests as basic Jesse Barnes
2015-08-14 12:26   ` Daniel Vetter
2015-08-14 15:28     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 05/18] tests/drv_getparams: mark EU and subslice fetch " Jesse Barnes
2015-08-14 12:27   ` Daniel Vetter
2015-08-14 15:23     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 06/18] tests/drv_suspend: mark sysfs tests " Jesse Barnes
2015-08-14 12:29   ` Daniel Vetter
2015-08-14 15:29     ` Jesse Barnes
2015-08-14 16:01       ` Daniel Vetter
2015-08-14 16:10         ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 07/18] tests/gem_ctx_exec: mark lrc lite restore " Jesse Barnes
2015-08-14 12:32   ` Daniel Vetter
2015-08-14 15:31     ` Jesse Barnes
2015-08-14 16:03       ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 08/18] tests/gem_mmap: mark basic object creation tests " Jesse Barnes
2015-08-14 12:33   ` Daniel Vetter
2015-08-14 12:37     ` Chris Wilson
2015-08-14 12:54       ` Chris Wilson
2015-08-14 15:31     ` Jesse Barnes
2015-08-14 16:05       ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 09/18] tests/gem_mmap_gtt: mark basic access and copy " Jesse Barnes
2015-08-14 12:35   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 10/18] tests/gem_pread/pwrite: mark normal " Jesse Barnes
2015-08-14 12:36   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 11/18] tests/gem_tiled_pread/pwrite: " Jesse Barnes
2015-08-14 12:41   ` Daniel Vetter
2015-08-14 15:39     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 12/18] tests/kms_addfb: mark simple fb creation " Jesse Barnes
2015-08-14 12:42   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 13/18] tests/kms_vblank: mark accuracy test " Jesse Barnes
2015-08-14 12:44   ` Daniel Vetter
2015-08-14 12:47     ` Daniel Vetter
2015-08-14 15:47     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 14/18] tests/pm_backlight: mark simple " Jesse Barnes
2015-08-14 12:48   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 15/18] tests/pm_rpm: mark RTE and D3 tests " Jesse Barnes
2015-08-14 12:50   ` Daniel Vetter
2015-08-14 13:09     ` Paulo Zanoni
2015-08-14 15:48     ` Jesse Barnes
2015-08-14 16:06       ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 16/18] tests/kms_flip: add basic tests for flip, flip vs dpms, and flip modeset Jesse Barnes
2015-08-14 12:56   ` Daniel Vetter [this message]
2015-08-14 16:07     ` Jesse Barnes
2015-08-13 20:31 ` [PATCH 17/18] tests/kms_setmode: mark simple clone test as basic Jesse Barnes
2015-08-14 12:57   ` Daniel Vetter
2015-08-13 20:31 ` [PATCH 18/18] gitignore: ignore more files Jesse Barnes
2015-08-14  8:09   ` Daniel Vetter
2015-08-14 15:20     ` Jesse Barnes
2015-08-14 16:07       ` Daniel Vetter
2015-08-14 16:11         ` Jesse Barnes
2015-08-17  7:48           ` Jani Nikula
2015-08-14 12:19 ` [PATCH 01/18] tests/gem_storedw_loop: add new store_dword test to unify per-ring ones Daniel Vetter
2015-08-14 15:21   ` Jesse Barnes
2015-08-14 16:09     ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150814125652.GP17734@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jbarnes@virtuousgeek.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox