[igt-dev] [PATCH i-g-t] i915/pm_rpm: Probe connectors to run standalone
Chris Wilson
chris at chris-wilson.co.uk
Fri Apr 5 08:36:06 UTC 2019
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 at 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
More information about the igt-dev
mailing list