public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Imre Deak <imre.deak@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] kms_plane_alpha_blend: Start CRC after enabling display.
Date: Fri, 19 Oct 2018 17:31:41 +0300	[thread overview]
Message-ID: <20181019143141.GC28703@ideak-desk.fi.intel.com> (raw)
In-Reply-To: <20181003091341.16066-1-maarten.lankhorst@linux.intel.com>

On Wed, Oct 03, 2018 at 11:13:41AM +0200, Maarten Lankhorst wrote:
> This will fix the -EIO from trying to start CRC on a disabled pipe.
> 
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108147
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
>  tests/kms_plane_alpha_blend.c | 13 ++++++++++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c
> index 81c8cb916a63..3fab118ae0e1 100644
> --- a/tests/kms_plane_alpha_blend.c
> +++ b/tests/kms_plane_alpha_blend.c
> @@ -266,8 +266,9 @@ static void basic_alpha(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  	igt_display_commit2(display, COMMIT_ATOMIC);
>  
>  	igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
> -	igt_pipe_crc_stop(data->pipe_crc);
>  	igt_assert_crc_equal(&ref_crc, &crc);
> +
> +	igt_pipe_crc_stop(data->pipe_crc);

Unrelated to this patch, but noticed that argb_fb_0 is an opaque FB
which wasn't intended? The test happens to pass just because argb_fb_0
is black, so maybe that should be changed too.

>  }
>  
>  static void argb_opaque(data_t *data, enum pipe pipe, igt_plane_t *plane)
> @@ -390,6 +391,7 @@ static void alpha_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  	if (plane->type != DRM_PLANE_TYPE_PRIMARY)
>  		igt_plane_set_fb(igt_pipe_get_plane_type(&display->pipes[pipe], DRM_PLANE_TYPE_PRIMARY), &data->gray_fb);
>  
> +	igt_display_commit2(display, COMMIT_ATOMIC);
>  	igt_pipe_crc_start(data->pipe_crc);
>  
>  	/* for coverage, plane alpha and fb alpha should be swappable, so swap fb and alpha */
> @@ -407,6 +409,8 @@ static void alpha_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  		igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
>  		igt_assert_crc_equal(&ref_crc, &crc);
>  	}
> +
> +	igt_pipe_crc_stop(data->pipe_crc);
>  }
>  
>  static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
> @@ -416,6 +420,7 @@ static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  	int i;
>  
>  	igt_plane_set_prop_enum(plane, IGT_PLANE_PIXEL_BLEND_MODE, "Coverage");
> +	igt_display_commit2(display, COMMIT_ATOMIC);
>  	igt_pipe_crc_start(data->pipe_crc);
>  
>  	/* for coverage, plane alpha and fb alpha should be swappable, so swap fb and alpha */
> @@ -433,6 +438,8 @@ static void coverage_7efc(data_t *data, enum pipe pipe, igt_plane_t *plane)
>  		igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
>  		igt_assert_crc_equal(&ref_crc, &crc);
>  	}
> +
> +	igt_pipe_crc_stop(data->pipe_crc);
>  }
>  
>  static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t *plane)
> @@ -462,6 +469,8 @@ static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t
>  	igt_display_commit2(display, COMMIT_ATOMIC);
>  	igt_pipe_crc_get_current(display->drm_fd, data->pipe_crc, &crc);
>  	igt_assert_crc_equal(&ref_crc, &crc);
> +
> +	igt_pipe_crc_stop(data->pipe_crc);
>  }
>  
>  static void run_test_on_pipe_planes(data_t *data, enum pipe pipe, bool blend,
> @@ -554,8 +563,6 @@ igt_main
>  	enum pipe pipe;
>  
>  	igt_fixture {
> -		igt_skip_on_simulation();
> -

Should've been a separate change.

Looks ok:
Reviewed-by: Imre Deak <imre.deak@intel.com>

>  		data.gfx_fd = drm_open_driver(DRIVER_ANY);
>  		igt_require_pipe_crc(data.gfx_fd);
>  		igt_display_init(&data.display, data.gfx_fd);
> -- 
> 2.19.0
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2018-10-19 14:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03  9:13 [igt-dev] [PATCH i-g-t] kms_plane_alpha_blend: Start CRC after enabling display Maarten Lankhorst
2018-10-03  9:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-10-03 14:20 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2018-10-19 14:31 ` Imre Deak [this message]
2018-10-26 13:19   ` [igt-dev] [PATCH i-g-t] " Maarten Lankhorst

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=20181019143141.GC28703@ideak-desk.fi.intel.com \
    --to=imre.deak@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    /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