tests/kms_ccs: Don't populate igt_fb structs with stack garbage
PATCH 1/3 tests/kms_ccs: Don't populate igt_fb structs with stack garbage
From: Ville Syrjälä <[email protected]>
Clear the igt_fb struct to make sure no stack garbage is left in any members we don't explicitly initialize.
--- tests/kms_ccs.c | 2 ++ 1 file changed, 2 insertions(+)
tests/kms_ccs.c +2 -0
@@ -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
Signature · 6 lines
2.16.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 2/3 tests/kms_plane_scaling: Allow clip test to fail with YUV
From: Ville Syrjälä <[email protected]>
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.
--- lib/igt_fb.c | 20 ++++++++++++++++++++ lib/igt_fb.h | 1 + tests/kms_plane_scaling.c | 10 ++++++++++ 3 files changed, 31 insertions(+)
lib/igt_fb.c +20 -0
@@ -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; + } +}
lib/igt_fb.h +1 -0
@@ -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__ */
tests/kms_plane_scaling.c +10 -0
@@ -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
Signature · 6 lines
2.16.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 3/3 tests/kms_plane_scaling: Reduce the fb size 8x8 from 9x9
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
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.
--- tests/kms_plane_scaling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/kms_plane_scaling.c +1 -1
@@ -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,
Signature · 6 lines
2.16.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[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
In reply to Ville Syrjala== Series Details ==
== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[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
In reply to Ville Syrjala== Series Details ==
== 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Clear the
igt_fbstruct to make sure no stack garbage is left in any members we don't explicitly initialize.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 15 lines
---
tests/kms_ccs.c | 2 ++1 file changed, 2 insertions(+)tests/kms_ccs.c +0
-0@@ -280,6 +280,8 @@ static void generate_fb(data_t *data, structigt_fb *fb, int ret; uint32_t ccs_handle;tests/kms_ccs.c +2
-0+memset (fb,0 ,sizeof (*fb)); +
Quoted 6 lines
/* 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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev