* [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector
@ 2023-03-27 12:36 Ville Syrjala
2023-03-27 15:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Ville Syrjala @ 2023-03-27 12:36 UTC (permalink / raw)
To: igt-dev
From: Ville Syrjälä <ville.syrjala@linux.intel.com>
Certain panels have a preferred mode with a vblank that is
too short for the PSR setup time, but also expose an alternate
lower refresh rate mode where PSR is actually possible.
Go through all the modes until one is found where PSR works.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
tests/i915/kms_psr.c | 37 +++++++++++++++++++++++++++----------
1 file changed, 27 insertions(+), 10 deletions(-)
diff --git a/tests/i915/kms_psr.c b/tests/i915/kms_psr.c
index c92902343ea3..3efe1faec8e7 100644
--- a/tests/i915/kms_psr.c
+++ b/tests/i915/kms_psr.c
@@ -109,7 +109,6 @@ static void setup_output(data_t *data)
data->crtc_id = output->config.crtc->crtc_id;
data->output = output;
- data->mode = igt_output_get_mode(output);
return;
}
@@ -369,6 +368,8 @@ static void test_cleanup(data_t *data)
{
igt_plane_t *primary;
+ igt_output_override_mode(data->output, NULL);
+
primary = igt_output_get_plane_type(data->output,
DRM_PLANE_TYPE_PRIMARY);
igt_plane_set_fb(primary, NULL);
@@ -440,17 +441,33 @@ static void setup_test_plane(data_t *data, int test_plane)
static void test_setup(data_t *data)
{
+ drmModeConnectorPtr connector;
+ bool psr_entered = false;
+
igt_require_f(data->output,
"No available output found\n");
- igt_require_f(data->mode,
- "No available mode found on %s\n",
- data->output->name);
- if (data->op_psr_mode == PSR_MODE_2)
- igt_require(data->supports_psr2);
-
- psr_enable_if_enabled(data);
- setup_test_plane(data, data->test_plane_id);
- igt_assert(psr_wait_entry_if_enabled(data));
+
+ connector = data->output->config.connector;
+
+ for (int i = 0; i < connector->count_modes; i++) {
+ data->mode = &connector->modes[i];
+ igt_info("Testing mode:\n");
+ kmstest_dump_mode(data->mode);
+
+ igt_output_override_mode(data->output, data->mode);
+
+ if (data->op_psr_mode == PSR_MODE_2)
+ igt_require(data->supports_psr2);
+
+ psr_enable_if_enabled(data);
+ setup_test_plane(data, data->test_plane_id);
+ if (psr_wait_entry_if_enabled(data)) {
+ psr_entered = true;
+ break;
+ }
+ }
+
+ igt_assert(psr_entered);
}
static void dpms_off_on(data_t *data)
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_psr: Try all modes on the connector
2023-03-27 12:36 [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector Ville Syrjala
@ 2023-03-27 15:50 ` Patchwork
2023-03-27 21:26 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-03-31 14:11 ` [igt-dev] [PATCH i-g-t] " Sharma, Swati2
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2023-03-27 15:50 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 6190 bytes --]
== Series Details ==
Series: tests/kms_psr: Try all modes on the connector
URL : https://patchwork.freedesktop.org/series/115662/
State : success
== Summary ==
CI Bug Log - changes from IGT_7221 -> IGTPW_8685
====================================================
Summary
-------
**WARNING**
Minor unknown changes coming with IGTPW_8685 need to be verified
manually.
If you think the reported changes have nothing to do with the changes
introduced in IGTPW_8685, 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_8685/index.html
Participating hosts (36 -> 37)
------------------------------
Additional (1): fi-kbl-soraka
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8685:
### IGT changes ###
#### Warnings ####
* igt@i915_module_load@load:
- bat-atsm-1: [ABORT][1] ([i915#8219]) -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-atsm-1/igt@i915_module_load@load.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-atsm-1/igt@i915_module_load@load.html
Known issues
------------
Here are the changes found in IGTPW_8685 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3@smem:
- bat-rpls-1: [PASS][3] -> [ABORT][4] ([i915#6687] / [i915#7978])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-rpls-1/igt@gem_exec_suspend@basic-s3@smem.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-rpls-1/igt@gem_exec_suspend@basic-s3@smem.html
* igt@gem_huc_copy@huc-copy:
- fi-kbl-soraka: NOTRUN -> [SKIP][5] ([fdo#109271] / [i915#2190])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/fi-kbl-soraka/igt@gem_huc_copy@huc-copy.html
* igt@gem_lmem_swapping@basic:
- fi-kbl-soraka: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#4613]) +3 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/fi-kbl-soraka/igt@gem_lmem_swapping@basic.html
* igt@i915_selftest@live@gt_heartbeat:
- fi-glk-j4005: [PASS][7] -> [DMESG-FAIL][8] ([i915#5334])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@gt_pm:
- fi-kbl-soraka: NOTRUN -> [DMESG-FAIL][9] ([i915#1886])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html
* igt@i915_selftest@live@slpc:
- bat-rpls-1: [PASS][10] -> [DMESG-FAIL][11] ([i915#6367] / [i915#7996])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-rpls-1/igt@i915_selftest@live@slpc.html
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-rpls-1/igt@i915_selftest@live@slpc.html
* igt@kms_chamelium_frames@hdmi-crc-fast:
- fi-kbl-soraka: NOTRUN -> [SKIP][12] ([fdo#109271]) +16 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/fi-kbl-soraka/igt@kms_chamelium_frames@hdmi-crc-fast.html
#### Possible fixes ####
* igt@i915_pm_rps@basic-api:
- bat-dg2-11: [FAIL][13] ([i915#8308]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-dg2-11/igt@i915_pm_rps@basic-api.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-dg2-11/igt@i915_pm_rps@basic-api.html
* igt@kms_psr@sprite_plane_onoff:
- bat-jsl-1: [FAIL][15] ([i915#132] / [i915#3003]) -> [PASS][16] +3 similar issues
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-jsl-1/igt@kms_psr@sprite_plane_onoff.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-jsl-1/igt@kms_psr@sprite_plane_onoff.html
- bat-jsl-3: [FAIL][17] ([i915#132] / [i915#3003]) -> [PASS][18] +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-jsl-3/igt@kms_psr@sprite_plane_onoff.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-jsl-3/igt@kms_psr@sprite_plane_onoff.html
#### Warnings ####
* igt@i915_selftest@live@slpc:
- bat-rpls-2: [DMESG-FAIL][19] ([i915#6367] / [i915#7913] / [i915#7996]) -> [DMESG-FAIL][20] ([i915#6997] / [i915#7913])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/bat-rpls-2/igt@i915_selftest@live@slpc.html
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/bat-rpls-2/igt@i915_selftest@live@slpc.html
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#3003]: https://gitlab.freedesktop.org/drm/intel/issues/3003
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7978]: https://gitlab.freedesktop.org/drm/intel/issues/7978
[i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996
[i915#8219]: https://gitlab.freedesktop.org/drm/intel/issues/8219
[i915#8308]: https://gitlab.freedesktop.org/drm/intel/issues/8308
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7221 -> IGTPW_8685
CI-20190529: 20190529
CI_DRM_12920: 78054149ebf825810cd893726be90865a6faf25e @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8685: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/index.html
IGT_7221: 4b77c6d85024d22ca521d510f8eee574128fe04f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/index.html
[-- Attachment #2: Type: text/html, Size: 7527 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/kms_psr: Try all modes on the connector
2023-03-27 12:36 [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector Ville Syrjala
2023-03-27 15:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
@ 2023-03-27 21:26 ` Patchwork
2023-03-31 14:11 ` [igt-dev] [PATCH i-g-t] " Sharma, Swati2
2 siblings, 0 replies; 4+ messages in thread
From: Patchwork @ 2023-03-27 21:26 UTC (permalink / raw)
To: Ville Syrjala; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 10891 bytes --]
== Series Details ==
Series: tests/kms_psr: Try all modes on the connector
URL : https://patchwork.freedesktop.org/series/115662/
State : success
== Summary ==
CI Bug Log - changes from IGT_7221_full -> IGTPW_8685_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/index.html
Participating hosts (7 -> 7)
------------------------------
No changes in participating hosts
Known issues
------------
Here are the changes found in IGTPW_8685_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_7221/shard-glk1/igt@gem_exec_fair@basic-deadline.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk1/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_7221/shard-glk3/igt@gem_exec_fair@basic-pace@vcs0.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk1/igt@gem_exec_fair@basic-pace@vcs0.html
* igt@gem_render_copy@y-tiled-to-vebox-x-tiled:
- shard-snb: NOTRUN -> [SKIP][5] ([fdo#109271]) +17 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-snb7/igt@gem_render_copy@y-tiled-to-vebox-x-tiled.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [PASS][6] -> [FAIL][7] ([i915#2346])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
- shard-apl: [PASS][8] -> [FAIL][9] ([i915#2346])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-apl1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html
* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
- shard-glk: NOTRUN -> [SKIP][10] ([fdo#109271])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk6/igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1.html
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a2:
- shard-glk: [PASS][11] -> [FAIL][12] ([i915#2122])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-glk5/igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a2.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk6/igt@kms_flip@flip-vs-expired-vblank-interruptible@b-hdmi-a2.html
#### Possible fixes ####
* igt@i915_pm_dc@dc9-dpms:
- {shard-tglu}: [SKIP][13] ([i915#4281]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-tglu-5/igt@i915_pm_dc@dc9-dpms.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-tglu-10/igt@i915_pm_dc@dc9-dpms.html
* igt@i915_selftest@perf@engine_cs:
- shard-snb: [ABORT][15] ([i915#4528]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-snb5/igt@i915_selftest@perf@engine_cs.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-snb5/igt@i915_selftest@perf@engine_cs.html
* igt@kms_flip@2x-plain-flip-fb-recreate@ab-hdmi-a1-hdmi-a2:
- shard-glk: [FAIL][17] ([i915#2122]) -> [PASS][18]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7221/shard-glk8/igt@kms_flip@2x-plain-flip-fb-recreate@ab-hdmi-a1-hdmi-a2.html
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/shard-glk4/igt@kms_flip@2x-plain-flip-fb-recreate@ab-hdmi-a1-hdmi-a2.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#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[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#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[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#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[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#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[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#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#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[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#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#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3936]: https://gitlab.freedesktop.org/drm/intel/issues/3936
[i915#3952]: https://gitlab.freedesktop.org/drm/intel/issues/3952
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[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#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528
[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#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#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[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#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#5431]: https://gitlab.freedesktop.org/drm/intel/issues/5431
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[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#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[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#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#8155]: https://gitlab.freedesktop.org/drm/intel/issues/8155
[i915#8247]: https://gitlab.freedesktop.org/drm/intel/issues/8247
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7221 -> IGTPW_8685
CI-20190529: 20190529
CI_DRM_12920: 78054149ebf825810cd893726be90865a6faf25e @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8685: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/index.html
IGT_7221: 4b77c6d85024d22ca521d510f8eee574128fe04f @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8685/index.html
[-- Attachment #2: Type: text/html, Size: 6163 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector
2023-03-27 12:36 [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector Ville Syrjala
2023-03-27 15:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-03-27 21:26 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
@ 2023-03-31 14:11 ` Sharma, Swati2
2 siblings, 0 replies; 4+ messages in thread
From: Sharma, Swati2 @ 2023-03-31 14:11 UTC (permalink / raw)
To: Ville Syrjala, igt-dev
LGTM
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
On 27-Mar-23 6:06 PM, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Certain panels have a preferred mode with a vblank that is
> too short for the PSR setup time, but also expose an alternate
> lower refresh rate mode where PSR is actually possible.
> Go through all the modes until one is found where PSR works.
>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> ---
> tests/i915/kms_psr.c | 37 +++++++++++++++++++++++++++----------
> 1 file changed, 27 insertions(+), 10 deletions(-)
>
> diff --git a/tests/i915/kms_psr.c b/tests/i915/kms_psr.c
> index c92902343ea3..3efe1faec8e7 100644
> --- a/tests/i915/kms_psr.c
> +++ b/tests/i915/kms_psr.c
> @@ -109,7 +109,6 @@ static void setup_output(data_t *data)
>
> data->crtc_id = output->config.crtc->crtc_id;
> data->output = output;
> - data->mode = igt_output_get_mode(output);
>
> return;
> }
> @@ -369,6 +368,8 @@ static void test_cleanup(data_t *data)
> {
> igt_plane_t *primary;
>
> + igt_output_override_mode(data->output, NULL);
> +
> primary = igt_output_get_plane_type(data->output,
> DRM_PLANE_TYPE_PRIMARY);
> igt_plane_set_fb(primary, NULL);
> @@ -440,17 +441,33 @@ static void setup_test_plane(data_t *data, int
> test_plane)
>
> static void test_setup(data_t *data)
> {
> + drmModeConnectorPtr connector;
> + bool psr_entered = false;
> +
> igt_require_f(data->output,
> "No available output found\n");
> - igt_require_f(data->mode,
> - "No available mode found on %s\n",
> - data->output->name);
> - if (data->op_psr_mode == PSR_MODE_2)
> - igt_require(data->supports_psr2);
> -
> - psr_enable_if_enabled(data);
> - setup_test_plane(data, data->test_plane_id);
> - igt_assert(psr_wait_entry_if_enabled(data));
> +
> + connector = data->output->config.connector;
> +
> + for (int i = 0; i < connector->count_modes; i++) {
> + data->mode = &connector->modes[i];
> + igt_info("Testing mode:\n");
> + kmstest_dump_mode(data->mode);
> +
> + igt_output_override_mode(data->output, data->mode);
> +
> + if (data->op_psr_mode == PSR_MODE_2)
> + igt_require(data->supports_psr2);
> +
> + psr_enable_if_enabled(data);
> + setup_test_plane(data, data->test_plane_id);
> + if (psr_wait_entry_if_enabled(data)) {
> + psr_entered = true;
> + break;
> + }
> + }
> +
> + igt_assert(psr_entered);
> }
>
> static void dpms_off_on(data_t *data)
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-31 14:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 12:36 [igt-dev] [PATCH i-g-t] tests/kms_psr: Try all modes on the connector Ville Syrjala
2023-03-27 15:50 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-03-27 21:26 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2023-03-31 14:11 ` [igt-dev] [PATCH i-g-t] " Sharma, Swati2
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.