All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: adam.miszczak@linux.intel.com, jakub1.kolakowski@intel.com,
	lukasz.laguna@intel.com,
	Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Subject: [PATCH i-g-t] tests/intel/xe_sriov_scheduling: Disable VFs before resetting sched params
Date: Mon, 13 Jul 2026 11:58:30 +0200	[thread overview]
Message-ID: <20260713095830.785758-1-marcin.bernatowicz@linux.intel.com> (raw)

Disable VFs before clearing scheduling parameters in fixtures and final
cleanup. This avoids resetting scheduling while VFs are still active,
which can leave cleanup incomplete and cause subsequent VF probing to fail.

Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
---
 tests/intel/xe_sriov_scheduling.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/intel/xe_sriov_scheduling.c b/tests/intel/xe_sriov_scheduling.c
index 47cc5d9b0..795487a30 100644
--- a/tests/intel/xe_sriov_scheduling.c
+++ b/tests/intel/xe_sriov_scheduling.c
@@ -1565,9 +1565,9 @@ int igt_main_args("", long_opts, help_str, subm_opts_handler, NULL)
 		}
 
 		igt_fixture() {
+			xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 			__set_vfs_scheduling_params(pf_fd, igt_sriov_get_total_vfs(pf_fd),
 						    &(struct vf_sched_params){});
-			xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 		}
 	}
 
@@ -1617,18 +1617,18 @@ int igt_main_args("", long_opts, help_str, subm_opts_handler, NULL)
 		}
 
 		igt_fixture() {
+			xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 			__set_vfs_scheduling_params(pf_fd, igt_sriov_get_total_vfs(pf_fd),
 						    &(struct vf_sched_params){});
-			xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 		}
 	}
 
 	igt_fixture() {
 		int ret;
 
+		xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 		ret = __set_vfs_scheduling_params(pf_fd, igt_sriov_get_total_vfs(pf_fd),
 						  &(struct vf_sched_params){});
-		xe_sriov_disable_vfs_restore_auto_provisioning(pf_fd);
 		/* abort to avoid execution of next tests with enabled VFs */
 		igt_abort_on_f(igt_sriov_get_enabled_vfs(pf_fd) > 0,
 			       "Failed to disable VF(s)");
-- 
2.43.0


             reply	other threads:[~2026-07-13  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13  9:58 Marcin Bernatowicz [this message]
2026-07-13 13:35 ` ✓ Xe.CI.BAT: success for tests/intel/xe_sriov_scheduling: Disable VFs before resetting sched params Patchwork
2026-07-13 13:54 ` ✓ i915.CI.BAT: " Patchwork
2026-07-13 16:49 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-07-13 20:04 ` ✓ i915.CI.Full: success " 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=20260713095830.785758-1-marcin.bernatowicz@linux.intel.com \
    --to=marcin.bernatowicz@linux.intel.com \
    --cc=adam.miszczak@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=jakub1.kolakowski@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 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.