Skip to contentSkip to conversation

tests/kms_color: Fix multiple failures in deep-color tests

PATCH In review Bhanuprakash Modem 3 participants 4 messages Jul 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tests/kms_color: Fix multiple failures in deep-color tests

This patch will sanitize the system state before starting the subtest. And also, preserve connector's mode to use all over the subtets, since igt_display_reset() will clear it.

---
 tests/kms_color.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
tests/kms_color.c +7 -1
index 6ea721f1..8c15c7be 100644
@@ -839,6 +839,7 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 		if (!panel_supports_deep_color(data->drm_fd, output->name))
 			continue;
 
+		igt_display_reset(&data->display);
 		igt_output_set_prop_value(output, IGT_CONNECTOR_MAX_BPC, 10);
 		igt_output_set_pipe(output, p);
 		igt_display_commit_atomic(&data->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
@@ -850,7 +851,10 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 		data->color_depth = 10;
 		data->drm_format = DRM_FORMAT_XRGB2101010;
 		data->output = output;
-		data->mode = igt_output_get_mode(data->output);
+
+		data->mode = malloc(sizeof(drmModeModeInfo));
+		igt_assert(data->mode);
+		memcpy(data->mode, igt_output_get_mode(data->output), sizeof(drmModeModeInfo));
 
 		igt_dynamic_f("pipe-%s-%s-gamma", kmstest_pipe_name(p), output->name) {
 			igt_display_reset(&data->display);
@@ -884,6 +888,8 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
 			igt_assert(ret);
 		}
 
+		free(data->mode);
+
 		break;
 	}
 
Signature · 1 line
2.35.1
#1 lore raw

PATCH 2/2 HAX: Add deep-color tests to BAT

---
 tests/intel-ci/fast-feedback.testlist | 1 +
 1 file changed, 1 insertion(+)
tests/intel-ci/fast-feedback.testlist +1 -0
index bd5538a0..84fadce3 100644
@@ -99,6 +99,7 @@ igt@kms_chamelium@hdmi-edid-read
 igt@kms_chamelium@hdmi-crc-fast
 igt@kms_chamelium@vga-hpd-fast
 igt@kms_chamelium@vga-edid-read
+igt@kms_color@deep-color
 igt@kms_prop_blob@basic
 igt@kms_cursor_legacy@basic-busy-flip-before-cursor
 igt@kms_cursor_legacy@basic-flip-after-cursor
Signature · 1 line
2.35.1
#2 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] tests/kms_color: Fix multiple failures in deep-color tests

In reply to Bhanuprakash Modem
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/2] tests/kms_color: Fix multiple failures in deep-color tests
URL : https://patchwork.freedesktop.org/series/106327/
State : failure

== Summary ==

CI Bug Log - changes from IGT_6581 -> IGTPW_7518
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_7518 absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_7518, 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_7518/index.html

Participating hosts (33 -> 41)
------------------------------

Additional (8): bat-dg1-5 bat-dg2-8 bat-adlm-1 bat-dg2-9 bat-adlp-6 bat-jsl-3 bat-rpls-2 bat-jsl-1

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_7518:

### IGT changes ###

#### Possible regressions ####

