[PULL] drm-xe-fixes

Rodrigo Vivi
2026-04-30T20:00:50Z

Here goes our first drm-xe-fixes of this 7.1-rc cycle.

The unusual high number of patches is only because we have
missed the drm-xe-next-fixes cycle. Mostly due to some issues with
Matt's permissions to push on fixes branches. Fixed now.

Anyway, I'm also covering for him during this first week.

Thanks,
Rodrigo.

drm-xe-fixes-2026-04-30:
API Fixes:
- Add missing pad and extensions check (Jonathan)
- Reject unsafe PAT indices for CPU cached memory (Jia)

Driver Fixes:
- Drop registration of guc_submit_wedged_fini from xe_guc_submit_wedge (Brost)
- Xe3p tuning and workaround fixes (Roper, Gustavo)
- USE drm mm instead of drm SA for CCS read/write (Satya)
- Fix leaks and null derefs (Shuicheng)
- Fix Wa_18022495364 (Tvrtko)
The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:

Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)

are available in the Git repository at:

https://gitlab.freedesktop.org/drm/xe/kernel.git tags/drm-xe-fixes-2026-04-30

for you to fetch changes up to 662f9ddc8077792129440d05cbef2f944a07777a:

drm/xe/uapi: Reject coh_none PAT index for CPU_ADDR_MIRROR (2026-04-29 12:51:21 -0400)

----------------------------------------------------------------
API Fixes:
- Add missing pad and extensions check (Jonathan)
- Reject unsafe PAT indices for CPU cached memory (Jia)

Driver Fixes:
- Drop registration of guc_submit_wedged_fini from xe_guc_submit_wedge (Brost)
- Xe3p tuning and workaround fixes (Roper, Gustavo)
- USE drm mm instead of drm SA for CCS read/write (Satya)
- Fix leaks and null derefs (Shuicheng)
- Fix Wa_18022495364 (Tvrtko)

----------------------------------------------------------------
Gustavo Sousa (1):
drm/xe/xe3p_lpg: Add missing indirect ring state feature flag

Jia Yao (2):
drm/xe/uapi: Reject coh_none PAT index for CPU cached memory in madvise
drm/xe/uapi: Reject coh_none PAT index for CPU_ADDR_MIRROR

Jonathan Cavitt (1):
drm/xe/vm: Add missing pad and extensions check

Matt Roper (4):
drm/xe: Drop redundant rtp entries for Wa_14019988906 & Wa_14019877138
drm/xe/tuning: Use proper register offset for GAMSTLB_CTRL
drm/xe: Mark ROW_CHICKEN5 as a masked register
drm/xe/debugfs: Correct printing of register whitelist ranges

Matthew Brost (1):
drm/xe: Drop registration of guc_submit_wedged_fini from xe_guc_submit_wedge()

Satyanarayana K V P (2):
drm/xe: Add memory pool with shadow support
drm/xe/vf: Use drm mm instead of drm sa for CCS read/write

Shuicheng Lin (8):
drm/xe: Fix potential NULL deref in xe_exec_queue_tlb_inval_last_fence_put_unlocked
drm/xe/bo: Fix bo leak on unaligned size validation in xe_bo_init_locked()
drm/xe/bo: Fix bo leak on GGTT flag validation in xe_bo_init_locked()
drm/xe: Fix bo leak in xe_dma_buf_init_obj() on allocation failure
drm/xe: Fix dma-buf attachment leak in xe_gem_prime_import()
drm/xe: Fix error cleanup in xe_exec_queue_create_ioctl()
drm/xe/eustall: Fix drm_dev_put called before stream disable in close
drm/xe/gsc: Fix BO leak on error in query_compatibility_version()

Tvrtko Ursulin (1):
drm/xe/xelp: Fix Wa_18022495364

drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/regs/xe_gt_regs.h | 2 +-
drivers/gpu/drm/xe/xe_bo.c | 8 +-
drivers/gpu/drm/xe/xe_bo_types.h | 3 +-
drivers/gpu/drm/xe/xe_dma_buf.c | 23 +-
drivers/gpu/drm/xe/xe_eu_stall.c | 4 +-
drivers/gpu/drm/xe/xe_exec_queue.c | 9 +-
drivers/gpu/drm/xe/xe_gsc.c | 2 +-
drivers/gpu/drm/xe/xe_guc_submit.c | 33 +--
drivers/gpu/drm/xe/xe_lrc.c | 2 +-
drivers/gpu/drm/xe/xe_mem_pool.c | 403 +++++++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_mem_pool.h | 35 +++
drivers/gpu/drm/xe/xe_mem_pool_types.h | 21 ++
drivers/gpu/drm/xe/xe_migrate.c | 56 ++--
drivers/gpu/drm/xe/xe_pci.c | 1 +
drivers/gpu/drm/xe/xe_reg_whitelist.c | 2 +-
drivers/gpu/drm/xe/xe_sriov_vf_ccs.c | 54 ++--
drivers/gpu/drm/xe/xe_sriov_vf_ccs_types.h | 5 +-
drivers/gpu/drm/xe/xe_tuning.c | 2 +-
drivers/gpu/drm/xe/xe_vm.c | 5 +-
drivers/gpu/drm/xe/xe_vm_madvise.c | 47 ++++
drivers/gpu/drm/xe/xe_wa.c | 8 -
22 files changed, 621 insertions(+), 105 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_mem_pool.c
create mode 100644 drivers/gpu/drm/xe/xe_mem_pool.h
create mode 100644 drivers/gpu/drm/xe/xe_mem_pool_types.h