Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Manszewski, Christoph" <christoph.manszewski@intel.com>
To: Jan Sokolowski <jan.sokolowski@intel.com>, igt-dev@lists.freedesktop.org
Cc: Katarzyna Piecielska <katarzyna.piecielska@intel.com>,
	Lukasz Laguna <lukasz.laguna@intel.com>
Subject: Re: [PATCH i-g-t 1/1] tests/intel/xe_exec_sip_eudebug: disable some tests on VF
Date: Mon, 31 Mar 2025 12:34:06 +0200	[thread overview]
Message-ID: <565b112a-54f2-4838-9b70-d52638880242@intel.com> (raw)
In-Reply-To: <20250328081916.251987-1-jan.sokolowski@intel.com>

Hi Jan,

On 28.03.2025 09:19, Jan Sokolowski wrote:
> Tests wait-writesip-nodebug and breakpoint-writesip-nodebug
> were found to be incompatible with SR-IOV functionality, and
> should only be available to run if on PF.
> 
> Disable these tests if ran on VF.

As Łukasz mentioned, the toggle is not available for VFs. I think the 
proper fix would be something like:

```
bool xe_eudebug_enable(int fd, bool enable)
         bool old = false;
         int ret = __xe_eudebug_enable_getset(fd, &old, &enable);

-       if (ret) {
-               igt_skip_on(enable);
-               old = false;
-       }
+       igt_skip_on(ret);

         return old;
  }
```

That way if there is no eudebug in the KMD we will just skip it and it 
won't matter if it is not there because of not being compiled in or if 
it's in VF mode.

Regards,
Christoph

> 
> Signed-off-by: Jan Sokolowski <jan.sokolowski@intel.com>
> Cc: Katarzyna Piecielska <katarzyna.piecielska@intel.com>
> Cc: Lukasz Laguna <lukasz.laguna@intel.com>
> Cc: Christoph Manszewski <christoph.manszewski@intel.com>
> ---
>   tests/intel/xe_exec_sip_eudebug.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/tests/intel/xe_exec_sip_eudebug.c b/tests/intel/xe_exec_sip_eudebug.c
> index c317112b4..26b3f9176 100644
> --- a/tests/intel/xe_exec_sip_eudebug.c
> +++ b/tests/intel/xe_exec_sip_eudebug.c
> @@ -22,6 +22,7 @@
>   #include "xe/xe_eudebug.h"
>   #include "xe/xe_ioctl.h"
>   #include "xe/xe_query.h"
> +#include "lib/igt_sriov_device.h"
>   
>   #define WIDTH 64
>   #define HEIGHT 64
> @@ -316,6 +317,7 @@ igt_main
>   		igt_fixture {
>   			was_enabled = xe_eudebug_enable(fd, false);
>   			igt_require(!xe_eudebug_debugger_available(fd));
> +			igt_skip_on(intel_is_vf_device(fd));
>   		}
>   
>   		test_render_and_compute("wait-writesip-nodebug", fd, eci)


  parent reply	other threads:[~2025-03-31 10:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-28  8:19 [PATCH i-g-t 1/1] tests/intel/xe_exec_sip_eudebug: disable some tests on VF Jan Sokolowski
2025-03-28  9:23 ` Laguna, Lukasz
2025-03-28 11:03 ` ✓ Xe.CI.BAT: success for series starting with [i-g-t,1/1] " Patchwork
2025-03-28 11:38 ` ✓ i915.CI.BAT: " Patchwork
2025-03-28 13:37 ` ✓ i915.CI.Full: " Patchwork
2025-03-28 22:09 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-31 10:34 ` Manszewski, Christoph [this message]
2025-04-06 18:38 ` Patchwork

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=565b112a-54f2-4838-9b70-d52638880242@intel.com \
    --to=christoph.manszewski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jan.sokolowski@intel.com \
    --cc=katarzyna.piecielska@intel.com \
    --cc=lukasz.laguna@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