Documented in 1 files:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/gpu/drm/xe/display/xe_panic.c, line 58
- drivers/gpu/drm/xe/display/xe_stolen.c, line 68
- drivers/gpu/drm/xe/tests/xe_migrate.c
- drivers/gpu/drm/xe/xe_bo.c
- drivers/gpu/drm/xe/xe_ggtt.c, line 710
- drivers/gpu/drm/xe/xe_lmtt.c, line 496
- drivers/gpu/drm/xe/xe_migrate.c
- drivers/gpu/drm/xe/xe_pt.c, line 872
- drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
Smatch caller information:
drivers/gpu/drm/xe/xe_migrate.c __xe_migrate_copy() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 6498660035931164672 |
| DATA_SOURCE | 0 | res | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | res->size | |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &vm->lock | ||
| HALF_LOCKED2 | dst_bo->ttm.base.resv | ||
| HALF_LOCKED2 | src_bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_migrate.c __xe_migrate_copy() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 3978167205041451008 |
| DATA_SOURCE | 0 | res | $4 |
| NOSPEC | 0 | res->size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | res->bo->base.size | 0-u64max[c] |
| USER_DATA | 0 | res->bo->base.vma_node.vm_node.size | 1-s32max[c] |
| USER_DATA | 0 | res->bo->base.vma_node.vm_node.start | 0-s32max[c] |
| USER_DATA | 0 | res->bo->page_alignment | 0-u32max |
| USER_DATA | 0 | res->size | 0-u64max[c] |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &vm->lock | ||
| HALF_LOCKED2 | dst_bo->ttm.base.resv | ||
| HALF_LOCKED2 | src_bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_migrate.c blt_copy() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 7079977952256798720 |
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | dst_bo->ttm.base.resv | ||
| HALF_LOCKED2 | src_bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_migrate.c blt_copy() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 1358435098032996352 |
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | dst_bo->ttm.base.resv | ||
| HALF_LOCKED2 | src_bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_migrate.c xe_migrate_access_memory() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | cur | 3440026662125858816 |
| DATA_SOURCE | 1 | start | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | start | 0-u64max[c] |
| HALF_LOCKED2 | ttm_bo->base.resv |
drivers/gpu/drm/xe/xe_migrate.c xe_migrate_clear() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 7567903690845171712 |
| DATA_SOURCE | 0 | res | $2 |
| NOSPEC | 0 | res->size | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | res->size | 0-u64max[c] |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_migrate.c xe_migrate_sanity_test() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 4721258464358285312 |
| NOCHECK_CALL |
drivers/gpu/drm/xe/xe_migrate.c xe_migrate_vram_copy_chunk() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | cur | 642575335531249664 |
| CAPPED_DATA | 2 | size | 1 |
| CAPPED_DATA | 2 | size | 1 |
| DATA_SOURCE | 1 | start | $1 |
| DATA_SOURCE | 2 | size | $4 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | start | |
| NO_OVERFLOW_SIMPLE | 2 | size | |
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | sysmem_bo->ttm.base.resv | ||
| HALF_LOCKED2 | vram_bo->ttm.base.resv |
drivers/gpu/drm/xe/xe_lmtt.c lmtt_insert_bo() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->bo | 4096-ptr_max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 1875343095964880896 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/gpu/drm/xe/xe_ggtt.c xe_ggtt_map_bo() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->bo | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-u32max |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 8721054393186246656 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | size | 0-u64max[c] |
| LOCK2 | &ggtt->lock | ||
| TYPE_LOCK | (struct xe_ggtt)->lock |
drivers/gpu/drm/xe/xe_bo.c __xe_bo_addr() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-u32max |
| PARAM_VALUE | 1 | start | 0,4096-18446744073709547520 |
| PARAM_VALUE | 2 | size | 4096 |
| PARAM_VALUE | 3 | cur | 7525794222312906752 |
| DATA_SOURCE | 2 | size | $2 |
| BIT_INFO | 1 | start | 0x0,0xfffffffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &m->lock |
drivers/gpu/drm/xe/xe_bo.c xe_ttm_access_memory() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->bo | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-7,9-u32max |
| PARAM_VALUE | 1 | start | 0,4096-u64max |
| PARAM_VALUE | 3 | cur | 5134389585711968256 |
| BIT_INFO | 1 | start | 0x0,0xfffffffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | start | 0,4096-u64max[c] |
| USER_DATA | 2 | size | 0-u64max[c] |
| LOCK2 | ttm_bo->base.resv | ||
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/xe/xe_bo.c xe_ttm_io_mem_pfn() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->bo | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 0-7,9-u32max |
| PARAM_VALUE | 1 | start | 0,4096-18446744073709543424 |
| PARAM_VALUE | 2 | size | 0 |
| PARAM_VALUE | 3 | cur | 3107381385870917632 |
| BIT_INFO | 1 | start | 0x0,0xfffffffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | start | unit_byte |
| HALF_LOCKED2 | &rdev->pm.mclk_lock | ||
| HALF_LOCKED2 | bo->base.resv | ||
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/gpu/drm/xe/xe_pt.c xe_pt_stage_bind() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-u32max |
| PARAM_VALUE | 3 | cur | 3570302231557795840 |
| PARAM_VALUE | 3 | cur->dma_addr | 0 |
| PARAM_VALUE | 3 | cur->mem_type | 0 |
| PARAM_VALUE | 3 | cur->mm | 0 |
| PARAM_VALUE | 3 | cur->node | 0 |
| PARAM_VALUE | 3 | cur->remaining | 0 |
| PARAM_VALUE | 3 | cur->sgl | 0 |
| PARAM_VALUE | 3 | cur->size | 0 |
| PARAM_VALUE | 3 | cur->start | 0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &vm->lock |
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c xe_ttm_vram_mgr_alloc_sgt() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-3 |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 4928572340848914432 |
| CAPPED_DATA | 0 | res->size | 1 |
| DATA_SOURCE | 0 | res | $1 |
| DATA_SOURCE | 1 | start | $2 |
| DATA_SOURCE | 2 | size | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &bo->lock | ||
| HALF_LOCKED2 | &dbc->ch_lock | ||
| HALF_LOCKED2 | &qdev->dev_lock | ||
| HALF_LOCKED2 | &usr->qddev_lock | ||
| HALF_LOCKED2 | attach->dmabuf->resv | ||
| HALF_LOCKED2 | bo->base.base.resv | ||
| HALF_LOCKED2 | dmabuf->resv | ||
| HALF_LOCKED2 | resv |
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c xe_ttm_vram_mgr_alloc_sgt() -> xe_res_first()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | res | 4096-ptr_max |
| PARAM_VALUE | 0 | res->mem_type | 2-3 |
| PARAM_VALUE | 1 | start | 0 |
| PARAM_VALUE | 3 | cur | 4928572340848914432 |
| PARAM_VALUE | 3 | cur->dma_addr | 0 |
| PARAM_VALUE | 3 | cur->mem_type | 1-3 |
| PARAM_VALUE | 3 | cur->node | 0,4096-ptr_max |
| PARAM_VALUE | 3 | cur->remaining | 0 |
| PARAM_VALUE | 3 | cur->sgl | 0 |
| CAPPED_DATA | 0 | res->size | 1 |
| DATA_SOURCE | 0 | res | $1 |
| DATA_SOURCE | 1 | start | $2 |
| DATA_SOURCE | 2 | size | $3 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | start | unit_byte |
| UNITS | 2 | size | unit_byte |
| HALF_LOCKED2 | &bo->lock | ||
| HALF_LOCKED2 | &dbc->ch_lock | ||
| HALF_LOCKED2 | &qdev->dev_lock | ||
| HALF_LOCKED2 | &usr->qddev_lock | ||
| HALF_LOCKED2 | attach->dmabuf->resv | ||
| HALF_LOCKED2 | bo->base.base.resv | ||
| HALF_LOCKED2 | dmabuf->resv | ||
| HALF_LOCKED2 | resv |