Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/pf: Reset PF scheduling defaults on auto provisioning restore
@ 2026-11-10 16:26 Rachapalli Bandi Jagadeesh
  2026-11-10 16:39 ` ✓ CI.KUnit: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Rachapalli Bandi Jagadeesh @ 2026-11-10 16:26 UTC (permalink / raw)
  To: intel-xe
  Cc: satyanarayana.k.v.p, michal.winiarski, Rachapalli Bandi Jagadeesh

Restoring auto provisioning releases VF configs, but leaves PF scheduling
overrides from debugfs in place. As a result, the next VF enable may skip
fair scheduling reprovisioning, leaving VFs with infinite EQ/PT and
causing VF probe or FLR timeouts.

Reset PF scheduling defaults when switching back to auto provisioning
so subsequent VF enable reprovisions PF/VFs with fair scheduling again.

PF: Tile0: GT0: VF24 resource sanitizing failed (-ETIMEDOUT)
PF: Tile0: GT0: VF24 FLR didn't finish in 5000 ms (-ETIMEDOUT)

ERROR Tile0: GT0: hwe rcs0: emit_wa_job failed (-ETIME) guc_id=1
ERROR SIGID=101 FATAL (-ETIME) PROBE: driver loading failed for device

Signed-off-by: Rachapalli Bandi Jagadeesh <jagadeesh.rachapalli.bandi@intel.com>
---
 drivers/gpu/drm/xe/xe_sriov_pf_provision.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
index 7357b9369522..7d8dfce5b268 100644
--- a/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
+++ b/drivers/gpu/drm/xe/xe_sriov_pf_provision.c
@@ -162,12 +162,18 @@ static int pf_change_mode(struct xe_device *xe, enum xe_sriov_provisioning_mode
 		return 0;
 
 	if (mode == XE_SRIOV_PROVISIONING_MODE_AUTO) {
+		int err;
 		if (xe_sriov_pf_num_vfs(xe)) {
 			xe_sriov_dbg(xe, "can't restore %s: VFs must be disabled!\n",
 				     mode_to_string(mode));
 			return -EBUSY;
 		}
 		pf_unprovision_all_vfs(xe);
+
+		/* custom PF EQ/PT/sched_if_idle would block fair VF scheduling */
+		err = pf_reprovision_default(xe);
+		if (err)
+			return err;
 	}
 
 	xe_sriov_dbg(xe, "mode %s changed to %s by %ps\n",
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-10 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 16:26 [PATCH] drm/xe/pf: Reset PF scheduling defaults on auto provisioning restore Rachapalli Bandi Jagadeesh
2026-11-10 16:39 ` ✓ CI.KUnit: success for " Patchwork
2026-11-10 16:45 ` [PATCH] " sashiko-bot
2026-11-10 17:13 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-11-10 18:33 ` ✓ Xe.CI.FULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox