Documented in 1 files:

Defined in 1 files as a function:

Referenced in 5 files:

Smatch caller information:

drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c amdgpu_vram_mgr_bo_visible_size() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &crtc->mutex
HALF_LOCKED2 &mem->process_info->lock
HALF_LOCKED2 &p->mutex
HALF_LOCKED2 &plane->mutex
HALF_LOCKED2 *bo->tbo.base.resv
HALF_LOCKED2 *bo_ptr->tbo.base.resv
HALF_LOCKED2 bo->tbo.base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_cs_bo_validate() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_cs_bo_validate() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c amdgpu_cs_get_threshold_for_moves() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
PREEMPT_ADD <- disables preempt
LOCK2 &adev->mm_stats.lock
TYPE_LOCK (struct amdgpu_device)->mm_stats.lock

drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_evict_flags() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bo->base.resv

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c amdgpu_bo_create() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 0 gmc->agp_end u64max[c]
HOST_DATA 0 gmc->agp_size 0,17179869184-u64max[c]
HOST_DATA 0 gmc->agp_start 0,17179869184-u64max[c]
HOST_DATA 0 gmc->aper_base 0-u64max
HOST_DATA 0 gmc->aper_size 0-4503599626321920[c]
HOST_DATA 0 gmc->fb_end 0,16777216-281474959933440[c]
HOST_DATA 0 gmc->fb_start 0-u64max
HOST_DATA 0 gmc->gart_end 0-148618787703226367,u64max[c]
HOST_DATA 0 gmc->gart_size 0-u64max
HOST_DATA 0 gmc->gart_start 0,4294967296-u64max[c]
HOST_DATA 0 gmc->mc_vram_size 0-4503599626321920[c]
HOST_DATA 0 gmc->real_vram_size 0-4503599626321920[c]
HOST_DATA 0 gmc->visible_vram_size 0-4503599626321920[c]
HOST_DATA 0 gmc->vram_end 0-4503599626321919,u64max[c]
HOST_DATA 0 gmc->vram_start 0-u64max
HOST_DATA 0 gmc->vram_vendor 0-15
HOST_DATA 0 gmc->xgmi.node_segment_size 0,16777216-2199006478336[c]
NO_OVERFLOW_SIMPLE 0 gmc->ecc_irq.num_types
NO_OVERFLOW_SIMPLE 0 gmc->num_mem_partitions
NO_OVERFLOW_SIMPLE 0 gmc->real_vram_size
NO_OVERFLOW_SIMPLE 0 gmc->vm_fault.num_types
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &prange->migrate_mutex
HALF_LOCKED2 &svms->lock

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_init() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_make_compute() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
LOCK2 &p->mutex
LOCK2 vm->root.bo->tbo.base.resv
TYPE_LOCK (struct kfd_process)->mutex

drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_manager_init() -> amdgpu_gmc_vram_full_visible()

Type Parameter Key Value
PARAM_VALUE 0 gmc 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 gmc->ecc_irq.num_types
NO_OVERFLOW_SIMPLE 0 gmc->num_mem_partitions
NO_OVERFLOW_SIMPLE 0 gmc->vm_fault.num_types