diff options
| author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-04-14 11:14:46 +0300 |
|---|---|---|
| committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2020-04-15 12:35:55 +0300 |
| commit | 150f5bba876690626641558540c1da72db018983 (patch) | |
| tree | bd3c413deb4a41b7cc119ec3f9a73e8fd87e9b2c /tests | |
| parent | c16efd6674b0733ff399722d1f977e858b8724de (diff) | |
tests/kms_chamelium: Issue disabling modeset when resetting state
Each tests resets the state to be sure it starts with a clean slate.
Let's add disabling modeset to the pile, to be sure that we get the
hotplug events and the connector state is correct.
Cc: Kunal Joshi <kunal1.joshi@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Issue: https://gitlab.freedesktop.org/drm/intel/issues/323
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Reviewed-by: Kunal Joshi <kunal1.joshi@intel.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/kms_chamelium.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c index b7207ef9..63ae077d 100644 --- a/tests/kms_chamelium.c +++ b/tests/kms_chamelium.c @@ -273,7 +273,14 @@ check_analog_bridge(data_t *data, struct chamelium_port *port) static void reset_state(data_t *data, struct chamelium_port *port) { - int p; + int p, i; + + for (i = 0; i < data->display.n_outputs; i++) { + igt_output_t *output = &data->display.outputs[i]; + igt_output_set_pipe(output, PIPE_NONE); + } + + igt_display_commit2(&data->display, COMMIT_ATOMIC); chamelium_reset(data->chamelium); |
