Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] drm/xe: Fixes around eviction and suspend
@ 2025-09-04 16:07 Thomas Hellström
  2025-09-04 16:07 ` [PATCH v4 1/3] drm/xe: Attempt to bring bos back to VRAM after eviction Thomas Hellström
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Thomas Hellström @ 2025-09-04 16:07 UTC (permalink / raw)
  To: intel-xe
  Cc: Thomas Hellström, Matthew Auld, Matthew Brost, Rodrigo vivi,
	Maarten Lankhorst

Fixes to make evicted bos that are allowed both in VRAM and TT re-validated
into VRAM after eviction and suspend.

Also a fix to improve on a race where the pm notifier races with active
tasks when evicting bos for suspend.

v3:
- Don't wait_for_completion() in the rebind worker.
v4:
- Misc fixes in patch 3 as detailed in the commit log of that patch.

Thomas Hellström (3):
  drm/xe: Attempt to bring bos back to VRAM after eviction
  drm/xe: Allow the pm notifier to continue on failure
  drm/xe: Block exec and rebind worker while evicting for suspend /
    hibernate

 drivers/gpu/drm/xe/tests/xe_bo.c      |  2 +-
 drivers/gpu/drm/xe/tests/xe_dma_buf.c | 10 +------
 drivers/gpu/drm/xe/xe_bo.c            | 16 +++++++---
 drivers/gpu/drm/xe/xe_bo.h            |  2 +-
 drivers/gpu/drm/xe/xe_device_types.h  |  6 ++++
 drivers/gpu/drm/xe/xe_dma_buf.c       |  2 +-
 drivers/gpu/drm/xe/xe_exec.c          |  9 ++++++
 drivers/gpu/drm/xe/xe_pm.c            | 42 ++++++++++++++++++++-------
 drivers/gpu/drm/xe/xe_vm.c            | 42 ++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_vm.h            |  2 ++
 drivers/gpu/drm/xe/xe_vm_types.h      |  5 ++++
 11 files changed, 111 insertions(+), 27 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2025-09-05  9:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04 16:07 [PATCH v4 0/3] drm/xe: Fixes around eviction and suspend Thomas Hellström
2025-09-04 16:07 ` [PATCH v4 1/3] drm/xe: Attempt to bring bos back to VRAM after eviction Thomas Hellström
2025-09-04 16:07 ` [PATCH v4 2/3] drm/xe: Allow the pm notifier to continue on failure Thomas Hellström
2025-09-04 16:07 ` [PATCH v4 3/3] drm/xe: Block exec and rebind worker while evicting for suspend / hibernate Thomas Hellström
2025-09-04 16:20   ` Matthew Auld
2025-09-04 16:21     ` Thomas Hellström
2025-09-04 17:09 ` ✓ CI.KUnit: success for drm/xe: Fixes around eviction and suspend (rev4) Patchwork
2025-09-04 17:56 ` ✓ Xe.CI.BAT: " Patchwork
2025-09-05  9:49 ` ✓ 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