From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id D81D489056 for ; Tue, 15 Nov 2022 17:00:48 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 15 Nov 2022 22:28:44 +0530 Message-Id: <20221115165916.196084-22-bhanuprakash.modem@intel.com> In-Reply-To: <20221115165916.196084-1-bhanuprakash.modem@intel.com> References: <20221115165916.196084-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t v5 20/52] tests/kms_multipipe_modeset: Find the suitable mode instead of using default List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: As we are trying to run this subtest on all pipes + all outputs, It is not possible to use 8K mode. To use 8K mode on a pipe then the consecutive pipe must be free which is not true here. Instead, reduce the resolution from 8K and run the test otherwise we'll endup with the test failures. V2: - Fix commit message Signed-off-by: Bhanuprakash Modem Reviewed-by: Karthik B S --- tests/kms_multipipe_modeset.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/kms_multipipe_modeset.c b/tests/kms_multipipe_modeset.c index 1fdfb9a9..5c26165a 100644 --- a/tests/kms_multipipe_modeset.c +++ b/tests/kms_multipipe_modeset.c @@ -46,6 +46,15 @@ static void run_test(data_t *data, int valid_outputs) drmModeModeInfo *mode; int i = 0; + /* Find suitable mode/resolution combo */ + for_each_connected_output(display, output) { + pipe = &display->pipes[i]; + igt_output_set_pipe(output, i); + + i++; + } + igt_require(igt_override_all_active_output_modes_to_fit_bw(display)); + for_each_connected_output(display, output) { mode = igt_output_get_mode(output); igt_assert(mode); -- 2.38.0