Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

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

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 0 parser->adev 4096-ptr_max
PARAM_VALUE 0 parser->bo_list 0,4096-ptr_max
PARAM_VALUE 0 parser->chunks 4096-ptr_max
PARAM_VALUE 0 parser->ctx 4096-ptr_max
PARAM_VALUE 0 parser->exec.flags 3
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_interval 0
PARAM_VALUE 0 parser->exec.ticket.done_acquire 1
PARAM_VALUE 0 parser->exec.ticket.is_wait_die 0
PARAM_VALUE 0 parser->fence 0
PARAM_VALUE 0 parser->filp 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader_idx 0-s32max
PARAM_VALUE 0 parser->gang_size 1-4,6-2147483656
PARAM_VALUE 0 parser->mn 0
PARAM_VALUE 0 parser->nchunks 0-s32max
PARAM_VALUE 0 parser->post_deps 0,16,4096-ptr_max
PARAM_VALUE 0 parser->uf_bo 0,4096-ptr_max
PARAM_VALUE 0 *parser->adev->vce.img_size 0-4294967295
PARAM_VALUE 1 addr 0-144115188075855871
PARAM_VALUE 2 bo 1344712718618877952
PARAM_VALUE 3 map 7653731942720589824
CAPPED_DATA 0 parser->filp 1
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
CAPPED_DATA 1 addr 1
CAPPED_DATA 1 addr 1
DATA_SOURCE 0 parser $0
MEM_ZERO 0 parser

drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_cs_reloc() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 0 parser->adev 4096-ptr_max
PARAM_VALUE 0 parser->bo_list 0-1025,1027-1029,1031-ptr_max
PARAM_VALUE 0 parser->chunks 4096-ptr_max
PARAM_VALUE 0 parser->ctx 4096-ptr_max
PARAM_VALUE 0 parser->exec.flags 3
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_countdown 0-15
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_interval 1
PARAM_VALUE 0 parser->exec.ticket.done_acquire 1
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.name 4096-ptr_max
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.wait_type_inner 0,4
PARAM_VALUE 0 parser->exec.ticket.is_wait_die 1
PARAM_VALUE 0 parser->exec.ticket.ww_class 8825623990767841280
PARAM_VALUE 0 parser->fence 0
PARAM_VALUE 0 parser->filp 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader_idx 0-s32max
PARAM_VALUE 0 parser->gang_size 1-4,6-2147483656
PARAM_VALUE 0 parser->mn 0
PARAM_VALUE 0 parser->nchunks 0-s32max
PARAM_VALUE 0 parser->post_deps 0,16,4096-ptr_max
PARAM_VALUE 0 parser->uf_bo 0,4096-ptr_max
PARAM_VALUE 0 *parser->adev->vce.img_size 0-4294967295
PARAM_VALUE 2 bo 8511361441522475008
PARAM_VALUE 3 map 668070799134920704
CAPPED_DATA 0 parser->ctx->generation 1
CAPPED_DATA 0 parser->filp 1
CAPPED_DATA 0 parser->filp->driver_priv->vm.generation 1
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 0 parser $0

drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_validate_bo() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 0 parser->adev 4096-ptr_max
PARAM_VALUE 0 parser->bo_list 0-1025,1027-1029,1031-ptr_max
PARAM_VALUE 0 parser->chunks 4096-ptr_max
PARAM_VALUE 0 parser->ctx 4096-ptr_max
PARAM_VALUE 0 parser->exec.flags 3
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_countdown 0-15
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_interval 1
PARAM_VALUE 0 parser->exec.ticket.done_acquire 1
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.name 4096-ptr_max
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.wait_type_inner 0,4
PARAM_VALUE 0 parser->exec.ticket.is_wait_die 1
PARAM_VALUE 0 parser->exec.ticket.ww_class 8825623990767841280
PARAM_VALUE 0 parser->fence 0
PARAM_VALUE 0 parser->filp 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader_idx 0-s32max
PARAM_VALUE 0 parser->gang_size 1-4,6-2147483656
PARAM_VALUE 0 parser->mn 0
PARAM_VALUE 0 parser->nchunks 0-s32max
PARAM_VALUE 0 parser->post_deps 0,16,4096-ptr_max
PARAM_VALUE 0 parser->uf_bo 0,4096-ptr_max
PARAM_VALUE 2 bo 6217563108321652736
PARAM_VALUE 3 map 3407885689990131712
CAPPED_DATA 0 parser->ctx->generation 1
CAPPED_DATA 0 parser->filp 1
CAPPED_DATA 0 parser->filp->driver_priv->vm.generation 1
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 0 parser $0

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_uvd_cs_pass1() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 2 bo 3904178950680555520
PARAM_VALUE 3 map 2495675481929252864
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 1 addr r amdgpu_uvd_get_addr_from_ctx

drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_uvd_cs_pass2() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 2 bo 2010432491570884608
PARAM_VALUE 3 map 3861051173737218048
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 1 addr r amdgpu_uvd_get_addr_from_ctx

drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c vcn_v4_0_dec_msg() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 0 parser->adev 4096-ptr_max
PARAM_VALUE 0 parser->bo_list 0-1025,1027-1029,1031-ptr_max
PARAM_VALUE 0 parser->chunks 4096-ptr_max
PARAM_VALUE 0 parser->ctx 4096-ptr_max
PARAM_VALUE 0 parser->exec.flags 3
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_countdown 0-15
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_interval 1
PARAM_VALUE 0 parser->exec.ticket.done_acquire 1
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.name 4096-ptr_max
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.wait_type_inner 0,4
PARAM_VALUE 0 parser->exec.ticket.is_wait_die 1
PARAM_VALUE 0 parser->exec.ticket.ww_class 8825623990767841280
PARAM_VALUE 0 parser->fence 0
PARAM_VALUE 0 parser->filp 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader_idx 0-s32max
PARAM_VALUE 0 parser->gang_size 1-4,6-2147483656
PARAM_VALUE 0 parser->mn 0
PARAM_VALUE 0 parser->nchunks 0-s32max
PARAM_VALUE 0 parser->post_deps 0,16,4096-ptr_max
PARAM_VALUE 0 parser->uf_bo 0,4096-ptr_max
PARAM_VALUE 1 addr 0-144115188075855871
PARAM_VALUE 2 bo 4332625143529324544
PARAM_VALUE 3 map 8351951945482035200
CAPPED_DATA 0 parser->ctx->generation 1
CAPPED_DATA 0 parser->filp 1
CAPPED_DATA 0 parser->filp->driver_priv->vm.generation 1
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 0 parser $0
DATA_SOURCE 1 addr $2 [m]

drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c vcn_v3_0_dec_msg() -> amdgpu_cs_find_mapping()

Type Parameter Key Value
PARAM_VALUE 0 parser 1894173549278507008
PARAM_VALUE 0 parser->adev 4096-ptr_max
PARAM_VALUE 0 parser->adev->vcn.inst 4096-ptr_max
PARAM_VALUE 0 parser->bo_list 0-1025,1027-1029,1031-ptr_max
PARAM_VALUE 0 parser->chunks 4096-ptr_max
PARAM_VALUE 0 parser->ctx 4096-ptr_max
PARAM_VALUE 0 parser->exec.flags 3
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_countdown 0-15
PARAM_VALUE 0 parser->exec.ticket.deadlock_inject_interval 1
PARAM_VALUE 0 parser->exec.ticket.done_acquire 1
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.name 4096-ptr_max
PARAM_VALUE 0 parser->exec.ticket.first_lock_dep_map.wait_type_inner 0,4
PARAM_VALUE 0 parser->exec.ticket.is_wait_die 1
PARAM_VALUE 0 parser->exec.ticket.ww_class 8825623990767841280
PARAM_VALUE 0 parser->fence 0
PARAM_VALUE 0 parser->filp 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader 4096-ptr_max
PARAM_VALUE 0 parser->gang_leader_idx 0-s32max
PARAM_VALUE 0 parser->gang_size 1-4,6-2147483656
PARAM_VALUE 0 parser->mn 0
PARAM_VALUE 0 parser->nchunks 0-s32max
PARAM_VALUE 0 parser->post_deps 0,16,4096-ptr_max
PARAM_VALUE 0 parser->uf_bo 0,4096-ptr_max
PARAM_VALUE 1 addr 0-144115188075855871
PARAM_VALUE 2 bo 3857585752295890944
PARAM_VALUE 3 map 3185301531274846208
CAPPED_DATA 0 parser->ctx->generation 1
CAPPED_DATA 0 parser->filp 1
CAPPED_DATA 0 parser->filp->driver_priv->vm.generation 1
CAPPED_DATA 0 parser->gang_size 1
CAPPED_DATA 0 parser->nchunks 1
DATA_SOURCE 0 parser $0
DATA_SOURCE 1 addr $2 [m]