* [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes
@ 2023-05-09 2:02 Nidhi Gupta
2023-05-09 2:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Nidhi Gupta @ 2023-05-09 2:02 UTC (permalink / raw)
To: igt-dev; +Cc: Nidhi Gupta
In present situation the test is executing only for single mode,
execute the test for the next mode supported by the connector if
the first one is invalid to enable fbc.
Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com>
---
tests/i915/kms_fbcon_fbt.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/tests/i915/kms_fbcon_fbt.c b/tests/i915/kms_fbcon_fbt.c
index 831ec867..543426d1 100644
--- a/tests/i915/kms_fbcon_fbt.c
+++ b/tests/i915/kms_fbcon_fbt.c
@@ -37,6 +37,7 @@ IGT_TEST_DESCRIPTION("Test the relationship between fbcon and the frontbuffer "
"tracking infrastructure.");
#define MAX_CONNECTORS 32
+int j = 0;
struct drm_info {
int fd, debugfs_fd;
@@ -164,14 +165,14 @@ typedef bool (*connector_possible_fn)(drmModeConnectorPtr connector);
static void set_mode_for_one_screen(struct drm_info *drm,
connector_possible_fn connector_possible)
{
- int i, rc;
+ int rc;
uint32_t crtc_id;
drmModeModeInfoPtr mode;
uint32_t buffer_id;
drmModeConnectorPtr c = NULL;
- for (i = 0; i < drm->res->count_connectors; i++) {
- c = drm->connectors[i];
+ for (;j < drm->res->count_connectors; j++) {
+ c = drm->connectors[j];
if (c->connection == DRM_MODE_CONNECTED && c->count_modes &&
connector_possible(c)) {
@@ -179,7 +180,7 @@ static void set_mode_for_one_screen(struct drm_info *drm,
break;
}
}
- igt_require_f(i < drm->res->count_connectors,
+ igt_require_f(j < drm->res->count_connectors,
"No connector available\n");
crtc_id = kmstest_find_crtc_for_connector(drm->fd, drm->res, c, 0);
@@ -348,7 +349,12 @@ static void subtest(struct drm_info *drm, struct feature *feature, bool suspend)
set_mode_for_one_screen(drm, feature->connector_possible_fn);
wait_user("Screen set.");
- igt_assert(feature->wait_until_enabled(drm->debugfs_fd));
+ if (!(feature->wait_until_enabled(drm->debugfs_fd))) {
+ ++j;
+ set_mode_for_one_screen(drm, feature->connector_possible_fn);
+ wait_user("Screen set for next mode.");
+ igt_assert(feature->wait_until_enabled(drm->debugfs_fd));
+ }
if (suspend) {
igt_system_suspend_autoresume(SUSPEND_STATE_MEM,
--
2.39.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/kms_fbcon_fbt: Execute test on multiple modes 2023-05-09 2:02 [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes Nidhi Gupta @ 2023-05-09 2:36 ` Patchwork 2023-05-09 8:40 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2023-05-09 8:45 ` [igt-dev] [PATCH i-g-t] " Hogander, Jouni 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2023-05-09 2:36 UTC (permalink / raw) To: Nidhi Gupta; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 5325 bytes --] == Series Details == Series: tests/i915/kms_fbcon_fbt: Execute test on multiple modes URL : https://patchwork.freedesktop.org/series/117487/ State : success == Summary == CI Bug Log - changes from CI_DRM_13124 -> IGTPW_8929 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html Participating hosts (40 -> 40) ------------------------------ Additional (1): bat-mtlp-6 Missing (1): fi-snb-2520m Known issues ------------ Here are the changes found in IGTPW_8929 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@i915_selftest@live@requests: - bat-rpls-1: [PASS][1] -> [ABORT][2] ([i915#4983] / [i915#7911] / [i915#7920] / [i915#7953]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/bat-rpls-1/igt@i915_selftest@live@requests.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/bat-rpls-1/igt@i915_selftest@live@requests.html * igt@i915_selftest@live@reset: - bat-rpls-2: [PASS][3] -> [ABORT][4] ([i915#4983] / [i915#7461] / [i915#7913] / [i915#8347]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/bat-rpls-2/igt@i915_selftest@live@reset.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/bat-rpls-2/igt@i915_selftest@live@reset.html #### Possible fixes #### * igt@i915_selftest@live@gt_heartbeat: - fi-kbl-soraka: [DMESG-FAIL][5] ([i915#5334] / [i915#7872]) -> [PASS][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/fi-kbl-soraka/igt@i915_selftest@live@gt_heartbeat.html - fi-glk-j4005: [DMESG-FAIL][7] ([i915#5334]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html * igt@i915_selftest@live@migrate: - bat-dg2-11: [DMESG-FAIL][9] ([i915#7699] / [i915#7913]) -> [PASS][10] [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/bat-dg2-11/igt@i915_selftest@live@migrate.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/bat-dg2-11/igt@i915_selftest@live@migrate.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845 [i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582 [i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546 [i915#3595]: https://gitlab.freedesktop.org/drm/intel/issues/3595 [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637 [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#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212 [i915#4342]: https://gitlab.freedesktop.org/drm/intel/issues/4342 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983 [i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190 [i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274 [i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334 [i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621 [i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645 [i915#7456]: https://gitlab.freedesktop.org/drm/intel/issues/7456 [i915#7461]: https://gitlab.freedesktop.org/drm/intel/issues/7461 [i915#7699]: https://gitlab.freedesktop.org/drm/intel/issues/7699 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#7872]: https://gitlab.freedesktop.org/drm/intel/issues/7872 [i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911 [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913 [i915#7920]: https://gitlab.freedesktop.org/drm/intel/issues/7920 [i915#7953]: https://gitlab.freedesktop.org/drm/intel/issues/7953 [i915#8347]: https://gitlab.freedesktop.org/drm/intel/issues/8347 [i915#8368]: https://gitlab.freedesktop.org/drm/intel/issues/8368 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7283 -> IGTPW_8929 CI-20190529: 20190529 CI_DRM_13124: 28153baed517db8d009844ee992f850a88c9eb33 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8929: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html IGT_7283: ce51f53938690f581b315fa045d41155a5c6ecd3 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html [-- Attachment #2: Type: text/html, Size: 4666 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for tests/i915/kms_fbcon_fbt: Execute test on multiple modes 2023-05-09 2:02 [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes Nidhi Gupta 2023-05-09 2:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2023-05-09 8:40 ` Patchwork 2023-05-09 8:45 ` [igt-dev] [PATCH i-g-t] " Hogander, Jouni 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2023-05-09 8:40 UTC (permalink / raw) To: Nidhi Gupta; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 14765 bytes --] == Series Details == Series: tests/i915/kms_fbcon_fbt: Execute test on multiple modes URL : https://patchwork.freedesktop.org/series/117487/ State : success == Summary == CI Bug Log - changes from CI_DRM_13124_full -> IGTPW_8929_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html Participating hosts (7 -> 7) ------------------------------ No changes in participating hosts Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_8929_full: ### IGT changes ### #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * igt@i915_pm_rps@waitboost: - {shard-dg1}: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-dg1-14/igt@i915_pm_rps@waitboost.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-dg1-15/igt@i915_pm_rps@waitboost.html Known issues ------------ Here are the changes found in IGTPW_8929_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_fair@basic-pace-share@rcs0: - shard-glk: [PASS][3] -> [FAIL][4] ([i915#2842]) +3 similar issues [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-glk2/igt@gem_exec_fair@basic-pace-share@rcs0.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk7/igt@gem_exec_fair@basic-pace-share@rcs0.html * igt@gem_exec_fair@basic-throttle@rcs0: - shard-glk: NOTRUN -> [FAIL][5] ([i915#2842]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk9/igt@gem_exec_fair@basic-throttle@rcs0.html * igt@gem_lmem_swapping@verify-random-ccs: - shard-glk: NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#4613]) +1 similar issue [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk8/igt@gem_lmem_swapping@verify-random-ccs.html * igt@gem_render_copy@y-tiled-to-vebox-x-tiled: - shard-apl: NOTRUN -> [SKIP][7] ([fdo#109271]) +15 similar issues [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-apl2/igt@gem_render_copy@y-tiled-to-vebox-x-tiled.html * igt@gem_userptr_blits@vma-merge: - shard-glk: NOTRUN -> [FAIL][8] ([i915#3318]) [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk5/igt@gem_userptr_blits@vma-merge.html * igt@i915_selftest@live@sanitycheck: - shard-snb: [PASS][9] -> [ABORT][10] ([i915#4528]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-snb6/igt@i915_selftest@live@sanitycheck.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-snb7/igt@i915_selftest@live@sanitycheck.html * igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_mc_ccs: - shard-apl: NOTRUN -> [SKIP][11] ([fdo#109271] / [i915#3886]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-apl2/igt@kms_ccs@pipe-a-random-ccs-data-y_tiled_gen12_mc_ccs.html * igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs: - shard-glk: NOTRUN -> [SKIP][12] ([fdo#109271] / [i915#3886]) +6 similar issues [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk7/igt@kms_ccs@pipe-c-bad-rotation-90-y_tiled_gen12_mc_ccs.html * igt@kms_color@ctm-max@pipe-a-hdmi-a-1: - shard-snb: NOTRUN -> [SKIP][13] ([fdo#109271]) +33 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-snb1/igt@kms_color@ctm-max@pipe-a-hdmi-a-1.html * igt@kms_cursor_crc@cursor-random-max-size: - shard-glk: NOTRUN -> [SKIP][14] ([fdo#109271]) +93 similar issues [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk8/igt@kms_cursor_crc@cursor-random-max-size.html * igt@kms_psr2_sf@overlay-plane-update-continuous-sf: - shard-glk: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#658]) +1 similar issue [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk8/igt@kms_psr2_sf@overlay-plane-update-continuous-sf.html * igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area: - shard-apl: NOTRUN -> [SKIP][16] ([fdo#109271] / [i915#658]) [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-apl7/igt@kms_psr2_sf@overlay-plane-update-sf-dmg-area.html * igt@perf@stress-open-close@0-rcs0: - shard-glk: [PASS][17] -> [ABORT][18] ([i915#5213] / [i915#7941]) [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-glk8/igt@perf@stress-open-close@0-rcs0.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk4/igt@perf@stress-open-close@0-rcs0.html #### Possible fixes #### * igt@gem_ctx_exec@basic-nohangcheck: - {shard-tglu}: [FAIL][19] ([i915#6268]) -> [PASS][20] [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-tglu-5/igt@gem_ctx_exec@basic-nohangcheck.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-tglu-4/igt@gem_ctx_exec@basic-nohangcheck.html * igt@gem_eio@unwedge-stress: - {shard-dg1}: [FAIL][21] ([i915#5784]) -> [PASS][22] +1 similar issue [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-dg1-15/igt@gem_eio@unwedge-stress.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-dg1-18/igt@gem_eio@unwedge-stress.html * igt@gem_ppgtt@blt-vs-render-ctxn: - shard-snb: [FAIL][23] ([i915#8295]) -> [PASS][24] [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-snb6/igt@gem_ppgtt@blt-vs-render-ctxn.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-snb5/igt@gem_ppgtt@blt-vs-render-ctxn.html * igt@i915_pm_rpm@modeset-lpsp: - {shard-rkl}: [SKIP][25] ([i915#1397]) -> [PASS][26] [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-rkl-3/igt@i915_pm_rpm@modeset-lpsp.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-rkl-7/igt@i915_pm_rpm@modeset-lpsp.html * igt@i915_pm_rpm@system-suspend-modeset: - shard-apl: [ABORT][27] ([i915#8424]) -> [PASS][28] [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-apl1/igt@i915_pm_rpm@system-suspend-modeset.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-apl4/igt@i915_pm_rpm@system-suspend-modeset.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions: - shard-glk: [FAIL][29] ([i915#2346]) -> [PASS][30] [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-glk6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk5/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size: - shard-apl: [FAIL][31] ([i915#2346]) -> [PASS][32] [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-apl6/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-apl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html * igt@kms_flip@plain-flip-ts-check-interruptible@b-hdmi-a2: - shard-glk: [FAIL][33] ([i915#2122]) -> [PASS][34] [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-glk1/igt@kms_flip@plain-flip-ts-check-interruptible@b-hdmi-a2.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-glk7/igt@kms_flip@plain-flip-ts-check-interruptible@b-hdmi-a2.html * igt@kms_hdmi_inject@inject-audio: - {shard-tglu}: [SKIP][35] ([i915#433]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-tglu-3/igt@kms_hdmi_inject@inject-audio.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-tglu-3/igt@kms_hdmi_inject@inject-audio.html * igt@prime_self_import@reimport-vs-gem_close-race: - {shard-dg1}: [FAIL][37] ([i915#7951]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13124/shard-dg1-18/igt@prime_self_import@reimport-vs-gem_close-race.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/shard-dg1-17/igt@prime_self_import@reimport-vs-gem_close-race.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#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#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295 [fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315 [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 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397 [i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825 [i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122 [i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346 [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#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842 [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#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291 [i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318 [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555 [i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591 [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#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#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098 [i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103 [i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270 [i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281 [i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433 [i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349 [i915#4528]: https://gitlab.freedesktop.org/drm/intel/issues/4528 [i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812 [i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833 [i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860 [i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176 [i915#5213]: https://gitlab.freedesktop.org/drm/intel/issues/5213 [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#5493]: https://gitlab.freedesktop.org/drm/intel/issues/5493 [i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784 [i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095 [i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268 [i915#6344]: https://gitlab.freedesktop.org/drm/intel/issues/6344 [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#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768 [i915#6786]: https://gitlab.freedesktop.org/drm/intel/issues/6786 [i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697 [i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711 [i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#7941]: https://gitlab.freedesktop.org/drm/intel/issues/7941 [i915#7951]: https://gitlab.freedesktop.org/drm/intel/issues/7951 [i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011 [i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292 [i915#8295]: https://gitlab.freedesktop.org/drm/intel/issues/8295 [i915#8424]: https://gitlab.freedesktop.org/drm/intel/issues/8424 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7283 -> IGTPW_8929 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_13124: 28153baed517db8d009844ee992f850a88c9eb33 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8929: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html IGT_7283: ce51f53938690f581b315fa045d41155a5c6ecd3 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8929/index.html [-- Attachment #2: Type: text/html, Size: 12364 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes 2023-05-09 2:02 [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes Nidhi Gupta 2023-05-09 2:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2023-05-09 8:40 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork @ 2023-05-09 8:45 ` Hogander, Jouni 2 siblings, 0 replies; 4+ messages in thread From: Hogander, Jouni @ 2023-05-09 8:45 UTC (permalink / raw) To: igt-dev@lists.freedesktop.org, Gupta, Nidhi1 Hello Nidhi, See my comment inline below. On Tue, 2023-05-09 at 07:32 +0530, Nidhi Gupta wrote: > In present situation the test is executing only for single mode, > execute the test for the next mode supported by the connector if > the first one is invalid to enable fbc. > > Signed-off-by: Nidhi Gupta <nidhi1.gupta@intel.com> > --- > tests/i915/kms_fbcon_fbt.c | 16 +++++++++++----- > 1 file changed, 11 insertions(+), 5 deletions(-) > > diff --git a/tests/i915/kms_fbcon_fbt.c b/tests/i915/kms_fbcon_fbt.c > index 831ec867..543426d1 100644 > --- a/tests/i915/kms_fbcon_fbt.c > +++ b/tests/i915/kms_fbcon_fbt.c > @@ -37,6 +37,7 @@ IGT_TEST_DESCRIPTION("Test the relationship between > fbcon and the frontbuffer " > "tracking infrastructure."); > > #define MAX_CONNECTORS 32 > +int j = 0; > > struct drm_info { > int fd, debugfs_fd; > @@ -164,14 +165,14 @@ typedef bool > (*connector_possible_fn)(drmModeConnectorPtr connector); > static void set_mode_for_one_screen(struct drm_info *drm, > connector_possible_fn > connector_possible) > { > - int i, rc; > + int rc; > uint32_t crtc_id; > drmModeModeInfoPtr mode; > uint32_t buffer_id; > drmModeConnectorPtr c = NULL; > > - for (i = 0; i < drm->res->count_connectors; i++) { > - c = drm->connectors[i]; > + for (;j < drm->res->count_connectors; j++) { > + c = drm->connectors[j]; See fbc_stride_not_supported() in kms_frontbuffer_tracking.c. You could loop through modes until check fbc_stride_not_supported returns 0. > > if (c->connection == DRM_MODE_CONNECTED && c- > >count_modes && > connector_possible(c)) { > @@ -179,7 +180,7 @@ static void set_mode_for_one_screen(struct > drm_info *drm, > break; > } > } > - igt_require_f(i < drm->res->count_connectors, > + igt_require_f(j < drm->res->count_connectors, > "No connector available\n"); > > crtc_id = kmstest_find_crtc_for_connector(drm->fd, drm->res, > c, 0); > @@ -348,7 +349,12 @@ static void subtest(struct drm_info *drm, struct > feature *feature, bool suspend) > > set_mode_for_one_screen(drm, feature->connector_possible_fn); > wait_user("Screen set."); > - igt_assert(feature->wait_until_enabled(drm->debugfs_fd)); > + if (!(feature->wait_until_enabled(drm->debugfs_fd))) { > + ++j; > + set_mode_for_one_screen(drm, feature- > >connector_possible_fn); > + wait_user("Screen set for next mode."); > + igt_assert(feature->wait_until_enabled(drm- > >debugfs_fd)); > + } > > if (suspend) { > igt_system_suspend_autoresume(SUSPEND_STATE_MEM, ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-09 8:45 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-05-09 2:02 [igt-dev] [PATCH i-g-t] tests/i915/kms_fbcon_fbt: Execute test on multiple modes Nidhi Gupta 2023-05-09 2:36 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2023-05-09 8:40 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork 2023-05-09 8:45 ` [igt-dev] [PATCH i-g-t] " Hogander, Jouni
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox