Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe: Enable madvise ioctl for xe

Ioctl enables setting up of memory attributes in user provided range.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250821173104.3030148-20-himal.prasad.ghimiray@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

+2
+2
drivers/gpu/drm/xe/xe_device.c
··· 64 64 #include "xe_ttm_stolen_mgr.h" 65 65 #include "xe_ttm_sys_mgr.h" 66 66 #include "xe_vm.h" 67 + #include "xe_vm_madvise.h" 67 68 #include "xe_vram.h" 68 69 #include "xe_vram_types.h" 69 70 #include "xe_vsec.h" ··· 203 202 DRM_IOCTL_DEF_DRV(XE_WAIT_USER_FENCE, xe_wait_user_fence_ioctl, 204 203 DRM_RENDER_ALLOW), 205 204 DRM_IOCTL_DEF_DRV(XE_OBSERVATION, xe_observation_ioctl, DRM_RENDER_ALLOW), 205 + DRM_IOCTL_DEF_DRV(XE_MADVISE, xe_vm_madvise_ioctl, DRM_RENDER_ALLOW), 206 206 }; 207 207 208 208 static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)