Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c amdgpu_umc_page_retirement_mca() -> amdgpu_ras_add_bad_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 0 | adev->gmc.xgmi.connected_to_cpu | 1 |
| PARAM_VALUE | 0 | adev->gmc.xgmi.physical_node_id | 0-7,4294967288-u32max |
| PARAM_VALUE | 1 | bps | 16,4096-ptr_max |
| PARAM_VALUE | 3 | from_rom | 0 |
| BUF_SIZE | 1 | bps | 0-133143986145 |
| BUF_SIZE | 1 | bps | 0-133143986145 |
| CAPPED_DATA | 0 | adev->gmc.xgmi.physical_node_id | 1 |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 1 | bps | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | adev->umc.max_ras_err_cnt_per_query | |
| UNITS | 2 | pages | unit_array_size |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_ras_load_bad_pages() -> amdgpu_ras_add_bad_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras->eeprom_control.ras_num_recs | 1-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 | bps | 4096-ptr_max |
| PARAM_VALUE | 2 | pages | s32min-(-1),1-s32max |
| PARAM_VALUE | 3 | from_rom | 1 |
| BUF_SIZE | 1 | bps | 31-133143986145 |
| BUF_SIZE | 1 | bps | 31-133143986145 |
| CAPPED_DATA | 2 | pages | 1 |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 1 | bps | r _kzalloc_noprof |
| BIT_INFO | 0 | adev->virt.caps | 0x0,0xfffffffb |
| NO_OVERFLOW_SIMPLE | 0 | adev->umc.retire_unit | |
| NO_OVERFLOW_SIMPLE | 2 | pages | |
| UNITS | 2 | pages | unit_array_size |
| ELEM_COUNT | 1 | ==bps2 | 8051 |
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c amdgpu_reserve_page_direct() -> amdgpu_ras_add_bad_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->psp.ras_context.ras | 1-u64max |
| PARAM_VALUE | 1 | bps | 6485628634528788480 |
| PARAM_VALUE | 2 | pages | 0 |
| PARAM_VALUE | 3 | from_rom | 0 |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | adev | s32min-(-2),1-s32max |
| BUF_SIZE | 1 | bps | 31 |
| DATA_SOURCE | 0 | adev | $0 |
| MEM_ZERO | 1 | bps | |
| NOCHECK_CALL | |||
| UNITS | 0 | adev | unit_array_size |
| UNITS | 2 | pages | unit_array_size |