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 5D05110EA7E for ; Thu, 22 Sep 2022 16:03:55 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 22 Sep 2022 21:29:23 +0530 Message-Id: <20220922160004.2041598-12-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 11/52] tests/kms_content_protection: 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/kms_content_protection.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c index 3041f1cd..31389001 100644 --- a/tests/kms_content_protection.c +++ b/tests/kms_content_protection.c @@ -338,6 +338,15 @@ static void test_content_protection_on_output(igt_output_t *output, if (!igt_pipe_is_free(display, pipe)) continue; + igt_output_set_pipe(output, pipe); + if (!i915_pipe_output_combo_valid(display)) { + igt_output_set_pipe(output, PIPE_NONE); + continue; + } + + igt_info("Using (pipe %s + %s) to run the subtest.\n", + kmstest_pipe_name(pipe), igt_output_name(output)); + modeset_with_fb(pipe, output, s); test_cp_enable_with_retry(output, s, 3, content_type, false, false); @@ -610,6 +619,14 @@ test_content_protection_mst(int content_type) igt_assert_f(igt_pipe_connector_valid(pipe, output), "Output-pipe combination invalid\n"); igt_output_set_pipe(output, pipe); + if (!i915_pipe_output_combo_valid(display)){ + igt_output_set_pipe(output, PIPE_NONE); + continue; + } + + igt_info("Using (pipe %s + %s) to run the subtest.\n", + kmstest_pipe_name(pipe), igt_output_name(output)); + prepare_modeset_on_mst_output(output); mst_output[dp_mst_outputs++] = output; -- 2.37.3