From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2652C10EC83 for ; Thu, 22 Sep 2022 16:04:16 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 22 Sep 2022 21:29:55 +0530 Message-Id: <20220922160004.2041598-44-bhanuprakash.modem@intel.com> In-Reply-To: <20220922160004.2041598-1-bhanuprakash.modem@intel.com> References: <20220922160004.2041598-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V4 43/52] tests/i915/kms_fence_pin_leak: Add support for Bigjoiner List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: This patch will add a check to Skip the subtest if a selected pipe/output combo won't support Bigjoiner or 8K mode. Example: * Pipe-D wont support a mode > 5K * To use 8K mode on a pipe then consecutive pipe must be available & free. V2: - Use updated helper name Signed-off-by: Bhanuprakash Modem --- tests/i915/kms_fence_pin_leak.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/i915/kms_fence_pin_leak.c b/tests/i915/kms_fence_pin_leak.c index 16eb595f..dc1bb227 100644 --- a/tests/i915/kms_fence_pin_leak.c +++ b/tests/i915/kms_fence_pin_leak.c @@ -124,6 +124,9 @@ static void run_single_test(data_t *data, enum pipe pipe, igt_output_t *output) struct igt_fb fb[2]; int i; + igt_info("Using (pipe %s + %s) to run the subtest.\n", + kmstest_pipe_name(pipe), igt_output_name(output)); + igt_output_set_pipe(output, pipe); mode = igt_output_get_mode(output); @@ -196,6 +199,12 @@ static void run_test(data_t *data) enum pipe p; for_each_pipe_with_valid_output(display, p, output) { + igt_display_reset(display); + + igt_output_set_pipe(output, p); + if (!i915_pipe_output_combo_valid(display)) + continue; + run_single_test(data, p, output); return; /* one time ought to be enough */ -- 2.37.3