public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/1] tests/pm_rpm: Assert that we get connector data
@ 2018-11-08 10:33 Petri Latvala
  2018-11-08 11:15 ` Chris Wilson
  2018-11-08 11:22 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/1] " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Petri Latvala @ 2018-11-08 10:33 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_5088/fi-byt-clapper/igt@pm_rpm@module-reload.html
shows the test crashing in get_connector_edid. Directly there, not in
any libdrm function. The only way I see that can happen is if
drmModeGetConnectorCurrent() returned NULL.

TODO: Change commit message from random guessing to an explanation of
an actual cause.

References: https://bugs.freedesktop.org/show_bug.cgi?id=108675
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tests/pm_rpm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 7488efd7..547e08aa 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -396,6 +396,7 @@ static void init_mode_set_data(struct mode_set_data *data)
 		for (int i = 0; i < data->res->count_connectors; i++) {
 			data->connectors[i] = drmModeGetConnectorCurrent(drm_fd,
 									 data->res->connectors[i]);
+			igt_assert(data->connectors[i]);
 			data->edids[i] = get_connector_edid(data->connectors[i], i);
 		}
 
-- 
2.18.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-08 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-08 10:33 [igt-dev] [PATCH i-g-t 1/1] tests/pm_rpm: Assert that we get connector data Petri Latvala
2018-11-08 11:15 ` Chris Wilson
2018-11-08 11:22 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/1] " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox