/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_gem.c | 188 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 …]
|
D | msm_gem.h | 94 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()
|
D | msm_drv.c | 965 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/ |
D | drm_gem_shmem_helper.c | 444 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/ |
D | vc4_bo.c | 303 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 …]
|
D | vc4_gem.c | 268 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 …]
|
D | vc4_drv.h | 284 u32 madv; member
|
/linux-6.1.9/include/drm/ |
D | drm_gem_shmem_helper.h | 54 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/ |
D | i915_gem_shmem.c | 284 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()
|
D | i915_gem_phys.c | 123 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()
|
D | i915_gem_ttm.c | 434 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()
|
D | i915_gem_pages.c | 30 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()
|
D | i915_gem_object.c | 93 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()
|
D | i915_gem_object_types.h | 615 unsigned int madv:2; member
|
D | i915_gem_tiling.c | 280 obj->mm.madv == I915_MADV_WILLNEED && in i915_gem_object_set_tiling()
|
D | i915_gem_shrinker.c | 36 return swap_available() || obj->mm.madv == I915_MADV_DONTNEED; in can_release_pages()
|
D | i915_gem_ttm_move.c | 572 if (obj->mm.madv != I915_MADV_WILLNEED) { in i915_ttm_move()
|
/linux-6.1.9/drivers/gpu/drm/i915/ |
D | i915_gem.c | 1024 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()
|
D | i915_debugfs.c | 170 obj->mm.madv == I915_MADV_DONTNEED ? " purgeable" : ""); in i915_debugfs_describe_obj()
|
/linux-6.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 419 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()
|
D | panfrost_gem.c | 159 WARN_ON(bo->base.madv != PANFROST_MADV_WILLNEED); in panfrost_gem_open()
|
/linux-6.1.9/include/uapi/drm/ |
D | panfrost_drm.h | 223 __u32 madv; /* in, PANFROST_MADV_x */ member
|
D | msm_drm.h | 317 __u32 madv; /* in, MSM_MADV_x */ member
|
D | vc4_drm.h | 373 __u32 madv; member
|
/linux-6.1.9/tools/include/uapi/drm/ |
D | i915_drm.h | 1763 __u32 madv; member
|