Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_cs_find_mapping() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo->base.resv 4096-ptr_max
PARAM_VALUE 0 bo->resource 0,4096-ptr_max

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_cs_parser_bos() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_create_isp_user() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 *bo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_create_reserved() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 *bo_ptr->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c amdgpu_gart_table_ram_alloc() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->base._resv.lock.ww_class 8825623990767841280
PARAM_VALUE 0 bo->base.funcs 8669167203972599808
PARAM_VALUE 0 bo->base.refcount.refcount.refs.counter 1
PARAM_VALUE 0 bo->base.vma_node.vm_lock.magic 3736018669
PARAM_VALUE 0 bo->base.vma_node.vm_lock.owner (-1)
PARAM_VALUE 0 bo->base.vma_node.vm_lock.owner_cpu u32max
PARAM_VALUE 0 bo->bulk_move 0
PARAM_VALUE 0 bo->resource 4096-ptr_max
PARAM_VALUE 0 bo->sg 4096-ptr_max
PARAM_VALUE 0 bo->type 0-2
RX_PATH
TASK_NOT_RUNNING
LOCK2 bo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c amdgpu_dm_plane_helper_prepare_fb() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->resource 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rbo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/mes_userqueue.c mes_userq_create_wptr_mapping() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->base.size 0-4096
LOCK2 obj->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c amdgpu_amdkfd_alloc_kernel_mem() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->base._resv.lock.ww_class 8825623990767841280
PARAM_VALUE 0 bo->base.funcs 8669167203972599808
PARAM_VALUE 0 bo->base.refcount.refcount.refs.counter 1
PARAM_VALUE 0 bo->base.vma_node.vm_lock.magic 3736018669
PARAM_VALUE 0 bo->base.vma_node.vm_lock.owner (-1)
PARAM_VALUE 0 bo->base.vma_node.vm_lock.owner_cpu u32max
PARAM_VALUE 0 bo->bulk_move 0
PARAM_VALUE 0 bo->resource 4096-ptr_max
PARAM_VALUE 0 bo->sg 0
PARAM_VALUE 0 bo->type 0-2
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 bo->base.size 0-u64max[c]
USER_DATA 0 bo->base.vma_node.vm_node.size 1-s32max[c]
USER_DATA 0 bo->base.vma_node.vm_node.start 0-s32max[c]
USER_DATA 0 bo->page_alignment 0-u32max
LOCK2 bo->tbo.base.resv
HALF_LOCKED2 &p->mutex

drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_wb.c amdgpu_dm_wb_prepare_job() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->resource 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rbo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c amdgpu_userq_vm_validate_and_restore_queue() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_display.c amdgpu_display_crtc_page_flip_target() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
LOCK2 &crtc->mutex
LOCK2 &plane->mutex
LOCK2 new_abo->tbo.base.resv
TYPE_LOCK (struct drm_crtc)->mutex
TYPE_LOCK (struct drm_plane)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c amdgpu_vkms_prepare_fb() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->resource 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 rbo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c amdgpu_amdkfd_map_gtt_bo_to_gart() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->resource 4096-ptr_max
LOCK2 &p->mutex
LOCK2 bo->tbo.base.resv
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c amdgpu_vm_sdma_map_table() -> amdgpu_ttm_alloc_gart()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &p->mutex
HALF_LOCKED2 global &drm_unplug_srcu
HALF_LOCKED2 vm->root.bo->tbo.base.resv