Skip to content

Commit e80b05b

Browse files
committed
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>
1 parent a2eb8ae commit e80b05b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
#include "xe_ttm_stolen_mgr.h"
6565
#include "xe_ttm_sys_mgr.h"
6666
#include "xe_vm.h"
67+
#include "xe_vm_madvise.h"
6768
#include "xe_vram.h"
6869
#include "xe_vram_types.h"
6970
#include "xe_vsec.h"
@@ -202,6 +203,7 @@ static const struct drm_ioctl_desc xe_ioctls[] = {
202203
DRM_IOCTL_DEF_DRV(XE_WAIT_USER_FENCE, xe_wait_user_fence_ioctl,
203204
DRM_RENDER_ALLOW),
204205
DRM_IOCTL_DEF_DRV(XE_OBSERVATION, xe_observation_ioctl, DRM_RENDER_ALLOW),
206+
DRM_IOCTL_DEF_DRV(XE_MADVISE, xe_vm_madvise_ioctl, DRM_RENDER_ALLOW),
205207
};
206208

207209
static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)

0 commit comments

Comments
 (0)