Skip to contentSkip to conversation

tests/kms_3d: Unset all crtcs before the test

PATCH In review Arkadiusz Hiler 3 participants 10 messages Jul 25, 2019 – Jul 26, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 tests/kms_3d: Unset all crtcs before the test

From: Ville Syrjälä <[email protected]>

On pre-HSW we have separate encoders for the DP and HDMI ports, but both can't be enabled at the same time. The test fails to account for that and can thus fail when the kernel rejects the modeset. We can avoid that by turning off all the ports beforehand.

v2: rebased (Arek)

---
 tests/kms_3d.c | 2 ++
 1 file changed, 2 insertions(+)
tests/kms_3d.c +2 -0
index 8ade6d34..aed3bee3 100644
@@ -56,6 +56,8 @@ igt_simple_main
 	}
 	igt_require(connector);
 
+	kmstest_unset_all_crtcs(drm_fd, res);
+
 	edid = igt_kms_get_3d_edid();
 
 	kmstest_force_edid(drm_fd, connector, edid);
Signature · 6 lines
2.21.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

PATCH 2/4 tests/kms_hdmi_inject: Unset all crtcs before the test

From: Ville Syrjälä <[email protected]>

On pre-HSW we have separate encoders for the DP and HDMI ports, but both can't be enabled at the same time. The test fails to account for that and can thus fail when the kernel rejects the modeset. We can avoid that by turning off all the ports beforehand.

---
 tests/kms_hdmi_inject.c | 2 ++
 1 file changed, 2 insertions(+)
tests/kms_hdmi_inject.c +2 -0
index 78684241..3da1028c 100644
@@ -203,6 +203,8 @@ igt_main
 
 		connector = get_connector(drm_fd, res);
 		igt_require(connector);
+
+		kmstest_unset_all_crtcs(drm_fd, res);
 	}
 
 	igt_describe("Make sure that 4K modes exposed by DRM match the "
Signature · 6 lines
2.21.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#3 lore raw

PATCH 3/4 tests/kms_3d: Accept any HDMI connector

In reply to Arkadiusz Hiler

From: Ville Syrjälä <[email protected]>

Connector forcing works just fine even if it already has something physically connected. So accept any HDMI connector for the test.

---
 tests/kms_3d.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tests/kms_3d.c +1 -2
index aed3bee3..6117dfe0 100644
@@ -46,8 +46,7 @@ igt_simple_main
 
 		connector = drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
-		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
-		    connector->connection == DRM_MODE_DISCONNECTED)
+		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
 			break;
 
 		drmModeFreeConnector(connector);
Signature · 6 lines
2.21.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

PATCH 4/4 tests/kms_hdmi_inject: Accept any HDMI connector

In reply to Arkadiusz Hiler

From: Ville Syrjälä <[email protected]>

Connector forcing works just fine even if it already has something physically connected. So accept any HDMI connector for the test.

---
 tests/kms_hdmi_inject.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
tests/kms_hdmi_inject.c +1 -2
index 3da1028c..2a52087d 100644
@@ -65,8 +65,7 @@ get_connector(int drm_fd, drmModeRes *res)
 		connector =
 			drmModeGetConnectorCurrent(drm_fd, res->connectors[i]);
 
-		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA &&
-		    connector->connection == DRM_MODE_DISCONNECTED)
+		if (connector->connector_type == DRM_MODE_CONNECTOR_HDMIA)
 			break;
 
 		drmModeFreeConnector(connector);
Signature · 6 lines
2.21.0

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#2 lore raw

Re: [igt-dev] [PATCH i-g-t 2/4] tests/kms_hdmi_inject: Unset all crtcs before the test

In reply to Arkadiusz Hiler
Quoted 8 lines · Arkadiusz Hiler

From: Ville Syrjälä <[email protected]>

On pre-HSW we have separate encoders for the DP and HDMI ports, but both can't be enabled at the same time. The test fails to account for that and can thus fail when the kernel rejects the modeset. We can avoid that by turning off all the ports beforehand.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105595

Quoted 2 lines

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#6 lore raw
In reply to Arkadiusz Hiler
Quoted 9 lines · Arkadiusz Hiler

From: Ville Syrjälä <[email protected]>

On pre-HSW we have separate encoders for the DP and HDMI ports, but both can't be enabled at the same time. The test fails to account for that and can thus fail when the kernel rejects the modeset. We can avoid that by turning off all the ports beforehand.

v2: rebased (Arek)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105594

Quoted 3 lines

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#7 lore raw

[igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test

In reply to Arkadiusz Hiler
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test
URL : https://patchwork.freedesktop.org/series/64224/
State : warning

== Summary ==

Pipeline status: FAILED.

See https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/51230 for more details.

== Logs ==

For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/51230
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#8 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test

In reply to Arkadiusz Hiler
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test
URL : https://patchwork.freedesktop.org/series/64224/
State : success

== Summary ==

CI Bug Log - changes from IGT_5111 -> IGTPW_3294
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/64224/revisions/1/mbox/

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

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

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live_hangcheck:
- fi-icl-dsi: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713] / [fdo#108569])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-icl-dsi/igt@i915_selftest@live_hangcheck.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-icl-dsi/igt@i915_selftest@live_hangcheck.html

#### Possible fixes ####

* igt@kms_chamelium@common-hpd-after-suspend:
- fi-kbl-7567u: [WARN][3] ([fdo#109380]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-kbl-7567u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-kbl-7567u/igt@[email protected]

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][5] ([fdo#109485]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-kbl-7500u/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [DMESG-WARN][7] ([fdo#102614]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-hsw-peppy/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-hsw-peppy/igt@[email protected]

* igt@kms_pipe_crc_basic@read-crc-pipe-c:
- fi-kbl-7567u: [SKIP][9] ([fdo#109271]) -> [PASS][10] +23 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-kbl-7567u/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-kbl-7567u/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- fi-kbl-7500u: [SKIP][11] ([fdo#109271]) -> [PASS][12] +23 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/fi-kbl-7500u/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102614]: https://bugs.freedesktop.org/show_bug.cgi?id=102614
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109380]: https://bugs.freedesktop.org/show_bug.cgi?id=109380
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#111045]: https://bugs.freedesktop.org/show_bug.cgi?id=111045

Participating hosts (56 -> 43)
------------------------------

Missing (13): fi-kbl-soraka fi-ilk-m540 fi-skl-gvtdvm fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-cfl-8109u fi-icl-u3 fi-pnv-d510 fi-icl-y fi-byt-clapper fi-bdw-samus

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

* IGT: IGT_5111 -> IGTPW_3294

CI_DRM_6550: 1f08a4519ff523c53b676548147ba5a728fba43b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3294: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/
IGT_5111: e8e8ee79bdcd0a0e138d6a9cebacc10b1322cc07 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#9 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test

In reply to Arkadiusz Hiler
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/4] tests/kms_3d: Unset all crtcs before the test
URL : https://patchwork.freedesktop.org/series/64224/
State : success

== Summary ==

CI Bug Log - changes from IGT_5111_full -> IGTPW_3294_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/64224/revisions/1/mbox/

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

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

### IGT changes ###

#### Issues hit ####

* igt@gem_tiled_swapping@non-threaded:
- shard-kbl: [PASS][1] -> [DMESG-WARN][2] ([fdo#108686])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-kbl3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-kbl6/igt@[email protected]

* igt@kms_color@pipe-b-ctm-blue-to-red:
- shard-apl: [PASS][3] -> [FAIL][4] ([fdo#107201])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-apl5/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-apl4/igt@[email protected]
- shard-kbl: [PASS][5] -> [FAIL][6] ([fdo#107201])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-kbl3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-kbl6/igt@[email protected]

* igt@kms_flip@flip-vs-blocking-wf-vblank:
- shard-iclb: [PASS][7] -> [INCOMPLETE][8] ([fdo#107713])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render:
- shard-iclb: [PASS][9] -> [FAIL][10] ([fdo#103167]) +4 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb7/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb8/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-spr-indfb-draw-render.html

* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [PASS][11] -> [DMESG-WARN][12] ([fdo#108566]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-kbl2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-kbl3/igt@[email protected]

* igt@kms_psr@no_drrs:
- shard-iclb: [PASS][13] -> [FAIL][14] ([fdo#108341])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb3/igt@kms_psr@no_drrs.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb1/igt@kms_psr@no_drrs.html

* igt@kms_psr@psr2_cursor_plane_onoff:
- shard-iclb: [PASS][15] -> [SKIP][16] ([fdo#109441])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb2/igt@kms_psr@psr2_cursor_plane_onoff.html
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb3/igt@kms_psr@psr2_cursor_plane_onoff.html

* igt@kms_vblank@pipe-c-ts-continuation-suspend:
- shard-apl: [PASS][17] -> [DMESG-WARN][18] ([fdo#108566]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-apl6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-apl8/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_isolation@bcs0-s3:
- shard-apl: [DMESG-WARN][19] ([fdo#108566]) -> [PASS][20] +3 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-apl5/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-apl6/igt@[email protected]

* igt@i915_pm_rpm@i2c:
- shard-hsw: [FAIL][21] ([fdo#104097]) -> [PASS][22]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-hsw7/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-hsw6/igt@[email protected]

* igt@kms_cursor_crc@pipe-b-cursor-dpms:
- shard-apl: [FAIL][23] ([fdo#103232]) -> [PASS][24]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-apl5/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-apl5/igt@[email protected]
- shard-kbl: [FAIL][25] ([fdo#103232]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-kbl2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-kbl3/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-hsw: [INCOMPLETE][27] ([fdo#103540]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-hsw8/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-hsw2/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [FAIL][29] ([fdo#103167]) -> [PASS][30] +6 similar issues
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb4/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@fbc-1p-rte:
- shard-iclb: [FAIL][31] ([fdo#103167] / [fdo#110378]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb1/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb7/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [DMESG-WARN][33] ([fdo#108566]) -> [PASS][34] +3 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-kbl2/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-kbl3/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- shard-glk: [SKIP][35] ([fdo#109271]) -> [PASS][36] +1 similar issue
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-glk8/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-glk5/igt@[email protected]

* igt@kms_psr@psr2_suspend:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-iclb1/igt@kms_psr@psr2_suspend.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-iclb2/igt@kms_psr@psr2_suspend.html

* igt@kms_setmode@basic:
- shard-apl: [FAIL][39] ([fdo#99912]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5111/shard-apl2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/shard-apl7/igt@[email protected]

[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#104097]: https://bugs.freedesktop.org/show_bug.cgi?id=104097
[fdo#107201]: https://bugs.freedesktop.org/show_bug.cgi?id=107201
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#108341]: https://bugs.freedesktop.org/show_bug.cgi?id=108341
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#108686]: https://bugs.freedesktop.org/show_bug.cgi?id=108686
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110378]: https://bugs.freedesktop.org/show_bug.cgi?id=110378
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (7 -> 6)
------------------------------

Missing (1): shard-skl

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

* IGT: IGT_5111 -> IGTPW_3294

CI_DRM_6550: 1f08a4519ff523c53b676548147ba5a728fba43b @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3294: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/
IGT_5111: e8e8ee79bdcd0a0e138d6a9cebacc10b1322cc07 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3294/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev