public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone
@ 2019-04-05  8:36 Chris Wilson
  2019-04-05  9:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
  2019-04-06  3:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Chris Wilson @ 2019-04-05  8:36 UTC (permalink / raw)
  To: igt-dev; +Cc: intel-gfx

In order to run as a standalone test (i.e. immediately after booting a
device), we need to explicitly probe the connectors.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/i915_pm_rpm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index a2c9d0ede..2f7e30592 100644
--- a/tests/i915/i915_pm_rpm.c
+++ b/tests/i915/i915_pm_rpm.c
@@ -394,8 +394,9 @@ static void init_mode_set_data(struct mode_set_data *data)
 	if (data->res) {
 		igt_assert(data->res->count_connectors <= MAX_CONNECTORS);
 		for (int i = 0; i < data->res->count_connectors; i++) {
-			data->connectors[i] = drmModeGetConnectorCurrent(drm_fd,
-									 data->res->connectors[i]);
+			data->connectors[i] =
+				drmModeGetConnector(drm_fd,
+						    data->res->connectors[i]);
 			data->edids[i] = get_connector_edid(data->connectors[i], i);
 		}
 
-- 
2.20.1

_______________________________________________
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:[~2019-04-06  3:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05  8:36 [igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone Chris Wilson
2019-04-05  9:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-04-06  3:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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