From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4376810E3B6 for ; Wed, 17 May 2023 06:39:33 +0000 (UTC) From: Bhanuprakash Modem Date: Wed, 17 May 2023 12:02:28 +0530 Message-Id: <20230517063323.4146387-27-bhanuprakash.modem@intel.com> In-Reply-To: <20230517063323.4146387-1-bhanuprakash.modem@intel.com> References: <20230517063323.4146387-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V2 26/81] tests/i915/kms_psr: Document each subtest for testplan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org, mchehab@kernel.org List-ID: Add documentation for all kms tests which is used by IGT testplan documentation. V2: - Add missing "Driver requirement" field Signed-off-by: Bhanuprakash Modem --- tests/i915/kms_psr.c | 213 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 212 insertions(+), 1 deletion(-) diff --git a/tests/i915/kms_psr.c b/tests/i915/kms_psr.c index 6c89de45d..f0a6360c2 100644 --- a/tests/i915/kms_psr.c +++ b/tests/i915/kms_psr.c @@ -23,8 +23,9 @@ */ /** - * TEST: Tests behaviour of PSR & PSR2 + * TEST: kms psr * Category: Display + * Description: Tests behaviour of PSR & PSR2 */ #include "igt.h" @@ -36,6 +37,213 @@ #include #include "xe/xe_ioctl.h" +/** + * SUBTEST: basic + * Description: Basic check for psr if it is detecting changes made in planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: %s_%s + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on %arg[1] + * Driver requirement: i915 + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @cursor: Cursor plane + * @primary: Primary plane + * @sprite: Sprite plane + * + * arg[2]: + * + * @mmap_cpu: MMAP CPU + * @mmap_gtt: MMAP GTT + */ + +/** + * SUBTEST: sprite_plane_move + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on sprite planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: %s_%s + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on %arg[1] planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @cursor: Cursor plane + * @sprite: Sprite plane + * + * arg[2]: + * + * @blt: Blitter + * @render: Render + * @plane_onoff: Plane On off + */ + +/** + * SUBTEST: primary_%s + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on %arg[1] planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @blt: Blitter + * @render: Render + */ + +/** + * SUBTEST: dpms + * Description: Check if psr is detecting changes when rendering operation is + * performed with dpms enabled or disabled + * Driver requirement: any + * Functionality: dpms, psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: no_drrs + * Description: Check if psr is detecting changes when drrs is disabled + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: suspend + * Description: Check if psr is detecting changes when plane operation + * is performed with suspend resume cycles + * Driver requirement: any + * Functionality: psr, suspend + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_dpms + * Description: Check if psr is detecting changes when rendering operation + * is performed with dpms enabled or disabled + * Driver requirement: any + * Functionality: psr, psr2 + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_no_drrs + * Description: Check if psr is detecting changes when drrs is disabled + * Driver requirement: any + * Functionality: psr, psr2 + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_suspend + * Description: Check if psr is detecting changes when plane operation is + * performed with suspend resume cycles + * Driver requirement: any + * Functionality: psr, psr2 + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_basic + * Description: Basic check for psr if it is detecting changes made in planes + * Driver requirement: any + * Functionality: psr, psr2 + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_%s_%s + * Description: Check if psr2 is detecting memory mapping, rendering and plane + * operations performed on %arg[1] planes + * Driver requirement: i915 + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @cursor: Cursor plane + * @primary: Primary plane + * @sprite: Sprite plane + * + * arg[2]: + * + * @mmap_cpu: MMAP CPU + * @mmap_gtt: MMAP GTT + */ + +/** + * SUBTEST: psr2_primary_page_flip + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on primary planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * SUBTEST: psr2_primary_%s + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on primary planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @blt: Blitter + * @render: Render + */ + +/** + * SUBTEST: psr2_%s_%s + * Description: Check if psr is detecting memory mapping, rendering and plane + * operations performed on %arg[1] planes + * Driver requirement: any + * Functionality: psr + * Mega feature: PSR + * Run type: FULL + * Test category: functionality test + * + * arg[1]: + * + * @cursor: Cursor plane + * @sprite: Sprite plane + * + * arg[2]: + * + * @blt: Blitter + * @render: Render + * @plane_onoff: Plane On off + * @plane_move: Move plane position + */ + enum operations { PAGE_FLIP, MMAP_GTT, @@ -309,6 +517,7 @@ static void fb_dirty_fb_ioctl(data_t *data, struct igt_fb *fb) * SUBTEST: cursor_plane_move * Description: Check if psr is detecting the plane operations performed on * cursor planes + * Driver requirement: any * Test category: functionality test * Run type: BAT * Functionality: psr @@ -317,6 +526,7 @@ static void fb_dirty_fb_ioctl(data_t *data, struct igt_fb *fb) * SUBTEST: primary_page_flip * Description: Check if psr is detecting page-flipping operations performed * on primary planes + * Driver requirement: any * Test category: functionality test * Run type: BAT * Functionality: psr @@ -325,6 +535,7 @@ static void fb_dirty_fb_ioctl(data_t *data, struct igt_fb *fb) * SUBTEST: sprite_plane_onoff * Description: Check if psr is detecting the plane operations performed on * sprite planes + * Driver requirement: any * Test category: functionality test * Run type: BAT * Functionality: psr -- 2.40.0