Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c, line 481
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 272
- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c, line 95
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_map_buffer() -> amdgpu_gart_map()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gart.bo | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gart.bo->tbo.resource | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs->copy_max_bytes | 1048568,2097151,4194272,4194304,1073741824 |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | pages | 0-1024 |
| PARAM_VALUE | 3 | dma_addr | 4096-ptr_max |
| PARAM_VALUE | 4 | flags | 0,8-u64max |
| PARAM_VALUE | 5 | dst | 4096-ptr_max |
| CAPPED_DATA | 2 | pages | 1 |
| DATA_SOURCE | 0 | adev | r amdgpu_ttm_adev |
| BIT_INFO | 4 | flags | 0x20,0xffffffffffffffff |
| BIT_INFO | 4 | flags | 0x20,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | pages | 1-1023[c] |
| UNITS | 2 | pages | unit_page |
| LOCK2 | &entity->lock | ||
| TYPE_LOCK | (struct amdgpu_ttm_buffer_entity)->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c amdgpu_gart_bind() -> amdgpu_gart_map()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gart.ptr | 1-u64max |
| PARAM_VALUE | 4 | flags | 0,8-u64max |
| PARAM_VALUE | 5 | dst | 1-u64max |
| BUF_SIZE | 3 | dma_addr | 1-s32max |
| BUF_SIZE | 3 | dma_addr | 1-s32max |
| DATA_SOURCE | 0 | adev | $0 |
| DATA_SOURCE | 1 | offset | $1 |
| DATA_SOURCE | 2 | pages | $2 |
| DATA_SOURCE | 3 | dma_addr | $3 |
| DATA_SOURCE | 4 | flags | $4 |
| BIT_INFO | 4 | flags | 0x20,0xffffffffffffffff |
| BIT_INFO | 4 | flags | 0x20,0xffffffffffffffff |
| NOSPEC | 2 | pages | |
| NOSPEC | 2 | pages | |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | pages | 0-s32max[c] |
| NO_OVERFLOW_SIMPLE | 2 | pages | |
| UNITS | 1 | offset | unit_byte |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c svm_migrate_gart_map() -> amdgpu_gart_map()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | adev | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gart.bo | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->gart.bo->tbo.resource | 4096-ptr_max |
| PARAM_VALUE | 0 | adev->mman.buffer_funcs | 4096-ptr_max |
| PARAM_VALUE | 1 | offset | 0 |
| PARAM_VALUE | 2 | pages | 1-1024 |
| PARAM_VALUE | 5 | dst | 4096-ptr_max |
| CAPPED_DATA | 2 | pages | 1 |
| DATA_SOURCE | 2 | pages | $2 |
| DATA_SOURCE | 3 | dma_addr | $3 |
| BIT_INFO | 4 | flags | 0x27,0xffffffffffffffff |
| BIT_INFO | 4 | flags | 0x27,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | pages | unit_page |
| UNITS | 3 | dma_addr | unit_page |
| LOCK2 | &entity->lock | ||
| LOCK2 | &prange->migrate_mutex | ||
| HALF_LOCKED2 | &mm->mmap_lock | ||
| HALF_LOCKED2 | &process_info->lock | ||
| HALF_LOCKED2 | &svms->lock | ||
| TYPE_LOCK | (struct amdgpu_ttm_buffer_entity)->lock | ||
| TYPE_LOCK | (struct svm_range)->migrate_mutex |