All of lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
@ 2018-05-18 20:41 Ville Syrjala
  2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Allow clip test to fail with YUV Ville Syrjala
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Ville Syrjala @ 2018-05-18 20:41 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Clear the igt_fb struct to make sure no stack garbage is left in any
members we don't explicitly initialize.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/kms_ccs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index 63298f137abb..e1ee58801ac3 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -280,6 +280,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,
 	int ret;
 	uint32_t ccs_handle;
 
+	memset(fb, 0, sizeof(*fb));
+
 	/* Use either compressed or Y-tiled to test. However, given the lack of
 	 * available bandwidth, we use linear for the primary plane when
 	 * testing sprites, since we cannot fit two CCS planes into the
-- 
2.16.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Allow clip test to fail with YUV
  2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
@ 2018-05-18 20:41 ` Ville Syrjala
  2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: Reduce the fb size 8x8 from 9x9 Ville Syrjala
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ville Syrjala @ 2018-05-18 20:41 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

YUV formats require the clipped src coordinates to be suitably aligned.
We'd need to very carefully compute the unclipped dst coordinates to
guarantee that. That's too much hassle so let's just accept failure in
case YUV formats are used.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 lib/igt_fb.c              | 20 ++++++++++++++++++++
 lib/igt_fb.h              |  1 +
 tests/kms_plane_scaling.c | 10 ++++++++++
 3 files changed, 31 insertions(+)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index 34b1a261b95c..9308ade0c50e 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -1706,3 +1706,23 @@ bool igt_fb_supported_format(uint32_t drm_format)
 
 	return false;
 }
+
+/**
+ * igt_format_is_yuv:
+ * @drm_format: drm fourcc
+ *
+ * This functions returns whether @drm_format is YUV (as opposed to RGB).
+ */
+bool igt_format_is_yuv(uint32_t drm_format)
+{
+	switch (drm_format) {
+	case DRM_FORMAT_NV12:
+	case DRM_FORMAT_YUYV:
+	case DRM_FORMAT_YVYU:
+	case DRM_FORMAT_UYVY:
+	case DRM_FORMAT_VYUY:
+		return true;
+	default:
+		return false;
+	}
+}
diff --git a/lib/igt_fb.h b/lib/igt_fb.h
index 023b069db592..081ed42a99c9 100644
--- a/lib/igt_fb.h
+++ b/lib/igt_fb.h
@@ -163,6 +163,7 @@ uint32_t igt_bpp_depth_to_drm_format(int bpp, int depth);
 uint32_t igt_drm_format_to_bpp(uint32_t drm_format);
 const char *igt_format_str(uint32_t drm_format);
 bool igt_fb_supported_format(uint32_t drm_format);
+bool igt_format_is_yuv(uint32_t drm_format);
 
 #endif /* __IGT_FB_H__ */
 
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index a8454205dbd8..a12a3a0ade2b 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -408,6 +408,16 @@ __test_scaler_with_clipping_clamping_scenario(data_t *d, drmModeModeInfo *mode,
 	igt_plane_set_size(d->plane2, mode->hdisplay + 100,
 					    mode->vdisplay + 100);
 	igt_display_commit2(&d->display, COMMIT_ATOMIC);
+
+	/*
+	 * Can't guarantee that the clipped coordinates are
+	 * suitably aligned for yuv. So allow the commit to fail.
+	 */
+	if (igt_format_is_yuv(d->fb[1].drm_format) ||
+	    igt_format_is_yuv(d->fb[2].drm_format))
+		igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
+	else
+		igt_display_commit2(&d->display, COMMIT_ATOMIC);
 }
 
 static void
-- 
2.16.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: Reduce the fb size 8x8 from 9x9
  2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
  2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Allow clip test to fail with YUV Ville Syrjala
