]> git.hungrycats.org Git - linux/commit
drm/xe: Clear pending_disable before signaling suspend fence
authorTangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Wed, 3 Jun 2026 06:52:16 +0000 (12:22 +0530)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 3 Jun 2026 20:47:02 +0000 (13:47 -0700)
commit4b1ae138b0e103d753773956a84eebc2edbf62c4
tree92fe44f41f75d504bdf87afd0fbde7bb3e21a568
parent6a1e7934d9a6cf46aecae00a99c2603d1295e170
drm/xe: Clear pending_disable before signaling suspend fence

In the schedule-disable done path for suspend, we
signal the suspend fence before clearing pending_disable.

That wakeup can let suspend_wait complete and resume be queued
immediately. The resume path may then reach enable_scheduling()
while pending_disable is still set and hit the
!exec_queue_pending_disable(q) assertion.

Fix this by clearing pending_disable before signaling
the suspend fence, so any resumed transition observes a
consistent state.

Fixes: 87651f31ae4e ("drm/xe/guc_submit: fix race around suspend_pending")
Cc: stable@vger.kernel.org # v7.0+
Signed-off-by: Tangudu Tilak Tirumalesh <tilak.tirumalesh.tangudu@intel.com>
Reviewed-by: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patch.msgid.link/20260603065217.3131066-3-tilak.tirumalesh.tangudu@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c