Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_move_blit() -> amdgpu_ttm_clear_buffer()

Type Parameter Key Value
PARAM_VALUE 0 entity 4096-ptr_max
PARAM_VALUE 0 entity->lock.dep_map->name 0-255
PARAM_VALUE 0 entity->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 entity->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 entity->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 entity->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 entity->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 entity->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 entity->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 entity->lock.osq.tail.counter 0-s32max
PARAM_VALUE 1 bo 4096-ptr_max
PARAM_VALUE 2 resv 0
PARAM_VALUE 3 out_fence 1362362295072735232
PARAM_VALUE 3 *out_fence 0
PARAM_VALUE 4 consider_clear_status 0
PARAM_VALUE 5 k_job_id 18446744073709551607
DATA_SOURCE 1 bo r ttm_to_amdgpu_bo
BIT_INFO 1 bo->flags 0x200,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_create() -> amdgpu_ttm_clear_buffer()

Type Parameter Key Value
PARAM_VALUE 0 entity 0,4096-ptr_max
PARAM_VALUE 1 bo 4096-ptr_max
PARAM_VALUE 1 bo->flags 0,2-131592
PARAM_VALUE 1 bo->placement.num_placement 1-3
PARAM_VALUE 1 bo->placement.placement 4096-ptr_max
PARAM_VALUE 1 bo->placements 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base._resv.fences 0
PARAM_VALUE 1 bo->tbo.base._resv.lock.base.dep_map->name 0-255
PARAM_VALUE 1 bo->tbo.base._resv.lock.base.magic 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base._resv.lock.ctx 0
PARAM_VALUE 1 bo->tbo.base._resv.lock.ww_class 8825623990767841280
PARAM_VALUE 1 bo->tbo.base._resv.lock.ww_class->is_wait_die 0-s32max
PARAM_VALUE 1 bo->tbo.base.dev 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.filp 0
PARAM_VALUE 1 bo->tbo.base.funcs 8669167203972599808
PARAM_VALUE 1 bo->tbo.base.gpuva.lock.dep_map->name 0-255
PARAM_VALUE 1 bo->tbo.base.gpuva.lock.first_waiter 0
PARAM_VALUE 1 bo->tbo.base.gpuva.lock.magic 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.gpuva.lock.owner.counter 0
PARAM_VALUE 1 bo->tbo.base.handle_count 0
PARAM_VALUE 1 bo->tbo.base.lru_node.next 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.lru_node.next->next 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.lru_node.prev 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.lru_node.prev->next 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.lru_node.prev->prev 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.refcount.refcount.refs.counter 1
PARAM_VALUE 1 bo->tbo.base.resv 1-u64max
PARAM_VALUE 1 bo->tbo.base.resv->fences 0
PARAM_VALUE 1 bo->tbo.base.resv->fences->num_fences 0-4294967295
PARAM_VALUE 1 bo->tbo.base.resv->lock.base.magic 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.resv->lock.ctx 0
PARAM_VALUE 1 bo->tbo.base.resv->lock.ww_class 8825623990767841280
PARAM_VALUE 1 bo->tbo.base.size 0,4096-u64max
PARAM_VALUE 1 bo->tbo.base.vma_node.driver_private 0
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_lock.magic 3736018669
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_lock.owner (-1)
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_lock.owner_cpu u32max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.flags 0
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->hole_stack.next 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->hole_stack.next->next 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->hole_stack.next->prev 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->holes_addr.rb_node 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->holes_size.rb_leftmost 4096-ptr_max
PARAM_VALUE 1 bo->tbo.base.vma_node.vm_node.mm->holes_size.rb_root.rb_node 4096-ptr_max
PARAM_VALUE 1 bo->tbo.bdev 4096-ptr_max
PARAM_VALUE 1 bo->tbo.bdev->dev_mapping->i_mmap_rwsem.dep_map->name 0-255
PARAM_VALUE 1 bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 1 bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 1 bo->tbo.bdev->dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 bo->tbo.bdev->pool.dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 1 bo->tbo.bulk_move 0
PARAM_VALUE 1 bo->tbo.destroy 1328059983489359872,3687779195912622080,6459761284373078016
PARAM_VALUE 1 bo->tbo.pin_count 0
PARAM_VALUE 1 bo->tbo.resource 4096-ptr_max
PARAM_VALUE 1 bo->tbo.resource->bus.addr 0
PARAM_VALUE 1 bo->tbo.resource->bus.offset 0
PARAM_VALUE 1 bo->tbo.resource->mem_type 2
PARAM_VALUE 1 bo->tbo.sg 0
PARAM_VALUE 1 bo->tbo.ttm->page_flags 0,2,4,6,12,14,16,18,20,22,28,30
PARAM_VALUE 1 bo->tbo.ttm->restore 0
PARAM_VALUE 1 bo->tbo.ttm->restore->alloced_page 0-s64max
PARAM_VALUE 1 bo->tbo.ttm->restore->alloced_pages 0-s64max
PARAM_VALUE 1 bo->tbo.ttm->restore->first_dma 0-s64max
PARAM_VALUE 1 bo->tbo.ttm->restore->order 0-4294967295
PARAM_VALUE 1 bo->tbo.ttm->restore->page_caching 0-4294967295
PARAM_VALUE 1 bo->tbo.ttm->restore->restored_pages 0-s64max
PARAM_VALUE 1 bo->tbo.ttm->restore->snapshot_alloc.remaining_pages 0-4294967295
PARAM_VALUE 1 bo->tbo.ttm->sg 0
PARAM_VALUE 1 bo->tbo.ttm->sg->orig_nents 0-s32max
PARAM_VALUE 1 bo->tbo.ttm->swap_storage 0
PARAM_VALUE 1 bo->tbo.type 0-2
PARAM_VALUE 1 bo->vm_bo 0
PARAM_VALUE 2 resv 1-u64max
PARAM_VALUE 2 resv->fences 0
PARAM_VALUE 2 resv->fences->num_fences 0-4294967295
PARAM_VALUE 2 resv->lock.base.magic 4096-ptr_max
PARAM_VALUE 2 resv->lock.ctx 0
PARAM_VALUE 2 resv->lock.ww_class 8825623990767841280
PARAM_VALUE 3 out_fence 5515400654304391168
PARAM_VALUE 4 consider_clear_status 1
PARAM_VALUE 5 k_job_id 18446744073709551606
BUF_SIZE 1 bo 1120-u32max
BUF_SIZE 1 bo 1120-u32max
BUF_SIZE 1 bo->tbo.base.funcs 120
DATA_SOURCE 1 bo r __kvmalloc_node_noprof
MEM_ZERO 1 &bo->tbo.base.vma_node
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 bo->allowed_domains 0-126[c]
USER_DATA 1 bo->flags 0,520-131592[c][u]
USER_DATA 1 bo->preferred_domains 0-126[c]
USER_DATA 1 bo->tbo.base.size 0,4096-u64max[c]
USER_DATA 1 bo->tbo.base.vma_node.vm_node.size 1-s32max[c]
USER_DATA 1 bo->tbo.base.vma_node.vm_node.start 0-s32max[c]
USER_DATA 1 bo->tbo.page_alignment 0-u32max
USER_DATA 1 bo->tbo.ttm->num_pages 0-4294967295[c]
USER_DATA 1 bo->tbo.ttm->restore->snapshot_alloc.remaining_pages 0-4294967295[c]
NO_OVERFLOW_SIMPLE 1 bo->tbo.base.dev->num_crtcs
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &prange->migrate_mutex
HALF_LOCKED2 &svms->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_release_notify() -> amdgpu_ttm_clear_buffer()

Type Parameter Key Value
PARAM_VALUE 0 entity 0,4096-ptr_max
PARAM_VALUE 1 bo 4096-ptr_max
PARAM_VALUE 1 bo->kfd_bo 0,4096-ptr_max
PARAM_VALUE 2 resv 4096-ptr_max
PARAM_VALUE 2 resv->fences 4096-ptr_max
PARAM_VALUE 3 out_fence 8564328292697554944
PARAM_VALUE 3 *out_fence 0
PARAM_VALUE 4 consider_clear_status 0
PARAM_VALUE 5 k_job_id 18446744073709551608
CAPPED_DATA 1 bo->kfd_bo 1
DATA_SOURCE 1 bo r ttm_to_amdgpu_bo
BIT_INFO 1 bo->flags 0x200,0xffffffffffffffff
RX_PATH
TASK_NOT_RUNNING
LOCK2 &bo->base._resv
TYPE_LOCK (struct drm_gem_object)->_resv