Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/gpu/drm/xe/xe_pagefault.c xe_pagefault_begin() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->purgeable.state 0,3-u32max
PARAM_VALUE 2 tctx 0
PARAM_VALUE 3 exec 7747202913587535872
PARAM_VALUE 3 exec->contended 0
PARAM_VALUE 3 exec->prelocked 0,4096-ptr_max
DATA_SOURCE 0 bo r xe_vma_bo
DATA_SOURCE 3 exec $0
LOCK2 &vm->lock
LOCK2 _T->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct xe_vm)->lock

drivers/gpu/drm/xe/xe_vm.c op_lock_and_prep() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 1-u64max
PARAM_VALUE 1 mem_type 1-7,9-u32max
PARAM_VALUE 2 tctx 0
PARAM_VALUE 3 exec 5891861914877964288
PARAM_VALUE 3 exec->contended 0
PARAM_VALUE 3 exec->flags 0-3
PARAM_VALUE 3 exec->prelocked 0,4096-ptr_max
PARAM_VALUE 3 exec->ticket.contending_lock 0,4096-ptr_max
PARAM_VALUE 3 exec->ticket.wounded 0-1
DATA_SOURCE 0 bo r xe_vma_bo
DATA_SOURCE 3 exec $0
FUZZY_MAX 1 mem_type 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &vm->lock
TYPE_LOCK (struct xe_vm)->lock

drivers/gpu/drm/xe/xe_bo.c xe_bo_fault_migrate() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->attr.atomic_access 2-3
PARAM_VALUE 0 bo->purgeable.state 0,3-u32max
PARAM_VALUE 0 bo->ttm.base._resv.lock.ww_class->is_wait_die 0-1
PARAM_VALUE 0 bo->ttm.base.resv->lock.ww_class->is_wait_die 0-1
PARAM_VALUE 0 bo->ttm.bdev 4096-ptr_max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_cop->empty_dir 0,661756434209751040,4392966320616476672,5234023279986843648,8614756098313990144
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_cop->get_context 0,17350455714160640,4513809449498124288,5149251875611672576,7067778626864828416
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_cop->set_context 0,317457138841939968,3250154607523569664,5979066299606671360,6756104566897242112
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792,2776440803454029824,3228746867770966016,3502492669594062848,3526768263295340544,3559173554394271744,5000850239487131648,5583386343686406144,5817357685191483392-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 bo->ttm.resource 4096-ptr_max
PARAM_VALUE 1 mem_type 1
PARAM_VALUE 2 tctx 2527291227901878272,4744390688110067712
PARAM_VALUE 2 tctx->allow_res_evict 0
PARAM_VALUE 2 tctx->bytes_moved 0
PARAM_VALUE 2 tctx->interruptible 1
PARAM_VALUE 2 tctx->resv 0
PARAM_VALUE 3 exec 0,5896245366120415232
PARAM_VALUE 3 exec->flags 0-3
DATA_SOURCE 0 bo $0
DATA_SOURCE 2 tctx $1
DATA_SOURCE 3 exec $2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bo->ttm.base.size
NO_OVERFLOW_SIMPLE 0 bo->ttm.ttm->dma_ttm.sg->orig_nents
LOCK2 global &drm_unplug_srcu
HALF_LOCKED2 tbo->base.resv

drivers/gpu/drm/xe/xe_dma_buf.c xe_dma_buf_begin_cpu_access() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_cop->inode_info_offs 1632,1720,1808,2632,2648
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,148606482432692224,436469935444291584,467281172929331200,529780027764285440,1092893949038768128,1556959531105513472,1608953577475584000,1649536479961075712,2404761408063094784,2970908329832960000,3511613614414655488-s64max
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 bo->ttm.bdev->dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 1 mem_type 1
PARAM_VALUE 2 tctx 0
PARAM_VALUE 3 exec 7080423264703164416
PARAM_VALUE 3 exec->flags 0-3
DATA_SOURCE 0 bo r gem_to_xe_bo
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_dma_buf.c xe_dma_buf_map() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->ttm.pin_count 0
PARAM_VALUE 0 bo->ttm.type 0-1,3-u32max
PARAM_VALUE 1 mem_type 1
PARAM_VALUE 2 tctx 0
PARAM_VALUE 3 exec (-95)
DATA_SOURCE 0 bo r gem_to_xe_bo
DATA_SOURCE 3 exec r ERR_PTR
RX_PATH
TASK_NOT_RUNNING
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_dma_buf.c xe_dma_buf_pin() -> xe_bo_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 0 bo->ttm.pin_count 0-1
PARAM_VALUE 0 bo->ttm.resource 4096-ptr_max
PARAM_VALUE 1 mem_type 1
PARAM_VALUE 2 tctx 0
PARAM_VALUE 3 exec (-95)
DATA_SOURCE 0 bo r gem_to_xe_bo
DATA_SOURCE 3 exec r ERR_PTR
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 attach->dmabuf->resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv