[PULL] drm-xe-fixes

Lucas De Marchi
2025-10-16T16:26:52Z

Here are the fixes to 6.18-rc2. Fixes are spread all over the driver.

drm-xe-fixes-2025-10-16:
Driver Changes:
- Increase global invalidation timeout to handle some workloads
(Kenneth Graunke)
- Fix NPD while evicting BOs in an array of VM binds (Matthew Brost)
- Fix resizable BAR to account for possibly needing to move BARs other
than the LMEMBAR (Lucas De Marchi)
- Fix error handling in xe_migrate_init() (Thomas Hellström)
- Fix atomic fault handling with mixed mappings or if the page is
already in VRAM (Matthew Brost)
- Enable media samplers power gating for platforms before Xe2 (Vinay
Belgaumkar)
- Fix de-registering exec queue from GuC when unbinding (Matthew Brost)
- Ensure data migration to system if indicated by madvise with SVM
(Thomas Hellström)
- Fix kerneldoc for kunit change (Matt Roper)
- Always account for cacheline alignment on migration (Matthew Auld)
- Drop bogus assertion on eviction (Matthew Auld)

thanks,
Lucas De Marchi

The following changes since commit 3a8660878839faadb4f1a6dd72c3179c1df56787:

Linux 6.18-rc1 (2025-10-12 13:42:36 -0700)

are available in the Git repository at:

https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2025-10-16

for you to fetch changes up to 225bc03d85427e7e3821d6f99f4f2d4a09350dda:

drm/xe/evict: drop bogus assert (2025-10-15 22:48:54 -0700)

----------------------------------------------------------------
Driver Changes:
- Increase global invalidation timeout to handle some workloads
(Kenneth Graunke)
- Fix NPD while evicting BOs in an array of VM binds (Matthew Brost)
- Fix resizable BAR to account for possibly needing to move BARs other
than the LMEMBAR (Lucas De Marchi)
- Fix error handling in xe_migrate_init() (Thomas Hellström)
- Fix atomic fault handling with mixed mappings or if the page is
already in VRAM (Matthew Brost)
- Enable media samplers power gating for platforms before Xe2 (Vinay
Belgaumkar)
- Fix de-registering exec queue from GuC when unbinding (Matthew Brost)
- Ensure data migration to system if indicated by madvise with SVM
(Thomas Hellström)
- Fix kerneldoc for kunit change (Matt Roper)
- Always account for cacheline alignment on migration (Matthew Auld)
- Drop bogus assertion on eviction (Matthew Auld)

----------------------------------------------------------------
Kenneth Graunke (1):
drm/xe: Increase global invalidation timeout to 1000us

Lucas De Marchi (1):
drm/xe: Move rebar to be done earlier

Matt Roper (1):
drm/xe/kunit: Fix kerneldoc for parameterized tests

Matthew Auld (2):
drm/xe/migrate: don't misalign current bytes
drm/xe/evict: drop bogus assert

Matthew Brost (2):
drm/xe: Don't allow evicting of BOs in same VM in array of VM binds
drm/xe: Handle mixed mappings and existing VRAM on atomic faults

Shuicheng Lin (1):
drm/xe/guc: Check GuC running state before deregistering exec queue

Thomas Hellström (2):
drm/xe/migrate: Fix an error path
drm/xe/svm: Ensure data will be migrated to system if indicated by madvise.

Vinay Belgaumkar (1):
drm/xe: Enable media sampler power gating

drivers/gpu/drm/xe/regs/xe_gt_regs.h | 1 +
drivers/gpu/drm/xe/tests/xe_pci.c | 5 +++++
drivers/gpu/drm/xe/xe_bo_evict.c | 8 --------
drivers/gpu/drm/xe/xe_device.c | 2 +-
drivers/gpu/drm/xe/xe_gt_idle.c | 8 ++++++++
drivers/gpu/drm/xe/xe_guc_submit.c | 13 ++++++++++++-
drivers/gpu/drm/xe/xe_migrate.c | 6 ++++--
drivers/gpu/drm/xe/xe_pci.c | 2 ++
drivers/gpu/drm/xe/xe_svm.c | 17 +++++++++++++++--
drivers/gpu/drm/xe/xe_vm.c | 32 +++++++++++++++++++++++---------
drivers/gpu/drm/xe/xe_vm_types.h | 1 +
drivers/gpu/drm/xe/xe_vram.c | 34 ++++++++++++++++++++++++++--------
drivers/gpu/drm/xe/xe_vram.h | 1 +
13 files changed, 99 insertions(+), 31 deletions(-)