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/gfx_v9_4_3.c gfx_v9_4_3_cp_resume() -> amdgpu_xcp_init()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 0 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 xcp_mgr->adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 xcp_mgr->funcs 0,4096-ptr_max
PARAM_VALUE 1 num_xcps 0-16
PARAM_VALUE 2 mode (-128)-(-2),0-127
CAPPED_DATA 2 mode 1
DATA_SOURCE 2 mode r amdgpu_xcp_query_partition_mode

drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c aqua_vanjaram_switch_partition_mode() -> amdgpu_xcp_init()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.funcs 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.funcs->switch_partition_mode 0,7464920116160364544
PARAM_VALUE 0 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 xcp_mgr->adev->gmc.gmc_funcs 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gmc.gmc_funcs->query_mem_partition_mode 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_domain 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 xcp_mgr->funcs 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->funcs->switch_partition_mode 3403075751467401216,8934298401349943296
PARAM_VALUE 0 xcp_mgr->mode (-2)
PARAM_VALUE 0 xcp_mgr->xcp_lock.dep_map->name 0-255
PARAM_VALUE 0 xcp_mgr->xcp_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 xcp_mgr->xcp_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 xcp_mgr->xcp_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->lockdep_map->name 0-255
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->rescuer->task->delays->lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->rescuer->task->pi_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 num_xcps 0-16
PARAM_VALUE 2 mode 0-4
DATA_SOURCE 0 xcp_mgr $0
DATA_SOURCE 2 mode $1 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &xcp_mgr->xcp_lock
TYPE_LOCK (struct amdgpu_xcp_mgr)->xcp_lock

3d756af95eb3bd31 gfx_v12_1_cp_resume() -> amdgpu_xcp_init()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 xcp_mgr->funcs 0,4096-ptr_max
PARAM_VALUE 1 num_xcps 0-16
PARAM_VALUE 2 mode (-128)-(-2),0-127
CAPPED_DATA 2 mode 1
DATA_SOURCE 2 mode r amdgpu_xcp_query_partition_mode

drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c amdgpu_xcp_mgr_init() -> amdgpu_xcp_init()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->accel_working 0
PARAM_VALUE 0 xcp_mgr->adev->asic_type 19-u16max
PARAM_VALUE 0 xcp_mgr->adev->benchmark_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->compute_timeout 0-536870912,4611686018427387902,s64max
PARAM_VALUE 0 xcp_mgr->adev->debug_disable_ce_logs 1
PARAM_VALUE 0 xcp_mgr->adev->debug_disable_gpu_ring_reset 1
PARAM_VALUE 0 xcp_mgr->adev->debug_disable_soft_recovery 1
PARAM_VALUE 0 xcp_mgr->adev->debug_enable_ce_cs 1
PARAM_VALUE 0 xcp_mgr->adev->debug_exp_resets 1
PARAM_VALUE 0 xcp_mgr->adev->debug_hibernation_thaw_resume_gpu 1
PARAM_VALUE 0 xcp_mgr->adev->debug_largebar 1
PARAM_VALUE 0 xcp_mgr->adev->debug_use_vram_fw_buf 1
PARAM_VALUE 0 xcp_mgr->adev->debug_vm 1
PARAM_VALUE 0 xcp_mgr->adev->debug_vm_userptr 1
PARAM_VALUE 0 xcp_mgr->adev->dev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->enforce_isolation_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->firmware.load_type 0-3
PARAM_VALUE 0 xcp_mgr->adev->firmware.mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->flags 0-u32max
PARAM_VALUE 0 xcp_mgr->adev->gang_submit 7374952732141793280
PARAM_VALUE 0 xcp_mgr->adev->gfx.gfx_off_entrycount 0
PARAM_VALUE 0 xcp_mgr->adev->gfx.gfx_off_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.gfx_off_req_count 1
PARAM_VALUE 0 xcp_mgr->adev->gfx.gfx_off_residency 0
PARAM_VALUE 0 xcp_mgr->adev->gfx.gpu_clock_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.partition_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.pipe_reserve_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.reset_sem_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.rlc.reg_funcs 4530242029980450816
PARAM_VALUE 0 xcp_mgr->adev->gfx.userq_sch_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.workload_profile_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx_timeout 0-536870912,4611686018427387902,s64max
PARAM_VALUE 0 xcp_mgr->adev->gmc.gart_size 536870912
PARAM_VALUE 0 xcp_mgr->adev->gmc.gmc_funcs 0
PARAM_VALUE 0 xcp_mgr->adev->grbm_idx_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->harvest_ip_mask 0,3-4,7
PARAM_VALUE 0 xcp_mgr->adev->init_lvl 1988795180910964736,2137031549380030464,7132701583965396992
PARAM_VALUE 0 xcp_mgr->adev->mman.buffer_funcs 0
PARAM_VALUE 0 xcp_mgr->adev->mn_lock.first_waiter 0
PARAM_VALUE 0 xcp_mgr->adev->mn_lock.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->mn_lock.osq.tail.counter 0
PARAM_VALUE 0 xcp_mgr->adev->mn_lock.owner.counter 0
PARAM_VALUE 0 xcp_mgr->adev->mode_info.num_crtc 1-6
PARAM_VALUE 0 xcp_mgr->adev->notifier_lock.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->num_rings 0
PARAM_VALUE 0 xcp_mgr->adev->pdev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->pm.mutex.first_waiter 0
PARAM_VALUE 0 xcp_mgr->adev->pm.mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->pm.mutex.owner.counter 0
PARAM_VALUE 0 xcp_mgr->adev->pm.od_kobj_list.next 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->pm.od_kobj_list.prev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->pm.pcie_gen_mask 1-u32max
PARAM_VALUE 0 xcp_mgr->adev->pm.pcie_mlw_mask 1-u32max
PARAM_VALUE 0 xcp_mgr->adev->pm.smu_prv_buffer_size 0,268435456-536870912,1073741824,2147483648
PARAM_VALUE 0 xcp_mgr->adev->pm.stable_pstate_ctx_lock.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->psp.mutex.first_waiter 0
PARAM_VALUE 0 xcp_mgr->adev->psp.mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->psp.mutex.owner.counter 0
PARAM_VALUE 0 xcp_mgr->adev->psp.ptl.mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->ram_is_direct_mapped 1
PARAM_VALUE 0 xcp_mgr->adev->ras_list.next 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->ras_list.prev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reg.audio_endpt.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.audio_endpt.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.didt.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.didt.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.gc_cac.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.gc_cac.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.port_rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.port_wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.rreg64 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.rreg64_ext 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.rreg_ext 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.wreg64 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.wreg64_ext 0
PARAM_VALUE 0 xcp_mgr->adev->reg.pcie.wreg_ext 0
PARAM_VALUE 0 xcp_mgr->adev->reg.se_cac.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.se_cac.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.smc.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.smc.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.uvd_ctx.rreg 0
PARAM_VALUE 0 xcp_mgr->adev->reg.uvd_ctx.wreg 0
PARAM_VALUE 0 xcp_mgr->adev->reset_domain 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_list.next 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_list.prev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->rmmio 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->sdma.num_inst_per_aid 2,4
PARAM_VALUE 0 xcp_mgr->adev->sdma.num_inst_per_xcc 2,4
PARAM_VALUE 0 xcp_mgr->adev->sdma_timeout 0-536870912,4611686018427387902,s64max
PARAM_VALUE 0 xcp_mgr->adev->shutdown 0
PARAM_VALUE 0 xcp_mgr->adev->srbm_mutex.first_waiter 0
PARAM_VALUE 0 xcp_mgr->adev->srbm_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->srbm_mutex.owner.counter 0
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_enabled.counter 1
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.burst 1
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.flags 1
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.interval 14750
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.lock.magic 3735899821
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->adev->throttling_logging_rs.lock.owner_cpu u32max
PARAM_VALUE 0 xcp_mgr->adev->usec_timeout 100000,1000000
PARAM_VALUE 0 xcp_mgr->adev->userq_doorbell_xa.xa_flags 1
PARAM_VALUE 0 xcp_mgr->adev->vcn.workload_profile_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->video_timeout 0-536870912,4611686018427387902,s64max
PARAM_VALUE 0 xcp_mgr->adev->virt.access_req_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->virt.access_req_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 xcp_mgr->adev->virt.ops 457915544896790528,3983718684652769280,8122513010909896704
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.cper_rptr 0
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.burst 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.flags 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.interval 1250
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.lock.magic 3735899821
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_chk_criti_rs.lock.owner_cpu u32max
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.burst 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.flags 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.interval 1250
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.lock.magic 3735899821
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_cper_dump_rs.lock.owner_cpu u32max
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.burst 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.flags 1
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.interval 1250
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.lock.magic 3735899821
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_error_cnt_rs.lock.owner_cpu u32max
PARAM_VALUE 0 xcp_mgr->adev->virt.ras.ras_telemetry_mutex.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->virt.req_init_data_ver 0-2
PARAM_VALUE 0 xcp_mgr->adev->virt.vf_errors.lock.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->vm_manager.vm_pte_funcs 0
PARAM_VALUE 0 xcp_mgr->funcs 1439557118434271232,2310569883777523712
PARAM_VALUE 0 xcp_mgr->funcs->get_ip_details 3956619961752997888,6030325810753572864
PARAM_VALUE 0 xcp_mgr->funcs->switch_partition_mode 0,3403075751467401216,8934298401349943296
PARAM_VALUE 0 xcp_mgr->xcp_lock.dep_map->name 0-255
PARAM_VALUE 0 xcp_mgr->xcp_lock.first_waiter 0
PARAM_VALUE 0 xcp_mgr->xcp_lock.magic 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->xcp_lock.osq.tail.counter 0
PARAM_VALUE 0 xcp_mgr->xcp_lock.owner.counter 0
PARAM_VALUE 1 num_xcps 1
BUF_SIZE 0 xcp_mgr 128264
DATA_SOURCE 0 xcp_mgr r _kzalloc_noprof
DATA_SOURCE 1 num_xcps $2
DATA_SOURCE 2 mode $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 xcp_mgr->adev->discovery.debugfs_blob.size 1-4000000
HOST_DATA 0 xcp_mgr->adev->discovery.offset 0-u64max
HOST_DATA 0 xcp_mgr->adev->discovery.size 1-u32max
HOST_DATA 0 xcp_mgr->adev->virt.fw_reserve.checksum_key 0-u32max
HOST_DATA 0 xcp_mgr->adev->virt.init_data_header.offset 0-u32max
HOST_DATA 0 xcp_mgr->adev->virt.init_data_header.size_kb 0-u32max
NO_OVERFLOW_SIMPLE 0 xcp_mgr->adev->rmmio_size

drivers/gpu/drm/amd/amdgpu/soc_v1_0.c soc_v1_0_switch_partition_mode() -> amdgpu_xcp_init()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.imu.funcs 0,4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->gfx.imu.funcs->switch_compute_partition 0,4685992232287051776
PARAM_VALUE 0 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 xcp_mgr->adev->gmc.num_mem_partitions 0-16
PARAM_VALUE 0 xcp_mgr->adev->reset_domain 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xcp_mgr->adev->reset_domain->sem.first_waiter->type 0-1
PARAM_VALUE 0 xcp_mgr->funcs 4096-ptr_max
PARAM_VALUE 0 xcp_mgr->funcs->switch_partition_mode 3403075751467401216,8934298401349943296
PARAM_VALUE 0 xcp_mgr->mode (-2)
PARAM_VALUE 0 xcp_mgr->xcp_lock.dep_map->name 0-255
PARAM_VALUE 0 xcp_mgr->xcp_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 xcp_mgr->xcp_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 xcp_mgr->xcp_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.owner (-1)
PARAM_VALUE 0 xcp_mgr->xcp_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->lockdep_map->name 0-255
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->rescuer->task->delays->lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *xcp_mgr->adev->kfd.dev->ih_wq->rescuer->task->pi_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 1 num_xcps 0-16
PARAM_VALUE 2 mode 0-4
CAPPED_DATA 0 xcp_mgr->adev->gmc.num_mem_partitions 1
DATA_SOURCE 0 xcp_mgr $0
DATA_SOURCE 2 mode $1 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &xcp_mgr->xcp_lock
TYPE_LOCK (struct amdgpu_xcp_mgr)->xcp_lock