From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C27D6EA41 for ; Thu, 2 Apr 2020 10:26:30 +0000 (UTC) Date: Thu, 2 Apr 2020 08:58:41 +0530 From: Kunal Joshi Message-ID: <20200402032841.GA13798@intel.com> References: <20200331123857.1212432-1-arkadiusz.hiler@intel.com> <20200331123857.1212432-4-arkadiusz.hiler@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200331123857.1212432-4-arkadiusz.hiler@intel.com> Subject: Re: [igt-dev] [PATCH i-g-t 3/4] tests/kms_chamelium: Issue disabling modeset when resetting state List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Arkadiusz Hiler , imre.deak@intel.com, igt-dev@lists.freedesktop.org List-ID: 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 > Cc: Imre Deak > Issue: https://gitlab.freedesktop.org/drm/intel/issues/323 > Signed-off-by: Arkadiusz Hiler > --- > 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 > -- > 2.24.1 > _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev