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/gfx_v9_4_3.c gfx_v9_4_3_perf_monitor_ptl_init() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->gfx.ras->enable_watchdog_timer 0,219615250665283584,3046559257491165184
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->psp.funcs 1-u64max
PARAM_VALUE 0 adev->psp.ptl.hw_supported_state 0-1,3-u32max
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 1 req_code 2684354561
PARAM_VALUE 2 ptl_state 6003704077751500800
PARAM_VALUE 2 *ptl_state 0-1
PARAM_VALUE 3 fmt1 7713883340100050944
PARAM_VALUE 4 fmt2 2253285724773056512
DATA_SOURCE 0 adev $0
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ptl_enable_show() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 1 req_code 2684354560
PARAM_VALUE 2 ptl_state 8267162029257867264
PARAM_VALUE 2 *ptl_state 0-1
PARAM_VALUE 3 fmt1 8318939304517201920
PARAM_VALUE 4 fmt2 9073174769037807616
DATA_SOURCE 0 adev r drm_to_adev
BIT_INFO 0 adev->virt.caps 0x4,0xffffffff
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_psp.c ptl_enable_store() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->psp.ptl.mutex.dep_map->name 0-255
PARAM_VALUE 0 adev->psp.ptl.mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 adev->psp.ptl.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->psp.ptl.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.owner (-1)
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 0 adev->psp.ptl.permanently_disabled 0
PARAM_VALUE 1 req_code 2684354561
PARAM_VALUE 2 ptl_state 1831052426292486144
PARAM_VALUE 2 *ptl_state 0-1
PARAM_VALUE 3 fmt1 308447964143296512
PARAM_VALUE 4 fmt2 8244846299604373504
DATA_SOURCE 0 adev r drm_to_adev
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &ptl->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_ptl)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c ptl_format_show() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 1 req_code 2684354560
PARAM_VALUE 2 ptl_state 4548590794279718912
PARAM_VALUE 2 *ptl_state 0-1
PARAM_VALUE 3 fmt1 2410286400714375168
PARAM_VALUE 4 fmt2 3813288596764930048
DATA_SOURCE 0 adev r drm_to_adev
BIT_INFO 0 adev->virt.caps 0x4,0xffffffff
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_psp.c ptl_format_store() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev 4096-ptr_max
PARAM_VALUE 0 adev->psp.ptl.enabled 1
PARAM_VALUE 0 adev->psp.ptl.mutex.dep_map->name 0-255
PARAM_VALUE 0 adev->psp.ptl.mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 adev->psp.ptl.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 adev->psp.ptl.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.owner (-1)
PARAM_VALUE 0 adev->psp.ptl.mutex.wait_lock.owner_cpu u32max
PARAM_VALUE 1 req_code 2684354561
PARAM_VALUE 2 ptl_state 6380844630325690368
PARAM_VALUE 2 *ptl_state 1
PARAM_VALUE 3 fmt1 4239301185524854784
PARAM_VALUE 4 fmt2 5457925542742827008
DATA_SOURCE 0 adev r drm_to_adev
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &ptl->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct amdgpu_ptl)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gc_9_4_3.c kgd_v9_4_3_ptl_ctrl() -> amdgpu_ptl_perf_monitor_ctrl()

Type Parameter Key Value
PARAM_VALUE 0 adev->psp.ptl.hw_supported_state 1
PARAM_VALUE 1 req_code 2684354561
PARAM_VALUE 2 ptl_state 7046663833131339776
PARAM_VALUE 2 *ptl_state 0-1
PARAM_VALUE 3 fmt1 4326057019029008384
PARAM_VALUE 4 fmt2 5771293036308099072
DATA_SOURCE 0 adev $0
DATA_SOURCE 1 req_code $1
DATA_SOURCE 2 ptl_state $2
DATA_SOURCE 3 fmt1 $3
DATA_SOURCE 4 fmt2 $4
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ptl->mutex
TYPE_LOCK (struct amdgpu_ptl)->mutex