Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Bernatowicz, Marcin" <marcin.bernatowicz@linux.intel.com>
To: Lukasz Laguna <lukasz.laguna@intel.com>, igt-dev@lists.freedesktop.org
Cc: marcin.bernatowicz@intel.com
Subject: Re: [PATCH v1] tests/intel/xe_sriov_ggtt: Install SR-IOV exit handler
Date: Tue, 8 Sep 2026 10:06:34 +0200	[thread overview]
Message-ID: <1157dbba-66a9-4a29-a283-1f1b7898fb5c@linux.intel.com> (raw)
In-Reply-To: <20260907125537.617132-1-lukasz.laguna@intel.com>


On 9/7/2026 2:55 PM, Lukasz Laguna wrote:
> Install SR-IOV exit handler in the test to disable VFs and restore
> driver autoprobe on exit.
>
> Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
> ---
>   tests/intel/xe_sriov_ggtt.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tests/intel/xe_sriov_ggtt.c b/tests/intel/xe_sriov_ggtt.c
> index 2c2184930..bcd763eb0 100644
> --- a/tests/intel/xe_sriov_ggtt.c
> +++ b/tests/intel/xe_sriov_ggtt.c
> @@ -701,6 +701,7 @@ int igt_main_args("", long_opts, help_str, opts_handler, NULL)
>   		igt_require(igt_sriov_is_pf(pf_fd));
>   		igt_require(igt_sriov_get_enabled_vfs(pf_fd) == 0);
>   		autoprobe = igt_sriov_is_driver_autoprobe_enabled(pf_fd);
> +		igt_sriov_install_exit_handler(pf_fd, NULL, NULL);
>   	}
>   
>   	igt_describe("Verify that the VF ID in the GGTT PTE has been correctly assigned");
> @@ -752,6 +753,7 @@ int igt_main_args("", long_opts, help_str, opts_handler, NULL)
>   			    igt_sriov_disable_driver_autoprobe(pf_fd);
>   		igt_abort_on_f(autoprobe != igt_sriov_is_driver_autoprobe_enabled(pf_fd),
>   			       "Failed to restore sriov_drivers_autoprobe value\n");
> +		igt_sriov_clear_exit_handler();
>   		drm_close_driver(pf_fd);
>   	}
>   }

LGTM,

Reviewed-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>


      parent reply	other threads:[~2026-09-08  8:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 12:55 [PATCH v1] tests/intel/xe_sriov_ggtt: Install SR-IOV exit handler Lukasz Laguna
2026-09-07 17:36 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-09-07 18:09 ` ✓ i915.CI.BAT: " Patchwork
2026-09-07 21:40 ` ✓ Xe.CI.FULL: " Patchwork
2026-09-08  1:13 ` ✗ i915.CI.Full: failure " Patchwork
2026-09-08  8:06 ` Bernatowicz, Marcin [this message]

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=1157dbba-66a9-4a29-a283-1f1b7898fb5c@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=lukasz.laguna@intel.com \
    --cc=marcin.bernatowicz@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