From: Daniel Vetter <daniel@ffwll.ch>
To: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] kms_plane: Add test that suspends/resumes before getting crc
Date: Tue, 20 Jan 2015 10:35:53 +0100 [thread overview]
Message-ID: <20150120093552.GI10113@phenom.ffwll.local> (raw)
In-Reply-To: <1421675037-23086-1-git-send-email-ander.conselvan.de.oliveira@intel.com>
On Mon, Jan 19, 2015 at 03:43:57PM +0200, Ander Conselvan de Oliveira wrote:
> This adds a test that does a suspend/resume cycle between configuring
> a plane and getting the crc value for the pipe. The intention is to
> test if the user requested stated is restored properly, instead of
> being clobbered by the state read out from the hardware.
>
> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Applied, thanks for the patch.
-Daniel
> ---
> tests/kms_plane.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 5aa58c4..c94eac0 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -32,6 +32,7 @@
> #include "drmtest.h"
> #include "igt_debugfs.h"
> #include "igt_kms.h"
> +#include "igt_aux.h"
>
> typedef struct {
> float red;
> @@ -269,6 +270,7 @@ create_fb_for_mode__panning(data_t *data, drmModeModeInfo *mode,
> enum {
> TEST_PANNING_TOP_LEFT = 1 << 0,
> TEST_PANNING_BOTTOM_RIGHT = 1 << 1,
> + TEST_SUSPEND_RESUME = 1 << 2,
> };
>
> static void
> @@ -309,8 +311,13 @@ test_plane_panning_with_output(data_t *data,
>
> igt_display_commit(&data->display);
>
> + if (flags & TEST_SUSPEND_RESUME)
> + igt_system_suspend_autoresume();
> +
> igt_pipe_crc_collect_crc(data->pipe_crc, &crc);
>
> + igt_debug_wait_for_keypress("crc");
> +
> if (flags & TEST_PANNING_TOP_LEFT)
> igt_assert(igt_crc_equal(&test.red_crc, &crc));
> else
> @@ -360,6 +367,11 @@ run_tests_for_pipe_plane(data_t *data, enum pipe pipe, enum igt_plane plane)
> test_plane_panning(data, pipe, plane,
> TEST_PANNING_BOTTOM_RIGHT);
>
> + igt_subtest_f("plane-panning-bottom-right-suspend-pipe-%s-plane-%d",
> + kmstest_pipe_name(pipe), plane)
> + test_plane_panning(data, pipe, plane,
> + TEST_PANNING_BOTTOM_RIGHT |
> + TEST_SUSPEND_RESUME);
> }
>
> static void
> --
> 1.9.1
>
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-01-20 9:35 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 15:36 [PATCH] drm/i915: Initialize primary plane src/dst coords when reading hw state Ander Conselvan de Oliveira
2015-01-12 23:34 ` Daniel Vetter
2015-01-13 11:24 ` Ville Syrjälä
2015-01-13 22:23 ` Daniel Vetter
2015-01-19 13:43 ` [PATCH i-g-t] kms_plane: Add test that suspends/resumes before getting crc Ander Conselvan de Oliveira
2015-01-20 9:35 ` Daniel Vetter [this message]
2015-01-13 0:48 ` [PATCH] drm/i915: Initialize primary plane src/dst coords when reading hw state shuang.he
2015-01-13 8:17 ` Jani Nikula
2015-01-13 8:34 ` Ander Conselvan de Oliveira
2015-01-13 8:43 ` He, Shuang
2015-01-19 13:51 ` [PATCH v2] " Ander Conselvan de Oliveira
2015-01-19 23:45 ` shuang.he
2015-01-20 9:22 ` Daniel Vetter
2015-01-20 9:32 ` Ander Conselvan de Oliveira
2015-01-20 9:33 ` Ander Conselvan de Oliveira
2015-01-20 9:46 ` Ville Syrjälä
2015-01-20 9:56 ` 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=20150120093552.GI10113@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=ander.conselvan.de.oliveira@intel.com \
--cc=intel-gfx@lists.freedesktop.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