Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] tests/i915/gem_ringfill : Added test description
Date: Mon, 27 Jun 2022 19:09:43 +0200	[thread overview]
Message-ID: <YrnkV+/VL/IE6bfU@kamilkon-desk1> (raw)
In-Reply-To: <20220627110809.1542312-2-priyanka.dandamudi@intel.com>

Hi Priyanka,

On 2022-06-27 at 16:38:08 +0530, priyanka.dandamudi@intel.com wrote:
> From: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
> 
> Added global description and description to all the available subtests.
> 
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
> ---
>  tests/i915/gem_ringfill.c | 28 +++++++++++++++++++---------
>  1 file changed, 19 insertions(+), 9 deletions(-)
> 
> diff --git a/tests/i915/gem_ringfill.c b/tests/i915/gem_ringfill.c
> index ecfa0bea..c51b32a2 100644
> --- a/tests/i915/gem_ringfill.c
> +++ b/tests/i915/gem_ringfill.c
> @@ -51,6 +51,8 @@
>  #define HIBERNATE 0x40
>  #define NEWFD 0x80
>  
> +IGT_TEST_DESCRIPTION("Exercise many tiny batchbuffer operations, in the hope of catching"
----------------------- ^
> +	       " failure to manage the ring properly near full.");
-------------- ^

Align to above.

>  static unsigned int ring_size;
>  
>  static void check_bo(int fd, uint32_t handle)
> @@ -291,16 +293,21 @@ igt_main
>  		const char *suffix;
>  		unsigned flags;
>  		unsigned timeout;
> +		const char *description;
>  	} modes[] = {
> -		{ "basic", 0, 0 },
> -		{ "interruptible", INTERRUPTIBLE, 1 },
> -		{ "hang", HANG, 10 },
> -		{ "child", CHILD, 0 },
> -		{ "forked", FORKED, 0 },
> -		{ "fd", FORKED | NEWFD, 0 },
> -		{ "bomb", BOMB | NEWFD | INTERRUPTIBLE, 150 },
> -		{ "S3", BOMB | SUSPEND, 30 },
> -		{ "S4", BOMB | HIBERNATE, 30 },
> +		{ "basic", 0, 0, "Basic check how the driver handles a full ring"},
> +		{ "interruptible", INTERRUPTIBLE, 1, "Exercise all potential injection sites by "
---------------------------------------------------- ^
> +			"using igt_sigiter interface to repeat the ringfill testing"},
----------------------- ^
Align this string to one above (imho you can split if you want).

> +		{ "hang", HANG, 10, "Exercise many batchbuffer operations along with"
> +		       " a hang batch until ring is full"},

Same here, align.

> +		{ "child", CHILD, 0, "Check to fill the ring parallely using fork" },
> +		{ "forked", FORKED, 0, "Check to fill the ring parallely using fork" },
> +		{ "fd", FORKED | NEWFD, 0, "Fills the ring upto maximim parallely using"
> +		       " fork with different fd's" },

Same here.

> +		{ "bomb", BOMB | NEWFD | INTERRUPTIBLE, 150, "Fills the ring upto maximim parallely"
> +		       " using fork with different fd's along with interruptions" },
> +		{ "S3", BOMB | SUSPEND, 30,  "Handle a full ring across suspend cycle"},
------------------------------------------- ^
Delete one space from here.

> +		{ "S4", BOMB | HIBERNATE, 30,  "Handle a full ring across hibernate cycle"},
- ------------------------------------------- ^

Same here.

>  		{ NULL }
>  	}, *m;
>  	bool master = false;
> @@ -330,6 +337,7 @@ igt_main
>  
>  	/* Legacy path for selecting "rings". */
>  	for (m = modes; m->suffix; m++) {
> +		igt_describe_f("%s - on legacy ring.", m->description);
>  		igt_subtest_with_dynamic_f("legacy-%s", m->suffix) {
>  			igt_skip_on(m->flags & NEWFD && master);
>  
> @@ -350,6 +358,7 @@ igt_main
>  
>  	/* New interface for selecting "engines". */
>  	for (m = modes; m->suffix; m++) {
> +		igt_describe_f("%s - engines.", m->description);
--------------------------------- ^
imho here we can drop this, so
s/ - engines././

Regards,
Kamil

>  		igt_subtest_with_dynamic_f("engines-%s", m->suffix) {
>  			const struct intel_execution_engine2 *e;
>  
> @@ -371,6 +380,7 @@ igt_main
>  		}
>  	}
>  
> +	igt_describe("Basic check to fill the ring upto maximum on all engines simultaneously.");
>  	igt_subtest("basic-all") {
>  		const struct intel_execution_engine2 *e;
>  		intel_allocator_multiprocess_start();
> -- 
> 2.25.1
> 

  reply	other threads:[~2022-06-27 17:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 11:08 [igt-dev] [PATCH i-g-t 0/2] HAX add description to gem_ringfill priyanka.dandamudi
2022-06-27 11:08 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915/gem_ringfill : Added test description priyanka.dandamudi
2022-06-27 17:09   ` Kamil Konieczny [this message]
2022-06-27 11:08 ` [igt-dev] [PATCH i-g-t 2/2] HAX: don't do full run priyanka.dandamudi
2022-06-27 14:04 ` [igt-dev] ✗ Fi.CI.BAT: failure for HAX add description to gem_ringfill Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2022-06-28  4:51 [igt-dev] [PATCH i-g-t 0/2] " priyanka.dandamudi
2022-06-28  4:51 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915/gem_ringfill : Added test description priyanka.dandamudi
2022-06-28  7:50   ` Kamil Konieczny
2022-06-28  9:07 [igt-dev] [PATCH i-g-t 0/2] HAX add description to gem_ringfill priyanka.dandamudi
2022-06-28  9:07 ` [igt-dev] [PATCH i-g-t 1/2] tests/i915/gem_ringfill : Added test description priyanka.dandamudi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YrnkV+/VL/IE6bfU@kamilkon-desk1 \
    --to=kamil.konieczny@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox