]> Gentwo Git Trees - linux/.git/commit
drm/xe/madvise: Fix ioctl argument check
authorShuicheng Lin <shuicheng.lin@intel.com>
Thu, 11 Sep 2025 17:31:40 +0000 (17:31 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 17 Sep 2025 17:09:34 +0000 (10:09 -0700)
commit33fe111a35a40c62761cc4ee75509b50c598fa4f
treeb26caaeb9b646ff511d38f6f76c044160a1dee38
parent5959c4da17e01782ad09b226802ac1f1ef157a70
drm/xe/madvise: Fix ioctl argument check

It is "preferred_mem_loc" instead of "atomic" for the ATTR_PREFERRED_LOC
path.

Also include 2 minor changes with no functional impact.
1. Remove the redundant "attr.atomic_access" assignment.
2. Replace down_read_interruptible() with
   xe_svm_notifier_lock_interruptible() to pair with
   xe_svm_notifier_unlock().

Fixes: ada7486c5668 ("drm/xe: Implement madvise ioctl for xe")
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://lore.kernel.org/r/20250911173139.1405878-2-shuicheng.lin@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_vm_madvise.c