* [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector
@ 2019-08-26 13:25 Oleg Vasilev
2019-08-26 15:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Oleg Vasilev @ 2019-08-26 13:25 UTC (permalink / raw)
To: igt-dev
The subtest compares EDID obtained through I2C with the one thorugh DRM
interface. Getting EDID through I2C on VGA is not reliable, and the test
should be skipped. However, on some machines VGA connector is
implemented as DP branch device. More background in an fdo bug [1].
The patch enables skips of the test based on a subconnector property,
introduced in the kernel series [2].
[1]: https://bugs.freedesktop.org/show_bug.cgi?id=104097
[2]: https://patchwork.freedesktop.org/series/65800/
CC: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
CC: Simon Ser <simon.ser@intel.com>
Signed-off-by: Oleg Vasilev <oleg.vasilev@intel.com>
---
tests/i915/i915_pm_rpm.c | 38 ++++++++++++++++++++++++++++++++++++--
1 file changed, 36 insertions(+), 2 deletions(-)
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 2168ff72..5c512597 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -389,6 +389,41 @@ static drmModePropertyBlobPtr get_connector_edid(drmModeConnectorPtr connector,
return blob;
}
+static bool is_vga(drmModeConnectorPtr connector)
+{
+ bool found;
+ uint64_t prop_value;
+ drmModePropertyPtr prop;
+ char *enum_name = NULL;
+ bool is_subconnector_vga = false;
+
+ if (connector->connector_type == DRM_MODE_CONNECTOR_VGA)
+ return true;
+
+ if (connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort)
+ return false;
+
+ found = kmstest_get_property(drm_fd, connector->connector_id,
+ DRM_MODE_OBJECT_CONNECTOR, "subconnector",
+ NULL, &prop_value, &prop);
+
+ igt_assert(found);
+ igt_assert(prop->flags & DRM_MODE_PROP_ENUM);
+
+ for (int i = 0; i < prop->count_enums; i++) {
+ if (prop->enums[i].value == prop_value) {
+ enum_name = prop->enums[i].name;
+ break;
+ }
+ }
+ igt_assert(enum_name);
+
+ is_subconnector_vga = (strcmp(enum_name, "VGA") == 0);
+ if (is_subconnector_vga)
+ igt_debug("This DP is in fact VGA, skipping\n");
+ return is_subconnector_vga;
+}
+
static void init_mode_set_data(struct mode_set_data *data)
{
data->res = drmModeGetResources(drm_fd);
@@ -679,7 +714,6 @@ static void test_i2c(struct mode_set_data *data)
bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid);
bool got_drm_edid = drm_edid != NULL;
- bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA;
bool edids_equal;
@@ -688,7 +722,7 @@ static void test_i2c(struct mode_set_data *data)
* the EDID reading mostly FFs and then disabling bit-banging. Since we
* don't want to reimplement everything the Kernel does, let's just
* accept the fact that some VGA outputs won't be properly detected. */
- if (is_vga)
+ if (is_vga(data->connectors[i]))
continue;
if (!got_i2c_edid && !got_drm_edid)
--
2.23.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
^ permalink raw reply related [flat|nested] 4+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector 2019-08-26 13:25 [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector Oleg Vasilev @ 2019-08-26 15:01 ` Patchwork 2019-08-26 18:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork 2019-08-28 8:38 ` [igt-dev] [PATCH] " Ser, Simon 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2019-08-26 15:01 UTC (permalink / raw) To: Oleg Vasilev; +Cc: igt-dev == Series Details == Series: tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector URL : https://patchwork.freedesktop.org/series/65804/ State : success == Summary == CI Bug Log - changes from IGT_5150 -> IGTPW_3380 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://patchwork.freedesktop.org/api/1.0/series/65804/revisions/1/mbox/ Known issues ------------ Here are the changes found in IGTPW_3380 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_ctx_create@basic-files: - fi-icl-u3: [PASS][1] -> [INCOMPLETE][2] ([fdo#107713] / [fdo#109100]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/fi-icl-u3/igt@gem_ctx_create@basic-files.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/fi-icl-u3/igt@gem_ctx_create@basic-files.html * igt@i915_selftest@live_requests: - fi-byt-j1900: [PASS][3] -> [INCOMPLETE][4] ([fdo#102657]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/fi-byt-j1900/igt@i915_selftest@live_requests.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/fi-byt-j1900/igt@i915_selftest@live_requests.html #### Possible fixes #### * igt@i915_module_load@reload-no-display: - {fi-icl-u4}: [DMESG-WARN][5] ([fdo#105602]) -> [PASS][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/fi-icl-u4/igt@i915_module_load@reload-no-display.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/fi-icl-u4/igt@i915_module_load@reload-no-display.html * igt@kms_frontbuffer_tracking@basic: - fi-icl-u2: [FAIL][7] ([fdo#103167]) -> [PASS][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/fi-icl-u2/igt@kms_frontbuffer_tracking@basic.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#102657]: https://bugs.freedesktop.org/show_bug.cgi?id=102657 [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167 [fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602 [fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107 [fdo#106350]: https://bugs.freedesktop.org/show_bug.cgi?id=106350 [fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713 [fdo#109100]: https://bugs.freedesktop.org/show_bug.cgi?id=109100 Participating hosts (53 -> 45) ------------------------------ Missing (8): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5150 -> IGTPW_3380 CI-20190529: 20190529 CI_DRM_6785: f1f309b0b9d38667082d95904d7967f13fd2e274 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3380: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/ IGT_5150: a4e8217bcdfef9bb523f26a9084bbf615a6e8abb @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* [igt-dev] ✗ Fi.CI.IGT: failure for tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector 2019-08-26 13:25 [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector Oleg Vasilev 2019-08-26 15:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2019-08-26 18:34 ` Patchwork 2019-08-28 8:38 ` [igt-dev] [PATCH] " Ser, Simon 2 siblings, 0 replies; 4+ messages in thread From: Patchwork @ 2019-08-26 18:34 UTC (permalink / raw) To: Oleg Vasilev; +Cc: igt-dev == Series Details == Series: tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector URL : https://patchwork.freedesktop.org/series/65804/ State : failure == Summary == CI Bug Log - changes from IGT_5150_full -> IGTPW_3380_full ==================================================== Summary ------- **FAILURE** Serious unknown changes coming with IGTPW_3380_full absolutely need to be verified manually. If you think the reported changes have nothing to do with the changes introduced in IGTPW_3380_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI. External URL: https://patchwork.freedesktop.org/api/1.0/series/65804/revisions/1/mbox/ Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_3380_full: ### IGT changes ### #### Possible regressions #### * igt@i915_pm_rpm@i2c: - shard-iclb: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb4/igt@i915_pm_rpm@i2c.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb8/igt@i915_pm_rpm@i2c.html - shard-hsw: [PASS][3] -> [FAIL][4] [3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-hsw1/igt@i915_pm_rpm@i2c.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-hsw5/igt@i915_pm_rpm@i2c.html - shard-kbl: [PASS][5] -> [FAIL][6] [5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-kbl2/igt@i915_pm_rpm@i2c.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-kbl6/igt@i915_pm_rpm@i2c.html - shard-apl: [PASS][7] -> [FAIL][8] [7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl5/igt@i915_pm_rpm@i2c.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl5/igt@i915_pm_rpm@i2c.html Known issues ------------ Here are the changes found in IGTPW_3380_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_ctx_shared@q-in-order-bsd2: - shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#109276]) +18 similar issues [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb1/igt@gem_ctx_shared@q-in-order-bsd2.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb5/igt@gem_ctx_shared@q-in-order-bsd2.html * igt@gem_exec_parallel@bcs0-contexts: - shard-hsw: [PASS][11] -> [FAIL][12] ([fdo#111469]) [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-hsw1/igt@gem_exec_parallel@bcs0-contexts.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-hsw1/igt@gem_exec_parallel@bcs0-contexts.html * igt@gem_exec_schedule@preemptive-hang-bsd: - shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#111325]) +2 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb3/igt@gem_exec_schedule@preemptive-hang-bsd.html [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb1/igt@gem_exec_schedule@preemptive-hang-bsd.html * igt@gem_unref_active_buffers: - shard-glk: [PASS][15] -> [INCOMPLETE][16] ([fdo#103359] / [k.org#198133]) [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-glk7/igt@gem_unref_active_buffers.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-glk2/igt@gem_unref_active_buffers.html * igt@i915_suspend@fence-restore-tiled2untiled: - shard-apl: [PASS][17] -> [DMESG-WARN][18] ([fdo#108566]) +3 similar issues [17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl8/igt@i915_suspend@fence-restore-tiled2untiled.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl7/igt@i915_suspend@fence-restore-tiled2untiled.html * igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt: - shard-iclb: [PASS][19] -> [FAIL][20] ([fdo#103167]) +2 similar issues [19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb1/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb2/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-blt.html * igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen: - shard-apl: [PASS][21] -> [FAIL][22] ([fdo#103167]) [21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl7/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html - shard-kbl: [PASS][23] -> [FAIL][24] ([fdo#103167]) [23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-kbl4/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-kbl2/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-fullscreen.html * igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-move: - shard-glk: [PASS][25] -> [FAIL][26] ([fdo#103167]) [25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-glk3/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-move.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-glk6/igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-cur-indfb-move.html * igt@kms_plane_lowres@pipe-a-tiling-x: - shard-iclb: [PASS][27] -> [FAIL][28] ([fdo#103166]) +1 similar issue [27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb5/igt@kms_plane_lowres@pipe-a-tiling-x.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb4/igt@kms_plane_lowres@pipe-a-tiling-x.html * igt@kms_psr@psr2_sprite_mmap_gtt: - shard-iclb: [PASS][29] -> [SKIP][30] ([fdo#109441]) [29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb5/igt@kms_psr@psr2_sprite_mmap_gtt.html * igt@perf_pmu@rc6: - shard-kbl: [PASS][31] -> [SKIP][32] ([fdo#109271]) [31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-kbl2/igt@perf_pmu@rc6.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-kbl2/igt@perf_pmu@rc6.html * igt@prime_busy@wait-hang-blt: - shard-hsw: [PASS][33] -> [INCOMPLETE][34] ([fdo#103540]) [33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-hsw1/igt@prime_busy@wait-hang-blt.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-hsw7/igt@prime_busy@wait-hang-blt.html #### Possible fixes #### * igt@gem_eio@reset-stress: - shard-snb: [FAIL][35] ([fdo#109661]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-snb1/igt@gem_eio@reset-stress.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-snb4/igt@gem_eio@reset-stress.html * igt@gem_exec_balancer@smoke: - shard-iclb: [SKIP][37] ([fdo#110854]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb8/igt@gem_exec_balancer@smoke.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb2/igt@gem_exec_balancer@smoke.html * igt@gem_exec_schedule@deep-bsd: - shard-iclb: [SKIP][39] ([fdo#111325]) -> [PASS][40] +7 similar issues [39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb1/igt@gem_exec_schedule@deep-bsd.html [40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb6/igt@gem_exec_schedule@deep-bsd.html * igt@gem_exec_schedule@preempt-other-bsd1: - shard-iclb: [SKIP][41] ([fdo#109276]) -> [PASS][42] +14 similar issues [41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb3/igt@gem_exec_schedule@preempt-other-bsd1.html [42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb2/igt@gem_exec_schedule@preempt-other-bsd1.html * igt@i915_selftest@mock_fence: - shard-iclb: [INCOMPLETE][43] ([fdo#107713]) -> [PASS][44] [43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb7/igt@i915_selftest@mock_fence.html [44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb5/igt@i915_selftest@mock_fence.html * igt@i915_suspend@sysfs-reader: - shard-apl: [DMESG-WARN][45] ([fdo#108566]) -> [PASS][46] +5 similar issues [45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl8/igt@i915_suspend@sysfs-reader.html [46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl5/igt@i915_suspend@sysfs-reader.html * igt@kms_busy@basic-flip-b: - shard-kbl: [DMESG-WARN][47] -> [PASS][48] [47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-kbl2/igt@kms_busy@basic-flip-b.html [48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-kbl7/igt@kms_busy@basic-flip-b.html - shard-apl: [DMESG-WARN][49] -> [PASS][50] [49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl7/igt@kms_busy@basic-flip-b.html [50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl3/igt@kms_busy@basic-flip-b.html * igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-blt: - shard-iclb: [FAIL][51] ([fdo#103167]) -> [PASS][52] +3 similar issues [51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-blt.html [52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-blt.html * igt@kms_psr2_su@page_flip: - shard-iclb: [SKIP][53] ([fdo#109642] / [fdo#111068]) -> [PASS][54] [53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb3/igt@kms_psr2_su@page_flip.html [54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb2/igt@kms_psr2_su@page_flip.html * igt@kms_psr@no_drrs: - shard-iclb: [FAIL][55] ([fdo#108341]) -> [PASS][56] [55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb1/igt@kms_psr@no_drrs.html [56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb8/igt@kms_psr@no_drrs.html * igt@kms_psr@psr2_basic: - shard-iclb: [SKIP][57] ([fdo#109441]) -> [PASS][58] +2 similar issues [57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb7/igt@kms_psr@psr2_basic.html [58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb2/igt@kms_psr@psr2_basic.html * igt@kms_setmode@basic: - shard-apl: [FAIL][59] ([fdo#99912]) -> [PASS][60] [59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-apl2/igt@kms_setmode@basic.html [60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-apl8/igt@kms_setmode@basic.html #### Warnings #### * igt@gem_ctx_isolation@vcs1-nonpriv: - shard-iclb: [FAIL][61] ([fdo#111329]) -> [SKIP][62] ([fdo#109276]) [61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb4/igt@gem_ctx_isolation@vcs1-nonpriv.html [62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb8/igt@gem_ctx_isolation@vcs1-nonpriv.html * igt@gem_mocs_settings@mocs-rc6-bsd2: - shard-iclb: [SKIP][63] ([fdo#109276]) -> [FAIL][64] ([fdo#111330]) [63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb6/igt@gem_mocs_settings@mocs-rc6-bsd2.html [64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb1/igt@gem_mocs_settings@mocs-rc6-bsd2.html * igt@gem_mocs_settings@mocs-reset-bsd2: - shard-iclb: [FAIL][65] ([fdo#111330]) -> [SKIP][66] ([fdo#109276]) +1 similar issue [65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5150/shard-iclb4/igt@gem_mocs_settings@mocs-reset-bsd2.html [66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/shard-iclb5/igt@gem_mocs_settings@mocs-reset-bsd2.html [fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166 [fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167 [fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359 [fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540 [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#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276 [fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441 [fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642 [fdo#109661]: https://bugs.freedesktop.org/show_bug.cgi?id=109661 [fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854 [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068 [fdo#111325]: https://bugs.freedesktop.org/show_bug.cgi?id=111325 [fdo#111329]: https://bugs.freedesktop.org/show_bug.cgi?id=111329 [fdo#111330]: https://bugs.freedesktop.org/show_bug.cgi?id=111330 [fdo#111469]: https://bugs.freedesktop.org/show_bug.cgi?id=111469 [fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912 [k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133 Participating hosts (7 -> 6) ------------------------------ Missing (1): shard-skl Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_5150 -> IGTPW_3380 CI-20190529: 20190529 CI_DRM_6785: f1f309b0b9d38667082d95904d7967f13fd2e274 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_3380: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/ IGT_5150: a4e8217bcdfef9bb523f26a9084bbf615a6e8abb @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3380/ _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector 2019-08-26 13:25 [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector Oleg Vasilev 2019-08-26 15:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-08-26 18:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork @ 2019-08-28 8:38 ` Ser, Simon 2 siblings, 0 replies; 4+ messages in thread From: Ser, Simon @ 2019-08-28 8:38 UTC (permalink / raw) To: Vasilev, Oleg, igt-dev@lists.freedesktop.org On Mon, 2019-08-26 at 16:25 +0300, Oleg Vasilev wrote: > The subtest compares EDID obtained through I2C with the one thorugh DRM > interface. Getting EDID through I2C on VGA is not reliable, and the test > should be skipped. However, on some machines VGA connector is > implemented as DP branch device. More background in an fdo bug [1]. > > The patch enables skips of the test based on a subconnector property, > introduced in the kernel series [2]. > > [1]: https://bugs.freedesktop.org/show_bug.cgi?id=104097 > [2]: https://patchwork.freedesktop.org/series/65800/ > > CC: Arkadiusz Hiler <arkadiusz.hiler@intel.com> > CC: Simon Ser <simon.ser@intel.com> > Signed-off-by: Oleg Vasilev <oleg.vasilev@intel.com> > --- > tests/i915/i915_pm_rpm.c | 38 ++++++++++++++++++++++++++++++++++++-- > 1 file changed, 36 insertions(+), 2 deletions(-) > > diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c > index 2168ff72..5c512597 100644 > --- a/tests/i915/i915_pm_rpm.c > +++ b/tests/i915/i915_pm_rpm.c > @@ -389,6 +389,41 @@ static drmModePropertyBlobPtr get_connector_edid(drmModeConnectorPtr connector, > return blob; > } > > +static bool is_vga(drmModeConnectorPtr connector) > +{ > + bool found; > + uint64_t prop_value; > + drmModePropertyPtr prop; > + char *enum_name = NULL; > + bool is_subconnector_vga = false; > + > + if (connector->connector_type == DRM_MODE_CONNECTOR_VGA) > + return true; > + > + if (connector->connector_type != DRM_MODE_CONNECTOR_DisplayPort) > + return false; Question: is it necessary to check that the connector type is DisplayPort? > + found = kmstest_get_property(drm_fd, connector->connector_id, > + DRM_MODE_OBJECT_CONNECTOR, "subconnector", > + NULL, &prop_value, &prop); prop is leaked, we need to drmModeFreeProperty it. With that fixed: Reviewed-by: Simon Ser <simon.ser@intel.com> > + > + igt_assert(found); > + igt_assert(prop->flags & DRM_MODE_PROP_ENUM); > + > + for (int i = 0; i < prop->count_enums; i++) { > + if (prop->enums[i].value == prop_value) { > + enum_name = prop->enums[i].name; > + break; > + } > + } > + igt_assert(enum_name); > + > + is_subconnector_vga = (strcmp(enum_name, "VGA") == 0); > + if (is_subconnector_vga) > + igt_debug("This DP is in fact VGA, skipping\n"); > + return is_subconnector_vga; > +} > + > static void init_mode_set_data(struct mode_set_data *data) > { > data->res = drmModeGetResources(drm_fd); > @@ -679,7 +714,6 @@ static void test_i2c(struct mode_set_data *data) > > bool got_i2c_edid = i2c_read_edid(connector_name, i2c_edid); > bool got_drm_edid = drm_edid != NULL; > - bool is_vga = data->connectors[i]->connector_type == DRM_MODE_CONNECTOR_VGA; > > bool edids_equal; > > @@ -688,7 +722,7 @@ static void test_i2c(struct mode_set_data *data) > * the EDID reading mostly FFs and then disabling bit-banging. Since we > * don't want to reimplement everything the Kernel does, let's just > * accept the fact that some VGA outputs won't be properly detected. */ > - if (is_vga) > + if (is_vga(data->connectors[i])) > continue; > > if (!got_i2c_edid && !got_drm_edid) _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-08-28 8:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-08-26 13:25 [igt-dev] [PATCH] tests/i915/i915_pm_rpm: skip i2c subtest on VGA subconnector Oleg Vasilev 2019-08-26 15:01 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2019-08-26 18:34 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork 2019-08-28 8:38 ` [igt-dev] [PATCH] " Ser, Simon
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox