Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/mes_v12_1.c mes_v12_1_queue_init() -> amdgpu_mes_map_legacy_queue()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
PARAM_VALUE 0 adev->enable_uni_mes 1
PARAM_VALUE 0 adev->gfx.rlc.cs_data->section->reg_count 0-6,8,11,34,55-56,66,98-99,155,157-158,203,212,215,233,272,274,282,290,488
PARAM_VALUE 0 adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->rreg32 4096-ptr_max
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->wreg32 0,4096-ptr_max
PARAM_VALUE 0 adev->mes.adev 4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864
PARAM_VALUE 0 adev->mes.adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200
PARAM_VALUE 0 adev->mes.adev->ddev.anon_inode->i_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.cs_data->section->reg_count 0-6,8,11,34,55-56,66,98-99,155,157-158,203,212,215,233,272,274
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.reg_funcs 4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.reg_funcs->rreg32 4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.reg_funcs->wreg32 4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mes.adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 adev->mes.adev->virt.rlcg_reg_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 adev->mes.adev->xcp_mgr->adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530
PARAM_VALUE 0 adev->mes.ring 4096-ptr_max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->mman.bdev.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 adev->reset_domain 4096-ptr_max
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 adev->xcp_mgr->adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 1 ring->mqd_ptr 4096-ptr_max
PARAM_VALUE 1 ring->mqd_ptr->compute_misc_reserved 7
PARAM_VALUE 1 ring->mqd_ptr->compute_pipelinestat_enable 1
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se0 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se1 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se2 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se3 4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_active 1
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_base_addr_hi 0-16777215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_base_addr_lo 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_control 0-63
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_gfx_control 32768
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_ib_control 1048576
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_iq_timer 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_persistent_state 199254785
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_base_hi 0-16777215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_base_lo 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_control 3627057152-3627057215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_doorbell_control 0,1073741824-1342177276
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr_report_addr_hi 0-u16max
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr_report_addr_lo 0,4-4294967292
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_hi 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_lo 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_poll_addr_hi 0-u16max
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_poll_addr_lo 0,8-4294967288
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_quantum 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_vmid 0
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_base_addr_hi 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_base_addr_lo 0,4-4294967292
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_control 256
PARAM_VALUE 1 ring->mqd_ptr->header 3224438784
PARAM_VALUE 1 ring->wptr 0
DATA_SOURCE 0 adev $0
DATA_SOURCE 2 xcc_id $2
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/mes_v12_0.c mes_v12_0_queue_init() -> amdgpu_mes_map_legacy_queue()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->enable_uni_mes 1
PARAM_VALUE 0 adev->mes.ring 4096-ptr_max
PARAM_VALUE 0 adev->reset_domain 4096-ptr_max
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 1 ring->mqd_ptr 4096-ptr_max
PARAM_VALUE 1 ring->mqd_ptr->compute_misc_reserved 7
PARAM_VALUE 1 ring->mqd_ptr->compute_pipelinestat_enable 1
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se0 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se1 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se2 4294967295
PARAM_VALUE 1 ring->mqd_ptr->compute_static_thread_mgmt_se3 4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_active 1
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_base_addr_hi 0-16777215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_base_addr_lo 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_eop_control 0-63
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_ib_control 3145728
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_iq_timer 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_persistent_state 199251201
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_base_hi 0-16777215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_base_lo 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_control 3627057152-3627057215
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_doorbell_control 0,1073741824-1342177276
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr_report_addr_hi 0-u16max
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_rptr_report_addr_lo 0,4-4294967292
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_hi 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_lo 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_poll_addr_hi 0-u16max
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_pq_wptr_poll_addr_lo 0,8-4294967288
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_quantum 0
PARAM_VALUE 1 ring->mqd_ptr->cp_hqd_vmid 0
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_base_addr_hi 0-4294967295
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_base_addr_lo 0,4-4294967292
PARAM_VALUE 1 ring->mqd_ptr->cp_mqd_control 256
PARAM_VALUE 1 ring->mqd_ptr->header 3224438784
PARAM_VALUE 1 ring->mqd_ptr->reserved_184 32768
PARAM_VALUE 1 ring->wptr 0
PARAM_VALUE 2 xcc_id 0
DATA_SOURCE 0 adev $0

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_enable_kgq() -> amdgpu_mes_map_legacy_queue()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->gfx.gfx_ring 4096-ptr_max
PARAM_VALUE 0 adev->gfx.kiq 4096-ptr_max
PARAM_VALUE 0 adev->gfx.num_gfx_rings 1-u32max
PARAM_VALUE 0 adev->mes.enable_legacy_queue_map 1
PARAM_VALUE 0 adev->mes.funcs->map_legacy_queue 4096-ptr_max
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 2 xcc_id 0
DATA_SOURCE 0 adev $0
DATA_SOURCE 2 xcc_id $1

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_mes_enable_kcq() -> amdgpu_mes_map_legacy_queue()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->gfx.compute_ring 4096-ptr_max
PARAM_VALUE 0 adev->gfx.kiq 4096-ptr_max
PARAM_VALUE 0 adev->gfx.num_compute_rings 1-u32max
PARAM_VALUE 0 adev->gfx.rlc.cs_data->section->reg_count 0-6,8,11,34,55-56,66,98-99,155,157-158,203,212,215,233,272,274,282,290,488
PARAM_VALUE 0 adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->rreg32 4096-ptr_max
PARAM_VALUE 0 adev->gfx.rlc.reg_funcs->wreg32 0,4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 0 adev->mes.funcs->map_legacy_queue 4096-ptr_max
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 adev->xcp_mgr->adev->gfx.rlc.cs_data->section->reg_index 0,4,40960,41022,41164,41174,41176,41179,41461,41471-41472,41530,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
PARAM_VALUE 0 adev->xcp_mgr->adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 adev->xcp_mgr->adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 1 ring 4096-ptr_max
DATA_SOURCE 0 adev $0
DATA_SOURCE 2 xcc_id $1
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 adev->gfx.config.db_debug2 0-u32max
HOST_DATA 0 adev->gfx.config.mc_arb_ramcfg 0-u32max
HOST_DATA 0 adev->gfx.num_xcc_per_xcp 0-15[c]
HOST_DATA 0 adev->xcp_mgr->adev->discovery.debugfs_blob.size 1-u32max
HOST_DATA 0 adev->xcp_mgr->adev->discovery.offset 0-u64max
HOST_DATA 0 adev->xcp_mgr->adev->discovery.size 1-u32max
HOST_DATA 0 adev->xcp_mgr->adev->virt.fw_reserve.checksum_key 0-u32max
HOST_DATA 0 adev->xcp_mgr->adev->virt.init_data_header.offset 0-u32max
HOST_DATA 0 adev->xcp_mgr->adev->virt.init_data_header.size_kb 0-u32max
HOST_DATA 0 adev->xcp_mgr->num_xcp_per_mem_partition 0-8[c]
HOST_DATA 0 adev->xcp_mgr->num_xcps 1-8[c]

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_mes_reset_queue_start() -> amdgpu_mes_map_legacy_queue()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->dev 0,4096-ptr_max
PARAM_VALUE 0 adev->mes.adev->wb.num_wb 1-u32max
PARAM_VALUE 0 adev->mes.funcs 4096-ptr_max
PARAM_VALUE 0 adev->mes.funcs->unmap_legacy_queue 4096-ptr_max
PARAM_VALUE 0 adev->mes.mutex_hidden.dep_map->name 0-255
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 adev->mes.mutex_hidden.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 adev->mes.saved_flags 0,2048
PARAM_VALUE 1 ring 4096-ptr_max
PARAM_VALUE 1 ring->adev 4096-ptr_max
PARAM_VALUE 1 ring->adev->mes.funcs 4096-ptr_max
PARAM_VALUE 1 ring->adev->mes.funcs->reset_hw_queue 4096-ptr_max
PARAM_VALUE 1 ring->adev->mes.funcs->unmap_legacy_queue 4096-ptr_max
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.dep_map->name 0-255
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 1 ring->adev->mes.mutex_hidden.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 1 ring->adev->mes.saved_flags 0,2048
PARAM_VALUE 1 ring->funcs 4096-ptr_max
PARAM_VALUE 1 ring->mqd_obj 0,4096-ptr_max
PARAM_VALUE 1 ring->wptr 0
PARAM_VALUE 1 ring->wptr_cpu_addr 4096-ptr_max
PARAM_VALUE 1 ring->wptr_cpu_addr->counter 0
PARAM_VALUE 2 xcc_id 0
CAPPED_DATA 0 adev->mes.adev->wb.num_wb 1
DATA_SOURCE 1 ring $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &drm_unplug_srcu