From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9C50BC27C5E for ; Tue, 11 Jun 2024 05:01:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 17C5210E4D1; Tue, 11 Jun 2024 05:01:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="DMHDmajh"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41F2010E4B1 for ; Tue, 11 Jun 2024 05:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718082104; x=1749618104; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KVDA//xIcPQ9/ZM/bh2UYjDdwtTHPB4wCEuGFW/e2cc=; b=DMHDmajhu5v48Tr8VP33gg2SGjqLPBTH/H+wEgR82YGqsEzdP4AOsZTu LhJldsga+1tt6xKD4jP5sPynCS7EXfvQpEVO7vb/hiw+pPxi/5x541ogk imFEgaRFOHQGlQ4tZvywF3uQjDVfPhFTJj3aakfJwo5qS5BH8dl2QKeph CRpI1p+0oig2U+RWvMo019dQmlOlQEBagKZM1R5vmCSmW+Axrzh34gv5T 5iea+yHXMLQwHYb/ZQI4pncLI+6N6AL9o30aHRDd26BTDcjNr2ZjF4GSV OCOjKaTfO7HMwNZot/zqsProlKKnl0E4VBl3nQtP6SwgUMXkurT7GE65Q g==; X-CSE-ConnectionGUID: DDPYIne7R1epGB622dpIuA== X-CSE-MsgGUID: vZiIWWQ1TTmk0bnM5plNkg== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="14997512" X-IronPort-AV: E=Sophos;i="6.08,229,1712646000"; d="scan'208";a="14997512" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 22:01:44 -0700 X-CSE-ConnectionGUID: fZCMl6X/Sp6DSQFo/lWRlA== X-CSE-MsgGUID: WuOm+xycQPe+xM+mVxF5SA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,229,1712646000"; d="scan'208";a="39981286" Received: from bhanu-nuclab.iind.intel.com ([10.145.169.172]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 22:01:43 -0700 From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Cc: Bhanuprakash Modem Subject: [PATCH i-g-t 7/8] tests/kms_universal_plane: Test cleanup Date: Tue, 11 Jun 2024 10:23:47 +0530 Message-ID: <20240611045348.3727239-8-bhanuprakash.modem@intel.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240611045348.3727239-1-bhanuprakash.modem@intel.com> References: <20240611045348.3727239-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Make sure the below points in IGT cleanup: - Sanitize the state before starting the subtest. - Clear the states before exiting the subtest. - Update existing libdrm APIs with IGT kms APIs. - Other misc (Ex: update deprecated APIs/macros/enums, FB leaks etc..) Signed-off-by: Bhanuprakash Modem --- tests/kms_universal_plane.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c index a6e11777d..8c1ce8143 100644 --- a/tests/kms_universal_plane.c +++ b/tests/kms_universal_plane.c @@ -139,7 +139,7 @@ functional_test_fini(functional_test_t *test, igt_output_t *output) igt_remove_fb(test->data->drm_fd, &test->red_fb); igt_remove_fb(test->data->drm_fd, &test->yellow_fb); - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); igt_display_commit2(&test->data->display, COMMIT_LEGACY); } @@ -386,7 +386,7 @@ sanity_test_fini(sanity_test_t *test, igt_output_t *output) igt_remove_fb(test->data->drm_fd, &test->undersized_fb); igt_remove_fb(test->data->drm_fd, &test->blue_fb); - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); igt_display_commit2(&test->data->display, COMMIT_LEGACY); } @@ -516,7 +516,7 @@ pageflip_test_fini(pageflip_test_t *test, igt_output_t *output) igt_remove_fb(test->data->drm_fd, &test->red_fb); igt_remove_fb(test->data->drm_fd, &test->blue_fb); - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); igt_display_commit2(&test->data->display, COMMIT_LEGACY); } @@ -603,7 +603,7 @@ cursor_leak_test_fini(data_t *data, for (i = 0; i < 10; i++) igt_remove_fb(data->drm_fd, &curs[i]); - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); } static int @@ -752,7 +752,7 @@ gen9_test_fini(gen9_test_t *test, igt_output_t *output) igt_remove_fb(test->data->drm_fd, &test->smallred_fb); igt_remove_fb(test->data->drm_fd, &test->smallblue_fb); - igt_output_set_pipe(output, PIPE_ANY); + igt_output_set_pipe(output, PIPE_NONE); igt_display_commit2(&test->data->display, COMMIT_LEGACY); } -- 2.43.2