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_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 1 flags 0

drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c gfx_v9_4_3_cp_resume() -> amdgpu_xcp_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 1 flags 0

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c kgd2kfd_device_init() -> amdgpu_xcp_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 0 xcp_mgr 4096-ptr_max
PARAM_VALUE 1 flags 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &xcp_mgr->xcp_lock

3d756af95eb3bd31 gfx_v12_1_cp_resume() -> amdgpu_xcp_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 1 flags 0

3d756af95eb3bd31 gfx_v12_1_cp_resume() -> amdgpu_xcp_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 1 flags 0

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_get_current_compute_partition() -> amdgpu_xcp_query_partition_mode()

Type Parameter Key Value
PARAM_VALUE 1 flags 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c __amdgpu_xcp_switch_partition_mode() -> amdgpu_xcp_query_partition_mode()

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,41630,41632-41633,41635,41637-41638,41694,41701,41717,41920,62460,65472
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->query_partition_mode 2438315009132179456,5451202669137715200
PARAM_VALUE 0 xcp_mgr->funcs->switch_partition_mode 3403075751467401216,8934298401349943296
PARAM_VALUE 0 xcp_mgr->mode (-2),0-4
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 1 flags 1
CAPPED_DATA 0 &xcp_mgr->xcp_lock 1
DATA_SOURCE 0 xcp_mgr $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 0 &xcp_mgr->xcp_lock
TYPE_LOCK (struct amdgpu_xcp_mgr)->xcp_lock