Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
- drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/../ras/ras_mgr/amdgpu_virt_ras_cmd.c __set_cmd_auto_update() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd_id | 16 |
| PARAM_VALUE | 2 | input | 4469015630986043392 |
| PARAM_VALUE | 3 | input_size | 48 |
| PARAM_VALUE | 4 | output | 5586405122268819456 |
| PARAM_VALUE | 5 | out_size | 20 |
| BUF_SIZE | 2 | input | 48 |
| BUF_SIZE | 4 | output | 20 |
| DATA_SOURCE | 0 | adev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/../ras/ras_mgr/amdgpu_virt_ras_cmd.c amdgpu_virt_ras_check_address_validity() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 1-u64max |
| PARAM_VALUE | 1 | cmd_id | 17 |
| PARAM_VALUE | 2 | input | 4680538809087528960 |
| PARAM_VALUE | 3 | input_size | 40 |
| PARAM_VALUE | 4 | output | 1513673605844111360 |
| PARAM_VALUE | 5 | out_size | 32 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | input | 40 |
| BUF_SIZE | 4 | output | 32 |
| DATA_SOURCE | 0 | adev | $0 |
| BIT_INFO | 0 | adev->virt.caps | 0x4,0xffffffff |
| UNITS | 0 | adev | unit_array_size |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/../ras/ras_mgr/amdgpu_virt_ras_cmd.c amdgpu_virt_ras_convert_retired_address() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.mc_vram_size | 1-u64max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 1-u64max |
| PARAM_VALUE | 1 | cmd_id | 18 |
| PARAM_VALUE | 2 | input | 2407084532901187584 |
| PARAM_VALUE | 3 | input_size | 40 |
| PARAM_VALUE | 4 | output | 5748539802472816640 |
| PARAM_VALUE | 5 | out_size | 264 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | input | 40 |
| BUF_SIZE | 4 | output | 264 |
| DATA_SOURCE | 0 | adev | $0 |
| BIT_INFO | 0 | adev->virt.caps | 0x4,0xffffffff |
| UNITS | 0 | adev | unit_array_size |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_ras_cper_debugfs_read() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | cmd_id | 11 |
| PARAM_VALUE | 2 | input | 4096-ptr_max |
| PARAM_VALUE | 3 | input_size | 8 |
| PARAM_VALUE | 4 | output | 4096-ptr_max |
| PARAM_VALUE | 5 | out_size | 40 |
| BUF_SIZE | 2 | input | 8 |
| BUF_SIZE | 4 | output | 40 |
| DATA_SOURCE | 2 | input | r _kzalloc_noprof |
| DATA_SOURCE | 4 | output | r _kzalloc_noprof |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_ras_cper_debugfs_read() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd_id | 12 |
| PARAM_VALUE | 2 | input | 4096-ptr_max |
| PARAM_VALUE | 3 | input_size | 48 |
| PARAM_VALUE | 4 | output | 4096-ptr_max |
| PARAM_VALUE | 5 | out_size | 32 |
| BUF_SIZE | 2 | input | 48 |
| BUF_SIZE | 4 | output | 32 |
| DATA_SOURCE | 2 | input | r _kzalloc_noprof |
| DATA_SOURCE | 4 | output | r _kzalloc_noprof |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_uniras_badpages_read() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd_id | 5 |
| PARAM_VALUE | 2 | input | 8033585609902583808 |
| PARAM_VALUE | 3 | input_size | 32 |
| PARAM_VALUE | 4 | output | 4096-ptr_max |
| PARAM_VALUE | 5 | out_size | 1312 |
| BUF_SIZE | 2 | input | 32 |
| BUF_SIZE | 4 | output | 1312 |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 4 | output | r _kmalloc_noprof |
| MEM_ZERO | 2 | input | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
| 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_ras.c amdgpu_uniras_clear_badpages_info() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 1 | cmd_id | 6 |
| PARAM_VALUE | 2 | input | 2553462454191337472 |
| PARAM_VALUE | 3 | input_size | 8 |
| PARAM_VALUE | 4 | output | 0 |
| PARAM_VALUE | 5 | out_size | 0 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | input | 8 |
| DATA_SOURCE | 0 | adev | $0 |
| UNITS | 0 | adev | unit_array_size |
| UNITS | 3 | input_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_uniras_error_inject() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->ddev.anon_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648 |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 1-u64max |
| PARAM_VALUE | 1 | cmd_id | 4 |
| PARAM_VALUE | 2 | input | 96061534929379328 |
| PARAM_VALUE | 3 | input_size | 72 |
| PARAM_VALUE | 4 | output | 4144024073696481280 |
| PARAM_VALUE | 5 | out_size | 32 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 2 | input | 72 |
| BUF_SIZE | 4 | output | 32 |
| DATA_SOURCE | 0 | adev | $0 |
| MEM_ZERO | 2 | input | |
| UNITS | 0 | adev | unit_array_size |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_uniras_query_block_ecc() -> amdgpu_ras_mgr_handle_ras_cmd()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->ddev.anon_inode->i_mapping->host->i_sb->s_cop->inode_info_offs | 1632,1720,1808,2632,2648,2712 |
| PARAM_VALUE | 0 | adev->ddev.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->ddev.anon_inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| 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->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->psp.adev->reset_domain->sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | adev->psp.adev->reset_domain->sem.first_waiter->type | 0-1 |
| 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->virt.ops->rcvd_ras_intr | 0,1264429437436559360,8072527672973950976 |
| PARAM_VALUE | 0 | adev->virt.ops->req_ras_err_count | 0,4945855772673810432 |
| 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 | cmd_id | 3 |
| PARAM_VALUE | 2 | input | 3869651219337322496 |
| PARAM_VALUE | 3 | input_size | 32 |
| PARAM_VALUE | 4 | output | 8431900740447158272 |
| PARAM_VALUE | 5 | out_size | 40 |
| BUF_SIZE | 2 | input | 32 |
| BUF_SIZE | 4 | output | 40 |
| DATA_SOURCE | 0 | adev | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | adev->hive->kobj.kref.refcount.refs.counter | s32min-s32max |
| HOST_DATA | 0 | adev->virt.fw_reserve.checksum_key | 0-u32max |
| HOST_DATA | 0 | adev->virt.init_data_header.offset | 0-u32max |
| HOST_DATA | 0 | adev->virt.init_data_header.size_kb | 0-u32max |
| NO_OVERFLOW_SIMPLE | 0 | adev->psp.cmd_buf_mem->cmd.cmd_setup_tmr.buf_size | |
| UNITS | 0 | adev | unit_array_size |
| UNITS | 3 | input_size | unit_byte |
| UNITS | 5 | out_size | unit_byte |