/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
H A D | vc4_bo.c | 54 mutex_lock(&vc4->purgeable.lock); in vc4_bo_stats_print() 55 if (vc4->purgeable.num) in vc4_bo_stats_print() 57 vc4->purgeable.size / 1024, vc4->purgeable.num); in vc4_bo_stats_print() 59 if (vc4->purgeable.purged_num) in vc4_bo_stats_print() 61 vc4->purgeable.purged_size / 1024, in vc4_bo_stats_print() 62 vc4->purgeable.purged_num); in vc4_bo_stats_print() 63 mutex_unlock(&vc4->purgeable.lock); in vc4_bo_stats_print() 249 mutex_lock(&vc4->purgeable.lock); in vc4_bo_add_to_purgeable_pool() 250 list_add_tail(&bo->size_head, &vc4->purgeable in vc4_bo_add_to_purgeable_pool() [all...] |
H A D | vc4_gem.c | 201 /* Retain BOs just in case they were marked purgeable. in vc4_save_hang_state() 255 /* We need to turn purgeable BOs into unpurgeable ones so that in vc4_save_hang_state() 260 * them purgeable again there's nothing we can do to prevent it. in vc4_save_hang_state() 1286 INIT_LIST_HEAD(&vc4->purgeable.list); in vc4_gem_init() 1287 mutex_init(&vc4->purgeable.lock); in vc4_gem_init() 1360 /* If the BO is about to be marked as purgeable, is not used in vc4_gem_madvise_ioctl() 1361 * and is not already purgeable or purged, add it to the in vc4_gem_madvise_ioctl() 1362 * purgeable list. in vc4_gem_madvise_ioctl() 1369 * the purgeable list. in vc4_gem_madvise_ioctl()
|
H A D | vc4_drv.h | 127 } purgeable; member 278 * whether we can move the BO to the purgeable list or not (when the BO 283 /* Store purgeable/purged state here */
|
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
H A D | vc4_bo.c | 58 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() 257 mutex_lock(&vc4->purgeable.lock); in vc4_bo_add_to_purgeable_pool() 258 list_add_tail(&bo->size_head, &vc4->purgeable in vc4_bo_add_to_purgeable_pool() [all...] |
H A D | vc4_gem.c | 204 /* Retain BOs just in case they were marked purgeable. in vc4_save_hang_state() 258 /* We need to turn purgeable BOs into unpurgeable ones so that in vc4_save_hang_state() 263 * them purgeable again there's nothing we can do to prevent it. in vc4_save_hang_state() 1291 INIT_LIST_HEAD(&vc4->purgeable.list); in vc4_gem_init() 1293 ret = drmm_mutex_init(dev, &vc4->purgeable.lock); in vc4_gem_init() 1372 /* If the BO is about to be marked as purgeable, is not used in vc4_gem_madvise_ioctl() 1373 * and is not already purgeable or purged, add it to the in vc4_gem_madvise_ioctl() 1374 * purgeable list. in vc4_gem_madvise_ioctl() 1381 * the purgeable list. in vc4_gem_madvise_ioctl()
|
H A D | vc4_drv.h | 137 } purgeable; member 275 * whether we can move the BO to the purgeable list or not (when the BO 280 /* Store purgeable/purged state here */
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | intel_memory_region.h | 102 struct list_head purgeable; member
|
H A D | intel_memory_region.c | 187 INIT_LIST_HEAD(&mem->objects.purgeable); in intel_memory_region_create()
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_file.h | 472 * @purgeable: Total size of GEM objects that can be purged (resident and not active) 481 u64 purgeable; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_region.c | 118 list_add(&obj->mm.region_link, &mem->objects.purgeable); in i915_gem_object_init_memory_region()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/ |
H A D | msm_gem.c | 953 stats->purgeable.count++; in msm_gem_describe() 954 stats->purgeable.size += obj->size; in msm_gem_describe() 955 madv = " purgeable"; in msm_gem_describe() 1023 stats.purgeable.count, stats.purgeable.size); in msm_gem_describe_objects()
|
H A D | msm_gem.h | 81 * madv: are the backing pages purgeable? 172 } all, active, resident, purgeable, purged; member 219 /* imported/exported objects are not purgeable: */
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_file.c | 945 print_size(p, "purgeable", region, stats->purgeable); in drm_print_memory_stats() 984 * count it as purgeable: in drm_show_memory_stats() 992 /* If still active, don't count as purgeable: */ in drm_show_memory_stats() 997 status.purgeable += obj->size; in drm_show_memory_stats()
|
/kernel/linux/linux-5.10/mm/ |
H A D | Makefile | 131 obj-$(CONFIG_MEM_PURGEABLE) += purgeable.o
|
H A D | vmscan.c | 4376 pr_info("reclaim %lu purgeable pages.\n", nr); in purgeable_node() 4381 static int purgeable(struct ctl_table *table, int write, void *buffer, in purgeable() function 4401 pr_err("no permission to shrink purgeable heap!\n"); in purgeable() 4411 .procname = "purgeable", 4413 .proc_handler = purgeable, 4433 pr_err("register purgeable sysctl table failed.\n"); in purgeable_debugfs_init()
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | mmflags.h | 134 IF_HAVE_PG_PURGEABLE(purgeable) \
|
/kernel/linux/linux-6.6/mm/ |
H A D | Makefile | 144 obj-$(CONFIG_MEM_PURGEABLE) += purgeable.o
|
H A D | vmscan.c | 8209 pr_info("reclaim %lu purgeable pages.\n", nr); in purgeable_node() 8214 static int purgeable(struct ctl_table *table, int write, void *buffer, in purgeable() function 8234 pr_err("no permission to shrink purgeable heap!\n"); in purgeable() 8244 .procname = "purgeable", 8246 .proc_handler = purgeable, 8257 pr_err("register purgeable sysctl table failed.\n"); in purgeable_debugfs_init()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | page-flags.h | 480 PAGEFLAG(Purgeable, purgeable, PF_ANY)
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | page-flags.h | 622 PAGEFLAG(Purgeable, purgeable, PF_ANY)
|