]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Fix xe_pt_abort_unbind
authorMatthew Brost <matthew.brost@intel.com>
Tue, 23 Jul 2024 01:02:30 +0000 (18:02 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 23 Jul 2024 15:02:43 +0000 (08:02 -0700)
commit649b93dbb902ae3237fddbe998eb1f4de1a14b71
tree62f6479f076d73c5d77672bda3f95a4c4908580b
parent7e0fe233aa0849de8a0a5e60cb0d71dfb359664f
drm/xe: Fix xe_pt_abort_unbind

When restoring the children PT entries on a bind failure the incorrect
loop index has used resulting in PT entries being leaked. This is shown
by running xe_vm.bind-array-conflict-error-inject on a VRAM device going
into a suspend state after the test completes.

v2:
 - s/childern/children (CI, Matt Auld)

Fixes: a708f6501c69 ("drm/xe: Update PT layer with better error handling")
Cc: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240723010230.1652707-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_pt.c