* igt@kms_color@deep-color:
- bat-dg1-5: NOTRUN -> [SKIP][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@kms_cursor_legacy@basic-flip-after-cursor@atomic:
- {bat-dg2-9}: NOTRUN -> [INCOMPLETE][2]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg2-9/igt@kms_cursor_legacy@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc:
- {bat-adlm-1}: NOTRUN -> [SKIP][3] +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-adlm-1/igt@[email protected]

New tests
---------

New tests have been introduced between IGT_6581 and IGTPW_7518:

### New IGT tests (12) ###

* igt@kms_color@deep-color@pipe-a-dp-3-ctm:
- Statuses : 1 pass(s)
- Exec time: [47.66] s

* igt@kms_color@deep-color@pipe-a-dp-3-degamma:
- Statuses : 1 pass(s)
- Exec time: [47.76] s

* igt@kms_color@deep-color@pipe-a-dp-3-gamma:
- Statuses : 1 pass(s)
- Exec time: [47.77] s

* igt@kms_color@deep-color@pipe-b-dp-3-ctm:
- Statuses : 1 pass(s)
- Exec time: [47.76] s

* igt@kms_color@deep-color@pipe-b-dp-3-degamma:
- Statuses : 1 pass(s)
- Exec time: [47.69] s

* igt@kms_color@deep-color@pipe-b-dp-3-gamma:
- Statuses : 1 pass(s)
- Exec time: [40.39] s

* igt@kms_color@deep-color@pipe-c-dp-3-ctm:
- Statuses : 1 pass(s)
- Exec time: [47.72] s

* igt@kms_color@deep-color@pipe-c-dp-3-degamma:
- Statuses : 1 pass(s)
- Exec time: [47.75] s

* igt@kms_color@deep-color@pipe-c-dp-3-gamma:
- Statuses : 1 pass(s)
- Exec time: [47.83] s

* igt@kms_color@deep-color@pipe-d-dp-3-ctm:
- Statuses : 1 pass(s)
- Exec time: [47.67] s

* igt@kms_color@deep-color@pipe-d-dp-3-degamma:
- Statuses : 1 pass(s)
- Exec time: [48.13] s

* igt@kms_color@deep-color@pipe-d-dp-3-gamma:
- Statuses : 1 pass(s)
- Exec time: [47.67] s

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

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

### IGT changes ###

#### Issues hit ####

* igt@fbdev@nullptr:
- bat-dg1-5: NOTRUN -> [SKIP][4] ([i915#2582]) +4 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@gem_mmap@basic:
- bat-dg1-5: NOTRUN -> [SKIP][5] ([i915#4083])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@gem_tiled_blits@basic:
- bat-dg1-5: NOTRUN -> [SKIP][6] ([i915#4077]) +2 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-dg1-5: NOTRUN -> [SKIP][7] ([i915#4079]) +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@gem_tiled_pread_basic.html

* igt@i915_pm_backlight@basic-brightness:
- bat-dg1-5: NOTRUN -> [SKIP][8] ([i915#1155])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@i915_pm_rpm@module-reload:
- fi-cfl-8109u: [PASS][9] -> [DMESG-FAIL][10] ([i915#62])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-cfl-8109u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8109u/igt@[email protected]

* igt@i915_selftest@live@gem_contexts:
- fi-bdw-5557u: [PASS][11] -> [INCOMPLETE][12] ([i915#5502])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-bdw-5557u/igt@i915_selftest@live@gem_contexts.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bdw-5557u/igt@i915_selftest@live@gem_contexts.html

* igt@i915_selftest@live@hangcheck:
- fi-hsw-g3258: [PASS][13] -> [INCOMPLETE][14] ([i915#4785])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-hsw-g3258/igt@i915_selftest@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-hsw-g3258/igt@i915_selftest@[email protected]
- bat-dg1-5: NOTRUN -> [DMESG-FAIL][15] ([i915#4494] / [i915#4957])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@late_gt_pm:
- fi-cfl-8109u: [PASS][16] -> [DMESG-WARN][17] ([i915#5904]) +28 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8109u/igt@i915_selftest@live@late_gt_pm.html

* igt@i915_suspend@basic-s2idle-without-i915:
- fi-cfl-8109u: [PASS][18] -> [DMESG-WARN][19] ([i915#5904] / [i915#62])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-cfl-8109u/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8109u/igt@[email protected]
- bat-dg1-5: NOTRUN -> [INCOMPLETE][20] ([i915#6011])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@i915_suspend@basic-s3-without-i915:
- fi-icl-u2: NOTRUN -> [SKIP][21] ([i915#5903])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-icl-u2/igt@[email protected]

* igt@kms_addfb_basic@basic-x-tiled-legacy:
- bat-dg1-5: NOTRUN -> [SKIP][22] ([i915#4212]) +7 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-dg1-5: NOTRUN -> [SKIP][23] ([i915#4215])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_busy@basic:
- bat-dg1-5: NOTRUN -> [SKIP][24] ([i915#1845] / [i915#4303])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-bsw-n3050: NOTRUN -> [SKIP][25] ([fdo#109271] / [fdo#111827])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bsw-n3050/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][26] ([fdo#111827])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-icl-u2/igt@[email protected]

* igt@kms_chamelium@dp-crc-fast:
- bat-dg1-5: NOTRUN -> [SKIP][27] ([fdo#111827]) +7 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_color@deep-color:
- fi-glk-j4005: NOTRUN -> [SKIP][28] ([fdo#109271])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-glk-j4005/igt@[email protected]
- fi-snb-2600: NOTRUN -> [SKIP][29] ([fdo#109271])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-snb-2600/igt@[email protected]
- fi-skl-6700k2: NOTRUN -> [SKIP][30] ([fdo#109271])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-skl-6700k2/igt@[email protected]
- fi-cfl-8109u: NOTRUN -> [SKIP][31] ([fdo#109271])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8109u/igt@[email protected]
- fi-kbl-7567u: NOTRUN -> [SKIP][32] ([fdo#109271])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-kbl-7567u/igt@[email protected]
- fi-kbl-8809g: NOTRUN -> [SKIP][33] ([fdo#109271])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-kbl-8809g/igt@[email protected]
- fi-ilk-650: NOTRUN -> [SKIP][34] ([fdo#109271])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-ilk-650/igt@[email protected]
- fi-cfl-guc: NOTRUN -> [SKIP][35] ([fdo#109271])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-guc/igt@[email protected]
- fi-skl-6600u: NOTRUN -> [SKIP][36] ([fdo#109271])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-skl-6600u/igt@[email protected]
- fi-bdw-5557u: NOTRUN -> [SKIP][37] ([fdo#109271])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bdw-5557u/igt@[email protected]
- fi-snb-2520m: NOTRUN -> [SKIP][38] ([fdo#109271])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-snb-2520m/igt@[email protected]
- fi-rkl-guc: NOTRUN -> [SKIP][39] ([i915#3555])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-rkl-guc/igt@[email protected]
- fi-skl-guc: NOTRUN -> [SKIP][40] ([fdo#109271])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-skl-guc/igt@[email protected]
- fi-cfl-8700k: NOTRUN -> [SKIP][41] ([fdo#109271])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8700k/igt@[email protected]
- fi-blb-e6850: NOTRUN -> [SKIP][42] ([fdo#109271])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-blb-e6850/igt@[email protected]
- fi-bsw-nick: NOTRUN -> [SKIP][43] ([fdo#109271])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bsw-nick/igt@[email protected]
- fi-icl-u2: NOTRUN -> [SKIP][44] ([i915#3555])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-icl-u2/igt@[email protected]
- fi-bdw-gvtdvm: NOTRUN -> [SKIP][45] ([fdo#109271])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bdw-gvtdvm/igt@[email protected]
- fi-bsw-kefka: NOTRUN -> [SKIP][46] ([fdo#109271])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bsw-kefka/igt@[email protected]
- fi-hsw-4770: NOTRUN -> [SKIP][47] ([fdo#109271])
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-hsw-4770/igt@[email protected]
- fi-ivb-3770: NOTRUN -> [SKIP][48] ([fdo#109271])
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-ivb-3770/igt@[email protected]
- fi-elk-e7500: NOTRUN -> [SKIP][49] ([fdo#109271])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-elk-e7500/igt@[email protected]
- fi-kbl-guc: NOTRUN -> [SKIP][50] ([fdo#109271])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-kbl-guc/igt@[email protected]
- fi-hsw-g3258: NOTRUN -> [SKIP][51] ([fdo#109271])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-hsw-g3258/igt@[email protected]
- fi-bxt-dsi: NOTRUN -> [SKIP][52] ([fdo#109271])
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bxt-dsi/igt@[email protected]
- fi-bsw-n3050: NOTRUN -> [SKIP][53] ([fdo#109271])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bsw-n3050/igt@[email protected]
- fi-glk-dsi: NOTRUN -> [SKIP][54] ([fdo#109271])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-glk-dsi/igt@[email protected]
- fi-pnv-d510: NOTRUN -> [SKIP][55] ([fdo#109271])
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-pnv-d510/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-dg1-5: NOTRUN -> [SKIP][56] ([fdo#109285])
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-cfl-8109u: [PASS][57] -> [DMESG-WARN][58] ([i915#62]) +12 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-cfl-8109u/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-cfl-8109u/igt@[email protected]

* igt@kms_pipe_crc_basic@nonblocking-crc:
- bat-dg1-5: NOTRUN -> [SKIP][59] ([i915#4078]) +13 similar issues
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@kms_psr@primary_page_flip:
- bat-dg1-5: NOTRUN -> [SKIP][60] ([i915#1072] / [i915#4078]) +3 similar issues
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@kms_psr@primary_page_flip.html

* igt@kms_setmode@basic-clone-single-crtc:
- bat-dg1-5: NOTRUN -> [SKIP][61] ([i915#3555])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-dg1-5: NOTRUN -> [SKIP][62] ([i915#1845] / [i915#3708])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-dg1-5: NOTRUN -> [SKIP][63] ([i915#3708]) +2 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@prime_vgem@basic-gtt:
- bat-dg1-5: NOTRUN -> [SKIP][64] ([i915#3708] / [i915#4077]) +1 similar issue
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@prime_vgem@basic-userptr:
- bat-dg1-5: NOTRUN -> [SKIP][65] ([i915#3708] / [i915#4873])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]

* igt@runner@aborted:
- bat-dg1-5: NOTRUN -> [FAIL][66] ([i915#4312] / [i915#5257])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/bat-dg1-5/igt@[email protected]
- fi-hsw-g3258: NOTRUN -> [FAIL][67] ([fdo#109271] / [i915#4312] / [i915#6246])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-hsw-g3258/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [INCOMPLETE][68] ([i915#2940]) -> [PASS][69]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-bsw-n3050/igt@i915_selftest@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-bsw-n3050/igt@i915_selftest@[email protected]

* igt@i915_selftest@live@hangcheck:
- fi-icl-u2: [INCOMPLETE][70] ([i915#4890]) -> [PASS][71]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_6581/fi-icl-u2/igt@i915_selftest@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/fi-icl-u2/igt@i915_selftest@[email protected]

{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
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#1155]: https://gitlab.freedesktop.org/drm/intel/issues/1155
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2940]: https://gitlab.freedesktop.org/drm/intel/issues/2940
[i915#3003]: https://gitlab.freedesktop.org/drm/intel/issues/3003
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/intel/issues/3291
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[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#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#4303]: https://gitlab.freedesktop.org/drm/intel/issues/4303
[i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312
[i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494
[i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4785]: https://gitlab.freedesktop.org/drm/intel/issues/4785
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4890]: https://gitlab.freedesktop.org/drm/intel/issues/4890
[i915#4957]: https://gitlab.freedesktop.org/drm/intel/issues/4957
[i915#5174]: https://gitlab.freedesktop.org/drm/intel/issues/5174
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#5257]: https://gitlab.freedesktop.org/drm/intel/issues/5257
[i915#5270]: https://gitlab.freedesktop.org/drm/intel/issues/5270
[i915#5274]: https://gitlab.freedesktop.org/drm/intel/issues/5274
[i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354
[i915#5502]: https://gitlab.freedesktop.org/drm/intel/issues/5502
[i915#5763]: https://gitlab.freedesktop.org/drm/intel/issues/5763
[i915#5903]: https://gitlab.freedesktop.org/drm/intel/issues/5903
[i915#5904]: https://gitlab.freedesktop.org/drm/intel/issues/5904
[i915#5950]: https://gitlab.freedesktop.org/drm/intel/issues/5950
[i915#6011]: https://gitlab.freedesktop.org/drm/intel/issues/6011
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#6246]: https://gitlab.freedesktop.org/drm/intel/issues/6246

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

* CI: CI-20190529 -> None
* IGT: IGT_6581 -> IGTPW_7518

CI-20190529: 20190529
CI_DRM_11877: e55cefc370de5a38ee848aa96082d9d9f4cacdb9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_7518: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/index.html
IGT_6581: 3c3a4cc75cfa7f6f34f2803ba68b0e8c5d1956e5 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_7518/index.html

Reviewed-by on v1 1/2
#3 lore raw
In reply to Bhanuprakash Modem
Quoted 2 lines · Bhanuprakash Modem

This patch will sanitize the system state before starting the subtest. And also, preserve connector's mode to use all over the subtets, since

Typo: 'subtets'

Quoted 5 lines

igt_display_reset() will clear it.

Quoted 37 lines
---
  tests/kms_color.c | 8 +++++++-
  1 file changed, 7 insertions(+), 1 deletion(-)
tests/kms_color.c +7 -1
index 6ea721f1..8c15c7be 100644
@@ -839,6 +839,7 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
  		if (!panel_supports_deep_color(data->drm_fd, output->name))
  			continue;
 
+		igt_display_reset(&data->display);
  		igt_output_set_prop_value(output, IGT_CONNECTOR_MAX_BPC, 10);
  		igt_output_set_pipe(output, p);
  		igt_display_commit_atomic(&data->display, DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
@@ -850,7 +851,10 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
  		data->color_depth = 10;
  		data->drm_format = DRM_FORMAT_XRGB2101010;
  		data->output = output;
-		data->mode = igt_output_get_mode(data->output);
+
+		data->mode = malloc(sizeof(drmModeModeInfo));
+		igt_assert(data->mode);
+		memcpy(data->mode, igt_output_get_mode(data->output), sizeof(drmModeModeInfo));
 
  		igt_dynamic_f("pipe-%s-%s-gamma", kmstest_pipe_name(p), output->name) {
  			igt_display_reset(&data->display);
@@ -884,6 +888,8 @@ run_deep_color_tests_for_pipe(data_t *data, enum pipe p)
  			igt_assert(ret);
  		}
 
+		free(data->mode);
+
  		break;
  	}