Home
last modified time | relevance | path

Searched refs:madv (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/msm/
Dmsm_gem.c188 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_pin_pages_locked()
247 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) { in msm_gem_fault()
433 if (GEM_WARN_ON(msm_obj->madv != MSM_MADV_WILLNEED)) in msm_gem_pin_vma_locked()
628 static void *get_vaddr(struct drm_gem_object *obj, unsigned madv) in get_vaddr() argument
638 if (GEM_WARN_ON(msm_obj->madv > madv)) { in get_vaddr()
640 msm_obj->madv, madv); in get_vaddr()
722 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv) in msm_gem_madvise() argument
728 if (msm_obj->madv != __MSM_MADV_PURGED) in msm_gem_madvise()
729 msm_obj->madv = madv; in msm_gem_madvise()
731 madv = msm_obj->madv; in msm_gem_madvise()
[all …]
Dmsm_gem.h94 uint8_t madv; member
151 int msm_gem_madvise(struct drm_gem_object *obj, unsigned madv);
229 return (msm_obj->madv == MSM_MADV_DONTNEED) && msm_obj->sgt && in is_purgeable()
Dmsm_drv.c965 switch (args->madv) { in msm_ioctl_gem_madvise()
978 ret = msm_gem_madvise(obj, args->madv); in msm_ioctl_gem_madvise()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_gem_shmem_helper.c444 int drm_gem_shmem_madvise(struct drm_gem_shmem_object *shmem, int madv) in drm_gem_shmem_madvise() argument
448 if (shmem->madv >= 0) in drm_gem_shmem_madvise()
449 shmem->madv = madv; in drm_gem_shmem_madvise()
451 madv = shmem->madv; in drm_gem_shmem_madvise()
455 return (madv >= 0); in drm_gem_shmem_madvise()
473 shmem->madv = -1; in drm_gem_shmem_purge_locked()
557 shmem->madv < 0) { in drm_gem_shmem_fault()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_bo.c303 WARN_ON(bo->madv != VC4_MADV_DONTNEED); in vc4_bo_purge()
309 bo->madv = __VC4_MADV_PURGED; in vc4_bo_purge()
342 if (bo->madv == VC4_MADV_DONTNEED && in vc4_bo_userspace_cache_purge()
406 bo->madv = VC4_MADV_WILLNEED; in vc4_create_object()
482 bo->madv = __VC4_MADV_NOTSUPP; in vc4_bo_create()
510 bo->madv = VC4_MADV_WILLNEED; in vc4_bo_dumb_create()
552 if (bo->madv == VC4_MADV_DONTNEED && !refcount_read(&bo->usecnt)) in vc4_free_object()
593 bo->madv = __VC4_MADV_NOTSUPP; in vc4_free_object()
635 switch (bo->madv) { in vc4_bo_inc_usecnt()
675 bo->madv == VC4_MADV_DONTNEED) in vc4_bo_dec_usecnt()
[all …]
Dvc4_gem.c268 if (bo->madv == __VC4_MADV_NOTSUPP) in vc4_save_hang_state()
272 if (!WARN_ON(bo->madv == __VC4_MADV_PURGED)) in vc4_save_hang_state()
273 bo->madv = VC4_MADV_WILLNEED; in vc4_save_hang_state()
1375 switch (args->madv) { in vc4_gem_madvise_ioctl()
1395 if (bo->madv == __VC4_MADV_NOTSUPP) { in vc4_gem_madvise_ioctl()
1412 if (args->madv == VC4_MADV_DONTNEED && bo->madv == VC4_MADV_WILLNEED && in vc4_gem_madvise_ioctl()
1419 } else if (args->madv == VC4_MADV_WILLNEED && in vc4_gem_madvise_ioctl()
1420 bo->madv == VC4_MADV_DONTNEED && in vc4_gem_madvise_ioctl()
1429 args->retained = bo->madv != __VC4_MADV_PURGED; in vc4_gem_madvise_ioctl()
1432 if (bo->madv != __VC4_MADV_PURGED) in vc4_gem_madvise_ioctl()
[all …]
Dvc4_drv.h284 u32 madv; member
/linux-6.1.9/include/drm/
Ddrm_gem_shmem_helper.h54 int madv; member
122 int drm_gem_shmem_madvise(struct drm_gem_shmem_object *shmem, int madv);
126 return (shmem->madv > 0) && in drm_gem_shmem_is_purgeable()
/linux-6.1.9/drivers/gpu/drm/i915/gem/
Di915_gem_shmem.c284 obj->mm.madv = __I915_MADV_PURGED; in shmem_truncate()
340 switch (obj->mm.madv) { in shmem_shrink()
360 GEM_BUG_ON(obj->mm.madv == __I915_MADV_PURGED); in __i915_gem_object_release_shmem()
362 if (obj->mm.madv == I915_MADV_DONTNEED) in __i915_gem_object_release_shmem()
393 obj->mm.dirty, obj->mm.madv == I915_MADV_WILLNEED); in i915_gem_object_put_pages_shmem()
435 if (obj->mm.madv != I915_MADV_WILLNEED) in shmem_pwrite()
Di915_gem_phys.c123 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_gem_object_put_pages_phys()
239 if (obj->mm.madv != I915_MADV_WILLNEED) in i915_gem_object_attach_phys()
248 if (unlikely(obj->mm.madv != I915_MADV_WILLNEED)) { in i915_gem_object_attach_phys()
Di915_gem_ttm.c434 if (obj->mm.madv == __I915_MADV_PURGED) in i915_ttm_purge()
457 obj->mm.madv = __I915_MADV_PURGED; in i915_ttm_purge()
486 switch (obj->mm.madv) { in i915_ttm_shrink()
604 WARN_ON_ONCE(obj->mm.madv == I915_MADV_WILLNEED); in i915_ttm_truncate()
628 if (!ret && obj->mm.madv != I915_MADV_WILLNEED) in i915_ttm_swap_notify()
913 if (obj->mm.madv == I915_MADV_WILLNEED) in i915_ttm_adjust_lru()
933 } else if (obj->mm.madv != I915_MADV_WILLNEED) { in i915_ttm_adjust_lru()
1005 if (obj->mm.madv != I915_MADV_WILLNEED) { in vm_fault_ttm()
Di915_gem_pages.c30 obj->mm.madv = I915_MADV_DONTNEED; in __i915_gem_object_set_pages()
87 if (obj->mm.madv != I915_MADV_WILLNEED) in __i915_gem_object_set_pages()
105 if (unlikely(obj->mm.madv != I915_MADV_WILLNEED)) { in ____i915_gem_object_get_pages()
218 obj->mm.madv = I915_MADV_WILLNEED; in __i915_gem_object_unset_pages()
Di915_gem_object.c93 obj->mm.madv = I915_MADV_WILLNEED; in i915_gem_object_init()
595 GEM_BUG_ON(obj->mm.madv != I915_MADV_WILLNEED); in i915_gem_object_can_migrate()
695 GEM_BUG_ON(obj->mm.madv != I915_MADV_WILLNEED); in __i915_gem_object_migrate()
Di915_gem_object_types.h615 unsigned int madv:2; member
Di915_gem_tiling.c280 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
Di915_gem_shrinker.c36 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages()
Di915_gem_ttm_move.c572 if (obj->mm.madv != I915_MADV_WILLNEED) { in i915_ttm_move()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_gem.c1024 switch (args->madv) { in i915_gem_madvise_ioctl()
1043 if (obj->mm.madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1048 if (args->madv == I915_MADV_WILLNEED) { in i915_gem_madvise_ioctl()
1055 if (obj->mm.madv != __I915_MADV_PURGED) { in i915_gem_madvise_ioctl()
1056 obj->mm.madv = args->madv; in i915_gem_madvise_ioctl()
1069 if (obj->mm.madv != I915_MADV_WILLNEED) in i915_gem_madvise_ioctl()
1080 if (obj->mm.madv == I915_MADV_DONTNEED && in i915_gem_madvise_ioctl()
1084 args->retained = obj->mm.madv != __I915_MADV_PURGED; in i915_gem_madvise_ioctl()
Di915_debugfs.c170 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in i915_debugfs_describe_obj()
/linux-6.1.9/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c419 if (args->madv == PANFROST_MADV_DONTNEED) { in panfrost_ioctl_madvise()
441 args->retained = drm_gem_shmem_madvise(&bo->base, args->madv); in panfrost_ioctl_madvise()
444 if (args->madv == PANFROST_MADV_DONTNEED) in panfrost_ioctl_madvise()
447 else if (args->madv == PANFROST_MADV_WILLNEED) in panfrost_ioctl_madvise()
Dpanfrost_gem.c159 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()
/linux-6.1.9/include/uapi/drm/
Dpanfrost_drm.h223 __u32 madv; /* in, PANFROST_MADV_x */ member
Dmsm_drm.h317 __u32 madv; /* in, MSM_MADV_x */ member
Dvc4_drm.h373 __u32 madv; member
/linux-6.1.9/tools/include/uapi/drm/
Di915_drm.h1763 __u32 madv; member

12