Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_dev_coredump.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
LOCK2 &pool->lock
HALF_LOCKED2 abo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &vm->eviction_lock
LOCK2 global &drm_unplug_srcu
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &prange->lock
HALF_LOCKED2 &prange->migrate_mutex
HALF_LOCKED2 &svms->lock
TYPE_LOCK (struct amdgpu_vm)->eviction_lock

drivers/gpu/drm/xe/xe_migrate.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c __alloc_range_bias() -> gpu_buddy_block_order()

Type Parameter Key Value
BUF_SIZE 0 block 0
BIT_INFO 0 block 0x0,0x0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c __alloc_range_bias() -> gpu_buddy_block_order()

Type Parameter Key Value
BUF_SIZE 0 block 0
BIT_INFO 0 block 0x0,0x0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c __force_merge() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
CAPPED_DATA 0 block 1
DATA_SOURCE 0 block r rbtree_get_free_block
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c __gpu_buddy_free() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block r __get_buddy
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c __gpu_buddy_free() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1 [m]
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c __gpu_buddy_free() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1 [m]
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c __gpu_buddy_undo_splits() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
CAPPED_DATA 0 block 1
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c alloc_from_freetree() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 1-u64max
DATA_SOURCE 0 block r get_maxblock
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 block->subtree_max_alignment 4096-u32max[c]

drivers/gpu/buddy.c gpu_buddy_offset_aligned_allocation() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c gpu_buddy_offset_aligned_allocation() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
PARAM_VALUE 0 block->header 0,2048-u64max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock
HALF_LOCKED2 &manager->lock
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c mark_allocated() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
PARAM_VALUE 0 block->header 0,1024-u64max
DATA_SOURCE 0 block $1
BIT_INFO 0 block->header 0x400,0xfffffffffffff7ff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c mark_allocated() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
PARAM_VALUE 0 block->header 0,1024-u64max
DATA_SOURCE 0 block $1
BIT_INFO 0 block->header 0x400,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c mark_free() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c mark_free() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
PARAM_VALUE 0 block->header 0,2048-u64max
DATA_SOURCE 0 block $1
BIT_INFO 0 block->header 0x800,0xfffffffffffffbff
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c mark_split() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
PARAM_VALUE 0 block->header 0,1024-u64max
DATA_SOURCE 0 block $1
BIT_INFO 0 block->header 0xc00,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c rbtree_insert() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 block->header 0,2048-u64max[c]

drivers/gpu/buddy.c rbtree_remove() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
CAPPED_DATA 0 block 1
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/buddy.c split_block() -> gpu_buddy_block_order()

Type Parameter Key Value
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/buddy.c split_block() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/drm/xe/xe_lmtt.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/xe/xe_ggtt.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ggtt->lock
TYPE_LOCK (struct xe_ggtt)->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &mm->mmap_lock
LOCK2 &prange->migrate_mutex
LOCK2 &svms->lock
HALF_LOCKED2 &process_info->lock
TYPE_LOCK (struct mm_struct)->mmap_lock
TYPE_LOCK (struct svm_range)->migrate_mutex
TYPE_LOCK (struct svm_range_list)->lock

drivers/gpu/drm/xe/xe_bo.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 ttm_bo->base.resv

drivers/gpu/drm/i915/i915_ttm_buddy_manager.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bman->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &(plane->dev)->mode_config.panic_lock
HALF_LOCKED2 flags

drivers/gpu/drm/drm_buddy.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &bman->lock
HALF_LOCKED2 &m->lock
TYPE_LOCK (struct i915_ttm_buddy_manager)->lock

drivers/gpu/drm/xe/xe_pt.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/xe/xe_ttm_vram_mgr.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mgr->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_vram_mgr_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &con->critical_region_lock
TYPE_LOCK (struct amdgpu_ras)->critical_region_lock

drivers/gpu/drm/i915/intel_memory_region.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1

drivers/gpu/drm/xe/xe_svm.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &driver_migrate_lock
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &vm->lock
HALF_LOCKED2 global &drm_unplug_srcu

drivers/gpu/drm/i915/i915_scatterlist.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 obj->base.resv

drivers/gpu/tests/gpu_buddy_test.c gpu_buddy_block_size() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max
DATA_SOURCE 0 block $1

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_limit() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 0,4096-ptr_max

drivers/gpu/tests/gpu_buddy_test.c gpu_test_buddy_alloc_limit() -> gpu_buddy_block_order()

Type Parameter Key Value
PARAM_VALUE 0 block 4096-ptr_max