Home
last modified time | relevance | path

Searched refs:purgeable (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/gpu/drm/vc4/
H A Dvc4_bo.c58 mutex_lock(&vc4->purgeable.lock); in vc4_bo_stats_print()
59 if (vc4->purgeable.num) in vc4_bo_stats_print()
61 vc4->purgeable.size / 1024, vc4->purgeable.num); in vc4_bo_stats_print()
63 if (vc4->purgeable.purged_num) in vc4_bo_stats_print()
65 vc4->purgeable.purged_size / 1024, in vc4_bo_stats_print()
66 vc4->purgeable.purged_num); in vc4_bo_stats_print()
67 mutex_unlock(&vc4->purgeable.lock); in vc4_bo_stats_print()
256 mutex_lock(&vc4->purgeable.lock); in vc4_bo_add_to_purgeable_pool()
257 list_add_tail(&bo->size_head, &vc4->purgeable in vc4_bo_add_to_purgeable_pool()
[all...]
/linux/drivers/gpu/drm/xe/
H A Dxe_bo.h95 * enum xe_madv_purgeable_state - Buffer object purgeable state enumeration
97 * This enum defines the possible purgeable states for a buffer object,
252 * kernel due to memory pressure after being marked as purgeable (DONTNEED).
261 return bo->purgeable.state == XE_MADV_PURGEABLE_PURGED;
278 return bo->purgeable.state == XE_MADV_PURGEABLE_DONTNEED;
300 if (bo->purgeable.willneed_count++ == 0 && xe_bo_madv_is_dontneed(bo)) in xe_bo_willneed_get_locked()
324 xe_assert(xe_bo_device(bo), bo->purgeable.willneed_count > 0); in xe_bo_willneed_put_locked()
325 if (--bo->purgeable.willneed_count == 0 && bo->purgeable.vma_count > 0 && in xe_bo_willneed_put_locked()
345 bo->purgeable in xe_bo_vma_count_inc_locked()
[all...]
H A Dxe_shrinker.c49 xe_shrinker_mod_pages(struct xe_shrinker *shrinker, long shrinkable, long purgeable) in xe_shrinker_mod_pages() argument
53 shrinker->purgeable_pages += purgeable; in xe_shrinker_mod_pages()
235 bool purgeable; in xe_shrinker_scan() local
241 purgeable = !!shrinker->purgeable_pages; in xe_shrinker_scan()
247 if (purgeable && nr_scanned < nr_to_scan) in xe_shrinker_scan()
H A Dxe_bo_types.h141 } purgeable; member
H A Dxe_bo.c378 /** @purgeable: Whether the content of the pages of @ttm is purgeable. */
379 bool purgeable; member
436 * purgeable counts.
442 if (xe_tt->purgeable) in xe_ttm_tt_account_add()
452 if (xe_tt->purgeable) in xe_ttm_tt_account_subtract()
469 * from the shrinker's shrinkable / purgeable counts on the transition in update_global_total_pages()
528 * purgeable page accounting to match. Must be called with @bo's dma-resv in xe_ttm_tt_create()
543 * purgeable page accounting to match, then unpins @bo via ttm_bo_unpin(). in xe_ttm_tt_create()
658 if (ttm_tt_is_backed_up(tt) && !xe_tt->purgeable) { in xe_ttm_io_mem_reserve()
[all...]
H A Dxe_drm_client.c197 stats[mem_type].purgeable += sz; in bo_meminfo()
/linux/Documentation/gpu/rfc/
H A Di915_gem_lmem.rst19 * TTM purgeable object support
/linux/Documentation/gpu/
H A Dpanfrost.rst37 drm-purgeable-memory: 128 KiB
/linux/drivers/gpu/drm/
H A Ddrm_file.c870 stats->purgeable == 0 && in drm_memory_stats_is_zero()
903 stats->purgeable); in drm_print_memory_stats()
956 status.purgeable += add_size; in drm_show_memory_stats()
/linux/drivers/gpu/drm/msm/
H A Dmsm_gem.c964 stats->purgeable.count++; in msm_gem_describe()
965 stats->purgeable.size += obj->size; in msm_gem_describe()
1036 stats.purgeable.count, stats.purgeable.size); in msm_gem_describe_objects()
H A Dmsm_gem.h318 } all, active, resident, purgeable, purged; member
/linux/drivers/gpu/drm/i915/
H A Di915_drm_client.c69 stats[id].purgeable += sz; in obj_meminfo()
/linux/scripts/
H A Dspelling.txt1314 purgable||purgeable
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vm.c369 vm->stats[res_memtype].drm.purgeable += size; in amdgpu_vm_update_stats_locked()