[igt-dev] [PATCH i-g-t 3/4] tests/kms_chamelium: Issue disabling modeset when resetting state
Kunal Joshi
kunal1.joshi at intel.com
Thu Apr 2 03:28:41 UTC 2020
On 2020-03-31 at 15:38:56 +0300, Arkadiusz Hiler wrote:
> 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 at intel.com>
> Cc: Imre Deak <imre.deak at intel.com>
> Issue: https://gitlab.freedesktop.org/drm/intel/issues/323
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> ---
> tests/kms_chamelium.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
> index 08abd961..236e1010 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);
>
Reviewed-by: Kunal Joshi <kunal1.joshi at intel.com>
> --
> 2.24.1
>
More information about the igt-dev
mailing list