* [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests
@ 2023-02-09 11:51 Juha-Pekka Heikkila
2023-02-09 13:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev3) Patchwork
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Juha-Pekka Heikkila @ 2023-02-09 11:51 UTC (permalink / raw)
To: igt-dev
Add skeleton for adding invalid parameter tests and add
two tests which are expected to return -EINVAL or -ERANGE
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
tests/kms_plane_scaling.c | 71 +++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 887a55e63..30a839f15 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -819,6 +819,75 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
igt_assert_eq(ret1 && ret2, 0);
}
+static void invalid_parameter_tests(data_t *d) {
+ enum pipe pipe = PIPE_A;
+ igt_output_t *output;
+ igt_fb_t fb;
+ igt_plane_t* plane;
+ int rval;
+
+ const struct {
+ const char* testname;
+ uint32_t planesize[2];
+ struct {
+ enum igt_atomic_plane_properties prop;
+ uint32_t value;
+ } params[8];
+ } paramtests[] = {
+ {
+ .testname = "less-than-1-height-src",
+ .planesize = {256, 8},
+ .params = {{IGT_PLANE_SRC_H, IGT_FIXED(0, 30) }, {~0}}
+ },
+ {
+ .testname = "less-than-1-width-src",
+ .planesize = {8, 256},
+ .params = {{IGT_PLANE_SRC_W, IGT_FIXED(0, 30) }, {~0}}
+ },
+ };
+
+ igt_fixture {
+ output = igt_get_single_output_for_pipe(&d->display, pipe);
+ igt_require(output);
+
+ igt_output_set_pipe(output, pipe);
+ plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
+
+ igt_create_fb(d->drm_fd, 256, 256,
+ DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_MOD_NONE,
+ &fb);
+ }
+
+ igt_describe("test parameters which should not be accepted");
+ igt_subtest_with_dynamic("invalid-parameters") {
+ for (uint32_t i = 0; i < ARRAY_SIZE(paramtests); i++) {
+ igt_dynamic(paramtests[i].testname) {
+ igt_plane_set_position(plane, 0, 0);
+ igt_plane_set_fb(plane, &fb);
+ igt_plane_set_size(plane,
+ paramtests[i].planesize[0],
+ paramtests[i].planesize[1]);
+
+
+ for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
+ igt_plane_set_prop_value(plane,
+ paramtests[i].params[j].prop,
+ paramtests[i].params[j].value);
+
+ rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
+
+ igt_assert(rval == -EINVAL || rval == -ERANGE);
+ }
+ }
+ }
+
+ igt_fixture {
+ igt_remove_fb(d->drm_fd, &fb);
+ igt_output_set_pipe(output, PIPE_NONE);
+ }
+}
+
static int opt_handler(int opt, int opt_index, void *_data)
{
data_t *data = _data;
@@ -982,6 +1051,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_subtest_f("2x-scaler-multi-pipe")
test_scaler_with_multi_pipe_plane(&data);
+ invalid_parameter_tests(&data);
+
igt_fixture {
igt_display_fini(&data.display);
close(data.drm_fd);
--
2.39.0
^ permalink raw reply related [flat|nested] 9+ messages in thread* [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev3)
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
@ 2023-02-09 13:05 ` Patchwork
2023-02-09 14:09 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev4) Patchwork
` (4 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2023-02-09 13:05 UTC (permalink / raw)
To: Juha-Pekka Heikkila; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 5730 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add invalid parameter tests (rev3)
URL : https://patchwork.freedesktop.org/series/112859/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12721 -> IGTPW_8476
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_8476 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_8476, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/index.html
Participating hosts (37 -> 35)
------------------------------
Missing (2): fi-kbl-soraka fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8476:
### IGT changes ###
#### Possible regressions ####
* igt@dmabuf@all-tests@dma_fence:
- fi-cfl-8109u: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-8109u/igt@dmabuf@all-tests@dma_fence.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-cfl-8109u/igt@dmabuf@all-tests@dma_fence.html
* igt@dmabuf@all-tests@sanitycheck:
- fi-cfl-8109u: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-8109u/igt@dmabuf@all-tests@sanitycheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-cfl-8109u/igt@dmabuf@all-tests@sanitycheck.html
Known issues
------------
Here are the changes found in IGTPW_8476 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- fi-cfl-guc: NOTRUN -> [SKIP][5] ([fdo#109271])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-cfl-guc/igt@kms_chamelium_hpd@common-hpd-after-suspend.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size:
- fi-bsw-n3050: [PASS][6] -> [FAIL][7] ([i915#6298])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-bsw-n3050/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-bsw-n3050/igt@kms_cursor_legacy@basic-busy-flip-before-cursor@atomic-transitions-varying-size.html
#### Possible fixes ####
* igt@dmabuf@all-tests@dma_fence:
- fi-cfl-guc: [DMESG-FAIL][8] -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
* igt@dmabuf@all-tests@sanitycheck:
- fi-cfl-guc: [ABORT][10] -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
* igt@i915_selftest@live@dmabuf:
- fi-bsw-nick: [DMESG-FAIL][12] ([i915#7562] / [i915#7913]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][14] ([i915#5334]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [ABORT][16] ([i915#4983] / [i915#7911]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/bat-rpls-1/igt@i915_selftest@live@requests.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/bat-rpls-1/igt@i915_selftest@live@requests.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5251]: https://gitlab.freedesktop.org/drm/intel/issues/5251
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6298]: https://gitlab.freedesktop.org/drm/intel/issues/6298
[i915#6311]: https://gitlab.freedesktop.org/drm/intel/issues/6311
[i915#7562]: https://gitlab.freedesktop.org/drm/intel/issues/7562
[i915#7609]: https://gitlab.freedesktop.org/drm/intel/issues/7609
[i915#7677]: https://gitlab.freedesktop.org/drm/intel/issues/7677
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7155 -> IGTPW_8476
CI-20190529: 20190529
CI_DRM_12721: e1f9df7a92c1e3da1009afa74dc1d08ef95c3d7c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8476: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/index.html
IGT_7155: 75c508d4e19c65683d4060cb3a772df600aaf23e @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@kms_plane_scaling@invalid-parameters
-igt@gem_ctx_exec@barrier-race
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8476/index.html
[-- Attachment #2: Type: text/html, Size: 6241 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev4)
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
2023-02-09 13:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev3) Patchwork
@ 2023-02-09 14:09 ` Patchwork
2023-02-09 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2023-02-09 14:09 UTC (permalink / raw)
To: Juha-Pekka Heikkila; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 6558 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add invalid parameter tests (rev4)
URL : https://patchwork.freedesktop.org/series/112859/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_12721 -> IGTPW_8477
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_8477 absolutely need to be
verified manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_8477, please notify your bug team to allow them
to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/index.html
Participating hosts (37 -> 37)
------------------------------
Additional (1): bat-atsm-1
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8477:
### IGT changes ###
#### Possible regressions ####
* igt@dmabuf@all-tests@dma_fence:
- fi-pnv-d510: [PASS][1] -> [DMESG-FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-pnv-d510/igt@dmabuf@all-tests@dma_fence.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-pnv-d510/igt@dmabuf@all-tests@dma_fence.html
* igt@dmabuf@all-tests@sanitycheck:
- fi-pnv-d510: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-pnv-d510/igt@dmabuf@all-tests@sanitycheck.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-pnv-d510/igt@dmabuf@all-tests@sanitycheck.html
* igt@gem_exec_suspend@basic-s0@smem:
- fi-rkl-11600: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-rkl-11600/igt@gem_exec_suspend@basic-s0@smem.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-rkl-11600/igt@gem_exec_suspend@basic-s0@smem.html
Known issues
------------
Here are the changes found in IGTPW_8477 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@hangcheck:
- fi-kbl-soraka: [PASS][7] -> [INCOMPLETE][8] ([i915#7913])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-kbl-soraka/igt@i915_selftest@live@hangcheck.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-kbl-soraka/igt@i915_selftest@live@hangcheck.html
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- fi-cfl-guc: NOTRUN -> [SKIP][9] ([fdo#109271])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-cfl-guc/igt@kms_chamelium_hpd@common-hpd-after-suspend.html
#### Possible fixes ####
* igt@dmabuf@all-tests@dma_fence:
- fi-cfl-guc: [DMESG-FAIL][10] -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
* igt@dmabuf@all-tests@sanitycheck:
- fi-cfl-guc: [ABORT][12] -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
* igt@i915_selftest@live@dmabuf:
- fi-bsw-nick: [DMESG-FAIL][14] ([i915#7562] / [i915#7913]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][16] ([i915#5334]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [ABORT][18] ([i915#4983] / [i915#7911]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/bat-rpls-1/igt@i915_selftest@live@requests.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/bat-rpls-1/igt@i915_selftest@live@requests.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5251]: https://gitlab.freedesktop.org/drm/intel/issues/5251
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6077]: https://gitlab.freedesktop.org/drm/intel/issues/6077
[i915#6078]: https://gitlab.freedesktop.org/drm/intel/issues/6078
[i915#6093]: https://gitlab.freedesktop.org/drm/intel/issues/6093
[i915#6094]: https://gitlab.freedesktop.org/drm/intel/issues/6094
[i915#6166]: https://gitlab.freedesktop.org/drm/intel/issues/6166
[i915#6311]: https://gitlab.freedesktop.org/drm/intel/issues/6311
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7357]: https://gitlab.freedesktop.org/drm/intel/issues/7357
[i915#7562]: https://gitlab.freedesktop.org/drm/intel/issues/7562
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7155 -> IGTPW_8477
CI-20190529: 20190529
CI_DRM_12721: e1f9df7a92c1e3da1009afa74dc1d08ef95c3d7c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8477: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/index.html
IGT_7155: 75c508d4e19c65683d4060cb3a772df600aaf23e @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8477/index.html
[-- Attachment #2: Type: text/html, Size: 6353 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5)
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
2023-02-09 13:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev3) Patchwork
2023-02-09 14:09 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev4) Patchwork
@ 2023-02-09 15:32 ` Patchwork
2023-02-09 20:02 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Luca Coelho
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2023-02-09 15:32 UTC (permalink / raw)
To: Juha-Pekka Heikkila; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 9333 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add invalid parameter tests (rev5)
URL : https://patchwork.freedesktop.org/series/112859/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12721 -> IGTPW_8479
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
Participating hosts (37 -> 36)
------------------------------
Additional (2): bat-atsm-1 bat-dg1-6
Missing (3): fi-kbl-soraka bat-kbl-2 fi-snb-2520m
Known issues
------------
Here are the changes found in IGTPW_8479 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_mmap@basic:
- bat-dg1-6: NOTRUN -> [SKIP][1] ([i915#4083])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@gem_mmap@basic.html
* igt@gem_render_tiled_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][2] ([i915#4079]) +1 similar issue
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@gem_render_tiled_blits@basic.html
* igt@gem_tiled_fence_blits@basic:
- bat-dg1-6: NOTRUN -> [SKIP][3] ([i915#4077]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@gem_tiled_fence_blits@basic.html
* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-6: NOTRUN -> [SKIP][4] ([i915#7561])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@i915_pm_backlight@basic-brightness.html
* igt@i915_pm_rps@basic-api:
- bat-dg1-6: NOTRUN -> [SKIP][5] ([i915#6621])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@i915_pm_rps@basic-api.html
* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-6: NOTRUN -> [SKIP][6] ([i915#4215])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_addfb_basic@basic-y-tiled-legacy.html
* igt@kms_addfb_basic@tile-pitch-mismatch:
- bat-dg1-6: NOTRUN -> [SKIP][7] ([i915#4212]) +7 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_addfb_basic@tile-pitch-mismatch.html
* igt@kms_chamelium_hpd@common-hpd-after-suspend:
- bat-dg1-6: NOTRUN -> [SKIP][8] ([i915#7828]) +8 similar issues
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_chamelium_hpd@common-hpd-after-suspend.html
- fi-cfl-guc: NOTRUN -> [SKIP][9] ([fdo#109271])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/fi-cfl-guc/igt@kms_chamelium_hpd@common-hpd-after-suspend.html
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor:
- bat-dg1-6: NOTRUN -> [SKIP][10] ([i915#4103] / [i915#4213])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_cursor_legacy@basic-busy-flip-before-cursor.html
* igt@kms_force_connector_basic@force-load-detect:
- bat-dg1-6: NOTRUN -> [SKIP][11] ([fdo#109285])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_force_connector_basic@force-load-detect.html
* igt@kms_psr@sprite_plane_onoff:
- bat-dg1-6: NOTRUN -> [SKIP][12] ([i915#1072] / [i915#4078]) +3 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_psr@sprite_plane_onoff.html
* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-6: NOTRUN -> [SKIP][13] ([i915#3555])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@kms_setmode@basic-clone-single-crtc.html
* igt@prime_vgem@basic-gtt:
- bat-dg1-6: NOTRUN -> [SKIP][14] ([i915#3708] / [i915#4077]) +1 similar issue
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@prime_vgem@basic-gtt.html
* igt@prime_vgem@basic-read:
- bat-dg1-6: NOTRUN -> [SKIP][15] ([i915#3708]) +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@prime_vgem@basic-read.html
* igt@prime_vgem@basic-userptr:
- bat-dg1-6: NOTRUN -> [SKIP][16] ([i915#3708] / [i915#4873])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-dg1-6/igt@prime_vgem@basic-userptr.html
#### Possible fixes ####
* igt@dmabuf@all-tests@dma_fence:
- fi-cfl-guc: [DMESG-FAIL][17] -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/fi-cfl-guc/igt@dmabuf@all-tests@dma_fence.html
* igt@dmabuf@all-tests@sanitycheck:
- fi-cfl-guc: [ABORT][19] -> [PASS][20]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/fi-cfl-guc/igt@dmabuf@all-tests@sanitycheck.html
* igt@i915_selftest@live@dmabuf:
- fi-bsw-nick: [DMESG-FAIL][21] ([i915#7562] / [i915#7913]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/fi-bsw-nick/igt@i915_selftest@live@dmabuf.html
* igt@i915_selftest@live@gt_heartbeat:
- fi-apl-guc: [DMESG-FAIL][23] ([i915#5334]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/fi-apl-guc/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@requests:
- {bat-rpls-1}: [ABORT][25] ([i915#4983] / [i915#7911]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/bat-rpls-1/igt@i915_selftest@live@requests.html
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/bat-rpls-1/igt@i915_selftest@live@requests.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1836]: https://gitlab.freedesktop.org/drm/intel/issues/1836
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/intel/issues/4215
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6077]: https://gitlab.freedesktop.org/drm/intel/issues/6077
[i915#6078]: https://gitlab.freedesktop.org/drm/intel/issues/6078
[i915#6093]: https://gitlab.freedesktop.org/drm/intel/issues/6093
[i915#6094]: https://gitlab.freedesktop.org/drm/intel/issues/6094
[i915#6166]: https://gitlab.freedesktop.org/drm/intel/issues/6166
[i915#6311]: https://gitlab.freedesktop.org/drm/intel/issues/6311
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7357]: https://gitlab.freedesktop.org/drm/intel/issues/7357
[i915#7359]: https://gitlab.freedesktop.org/drm/intel/issues/7359
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7562]: https://gitlab.freedesktop.org/drm/intel/issues/7562
[i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7155 -> IGTPW_8479
CI-20190529: 20190529
CI_DRM_12721: e1f9df7a92c1e3da1009afa74dc1d08ef95c3d7c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8479: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
IGT_7155: 75c508d4e19c65683d4060cb3a772df600aaf23e @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@kms_plane_scaling@invalid-parameters
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
[-- Attachment #2: Type: text/html, Size: 9504 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
` (2 preceding siblings ...)
2023-02-09 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
@ 2023-02-09 20:02 ` Luca Coelho
2023-02-10 11:58 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
2023-02-10 13:22 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Kamil Konieczny
5 siblings, 0 replies; 9+ messages in thread
From: Luca Coelho @ 2023-02-09 20:02 UTC (permalink / raw)
To: Juha-Pekka Heikkila, igt-dev
On Thu, 2023-02-09 at 13:51 +0200, Juha-Pekka Heikkila wrote:
> Add skeleton for adding invalid parameter tests and add
> two tests which are expected to return -EINVAL or -ERANGE
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
You forgot to add "v3" in the patch subject, but that's okay.
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
(thanks for the "pulla" 🙂)
Cheers,
Luca.
> tests/kms_plane_scaling.c | 71 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 887a55e63..30a839f15 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -819,6 +819,75 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
> igt_assert_eq(ret1 && ret2, 0);
> }
>
> +static void invalid_parameter_tests(data_t *d) {
> + enum pipe pipe = PIPE_A;
> + igt_output_t *output;
> + igt_fb_t fb;
> + igt_plane_t* plane;
> + int rval;
> +
> + const struct {
> + const char* testname;
> + uint32_t planesize[2];
> + struct {
> + enum igt_atomic_plane_properties prop;
> + uint32_t value;
> + } params[8];
> + } paramtests[] = {
> + {
> + .testname = "less-than-1-height-src",
> + .planesize = {256, 8},
> + .params = {{IGT_PLANE_SRC_H, IGT_FIXED(0, 30) }, {~0}}
> + },
> + {
> + .testname = "less-than-1-width-src",
> + .planesize = {8, 256},
> + .params = {{IGT_PLANE_SRC_W, IGT_FIXED(0, 30) }, {~0}}
> + },
> + };
> +
> + igt_fixture {
> + output = igt_get_single_output_for_pipe(&d->display, pipe);
> + igt_require(output);
> +
> + igt_output_set_pipe(output, pipe);
> + plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
> +
> + igt_create_fb(d->drm_fd, 256, 256,
> + DRM_FORMAT_XRGB8888,
> + DRM_FORMAT_MOD_NONE,
> + &fb);
> + }
> +
> + igt_describe("test parameters which should not be accepted");
> + igt_subtest_with_dynamic("invalid-parameters") {
> + for (uint32_t i = 0; i < ARRAY_SIZE(paramtests); i++) {
> + igt_dynamic(paramtests[i].testname) {
> + igt_plane_set_position(plane, 0, 0);
> + igt_plane_set_fb(plane, &fb);
> + igt_plane_set_size(plane,
> + paramtests[i].planesize[0],
> + paramtests[i].planesize[1]);
> +
> +
> + for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
> + igt_plane_set_prop_value(plane,
> + paramtests[i].params[j].prop,
> + paramtests[i].params[j].value);
> +
> + rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
> +
> + igt_assert(rval == -EINVAL || rval == -ERANGE);
> + }
> + }
> + }
> +
> + igt_fixture {
> + igt_remove_fb(d->drm_fd, &fb);
> + igt_output_set_pipe(output, PIPE_NONE);
> + }
> +}
> +
> static int opt_handler(int opt, int opt_index, void *_data)
> {
> data_t *data = _data;
> @@ -982,6 +1051,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> igt_subtest_f("2x-scaler-multi-pipe")
> test_scaler_with_multi_pipe_plane(&data);
>
> + invalid_parameter_tests(&data);
> +
> igt_fixture {
> igt_display_fini(&data.display);
> close(data.drm_fd);
^ permalink raw reply [flat|nested] 9+ messages in thread* [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5)
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
` (3 preceding siblings ...)
2023-02-09 20:02 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Luca Coelho
@ 2023-02-10 11:58 ` Patchwork
2023-02-10 13:22 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Kamil Konieczny
5 siblings, 0 replies; 9+ messages in thread
From: Patchwork @ 2023-02-10 11:58 UTC (permalink / raw)
To: Juha-Pekka Heikkila; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 20554 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add invalid parameter tests (rev5)
URL : https://patchwork.freedesktop.org/series/112859/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12721_full -> IGTPW_8479_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
Participating hosts (9 -> 10)
------------------------------
Additional (1): shard-tglu-9
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8479_full:
### IGT changes ###
#### Possible regressions ####
* {igt@kms_plane_scaling@invalid-parameters} (NEW):
- {shard-rkl}: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-1/igt@kms_plane_scaling@invalid-parameters.html
New tests
---------
New tests have been introduced between CI_DRM_12721_full and IGTPW_8479_full:
### New IGT tests (3) ###
* igt@kms_plane_scaling@invalid-parameters:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_plane_scaling@invalid-parameters@less-than-1-height-src:
- Statuses : 2 pass(s)
- Exec time: [0.0] s
* igt@kms_plane_scaling@invalid-parameters@less-than-1-width-src:
- Statuses : 2 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_8479_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-pace@rcs0:
- shard-glk: [PASS][2] -> [FAIL][3] ([i915#2842])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-glk3/igt@gem_exec_fair@basic-pace@rcs0.html
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk6/igt@gem_exec_fair@basic-pace@rcs0.html
* igt@gem_lmem_swapping@massive-random:
- shard-glk: NOTRUN -> [SKIP][4] ([fdo#109271] / [i915#4613]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk4/igt@gem_lmem_swapping@massive-random.html
* igt@kms_big_fb@yf-tiled-64bpp-rotate-180:
- shard-glk: NOTRUN -> [SKIP][5] ([fdo#109271]) +47 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk3/igt@kms_big_fb@yf-tiled-64bpp-rotate-180.html
* igt@kms_ccs@pipe-b-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc:
- shard-glk: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#3886])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk9/igt@kms_ccs@pipe-b-missing-ccs-buffer-y_tiled_gen12_rc_ccs_cc.html
* igt@kms_flip@flip-vs-expired-vblank@c-hdmi-a1:
- shard-glk: [PASS][7] -> [FAIL][8] ([i915#2122])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-glk6/igt@kms_flip@flip-vs-expired-vblank@c-hdmi-a1.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk1/igt@kms_flip@flip-vs-expired-vblank@c-hdmi-a1.html
* igt@kms_hdmi_inject@inject-audio:
- shard-snb: [PASS][9] -> [SKIP][10] ([fdo#109271])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-snb2/igt@kms_hdmi_inject@inject-audio.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-snb5/igt@kms_hdmi_inject@inject-audio.html
* igt@kms_plane_scaling@plane-upscale-with-modifiers-factor-0-25@pipe-a-vga-1:
- shard-snb: NOTRUN -> [SKIP][11] ([fdo#109271]) +35 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-snb5/igt@kms_plane_scaling@plane-upscale-with-modifiers-factor-0-25@pipe-a-vga-1.html
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-glk: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#658])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk7/igt@kms_psr2_su@frontbuffer-xrgb8888.html
* igt@kms_setmode@basic@pipe-a-vga-1:
- shard-snb: NOTRUN -> [FAIL][13] ([i915#5465]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-snb5/igt@kms_setmode@basic@pipe-a-vga-1.html
#### Possible fixes ####
* igt@drm_read@short-buffer-nonblock:
- {shard-rkl}: [SKIP][14] ([i915#4098]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-4/igt@drm_read@short-buffer-nonblock.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@drm_read@short-buffer-nonblock.html
* igt@fbdev@eof:
- {shard-rkl}: [SKIP][16] ([i915#2582]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-5/igt@fbdev@eof.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@fbdev@eof.html
* igt@gem_ctx_exec@basic-nohangcheck:
- {shard-rkl}: [FAIL][18] ([i915#6268]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-1/igt@gem_ctx_exec@basic-nohangcheck.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-5/igt@gem_ctx_exec@basic-nohangcheck.html
* igt@gem_eio@in-flight-suspend:
- {shard-rkl}: [FAIL][20] ([fdo#103375]) -> [PASS][21] +1 similar issue
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-3/igt@gem_eio@in-flight-suspend.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@gem_eio@in-flight-suspend.html
* igt@gem_eio@suspend:
- {shard-rkl}: [FAIL][22] ([i915#5115] / [i915#7052]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-4/igt@gem_eio@suspend.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-1/igt@gem_eio@suspend.html
* igt@gem_exec_fair@basic-pace-share@rcs0:
- {shard-rkl}: [FAIL][24] ([i915#2842]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-2/igt@gem_exec_fair@basic-pace-share@rcs0.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-1/igt@gem_exec_fair@basic-pace-share@rcs0.html
* igt@gem_exec_reloc@basic-softpin:
- {shard-rkl}: [SKIP][26] ([i915#3281]) -> [PASS][27] +8 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-1/igt@gem_exec_reloc@basic-softpin.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-5/igt@gem_exec_reloc@basic-softpin.html
* igt@gem_pread@bench:
- {shard-rkl}: [SKIP][28] ([i915#3282]) -> [PASS][29] +7 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-2/igt@gem_pread@bench.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-5/igt@gem_pread@bench.html
* igt@gen9_exec_parse@bb-start-out:
- {shard-rkl}: [SKIP][30] ([i915#2527]) -> [PASS][31] +1 similar issue
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-3/igt@gen9_exec_parse@bb-start-out.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-5/igt@gen9_exec_parse@bb-start-out.html
* igt@i915_pm_rpm@cursor-dpms:
- {shard-rkl}: [SKIP][32] ([i915#1849]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-2/igt@i915_pm_rpm@cursor-dpms.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@i915_pm_rpm@cursor-dpms.html
* igt@kms_big_fb@linear-32bpp-rotate-0:
- {shard-rkl}: [SKIP][34] ([i915#1845] / [i915#4098]) -> [PASS][35] +19 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-1/igt@kms_big_fb@linear-32bpp-rotate-0.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@kms_big_fb@linear-32bpp-rotate-0.html
* igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@ac-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][36] ([i915#2122]) -> [PASS][37] +1 similar issue
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-glk4/igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@ac-hdmi-a1-hdmi-a2.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-glk8/igt@kms_flip@2x-plain-flip-fb-recreate-interruptible@ac-hdmi-a1-hdmi-a2.html
* igt@kms_frontbuffer_tracking@psr-modesetfrombusy:
- {shard-rkl}: [SKIP][38] ([i915#1849] / [i915#4098]) -> [PASS][39] +16 similar issues
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-4/igt@kms_frontbuffer_tracking@psr-modesetfrombusy.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@kms_frontbuffer_tracking@psr-modesetfrombusy.html
* igt@kms_psr@cursor_mmap_cpu:
- {shard-rkl}: [SKIP][40] ([i915#1072]) -> [PASS][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-1/igt@kms_psr@cursor_mmap_cpu.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@kms_psr@cursor_mmap_cpu.html
* igt@kms_universal_plane@disable-primary-vs-flip-pipe-a:
- {shard-rkl}: [SKIP][42] ([i915#1845] / [i915#4070] / [i915#4098]) -> [PASS][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-2/igt@kms_universal_plane@disable-primary-vs-flip-pipe-a.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-6/igt@kms_universal_plane@disable-primary-vs-flip-pipe-a.html
* igt@prime_vgem@basic-write:
- {shard-rkl}: [SKIP][44] ([fdo#109295] / [i915#3291] / [i915#3708]) -> [PASS][45] +1 similar issue
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12721/shard-rkl-3/igt@prime_vgem@basic-write.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/shard-rkl-5/igt@prime_vgem@basic-write.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1257]: https://gitlab.freedesktop.org/drm/intel/issues/1257
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1755]: https://gitlab.freedesktop.org/drm/intel/issues/1755
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/intel/issues/3361
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3536]: https://gitlab.freedesktop.org/drm/intel/issues/3536
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3826]: https://gitlab.freedesktop.org/drm/intel/issues/3826
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3952]: https://gitlab.freedesktop.org/drm/intel/issues/3952
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3966]: https://gitlab.freedesktop.org/drm/intel/issues/3966
[i915#4036]: https://gitlab.freedesktop.org/drm/intel/issues/4036
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4884]: https://gitlab.freedesktop.org/drm/intel/issues/4884
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[i915#5115]: https://gitlab.freedesktop.org/drm/intel/issues/5115
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5465]: https://gitlab.freedesktop.org/drm/intel/issues/5465
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6227]: https://gitlab.freedesktop.org/drm/intel/issues/6227
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6245]: https://gitlab.freedesktop.org/drm/intel/issues/6245
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7052]: https://gitlab.freedesktop.org/drm/intel/issues/7052
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7582]: https://gitlab.freedesktop.org/drm/intel/issues/7582
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
[i915#7984]: https://gitlab.freedesktop.org/drm/intel/issues/7984
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7155 -> IGTPW_8479
CI-20190529: 20190529
CI_DRM_12721: e1f9df7a92c1e3da1009afa74dc1d08ef95c3d7c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8479: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
IGT_7155: 75c508d4e19c65683d4060cb3a772df600aaf23e @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8479/index.html
[-- Attachment #2: Type: text/html, Size: 14056 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
` (4 preceding siblings ...)
2023-02-10 11:58 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
@ 2023-02-10 13:22 ` Kamil Konieczny
2023-02-10 14:07 ` Juha-Pekka Heikkila
5 siblings, 1 reply; 9+ messages in thread
From: Kamil Konieczny @ 2023-02-10 13:22 UTC (permalink / raw)
To: igt-dev
Hi Juha-Pekka,
I have few nits, see below.
On 2023-02-09 at 13:51:51 +0200, Juha-Pekka Heikkila wrote:
> Add skeleton for adding invalid parameter tests and add
> two tests which are expected to return -EINVAL or -ERANGE
>
> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> tests/kms_plane_scaling.c | 71 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 71 insertions(+)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 887a55e63..30a839f15 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -819,6 +819,75 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
> igt_assert_eq(ret1 && ret2, 0);
> }
>
> +static void invalid_parameter_tests(data_t *d) {
------------------------------------------------- ^
This brace should be at new line.
> + enum pipe pipe = PIPE_A;
> + igt_output_t *output;
> + igt_fb_t fb;
> + igt_plane_t* plane;
------------------ ^
This should be:
igt_plane_t *plane;
> + int rval;
> +
> + const struct {
> + const char* testname;
------------------------- ^
Same here.
> + uint32_t planesize[2];
> + struct {
> + enum igt_atomic_plane_properties prop;
> + uint32_t value;
> + } params[8];
> + } paramtests[] = {
> + {
> + .testname = "less-than-1-height-src",
> + .planesize = {256, 8},
> + .params = {{IGT_PLANE_SRC_H, IGT_FIXED(0, 30) }, {~0}}
> + },
> + {
> + .testname = "less-than-1-width-src",
> + .planesize = {8, 256},
> + .params = {{IGT_PLANE_SRC_W, IGT_FIXED(0, 30) }, {~0}}
> + },
> + };
> +
> + igt_fixture {
> + output = igt_get_single_output_for_pipe(&d->display, pipe);
> + igt_require(output);
> +
> + igt_output_set_pipe(output, pipe);
> + plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
> +
> + igt_create_fb(d->drm_fd, 256, 256,
> + DRM_FORMAT_XRGB8888,
> + DRM_FORMAT_MOD_NONE,
> + &fb);
> + }
> +
> + igt_describe("test parameters which should not be accepted");
> + igt_subtest_with_dynamic("invalid-parameters") {
> + for (uint32_t i = 0; i < ARRAY_SIZE(paramtests); i++) {
> + igt_dynamic(paramtests[i].testname) {
> + igt_plane_set_position(plane, 0, 0);
> + igt_plane_set_fb(plane, &fb);
> + igt_plane_set_size(plane,
-------------------------------------------------- ^
If you break line you should align it here.
> + paramtests[i].planesize[0],
-------------------------------------------------- ^
Align it.
> + paramtests[i].planesize[1]);
-------------------------------------------------- ^
This is correct align.
> +
> +
> + for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
> + igt_plane_set_prop_value(plane,
---------------------------------------------------------------- ^
> + paramtests[i].params[j].prop,
---------------------------------------------------------------- ^
Align here.
> + paramtests[i].params[j].value);
---------------------------------------------------------------- ^
Align here.
> +
> + rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
-- ^
Use tabs, no spaces.
Please use checkpatch.pl from Linux kernel source to check
your patches before sending. It may change in future and
maybe we will have it in our GitLab CI and in patchwork but
for now please do it yourself.
Regards,
Kamil
> +
> + igt_assert(rval == -EINVAL || rval == -ERANGE);
> + }
> + }
> + }
> +
> + igt_fixture {
> + igt_remove_fb(d->drm_fd, &fb);
> + igt_output_set_pipe(output, PIPE_NONE);
> + }
> +}
> +
> static int opt_handler(int opt, int opt_index, void *_data)
> {
> data_t *data = _data;
> @@ -982,6 +1051,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> igt_subtest_f("2x-scaler-multi-pipe")
> test_scaler_with_multi_pipe_plane(&data);
>
> + invalid_parameter_tests(&data);
> +
> igt_fixture {
> igt_display_fini(&data.display);
> close(data.drm_fd);
> --
> 2.39.0
>
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests
2023-02-10 13:22 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Kamil Konieczny
@ 2023-02-10 14:07 ` Juha-Pekka Heikkila
0 siblings, 0 replies; 9+ messages in thread
From: Juha-Pekka Heikkila @ 2023-02-10 14:07 UTC (permalink / raw)
To: Kamil Konieczny, igt-dev, Luca Coelho
Hi Kamil,
I had just pushed this after which I saw your email. :/ While pushing I
did fixed most of those you had pointed, that alignment thing did look
different in my editor hence missed it.
/Juha-Pekka
On 10.2.2023 15.22, Kamil Konieczny wrote:
> Hi Juha-Pekka,
>
> I have few nits, see below.
>
> On 2023-02-09 at 13:51:51 +0200, Juha-Pekka Heikkila wrote:
>> Add skeleton for adding invalid parameter tests and add
>> two tests which are expected to return -EINVAL or -ERANGE
>>
>> Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
>> ---
>> tests/kms_plane_scaling.c | 71 +++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 71 insertions(+)
>>
>> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
>> index 887a55e63..30a839f15 100644
>> --- a/tests/kms_plane_scaling.c
>> +++ b/tests/kms_plane_scaling.c
>> @@ -819,6 +819,75 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
>> igt_assert_eq(ret1 && ret2, 0);
>> }
>>
>> +static void invalid_parameter_tests(data_t *d) {
> ------------------------------------------------- ^
> This brace should be at new line.
>
>> + enum pipe pipe = PIPE_A;
>> + igt_output_t *output;
>> + igt_fb_t fb;
>> + igt_plane_t* plane;
> ------------------ ^
> This should be:
> igt_plane_t *plane;
>
>> + int rval;
>> +
>> + const struct {
>> + const char* testname;
> ------------------------- ^
> Same here.
>
>> + uint32_t planesize[2];
>> + struct {
>> + enum igt_atomic_plane_properties prop;
>> + uint32_t value;
>> + } params[8];
>> + } paramtests[] = {
>> + {
>> + .testname = "less-than-1-height-src",
>> + .planesize = {256, 8},
>> + .params = {{IGT_PLANE_SRC_H, IGT_FIXED(0, 30) }, {~0}}
>> + },
>> + {
>> + .testname = "less-than-1-width-src",
>> + .planesize = {8, 256},
>> + .params = {{IGT_PLANE_SRC_W, IGT_FIXED(0, 30) }, {~0}}
>> + },
>> + };
>> +
>> + igt_fixture {
>> + output = igt_get_single_output_for_pipe(&d->display, pipe);
>> + igt_require(output);
>> +
>> + igt_output_set_pipe(output, pipe);
>> + plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>> +
>> + igt_create_fb(d->drm_fd, 256, 256,
>> + DRM_FORMAT_XRGB8888,
>> + DRM_FORMAT_MOD_NONE,
>> + &fb);
>> + }
>> +
>> + igt_describe("test parameters which should not be accepted");
>> + igt_subtest_with_dynamic("invalid-parameters") {
>> + for (uint32_t i = 0; i < ARRAY_SIZE(paramtests); i++) {
>> + igt_dynamic(paramtests[i].testname) {
>> + igt_plane_set_position(plane, 0, 0);
>> + igt_plane_set_fb(plane, &fb);
>> + igt_plane_set_size(plane,
> -------------------------------------------------- ^
> If you break line you should align it here.
>
>> + paramtests[i].planesize[0],
> -------------------------------------------------- ^
> Align it.
>
>> + paramtests[i].planesize[1]);
> -------------------------------------------------- ^
> This is correct align.
>
>> +
>> +
>> + for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
>> + igt_plane_set_prop_value(plane,
> ---------------------------------------------------------------- ^
>
>> + paramtests[i].params[j].prop,
> ---------------------------------------------------------------- ^
> Align here.
>
>> + paramtests[i].params[j].value);
> ---------------------------------------------------------------- ^
> Align here.
>
>> +
>> + rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
> -- ^
> Use tabs, no spaces.
>
> Please use checkpatch.pl from Linux kernel source to check
> your patches before sending. It may change in future and
> maybe we will have it in our GitLab CI and in patchwork but
> for now please do it yourself.
>
> Regards,
> Kamil
>
>> +
>> + igt_assert(rval == -EINVAL || rval == -ERANGE);
>> + }
>> + }
>> + }
>> +
>> + igt_fixture {
>> + igt_remove_fb(d->drm_fd, &fb);
>> + igt_output_set_pipe(output, PIPE_NONE);
>> + }
>> +}
>> +
>> static int opt_handler(int opt, int opt_index, void *_data)
>> {
>> data_t *data = _data;
>> @@ -982,6 +1051,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
>> igt_subtest_f("2x-scaler-multi-pipe")
>> test_scaler_with_multi_pipe_plane(&data);
>>
>> + invalid_parameter_tests(&data);
>> +
>> igt_fixture {
>> igt_display_fini(&data.display);
>> close(data.drm_fd);
>> --
>> 2.39.0
>>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests
@ 2023-01-15 21:03 Juha-Pekka Heikkila
0 siblings, 0 replies; 9+ messages in thread
From: Juha-Pekka Heikkila @ 2023-01-15 21:03 UTC (permalink / raw)
To: igt-dev; +Cc: Drew Davenport
Add skeleton for adding invalid parameter tests and add two tests which are
expected to return -EINVAL
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
tests/kms_plane_scaling.c | 71 +++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 887a55e63..96713128b 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -819,6 +819,75 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
igt_assert_eq(ret1 && ret2, 0);
}
+static void invalid_parameter_tests(data_t *d) {
+ enum pipe pipe = PIPE_A;
+ igt_output_t *output;
+ igt_fb_t fb;
+ igt_plane_t* plane;
+ int32_t rval;
+
+ const struct {
+ const char* testname;
+ uint32_t planesize[2];
+ struct {
+ enum igt_atomic_plane_properties prop;
+ uint32_t value;
+ } params[8];
+ } paramtests[] = {
+ {
+ .testname = "less-than-1-height-src",
+ .planesize = {256, 8},
+ .params = {{IGT_PLANE_SRC_H, IGT_FIXED(0, 30) }, {~0}}
+ },
+ {
+ .testname = "less-than-1-width-src",
+ .planesize = {8, 256},
+ .params = {{IGT_PLANE_SRC_W, IGT_FIXED(0, 30) }, {~0}}
+ },
+ };
+
+ igt_fixture {
+ output = igt_get_single_output_for_pipe(&d->display, pipe);
+ igt_require(output);
+
+ igt_output_set_pipe(output, pipe);
+ plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
+
+ igt_create_fb(d->drm_fd, 256, 256,
+ DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_MOD_NONE,
+ &fb);
+ }
+
+ igt_subtest_group {
+ igt_describe("test parameters which should not be accepted");
+ igt_subtest_with_dynamic("invalid-parameters") {
+ for (uint32_t i = 0; i < ARRAY_SIZE(paramtests); i++) {
+ igt_dynamic(paramtests[i].testname) {
+ igt_plane_set_position(plane, 0, 0);
+ igt_plane_set_fb(plane, &fb);
+ igt_plane_set_size(plane,
+ paramtests[i].planesize[0],
+ paramtests[i].planesize[1]);
+
+
+ for (uint32_t j = 0; paramtests[i].params[j].prop != ~0; j++)
+ igt_plane_set_prop_value(plane,
+ paramtests[i].params[j].prop,
+ paramtests[i].params[j].value);
+
+ rval = igt_display_try_commit2(&d->display, COMMIT_ATOMIC);
+
+ igt_assert(rval == -EINVAL);
+ }
+ }
+ }
+ }
+
+ igt_fixture
+ igt_remove_fb(d->drm_fd, &fb);
+}
+
static int opt_handler(int opt, int opt_index, void *_data)
{
data_t *data = _data;
@@ -982,6 +1051,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_subtest_f("2x-scaler-multi-pipe")
test_scaler_with_multi_pipe_plane(&data);
+ invalid_parameter_tests(&data);
+
igt_fixture {
igt_display_fini(&data.display);
close(data.drm_fd);
--
2.39.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-02-10 14:08 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09 11:51 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Juha-Pekka Heikkila
2023-02-09 13:05 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev3) Patchwork
2023-02-09 14:09 ` [igt-dev] ✗ Fi.CI.BAT: failure for tests/kms_plane_scaling: add invalid parameter tests (rev4) Patchwork
2023-02-09 15:32 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
2023-02-09 20:02 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Luca Coelho
2023-02-10 11:58 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: add invalid parameter tests (rev5) Patchwork
2023-02-10 13:22 ` [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: add invalid parameter tests Kamil Konieczny
2023-02-10 14:07 ` Juha-Pekka Heikkila
-- strict thread matches above, loose matches on Subject: below --
2023-01-15 21:03 Juha-Pekka Heikkila
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox