Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Dixit, Ashutosh" <ashutosh.dixit@intel.com>
To: priyanka.dandamudi@intel.com
Cc: igt-dev@lists.freedesktop.org, saurabhg.gupta@intel.com
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_exec: Skip test for RCS+CCS
Date: Wed, 29 Dec 2021 12:42:39 -0800	[thread overview]
Message-ID: <87k0fn9m80.wl-ashutosh.dixit@intel.com> (raw)
In-Reply-To: <20211229075239.1555546-1-priyanka.dandamudi@intel.com>

On Tue, 28 Dec 2021 23:52:39 -0800, <priyanka.dandamudi@intel.com> wrote:
>
> From: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
>
> Updated the nohangcheck test to skip for DG2
> as test fails when reset is applied for the RCS+CCS combination.
>
> Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
> Cc: John Harrison <John.C.Harrison@Intel.com>
> Cc: Melkaveri, Arjun <arjun.melkaveri@intel.com>
> ---
>  tests/i915/gem_ctx_exec.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/tests/i915/gem_ctx_exec.c b/tests/i915/gem_ctx_exec.c
> index a1270a88..dbb46404 100644
> --- a/tests/i915/gem_ctx_exec.c
> +++ b/tests/i915/gem_ctx_exec.c
> @@ -276,6 +276,9 @@ static void nohangcheck_hostile(int i915)
>	int err = 0;
>	int dir;
>	uint64_t ahnd;
> +	bool rcs_found = false;
> +	bool ccs_found = false;
> +

Extra newline.

>
>	/*
>	 * Even if the user disables hangcheck during their context,
> @@ -293,6 +296,17 @@ static void nohangcheck_hostile(int i915)
>
>	igt_require(__enable_hangcheck(dir, false));
>
> +	for_each_ctx_engine(i915, ctx, e) {
> +		if(rcs_found && ccs_found)

Need space before opening bracket (both "(" and "{"), everywhere.

> +			break;
> +		else if(e->class == I915_ENGINE_CLASS_RENDER && rcs_found == false){

No need for rcs_found check.

> +			rcs_found = true;
> +			continue;

No need for 'continue' since we have an "else if".

> +		}
> +		else if(e->class == I915_ENGINE_CLASS_COMPUTE && ccs_found == false)

No need for ccs_found check.

> +			ccs_found = true;
> +	}
> +	igt_require(!(rcs_found && ccs_found));

This one I am not sure of. Do RCS + CCS have dependent resets only for
particular products so that this check would unnecessarily skip on future
products where such dependence may not exist? How has this been handled
elsewhere?

>	for_each_ctx_engine(i915, ctx, e) {
>		igt_spin_t *spin;
>		int new;
> --
> 2.25.1
>

  parent reply	other threads:[~2021-12-29 20:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-29  7:52 [igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_exec: Skip test for RCS+CCS priyanka.dandamudi
2021-12-29 11:31 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-12-29 12:41 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-12-29 20:42 ` Dixit, Ashutosh [this message]
2021-12-30 16:43   ` [igt-dev] [PATCH i-g-t] " Ewins, Jon
2022-01-04 19:42 ` John Harrison
2022-01-05  6:01   ` Dandamudi, Priyanka
2022-01-05  8:46     ` Dandamudi, Priyanka

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=87k0fn9m80.wl-ashutosh.dixit@intel.com \
    --to=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=priyanka.dandamudi@intel.com \
    --cc=saurabhg.gupta@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox