Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 12 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c, line 1248
- drivers/gpu/drm/i915/gem/i915_gem_ttm.c, line 327
- drivers/gpu/drm/loongson/lsdc_ttm.c, line 126
- drivers/gpu/drm/nouveau/nouveau_bo.c, line 1437
- drivers/gpu/drm/radeon/radeon_ttm.c, line 550
- drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c, line 541
- drivers/gpu/drm/ttm/tests/ttm_pool_test.c
- drivers/gpu/drm/ttm/tests/ttm_tt_test.c, line 364
- drivers/gpu/drm/ttm/ttm_pool.c, line 905
- drivers/gpu/drm/ttm/ttm_tt.c, line 402
- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c, line 375
- drivers/gpu/drm/xe/xe_bo.c, line 568
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 0 | pool | (-1),5296 |
| BUF_SIZE | 0 | pool | (-1),5296 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| BIT_INFO | 1 | tt->page_flags | 0x0,0xfffffffb |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/nouveau/nouveau_bo.c nouveau_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| BIT_INFO | 1 | tt->page_flags | 0x0,0xffffffff |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/i915/gem/i915_gem_ttm.c i915_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/ttm/tests/ttm_bo_validate_test.c ttm_bo_validate_no_placement_signaled() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 0,4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 1302001788936589312 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | tt->dma_ttm.sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 1 | tt->ttm.sg->orig_nents |
drivers/gpu/drm/xe/xe_bo.c xe_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->page_flags | 0-4294967263 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_alloc_basic() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 0 |
| PARAM_VALUE | 0 | pool->dev | 0,(-22),(-12) |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 0 | pool | r kunit_kzalloc |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| MEM_ZERO | 0 | pool | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_alloc_basic_dma_addr() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->dev | 0,(-22),(-12) |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 0 | pool | r kunit_kzalloc |
| DATA_SOURCE | 1 | tt | r kunit_kzalloc |
| MEM_ZERO | 0 | pool | |
| MEM_ZERO | 1 | tt | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_alloc_caching_mismatch() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->caching | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dev | 0,4096-u64max |
| PARAM_VALUE | 0 | pool->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| CAPPED_DATA | 0 | pool->dev->cma_area->nranges | 1 |
| DATA_SOURCE | 0 | pool | r ttm_pool_pre_populated |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_alloc_order_caching_match() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->caching | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dev | 0,4096-u64max |
| PARAM_VALUE | 0 | pool->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| CAPPED_DATA | 0 | pool->dev->cma_area->nranges | 1 |
| DATA_SOURCE | 0 | pool | r ttm_pool_pre_populated |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_alloc_order_mismatch() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->caching | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->dev | 0,4096-u64max |
| PARAM_VALUE | 0 | pool->dev->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 0 | pool->dev->iommu->pci_32bit_workaround | 0-1 |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| CAPPED_DATA | 0 | pool->dev->cma_area->nranges | 1 |
| DATA_SOURCE | 0 | pool | r ttm_pool_pre_populated |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_free_dma_alloc() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->dev | 0,(-22),(-12) |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 0 | pool | r kunit_kzalloc |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| MEM_ZERO | 0 | pool | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_free_no_dma_alloc() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 0 |
| PARAM_VALUE | 0 | pool->dev | 0,(-22),(-12) |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 0 | pool | r kunit_kzalloc |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| MEM_ZERO | 0 | pool | |
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/ttm/tests/ttm_pool_test.c ttm_pool_pre_populated() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 0 | pool->alloc_flags | 256 |
| PARAM_VALUE | 0 | pool->dev | 0,(-22),(-12) |
| PARAM_VALUE | 0 | pool->nid | (-1) |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->caching | 0,2 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->page_flags | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 0 |
| PARAM_VALUE | 2 | ctx | 1776055396224872448 |
| BUF_SIZE | 0 | pool | 5296 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 0 | pool | r kunit_kzalloc |
| DATA_SOURCE | 1 | tt | r ttm_tt_kunit_init |
| MEM_ZERO | 0 | pool | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |
drivers/gpu/drm/radeon/radeon_ttm.c radeon_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| BIT_INFO | 1 | tt->page_flags | 0x0,0xffffffff |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/loongson/lsdc_ttm.c lsdc_ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| BIT_INFO | 1 | tt->page_flags | 0x0,0xffffffff |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/ttm/ttm_tt.c ttm_tt_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->num_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c vmw_ttm_populate() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 1 | tt | (-1),64 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| BUF_SIZE | 2 | ctx | (-1),24 |
| DATA_SOURCE | 1 | tt | $1 |
| DATA_SOURCE | 2 | ctx | $2 |
| NOSPEC | 1 | tt->num_pages | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | tt->num_pages | 0-u32max[c] |
| USER_DATA | 2 | ctx->allow_res_evict | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | tt->restore->snapshot_alloc.remaining_pages | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents | |
| NO_OVERFLOW_SIMPLE | 2 | ctx->bytes_moved |
drivers/gpu/drm/ttm/tests/ttm_tt_test.c ttm_tt_swapin_basic() -> ttm_pool_alloc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pool | 4096-ptr_max |
| PARAM_VALUE | 1 | tt | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->backup | 0 |
| PARAM_VALUE | 1 | tt->bound | 0 |
| PARAM_VALUE | 1 | tt->caching | 2 |
| PARAM_VALUE | 1 | tt->dma_address | 0 |
| PARAM_VALUE | 1 | tt->mem | 0 |
| PARAM_VALUE | 1 | tt->num_pages | 0 |
| PARAM_VALUE | 1 | tt->pages | 16,4096-ptr_max |
| PARAM_VALUE | 1 | tt->restore | 0 |
| PARAM_VALUE | 1 | tt->swap_storage | 4096-ptr_max |
| PARAM_VALUE | 1 | tt->swap_storage->f_mapping | 4096-ptr_max |
| PARAM_VALUE | 2 | ctx | 7010161346688733184 |
| PARAM_VALUE | 2 | ctx->gfp_retry_mayfail | 0 |
| PARAM_VALUE | 2 | ctx->interruptible | 0 |
| PARAM_VALUE | 2 | ctx->resv | 0 |
| BUF_SIZE | 1 | tt | 64 |
| DATA_SOURCE | 1 | tt | r kunit_kzalloc |
| MEM_ZERO | 1 | tt | |
| NO_OVERFLOW_SIMPLE | 1 | tt->sg->orig_nents |