Skip to contentSkip to conversation

tests/kms_plane_scaling: Check supported format for rotation

PATCH In review Mika Kahola 3 participants 5 messages Apr 8, 2019 – Apr 9, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tests/kms_plane_scaling: Check supported format for rotation

Let's check if 90/270 rotation is supported for the format that we are trying to test.

Currently, if we try to test unsupported format the kernel complains with the following message.

"[drm:skl_plane_check [i915]] Unsupported pixel format Y210 little-endian (0x30313259) for 90/270!"

---
 tests/kms_plane_scaling.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/kms_plane_scaling.c +1 -3
index 3364073c..bb14b2cd 100644
@@ -144,9 +144,6 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	igt_output_set_pipe(output, pipe);
 	mode = igt_output_get_mode(output);
 
-	igt_skip_on(!igt_plane_has_format_mod(plane, pixel_format,
-					      tiling));
-
 	/* create buffer in the range of  min and max source side limit.*/
 	width = height = 8;
 	if (is_i915_device(d->drm_fd) && is_planar_yuv_format(pixel_format))
@@ -201,6 +198,7 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
 			for (int j = 0; j < plane->drm_plane->count_formats; j++) {
 				unsigned format = plane->drm_plane->formats[j];
 				if (igt_fb_supported_format(format) &&
+				    igt_plane_has_format_mod(plane, format, tiling) &&
 				    can_rotate(d, format))
 					check_scaling_pipe_plane_rot(d, plane, format,
 								     tiling, pipe,
Signature · 6 lines
2.17.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Reviewed-by on v2 1/1
#1 lore raw
Quoted 11 lines · Mika Kahola

Let's check if 90/270 rotation is supported for the format that we are trying to test.

Currently, if we try to test unsupported format the kernel complains with the following message.

"[drm:skl_plane_check [i915]] Unsupported pixel format Y210 little-endian (0x30313259) for 90/270!"

Quoted 28 lines
---
 tests/kms_plane_scaling.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/kms_plane_scaling.c +1 -3
index 3364073c..bb14b2cd 100644
@@ -144,9 +144,6 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	igt_output_set_pipe(output, pipe);
 	mode = igt_output_get_mode(output);
 
-	igt_skip_on(!igt_plane_has_format_mod(plane, pixel_format,
-					      tiling));
-
 	/* create buffer in the range of  min and max source side limit.*/
 	width = height = 8;
 	if (is_i915_device(d->drm_fd) && is_planar_yuv_format(pixel_format))
@@ -201,6 +198,7 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
 			for (int j = 0; j < plane->drm_plane->count_formats; j++) {
 				unsigned format = plane->drm_plane->formats[j];
 				if (igt_fb_supported_format(format) &&
+				    igt_plane_has_format_mod(plane, format, tiling) &&
 				    can_rotate(d, format))
 					check_scaling_pipe_plane_rot(d, plane, format,
 								     tiling, pipe,
Signature · 1 line
2.17.1
Signature · 6 lines
Ville Syrjälä
Intel
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#2 lore raw

Pushed. Thanks for the review!

Quoted 44 lines · Ville Syrjälä
Quoted 8 lines · Mika Kahola

Let's check if 90/270 rotation is supported for the format that we are
trying to test.

Currently, if we try to test unsupported format the kernel complains with
the following message.

Quoted 5 lines

"[drm:skl_plane_check [i915]] Unsupported pixel format Y210 little-endian (0x30313259) for 90/270!"

Quoted 27 lines
---
 tests/kms_plane_scaling.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tests/kms_plane_scaling.c +0 -3
index 3364073c..bb14b2cd 100644
@@ -144,9 +144,6 @@ static void check_scaling_pipe_plane_rot(data_t
 *d, igt_plane_t *plane,
 	igt_output_set_pipe(output, pipe);
 	mode = igt_output_get_mode(output);
 
-	igt_skip_on(!igt_plane_has_format_mod(plane, pixel_format,
-					      tiling));
-
 	/* create buffer in the range of  min and max source side

limit.*/

tests/kms_plane_scaling.c +0 -0
 	width = height = 8;
 	if (is_i915_device(d->drm_fd) &&

is_planar_yuv_format(pixel_format))

tests/kms_plane_scaling.c +0 -0
@@ -201,6 +198,7 @@ static void
 test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
 			for (int j = 0; j < plane->drm_plane-
 >count_formats; j++) {
 				unsigned format = plane->drm_plane-
 >formats[j];
Quoted 12 lines
Quoted 10 lines
tests/kms_plane_scaling.c +1 -0
 				if (igt_fb_supported_format(format) &&
+				    igt_plane_has_format_mod(plane,

format, tiling) &&

tests/kms_plane_scaling.c +0 -0
 				    can_rotate(d, format))
 					check_scaling_pipe_plane_rot(d,

plane, format,
ti
ling, pipe,

Signature · 1 line
2.17.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: Check supported format for rotation (rev3)

In reply to Mika Kahola
== Series Details ==

== Series Details ==

Series: tests/kms_plane_scaling: Check supported format for rotation (rev3)
URL : https://patchwork.freedesktop.org/series/58999/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5887 -> IGTPW_2813
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/58999/revisions/3/mbox/

Known issues
------------

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

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_suspend@basic-s4-devices:
- fi-blb-e6850: PASS -> INCOMPLETE [fdo#107718]

* igt@gem_workarounds@basic-read:
- fi-snb-2600: NOTRUN -> SKIP [fdo#109271] +57

* igt@i915_selftest@live_contexts:
- fi-bdw-gvtdvm: PASS -> DMESG-FAIL [fdo#110235 ]

* igt@kms_busy@basic-flip-c:
- fi-snb-2600: NOTRUN -> SKIP [fdo#109271] / [fdo#109278]

* igt@kms_cursor_legacy@basic-flip-before-cursor-varying-size:
- fi-glk-dsi: PASS -> INCOMPLETE [fdo#103359] / [k.org#198133]

#### Possible fixes ####

* igt@i915_selftest@live_execlists:
- fi-apl-guc: INCOMPLETE [fdo#103927] / [fdo#109720] -> PASS

* igt@i915_selftest@live_hangcheck:
- fi-ilk-650: INCOMPLETE [fdo#109723] -> PASS

* igt@i915_selftest@live_uncore:
- fi-skl-gvtdvm: DMESG-FAIL [fdo#110210] -> PASS

* igt@kms_frontbuffer_tracking@basic:
- {fi-icl-u3}: FAIL [fdo#103167] -> PASS
- fi-byt-clapper: FAIL [fdo#103167] -> PASS

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#109720]: https://bugs.freedesktop.org/show_bug.cgi?id=109720
[fdo#109723]: https://bugs.freedesktop.org/show_bug.cgi?id=109723
[fdo#110210]: https://bugs.freedesktop.org/show_bug.cgi?id=110210
[fdo#110235 ]: https://bugs.freedesktop.org/show_bug.cgi?id=110235
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133

Participating hosts (50 -> 45)
------------------------------

Additional (1): fi-snb-2600
Missing (6): fi-kbl-soraka fi-ilk-m540 fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-bdw-samus

Build changes
-------------

* IGT: IGT_4932 -> IGTPW_2813

CI_DRM_5887: 360bc4546928ec1c9324ddd3991a01e89476a16c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2813: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2813/
IGT_4932: 08cf63a8fac11e3594b57580331fb319241a0d69 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2813/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#4 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: Check supported format for rotation (rev3)

In reply to Mika Kahola
== Series Details ==

== Series Details ==

Series: tests/kms_plane_scaling: Check supported format for rotation (rev3)
URL : https://patchwork.freedesktop.org/series/58999/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5887_full -> IGTPW_2813_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/58999/revisions/3/mbox/

Known issues
------------

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

### IGT changes ###

#### Issues hit ####

* igt@kms_atomic_transition@6x-modeset-transitions:
- shard-snb: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +3

* igt@kms_atomic_transition@plane-all-modeset-transition-fencing:
- shard-apl: PASS -> INCOMPLETE [fdo#103927]

* igt@kms_busy@extended-pageflip-hang-oldfb-render-e:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] / [fdo#109278] +2

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-legacy:
- shard-hsw: PASS -> FAIL [fdo#105767]

* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-glk: PASS -> FAIL [fdo#104873]

* igt@kms_cursor_legacy@2x-long-nonblocking-modeset-vs-cursor-atomic:
- shard-glk: PASS -> FAIL [fdo#106509] / [fdo#107409]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-wc:
- shard-kbl: NOTRUN -> SKIP [fdo#109271] +12

* igt@kms_frontbuffer_tracking@fbcpsr-rgb101010-draw-blt:
- shard-snb: NOTRUN -> SKIP [fdo#109271] +32

* igt@kms_frontbuffer_tracking@fbcpsr-shrfb-scaledprimary:
- shard-apl: NOTRUN -> SKIP [fdo#109271] +9

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-c:
- shard-kbl: PASS -> INCOMPLETE [fdo#103665] +2

* igt@kms_plane@pixel-format-pipe-c-planes-source-clamping:
- shard-glk: PASS -> SKIP [fdo#109271]

* igt@kms_plane_alpha_blend@pipe-b-alpha-basic:
- shard-kbl: NOTRUN -> FAIL [fdo#108145] / [fdo#108590]

* igt@kms_plane_scaling@pipe-b-scaler-with-pixel-format:
- shard-glk: PASS -> SKIP [fdo#109271] / [fdo#109278]

* igt@kms_setmode@basic:
- shard-apl: PASS -> FAIL [fdo#99912]

* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-glk: PASS -> FAIL [fdo#103375]

* igt@kms_vblank@pipe-b-ts-continuation-modeset:
- shard-kbl: PASS -> FAIL [fdo#104894]
- shard-apl: PASS -> FAIL [fdo#104894]

* igt@prime_nv_api@i915_self_import:
- shard-glk: NOTRUN -> SKIP [fdo#109271] +7

#### Possible fixes ####

* igt@i915_suspend@sysfs-reader:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS

* igt@kms_color@pipe-a-ctm-max:
- shard-kbl: FAIL [fdo#108147] -> PASS

* igt@kms_cursor_legacy@cursor-vs-flip-legacy:
- shard-hsw: FAIL [fdo#103355] -> PASS

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-shrfb-plflip-blt:
- shard-glk: FAIL [fdo#103167] -> PASS

* igt@kms_plane_scaling@pipe-a-scaler-with-clipping-clamping:
- shard-glk: SKIP [fdo#109271] / [fdo#109278] -> PASS

* igt@kms_rotation_crc@multiplane-rotation-cropping-top:
- shard-kbl: FAIL [fdo#109016] -> PASS

* igt@kms_setmode@basic:
- shard-kbl: FAIL [fdo#99912] -> PASS

* igt@kms_vblank@pipe-b-ts-continuation-modeset-rpm:
- shard-apl: FAIL [fdo#104894] -> PASS
- shard-kbl: FAIL [fdo#104894] -> PASS

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103355]: https://bugs.freedesktop.org/show_bug.cgi?id=103355
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104873]: https://bugs.freedesktop.org/show_bug.cgi?id=104873
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105767]: https://bugs.freedesktop.org/show_bug.cgi?id=105767
[fdo#106509]: https://bugs.freedesktop.org/show_bug.cgi?id=106509
[fdo#107409]: https://bugs.freedesktop.org/show_bug.cgi?id=107409
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108147]: https://bugs.freedesktop.org/show_bug.cgi?id=108147
[fdo#108590]: https://bugs.freedesktop.org/show_bug.cgi?id=108590
[fdo#109016]: https://bugs.freedesktop.org/show_bug.cgi?id=109016
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109278]: https://bugs.freedesktop.org/show_bug.cgi?id=109278
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (10 -> 5)
------------------------------

Missing (5): shard-skl pig-hsw-4770r pig-glk-j5005 shard-iclb pig-skl-6260u

Build changes
-------------

* IGT: IGT_4932 -> IGTPW_2813
* Piglit: piglit_4509 -> None

CI_DRM_5887: 360bc4546928ec1c9324ddd3991a01e89476a16c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2813: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2813/
IGT_4932: 08cf63a8fac11e3594b57580331fb319241a0d69 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2813/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev