All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kamil Konieczny <kamil.konieczny@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Krishnaiah Bommu <krishnaiah.bommu@intel.com>
Subject: Re: [igt-dev] [PATCH] i915/gem_eio: increasing the timeout for forced reset completion
Date: Wed, 20 Apr 2022 11:52:08 +0200	[thread overview]
Message-ID: <Yl/XyNjQrB1XpUXk@kamilkon-DESK1> (raw)
In-Reply-To: <20220418050417.30641-1-krishnaiah.bommu@intel.com>

Hi Krishnaiah,

Dnia 2022-04-18 at 10:34:17 +0530, krishnaiah.bommu@intel.com napisał(a):
> From: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
> 
> GUC log capture is taking more time on few platforms, so increasing the timeout
--------------------------------------------------------- ^

Fold commit message under 65 chars and end it with dot.

> 
> Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
---------------- ^     ^
Please change this into
Signed-off-by: Krishnaiah Bommu <krishnaiah.bommu@intel.com>

You can put it into git config to make it simple.

> Cc: Konieczny Kamil <kamil.konieczny@intel.com>
-------------------------------------- ^

Please use my second address
Kamil Konieczny <kamil.konieczny@linux.intel.com>

> Cc: John Harrison <john.c.harrison@intel.com>
> Cc: Andi Shyti <andi.shyti@intel.com>
> ---
>  tests/i915/gem_eio.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c
> index d9689534d5a..d7fa9e02e92 100644
> --- a/tests/i915/gem_eio.c
> +++ b/tests/i915/gem_eio.c
> @@ -72,8 +72,14 @@ static void trigger_reset(int fd)
>  	igt_kmsg(KMSG_DEBUG "Forcing GPU reset\n");
>  	igt_force_gpu_reset(fd);
>  
> -	/* The forced reset should be immediate */
> -	igt_assert_lte(igt_seconds_elapsed(&ts), 2);
> +	/* The forced reset should be immediate, even though
> +	 * GUC log capture is taking more time on few platforms,
-------------------------------------------------------------- ^
s/,//
> +	 * so Increasing the timeout

Drop this line, it is part of commit message.

> +	 */
> +	if (gem_using_guc_submission(fd))
> +		igt_assert_lte(igt_seconds_elapsed(&ts), 10);
> +	else
> +		igt_assert_lte(igt_seconds_elapsed(&ts), 2);

Looks redundand because you have later at the end of this
function:

	igt_assert_lte(igt_seconds_elapsed(&ts), 10);

So I propose either change 10 into 7, or drop this entirely from
here, so it will be:

	if (!gem_using_guc_submission(fd))
		igt_assert_lte(igt_seconds_elapsed(&ts), 2);

If you choose to drop, change a comment that the timeout
is still checked at the end of function.

>  
>  	/* And just check the gpu is indeed running again */
>  	igt_kmsg(KMSG_DEBUG "Checking that the GPU recovered\n");
> -- 
> 2.25.1
> 
Regards,
Kamil

  parent reply	other threads:[~2022-04-20  9:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-18  5:04 [igt-dev] [PATCH] i915/gem_eio: increasing the timeout for forced reset completion krishnaiah.bommu
2022-04-18  5:29 ` Dixit, Ashutosh
2022-04-18  6:27 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_eio: increasing the timeout for forced reset completion (rev2) Patchwork
2022-04-18  7:45 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-04-20  9:52 ` Kamil Konieczny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-14 10:23 [igt-dev] [PATCH] i915/gem_eio: increasing the timeout for forced reset completion krishnaiah.bommu
2022-04-14 13:01 ` Kamil Konieczny

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=Yl/XyNjQrB1XpUXk@kamilkon-DESK1 \
    --to=kamil.konieczny@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=krishnaiah.bommu@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.