* [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers()
@ 2023-05-30 4:46 Swati Sharma
2023-05-30 15:57 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2) Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Swati Sharma @ 2023-05-30 4:46 UTC (permalink / raw)
To: igt-dev
Verify the count of supported scalers per CRTC, and proceed with
executing tests if the necessary number of scalers is available.
With the exception of "planes-.*" and "2x-scaler-multi-pipe"
subtests, a minimum of 1 scaler is needed for all other tests,
while these specific tests require a minimum of 2 scalers.
v2: -improved commit message (Kamil)
-handled get_num_scalers() for non-intel devices (Kamil)
Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
---
tests/kms_plane_scaling.c | 50 +++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 0e7cd4a2..4033d2ea 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -368,6 +368,32 @@ const struct {
},
};
+/* Returns num_scalers from the crtc debugfs. */
+static int get_num_scalers(data_t *data, enum pipe pipe)
+{
+ char buf[512];
+ char *start_loc;
+ int dir, res;
+ int num_scalers = 0;
+
+ if (is_intel_device(data->drm_fd) &&
+ intel_display_ver(intel_get_drm_devid(data->drm_fd)) >= 9) {
+
+ dir = igt_debugfs_dir(data->drm_fd);
+ igt_assert(dir >= 0);
+
+ res = igt_debugfs_simple_read(dir, "i915_display_info", buf, sizeof(buf));
+ close(dir);
+ igt_require(res > 0);
+
+ igt_assert(start_loc = strstr(buf, "num_scalers="));
+ igt_assert_eq(sscanf(start_loc, "num_scalers=%d", &num_scalers), 1);
+
+ }
+
+ return num_scalers;
+}
+
static int get_width(drmModeModeInfo *mode, double scaling_factor)
{
if (scaling_factor == 0.0)
@@ -873,6 +899,9 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
igt_output_set_pipe(output1, pipe1);
igt_output_set_pipe(output2, pipe2);
+ igt_require(get_num_scalers(d, pipe1) >= 2);
+ igt_require(get_num_scalers(d, pipe2) >= 2);
+
plane[0] = igt_output_get_plane(output1, 0);
igt_require(plane[0]);
plane[1] = igt_output_get_plane(output1, 0);
@@ -963,6 +992,8 @@ static void invalid_parameter_tests(data_t *d)
igt_output_set_pipe(output, pipe);
plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
+ igt_require(get_num_scalers(d, pipe) >= 1);
+
igt_create_fb(d->drm_fd, 256, 256,
DRM_FORMAT_XRGB8888,
DRM_FORMAT_MOD_LINEAR,
@@ -1138,6 +1169,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1161,6 +1194,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1184,6 +1219,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1206,6 +1243,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1224,6 +1263,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1242,6 +1283,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1260,6 +1303,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_valid_output_on_pipe(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 2)
+ continue;
igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
drmModeModeInfo *mode = igt_output_get_mode(output);
@@ -1282,6 +1327,9 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
igt_subtest_with_dynamic(intel_paramtests[index].testname) {
igt_require_intel(data.drm_fd);
for_each_pipe(&data.display, pipe) {
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
+
for_each_valid_output_on_pipe(&data.display, pipe, output) {
drmModeModeInfo *mode = NULL;
/*
@@ -1307,6 +1355,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
for_each_pipe_with_valid_output(&data.display, pipe, output) {
if (!pipe_output_combo_valid(&data.display, pipe, output))
continue;
+ if (get_num_scalers(&data, pipe) < 1)
+ continue;
igt_dynamic_f("pipe-%s-%s-invalid-num-scalers",
kmstest_pipe_name(pipe), igt_output_name(output))
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2)
2023-05-30 4:46 [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Swati Sharma
@ 2023-05-30 15:57 ` Patchwork
2023-05-31 11:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-01 8:31 ` [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Juha-Pekka Heikkila
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2023-05-30 15:57 UTC (permalink / raw)
To: Sharma, Swati2; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 5732 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add get_num_scalers() (rev2)
URL : https://patchwork.freedesktop.org/series/117935/
State : success
== Summary ==
CI Bug Log - changes from IGT_7310 -> IGTPW_9066
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
Participating hosts (38 -> 35)
------------------------------
Missing (3): fi-kbl-soraka fi-tgl-1115g4 fi-kbl-8809g
Known issues
------------
Here are the changes found in IGTPW_9066 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [PASS][1] -> [ABORT][2] ([i915#7911] / [i915#7913])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/fi-bsw-n3050/igt@i915_selftest@live@execlists.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/fi-bsw-n3050/igt@i915_selftest@live@execlists.html
* igt@i915_selftest@live@requests:
- bat-dg2-11: [PASS][3] -> [ABORT][4] ([i915#7913])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/bat-dg2-11/igt@i915_selftest@live@requests.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-dg2-11/igt@i915_selftest@live@requests.html
* igt@i915_selftest@live@reset:
- bat-rpls-2: NOTRUN -> [ABORT][5] ([i915#4983] / [i915#7461] / [i915#7913] / [i915#8347])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-rpls-2/igt@i915_selftest@live@reset.html
- bat-rpls-1: [PASS][6] -> [ABORT][7] ([i915#4983] / [i915#7461] / [i915#8347] / [i915#8384])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/bat-rpls-1/igt@i915_selftest@live@reset.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-rpls-1/igt@i915_selftest@live@reset.html
#### Possible fixes ####
* igt@core_hotunplug@unbind-rebind:
- {bat-mtlp-6}: [ABORT][8] ([i915#8180]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/bat-mtlp-6/igt@core_hotunplug@unbind-rebind.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-mtlp-6/igt@core_hotunplug@unbind-rebind.html
* igt@i915_module_load@load:
- {bat-adlp-11}: [ABORT][10] ([i915#4423] / [i915#8189]) -> [PASS][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/bat-adlp-11/igt@i915_module_load@load.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-adlp-11/igt@i915_module_load@load.html
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-hsw-4770: [SKIP][12] ([fdo#109271]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/fi-hsw-4770/igt@i915_pm_rpm@basic-pci-d3-state.html
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/fi-hsw-4770/igt@i915_pm_rpm@basic-pci-d3-state.html
* igt@i915_pm_rpm@basic-rte:
- fi-hsw-4770: [FAIL][14] ([i915#7364]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/fi-hsw-4770/igt@i915_pm_rpm@basic-rte.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/fi-hsw-4770/igt@i915_pm_rpm@basic-rte.html
* igt@i915_selftest@live@mman:
- bat-rpls-2: [TIMEOUT][16] ([i915#6794] / [i915#7392]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/bat-rpls-2/igt@i915_selftest@live@mman.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/bat-rpls-2/igt@i915_selftest@live@mman.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#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794
[i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868
[i915#7364]: https://gitlab.freedesktop.org/drm/intel/issues/7364
[i915#7392]: https://gitlab.freedesktop.org/drm/intel/issues/7392
[i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456
[i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461
[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#7953]: https://gitlab.freedesktop.org/drm/intel/issues/7953
[i915#8180]: https://gitlab.freedesktop.org/drm/intel/issues/8180
[i915#8189]: https://gitlab.freedesktop.org/drm/intel/issues/8189
[i915#8347]: https://gitlab.freedesktop.org/drm/intel/issues/8347
[i915#8384]: https://gitlab.freedesktop.org/drm/intel/issues/8384
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7310 -> IGTPW_9066
CI-20190529: 20190529
CI_DRM_13200: 0ae4ee2c735979030a0219218081eee661606921 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9066: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
IGT_7310: 2f9acfea5e3a93303f71cbda6e80ba64b8d75a4d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
[-- Attachment #2: Type: text/html, Size: 6184 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2)
2023-05-30 4:46 [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Swati Sharma
2023-05-30 15:57 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2) Patchwork
@ 2023-05-31 11:14 ` Patchwork
2023-06-01 8:31 ` [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Juha-Pekka Heikkila
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2023-05-31 11:14 UTC (permalink / raw)
To: Swati Sharma; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 19637 bytes --]
== Series Details ==
Series: tests/kms_plane_scaling: add get_num_scalers() (rev2)
URL : https://patchwork.freedesktop.org/series/117935/
State : success
== Summary ==
CI Bug Log - changes from IGT_7310_full -> IGTPW_9066_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
Participating hosts (7 -> 8)
------------------------------
Additional (1): shard-rkl0
New tests
---------
New tests have been introduced between IGT_7310_full and IGTPW_9066_full:
### New IGT tests (2) ###
* igt@kms_plane_scaling@plane-scaler-with-rotation-unity-scaling@pipe-a-hdmi-a-2:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_plane_scaling@plane-upscale-with-modifiers-20x20@pipe-a-hdmi-a-2:
- Statuses : 1 pass(s)
- Exec time: [0.0] s
Known issues
------------
Here are the changes found in IGTPW_9066_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-deadline:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#2846])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk8/igt@gem_exec_fair@basic-deadline.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk6/igt@gem_exec_fair@basic-deadline.html
* igt@gem_exec_fair@basic-pace@vcs0:
- shard-glk: [PASS][3] -> [FAIL][4] ([i915#2842]) +2 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk9/igt@gem_exec_fair@basic-pace@vcs0.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk5/igt@gem_exec_fair@basic-pace@vcs0.html
* igt@kms_async_flips@alternate-sync-async-flip@pipe-c-hdmi-a-1:
- shard-glk: [PASS][5] -> [FAIL][6] ([i915#2521])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk5/igt@kms_async_flips@alternate-sync-async-flip@pipe-c-hdmi-a-1.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk8/igt@kms_async_flips@alternate-sync-async-flip@pipe-c-hdmi-a-1.html
* igt@kms_cursor_crc@cursor-suspend@pipe-c-dp-1:
- shard-apl: [PASS][7] -> [ABORT][8] ([i915#180]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl7/igt@kms_cursor_crc@cursor-suspend@pipe-c-dp-1.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl2/igt@kms_cursor_crc@cursor-suspend@pipe-c-dp-1.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-glk: [PASS][9] -> [FAIL][10] ([i915#2346])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_flip@2x-plain-flip:
- shard-snb: NOTRUN -> [SKIP][11] ([fdo#109271]) +6 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-snb4/igt@kms_flip@2x-plain-flip.html
* igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-5:
- shard-snb: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#4579]) +46 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-snb5/igt@kms_plane_scaling@plane-downscale-with-modifiers-factor-0-5.html
* igt@kms_plane_scaling@plane-scaler-with-rotation-unity-scaling@pipe-a-hdmi-a-2 (NEW):
- {shard-rkl}: NOTRUN -> [SKIP][13] ([i915#5176])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-rkl-4/igt@kms_plane_scaling@plane-scaler-with-rotation-unity-scaling@pipe-a-hdmi-a-2.html
#### Possible fixes ####
* igt@gem_barrier_race@remote-request@rcs0:
- {shard-tglu}: [ABORT][14] ([i915#8211] / [i915#8234]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-tglu-10/igt@gem_barrier_race@remote-request@rcs0.html
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-tglu-5/igt@gem_barrier_race@remote-request@rcs0.html
* igt@gem_ctx_exec@basic-nohangcheck:
- {shard-tglu}: [FAIL][16] ([i915#6268]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-tglu-9/igt@gem_ctx_exec@basic-nohangcheck.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-tglu-10/igt@gem_ctx_exec@basic-nohangcheck.html
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [FAIL][18] ([i915#2842]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl7/igt@gem_exec_fair@basic-none-solo@rcs0.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl1/igt@gem_exec_fair@basic-none-solo@rcs0.html
* igt@gem_exec_fair@basic-none@bcs0:
- {shard-rkl}: [FAIL][20] ([i915#2842]) -> [PASS][21] +2 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-rkl-6/igt@gem_exec_fair@basic-none@bcs0.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-rkl-3/igt@gem_exec_fair@basic-none@bcs0.html
* igt@i915_pm_dc@dc9-dpms:
- shard-apl: [SKIP][22] ([fdo#109271]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl6/igt@i915_pm_dc@dc9-dpms.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl7/igt@i915_pm_dc@dc9-dpms.html
* igt@i915_pm_rc6_residency@rc6-idle@vcs0:
- {shard-dg1}: [FAIL][24] ([i915#3591]) -> [PASS][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-dg1-14/igt@i915_pm_rc6_residency@rc6-idle@vcs0.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-dg1-16/igt@i915_pm_rc6_residency@rc6-idle@vcs0.html
* igt@i915_pm_rpm@dpms-non-lpsp:
- {shard-rkl}: [SKIP][26] ([i915#1397]) -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-rkl-7/igt@i915_pm_rpm@dpms-non-lpsp.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-rkl-2/igt@i915_pm_rpm@dpms-non-lpsp.html
* igt@i915_selftest@live@workarounds:
- {shard-dg1}: [ABORT][28] ([i915#4983]) -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-dg1-16/igt@i915_selftest@live@workarounds.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-dg1-17/igt@i915_selftest@live@workarounds.html
* igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip:
- {shard-rkl}: [FAIL][30] ([i915#3743]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-rkl-7/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-rkl-7/igt@kms_big_fb@y-tiled-max-hw-stride-32bpp-rotate-180-hflip-async-flip.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-apl: [FAIL][32] ([IGT#6] / [i915#2346]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
#### Warnings ####
* igt@kms_content_protection@lic:
- shard-glk: [SKIP][34] ([IGT#6] / [fdo#109271] / [i915#4579]) -> [SKIP][35] ([fdo#109271] / [i915#4579]) +23 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk3/igt@kms_content_protection@lic.html
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk3/igt@kms_content_protection@lic.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [FAIL][36] ([IGT#6] / [i915#2346]) -> [FAIL][37] ([i915#2346])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk8/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
* igt@kms_fbcon_fbt@fbc-suspend:
- shard-glk: [FAIL][38] ([IGT#6] / [i915#4767]) -> [FAIL][39] ([i915#4767])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk5/igt@kms_fbcon_fbt@fbc-suspend.html
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk1/igt@kms_fbcon_fbt@fbc-suspend.html
* igt@kms_plane_alpha_blend@alpha-basic@pipe-c-dp-1:
- shard-apl: [FAIL][40] ([IGT#6] / [i915#7862]) -> [FAIL][41] ([i915#7862])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl7/igt@kms_plane_alpha_blend@alpha-basic@pipe-c-dp-1.html
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl7/igt@kms_plane_alpha_blend@alpha-basic@pipe-c-dp-1.html
* igt@kms_psr@psr2_sprite_plane_onoff:
- shard-apl: [SKIP][42] ([IGT#6] / [fdo#109271]) -> [SKIP][43] ([fdo#109271]) +545 similar issues
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl7/igt@kms_psr@psr2_sprite_plane_onoff.html
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl4/igt@kms_psr@psr2_sprite_plane_onoff.html
* igt@kms_vblank@pipe-d-wait-busy-hang:
- shard-glk: [SKIP][44] ([IGT#6] / [fdo#109271]) -> [SKIP][45] ([fdo#109271]) +395 similar issues
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk2/igt@kms_vblank@pipe-d-wait-busy-hang.html
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk8/igt@kms_vblank@pipe-d-wait-busy-hang.html
* igt@kms_vblank@pipe-d-wait-idle:
- shard-apl: [SKIP][46] ([IGT#6] / [fdo#109271] / [i915#533]) -> [SKIP][47] ([fdo#109271] / [i915#533])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl4/igt@kms_vblank@pipe-d-wait-idle.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl3/igt@kms_vblank@pipe-d-wait-idle.html
- shard-glk: [SKIP][48] ([IGT#6] / [fdo#109271] / [i915#533]) -> [SKIP][49] ([fdo#109271] / [i915#533])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-glk7/igt@kms_vblank@pipe-d-wait-idle.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-glk6/igt@kms_vblank@pipe-d-wait-idle.html
* igt@kms_vrr@flip-suspend:
- shard-apl: [SKIP][50] ([IGT#6] / [fdo#109271] / [i915#4579]) -> [SKIP][51] ([fdo#109271] / [i915#4579]) +18 similar issues
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7310/shard-apl4/igt@kms_vrr@flip-suspend.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/shard-apl3/igt@kms_vrr@flip-suspend.html
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#6]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/6
[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#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#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[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#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[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#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2521]: https://gitlab.freedesktop.org/drm/intel/issues/2521
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#3023]: https://gitlab.freedesktop.org/drm/intel/issues/3023
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[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#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[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#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391
[i915#4423]: https://gitlab.freedesktop.org/drm/intel/issues/4423
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4818]: https://gitlab.freedesktop.org/drm/intel/issues/4818
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4881]: https://gitlab.freedesktop.org/drm/intel/issues/4881
[i915#4884]: https://gitlab.freedesktop.org/drm/intel/issues/4884
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[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#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#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[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#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7862]: https://gitlab.freedesktop.org/drm/intel/issues/7862
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011
[i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211
[i915#8213]: https://gitlab.freedesktop.org/drm/intel/issues/8213
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8234]: https://gitlab.freedesktop.org/drm/intel/issues/8234
[i915#8304]: https://gitlab.freedesktop.org/drm/intel/issues/8304
[i915#8381]: https://gitlab.freedesktop.org/drm/intel/issues/8381
[i915#8414]: https://gitlab.freedesktop.org/drm/intel/issues/8414
[i915#8516]: https://gitlab.freedesktop.org/drm/intel/issues/8516
[i915#8555]: https://gitlab.freedesktop.org/drm/intel/issues/8555
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7310 -> IGTPW_9066
CI-20190529: 20190529
CI_DRM_13200: 0ae4ee2c735979030a0219218081eee661606921 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_9066: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
IGT_7310: 2f9acfea5e3a93303f71cbda6e80ba64b8d75a4d @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_9066/index.html
[-- Attachment #2: Type: text/html, Size: 16444 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers()
2023-05-30 4:46 [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Swati Sharma
2023-05-30 15:57 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2) Patchwork
2023-05-31 11:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2023-06-01 8:31 ` Juha-Pekka Heikkila
2 siblings, 0 replies; 4+ messages in thread
From: Juha-Pekka Heikkila @ 2023-06-01 8:31 UTC (permalink / raw)
To: Swati Sharma, igt-dev
On 30.5.2023 7.46, Swati Sharma wrote:
> Verify the count of supported scalers per CRTC, and proceed with
> executing tests if the necessary number of scalers is available.
> With the exception of "planes-.*" and "2x-scaler-multi-pipe"
> subtests, a minimum of 1 scaler is needed for all other tests,
> while these specific tests require a minimum of 2 scalers.
>
> v2: -improved commit message (Kamil)
> -handled get_num_scalers() for non-intel devices (Kamil)
>
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
> tests/kms_plane_scaling.c | 50 +++++++++++++++++++++++++++++++++++++++
> 1 file changed, 50 insertions(+)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index 0e7cd4a2..4033d2ea 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -368,6 +368,32 @@ const struct {
> },
> };
>
> +/* Returns num_scalers from the crtc debugfs. */
> +static int get_num_scalers(data_t *data, enum pipe pipe)
pipe parameter is not used for anything.
> +{
> + char buf[512];
> + char *start_loc;
> + int dir, res;
> + int num_scalers = 0;
> +
> + if (is_intel_device(data->drm_fd) &&
> + intel_display_ver(intel_get_drm_devid(data->drm_fd)) >= 9) {
> +
> + dir = igt_debugfs_dir(data->drm_fd);
> + igt_assert(dir >= 0);
> +
> + res = igt_debugfs_simple_read(dir, "i915_display_info", buf, sizeof(buf));
> + close(dir);
> + igt_require(res > 0);
> +
> + igt_assert(start_loc = strstr(buf, "num_scalers="));
> + igt_assert_eq(sscanf(start_loc, "num_scalers=%d", &num_scalers), 1);
Here is looked for first instance of "num_scalers=" which likely will
fit into first 512 characters, that will be amount of scalers on pipe-a.
> +
> + }
> +
> + return num_scalers;
> +}
> +
Fixing above function to get scaler from requested pipe probably could
go live somewhere under lib/
> static int get_width(drmModeModeInfo *mode, double scaling_factor)
> {
> if (scaling_factor == 0.0)
> @@ -873,6 +899,9 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)
> igt_output_set_pipe(output1, pipe1);
> igt_output_set_pipe(output2, pipe2);
>
> + igt_require(get_num_scalers(d, pipe1) >= 2);
> + igt_require(get_num_scalers(d, pipe2) >= 2);
Here regardless of what pipe1 and pipe2 are is in both cases required
there are 2 or more scalers on pipe-a, this is the same as on all
following similar calls to get_num_scalers().
/Juha-Pekka
> +
> plane[0] = igt_output_get_plane(output1, 0);
> igt_require(plane[0]);
> plane[1] = igt_output_get_plane(output1, 0);
> @@ -963,6 +992,8 @@ static void invalid_parameter_tests(data_t *d)
> igt_output_set_pipe(output, pipe);
> plane = igt_output_get_plane_type(output, DRM_PLANE_TYPE_PRIMARY);
>
> + igt_require(get_num_scalers(d, pipe) >= 1);
> +
> igt_create_fb(d->drm_fd, 256, 256,
> DRM_FORMAT_XRGB8888,
> DRM_FORMAT_MOD_LINEAR,
> @@ -1138,6 +1169,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1161,6 +1194,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1184,6 +1219,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1206,6 +1243,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1224,6 +1263,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1242,6 +1283,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1260,6 +1303,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 2)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s", kmstest_pipe_name(pipe), igt_output_name(output)) {
> drmModeModeInfo *mode = igt_output_get_mode(output);
> @@ -1282,6 +1327,9 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> igt_subtest_with_dynamic(intel_paramtests[index].testname) {
> igt_require_intel(data.drm_fd);
> for_each_pipe(&data.display, pipe) {
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
> +
> for_each_valid_output_on_pipe(&data.display, pipe, output) {
> drmModeModeInfo *mode = NULL;
> /*
> @@ -1307,6 +1355,8 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)
> for_each_pipe_with_valid_output(&data.display, pipe, output) {
> if (!pipe_output_combo_valid(&data.display, pipe, output))
> continue;
> + if (get_num_scalers(&data, pipe) < 1)
> + continue;
>
> igt_dynamic_f("pipe-%s-%s-invalid-num-scalers",
> kmstest_pipe_name(pipe), igt_output_name(output))
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-01 8:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 4:46 [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() Swati Sharma
2023-05-30 15:57 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: add get_num_scalers() (rev2) Patchwork
2023-05-31 11:14 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-06-01 8:31 ` [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: add get_num_scalers() 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