Skip to content

Commit 5c75d68

Browse files
committed
Merge tag 'drm-xe-fixes-2024-05-02' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes
- Fix UAF on rebind worker - Fix ADL-N display integration Signed-off-by: Dave Airlie <[email protected]> From: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/6bontwst3mbxozs6u3ad5n3g5zmaucrngbfwv4hkfhpscnwlym@wlwjgjx6pwue
2 parents 306eca0 + df04b15 commit 5c75d68

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ static inline struct drm_i915_private *kdev_to_i915(struct device *kdev)
8484
#define IS_ROCKETLAKE(dev_priv) IS_PLATFORM(dev_priv, XE_ROCKETLAKE)
8585
#define IS_DG1(dev_priv) IS_PLATFORM(dev_priv, XE_DG1)
8686
#define IS_ALDERLAKE_S(dev_priv) IS_PLATFORM(dev_priv, XE_ALDERLAKE_S)
87-
#define IS_ALDERLAKE_P(dev_priv) IS_PLATFORM(dev_priv, XE_ALDERLAKE_P)
87+
#define IS_ALDERLAKE_P(dev_priv) (IS_PLATFORM(dev_priv, XE_ALDERLAKE_P) || \
88+
IS_PLATFORM(dev_priv, XE_ALDERLAKE_N))
8889
#define IS_XEHPSDV(dev_priv) (dev_priv && 0)
8990
#define IS_DG2(dev_priv) IS_PLATFORM(dev_priv, XE_DG2)
9091
#define IS_PONTEVECCHIO(dev_priv) IS_PLATFORM(dev_priv, XE_PVC)

drivers/gpu/drm/xe/xe_vm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,9 @@ static void vm_destroy_work_func(struct work_struct *w)
16061606
/* xe_vm_close_and_put was not called? */
16071607
xe_assert(xe, !vm->size);
16081608

1609+
if (xe_vm_in_preempt_fence_mode(vm))
1610+
flush_work(&vm->preempt.rebind_work);
1611+
16091612
mutex_destroy(&vm->snap_mutex);
16101613

16111614
if (!(vm->flags & XE_VM_FLAG_MIGRATION))

0 commit comments

Comments
 (0)