@ 2018-05-18 20:41 ` Ville Syrjala
  2018-05-18 21:16 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Patchwork
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Ville Syrjala @ 2018-05-18 20:41 UTC (permalink / raw)
  To: igt-dev

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

The 9x9 was maybe a workaround for the kernel's rounding behaviour?
The kernel was changed so that's no longer necessary. So let's go
for 8x8 since that actually works with YUV formats.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/kms_plane_scaling.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index a12a3a0ade2b..aad2a20795e7 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -130,7 +130,7 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	mode = igt_output_get_mode(output);
 
 	/* create buffer in the range of  min and max source side limit.*/
-	width = height = 9;
+	width = height = 8;
 	if (pixel_format == DRM_FORMAT_NV12)
 		width = height = 16;
 	igt_create_color_fb(display->drm_fd, width, height,
-- 
2.16.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
  2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
  2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Allow clip test to fail with YUV Ville Syrjala
  2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: Reduce the fb size 8x8 from 9x9 Ville Syrjala
@ 2018-05-18 21:16 ` Patchwork
  2018-05-19  8:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  2018-05-23 17:58 ` [igt-dev] [PATCH i-g-t 1/3] " Dhinakaran Pandiyan
  4 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2018-05-18 21:16 UTC (permalink / raw)
  To: Ville Syrjala; +Cc: igt-dev

== Series Details ==

Series: series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
URL   : https://patchwork.freedesktop.org/series/43446/
State : success

== Summary ==

= CI Bug Log - changes from CI_DRM_4193 -> IGTPW_1378 =

== Summary - WARNING ==

  Minor unknown changes coming with IGTPW_1378 need to be verified
  manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_1378, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/43446/revisions/1/mbox/

== Possible new issues ==

  Here are the unknown changes that may have been introduced in IGTPW_1378:

  === IGT changes ===

    ==== Warnings ====

    igt@gem_exec_gttfill@basic:
      fi-pnv-d510:        SKIP -> PASS

    
== Known issues ==

  Here are the changes found in IGTPW_1378 that come from known issues:

  === IGT changes ===

    ==== Issues hit ====

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-b:
      fi-cnl-psr:         PASS -> DMESG-WARN (fdo#104951)

    
    ==== Possible fixes ====

    igt@gem_mmap_gtt@basic-small-bo-tiledx:
      fi-gdg-551:         FAIL (fdo#102575) -> PASS

    igt@kms_pipe_crc_basic@nonblocking-crc-pipe-a-frame-sequence:
      fi-cfl-s3:          FAIL (fdo#103481) -> PASS +1

    igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
      fi-cnl-psr:         DMESG-WARN (fdo#104951) -> PASS

    
  fdo#102575 https://bugs.freedesktop.org/show_bug.cgi?id=102575
  fdo#103481 https://bugs.freedesktop.org/show_bug.cgi?id=103481
  fdo#104951 https://bugs.freedesktop.org/show_bug.cgi?id=104951


== Participating hosts (41 -> 39) ==

  Additional (3): fi-kbl-guc fi-cfl-guc fi-snb-2520m 
  Missing    (5): fi-ctg-p8600 fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-skl-6700hq 


== Build changes ==

    * IGT: IGT_4485 -> IGTPW_1378
    * Piglit: piglit_4485 -> piglit_4487

  CI_DRM_4193: 9322e3903ce6c89bde0c24877fe730b808427caf @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_1378: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1378/
  IGT_4485: eccae1360d6d01e73c6af2bd97122cef708207ef @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  piglit_4485: 62ef6b0db8967e7021fd3e0b57d03ff164b984fe @ git://anongit.freedesktop.org/piglit
  piglit_4487: 6ab75f7eb5e1dccbb773e1739beeb2d7cbd6ad0d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1378/issues.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
  2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
                   ` (2 preceding siblings ...)
  2018-05-18 21:16 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Patchwork
@ 2018-05-19  8:01 ` Patchwork
  2018-05-23 17:58 ` [igt-dev] [PATCH i-g-t 1/3] " Dhinakaran Pandiyan
  4 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2018-05-19  8:01 UTC (permalink / raw)
  To: Ville Syrjala; +Cc: igt-dev

== Series Details ==

Series: series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
URL   : https://patchwork.freedesktop.org/series/43446/
State : success

== Summary ==

= CI Bug Log - changes from IGT_4485_full -> IGTPW_1378_full =

== Summary - WARNING ==

  Minor unknown changes coming with IGTPW_1378_full need to be verified
  manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in IGTPW_1378_full, please notify your bug team to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://patchwork.freedesktop.org/api/1.0/series/43446/revisions/1/mbox/

== Possible new issues ==

  Here are the unknown changes that may have been introduced in IGTPW_1378_full:

  === IGT changes ===

    ==== Warnings ====

    igt@gem_mocs_settings@mocs-rc6-vebox:
      shard-kbl:          PASS -> SKIP +2

    igt@kms_cursor_crc@cursor-128x128-random:
      shard-snb:          SKIP -> PASS

    
== Known issues ==

  Here are the changes found in IGTPW_1378_full that come from known issues:

  === IGT changes ===

    ==== Issues hit ====

    igt@gem_eio@execbuf:
      shard-glk:          PASS -> DMESG-WARN (fdo#106523) +4
      shard-hsw:          PASS -> DMESG-WARN (fdo#106523) +1

    igt@gem_eio@throttle:
      shard-snb:          PASS -> DMESG-WARN (fdo#106523) +4

    igt@gem_eio@unwedge-stress:
      shard-apl:          PASS -> DMESG-WARN (fdo#106523) +5
      shard-kbl:          PASS -> DMESG-WARN (fdo#106523) +1

    igt@kms_atomic_transition@1x-modeset-transitions-nonblocking-fencing:
      shard-glk:          PASS -> FAIL (fdo#105703)

    igt@kms_flip@2x-plain-flip-fb-recreate:
      shard-glk:          PASS -> FAIL (fdo#100368)

    igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible:
      shard-hsw:          PASS -> FAIL (fdo#103928)

    igt@kms_flip@flip-vs-expired-vblank:
      shard-hsw:          PASS -> FAIL (fdo#105707)

    igt@kms_rotation_crc@primary-rotation-180:
      shard-snb:          PASS -> FAIL (fdo#104724, fdo#103925)

    igt@kms_rotation_crc@sprite-rotation-180:
      shard-hsw:          PASS -> FAIL (fdo#104724, fdo#103925)

    
    ==== Possible fixes ====

    igt@gem_ctx_isolation@vecs0-s3:
      shard-kbl:          INCOMPLETE (fdo#103665) -> PASS +1

    igt@gem_eio@hibernate:
      shard-hsw:          DMESG-WARN (fdo#106523) -> PASS +3

    igt@gem_eio@in-flight-contexts-10ms:
      shard-snb:          DMESG-WARN (fdo#106523) -> PASS +5

    igt@gem_eio@in-flight-internal-immediate:
      shard-glk:          DMESG-WARN (fdo#106523) -> PASS +5

    igt@gem_eio@in-flight-suspend:
      shard-kbl:          DMESG-WARN (fdo#106523) -> PASS +4
      shard-apl:          DMESG-WARN (fdo#106523) -> PASS +5

    igt@kms_flip@2x-plain-flip-ts-check-interruptible:
      shard-glk:          FAIL (fdo#100368) -> PASS

    igt@kms_flip@flip-vs-expired-vblank-interruptible:
      shard-glk:          FAIL (fdo#105707) -> PASS +1

    igt@kms_flip_tiling@flip-to-y-tiled:
      shard-glk:          FAIL (fdo#103822, fdo#104724) -> PASS

    igt@perf_pmu@idle-vcs0:
      shard-glk:          INCOMPLETE (k.org#198133, fdo#103359) -> PASS

    
  fdo#100368 https://bugs.freedesktop.org/show_bug.cgi?id=100368
  fdo#103359 https://bugs.freedesktop.org/show_bug.cgi?id=103359
  fdo#103665 https://bugs.freedesktop.org/show_bug.cgi?id=103665
  fdo#103822 https://bugs.freedesktop.org/show_bug.cgi?id=103822
  fdo#103925 https://bugs.freedesktop.org/show_bug.cgi?id=103925
  fdo#103928 https://bugs.freedesktop.org/show_bug.cgi?id=103928
  fdo#104724 https://bugs.freedesktop.org/show_bug.cgi?id=104724
  fdo#105703 https://bugs.freedesktop.org/show_bug.cgi?id=105703
  fdo#105707 https://bugs.freedesktop.org/show_bug.cgi?id=105707
  fdo#106523 https://bugs.freedesktop.org/show_bug.cgi?id=106523
  k.org#198133 https://bugzilla.kernel.org/show_bug.cgi?id=198133


== Participating hosts (5 -> 5) ==

  No changes in participating hosts


== Build changes ==

    * IGT: IGT_4485 -> IGTPW_1378
    * Linux: CI_DRM_4191 -> CI_DRM_4193
    * Piglit: piglit_4485 -> piglit_4487

  CI_DRM_4191: 70daebf1a83c2ed6eff118d2a2806086c0c89027 @ git://anongit.freedesktop.org/gfx-ci/linux
  CI_DRM_4193: 9322e3903ce6c89bde0c24877fe730b808427caf @ git://anongit.freedesktop.org/gfx-ci/linux
  IGTPW_1378: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1378/
  IGT_4485: eccae1360d6d01e73c6af2bd97122cef708207ef @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
  piglit_4485: 62ef6b0db8967e7021fd3e0b57d03ff164b984fe @ git://anongit.freedesktop.org/piglit
  piglit_4487: 6ab75f7eb5e1dccbb773e1739beeb2d7cbd6ad0d @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_1378/shards.html
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage
  2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
                   ` (3 preceding siblings ...)
  2018-05-19  8:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2018-05-23 17:58 ` Dhinakaran Pandiyan
  4 siblings, 0 replies; 6+ messages in thread
From: Dhinakaran Pandiyan @ 2018-05-23 17:58 UTC (permalink / raw)
  To: Ville Syrjala, igt-dev

On Fri, 2018-05-18 at 23:41 +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> Clear the igt_fb struct to make sure no stack garbage is left in any
> members we don't explicitly initialize.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>

> ---
>  tests/kms_ccs.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
> index 63298f137abb..e1ee58801ac3 100644
> --- a/tests/kms_ccs.c
> +++ b/tests/kms_ccs.c
> @@ -280,6 +280,8 @@ static void generate_fb(data_t *data, struct
> igt_fb *fb,
>  	int ret;
>  	uint32_t ccs_handle;
>  
> +	memset(fb, 0, sizeof(*fb));
> +
>  	/* Use either compressed or Y-tiled to test. However, given
> the lack of
>  	 * available bandwidth, we use linear for the primary plane
> when
>  	 * testing sprites, since we cannot fit two CCS planes into
> the
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-05-23 17:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-18 20:41 [igt-dev] [PATCH i-g-t 1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Ville Syrjala
2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 2/3] tests/kms_plane_scaling: Allow clip test to fail with YUV Ville Syrjala
2018-05-18 20:41 ` [igt-dev] [PATCH i-g-t 3/3] tests/kms_plane_scaling: Reduce the fb size 8x8 from 9x9 Ville Syrjala
2018-05-18 21:16 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/3] tests/kms_ccs: Don't populate igt_fb structs with stack garbage Patchwork
2018-05-19  8:01 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-05-23 17:58 ` [igt-dev] [PATCH i-g-t 1/3] " Dhinakaran Pandiyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.