id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_vm_bo_reset_state_machine(9)
NAME amdgpu_vm_bo_reset_state_machine - reset the vm_bo state machine SYNOPSIS void amdgpu_vm_bo_reset_state_machine (struct amdgpu_vm *vm ); ARGUMENTS vm the VM which state machine to reset DESCRIPTION Move all vm_bo object in the VM into a state where they will be updated again during validation. SEE ALS...
amdgpu_vm_bo_trace_cs(9)
NAME amdgpu_vm_bo_trace_cs - trace all reserved mappings SYNOPSIS void amdgpu_vm_bo_trace_cs (struct amdgpu_vm *vm , struct ww_acquire_ctx *ticket ); ARGUMENTS vm the requested vm ticket CS ticket DESCRIPTION Trace all mappings of BOs reserved during a command submission. SEE ALSO Kernel fil...
amdgpu_vm_bo_unmap(9)
NAME amdgpu_vm_bo_unmap - remove bo mapping from vm SYNOPSIS int amdgpu_vm_bo_unmap (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va , uint64_t saddr ); ARGUMENTS adev amdgpu_device pointer bo_va bo_va to remove the address from saddr where to the BO is mapped DESCRIPTION R...
amdgpu_vm_bo_update(9)
NAME amdgpu_vm_bo_update - update all BO mappings in the vm page table SYNOPSIS int amdgpu_vm_bo_update (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va , bool clear ); ARGUMENTS adev amdgpu_device pointer bo_va requested BO and VM object clear if true clear the entries DES...
amdgpu_vm_bo_update_shared(9)
NAME amdgpu_vm_bo_update_shared - callback when bo gets shared/unshared SYNOPSIS void amdgpu_vm_bo_update_shared (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu buffer object DESCRIPTION Update the per VM stats for all the vm if needed from private to shared or vice versa. SEE ALSO Kernel file ./drivers/g...
amdgpu_vm_check_compute_bug(9)
NAME amdgpu_vm_check_compute_bug - check whether asic has compute vm bug SYNOPSIS void amdgpu_vm_check_compute_bug (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), struct amdg...
amdgpu_vm_clear_freed(9)
NAME amdgpu_vm_clear_freed - clear freed BOs in the PT SYNOPSIS int amdgpu_vm_clear_freed (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct dma_fence **fence ); ARGUMENTS adev amdgpu_device pointer vm requested vm fence optional resulting fence (unchanged if no work nee...
amdgpu_vm_cpu_commit(9)
NAME amdgpu_vm_cpu_commit - commit page table update to the HW SYNOPSIS int amdgpu_vm_cpu_commit (struct amdgpu_vm_update_params *p , struct dma_fence **fence ); ARGUMENTS p see amdgpu_vm_update_params definition fence unused DESCRIPTION Make sure that the hardware sees the page table updates...
amdgpu_vm_cpu_map_table(9)
NAME amdgpu_vm_cpu_map_table - make sure new PDs/PTs are kmapped SYNOPSIS int amdgpu_vm_cpu_map_table (struct amdgpu_bo_vm *table ); ARGUMENTS table newly allocated or validated PD/PT SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c amdgpu_vm_cpu_prepare(9), amdgpu_vm_cpu_update(9), amdgpu_vm_...
amdgpu_vm_cpu_prepare(9)
NAME amdgpu_vm_cpu_prepare - prepare page table update with the CPU SYNOPSIS int amdgpu_vm_cpu_prepare (struct amdgpu_vm_update_params *p , struct amdgpu_sync *sync , u64 k_job_id ); ARGUMENTS p see amdgpu_vm_update_params definition sync sync obj with fences to wait on k_job_id th...
amdgpu_vm_cpu_update(9)
NAME amdgpu_vm_cpu_update - helper to update page tables via CPU SYNOPSIS int amdgpu_vm_cpu_update (struct amdgpu_vm_update_params *p , struct amdgpu_bo_vm *vmbo , uint64_t pe , uint64_t addr , unsigned count , uint32_t incr , uint64_t flags ); ARGUMENTS p see amdgpu_vm_update_params definition vmbo...
amdgpu_vm_evictable(9)
NAME amdgpu_vm_evictable - check if we can evict a VM SYNOPSIS bool amdgpu_vm_evictable (struct amdgpu_bo *bo ); ARGUMENTS bo A page table of the VM. DESCRIPTION Check if it is possible to evict a VM. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt...
amdgpu_vm_fini(9)
NAME amdgpu_vm_fini - tear down a vm instance SYNOPSIS void amdgpu_vm_fini (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu_device pointer vm requested vm DESCRIPTION Tear down vm. Unbind the VM and remove all bos from the vm bo list SEE ALSO Kernel file ./dri...
amdgpu_vm_flush(9)
NAME amdgpu_vm_flush - hardware flush the vm SYNOPSIS int amdgpu_vm_flush (struct amdgpu_ring *ring , struct amdgpu_job *job , bool need_pipe_sync ); ARGUMENTS ring ring to use for flush job related job need_pipe_sync is pipe sync needed DESCRIPTION Emit a VM flush w...
amdgpu_vm_flush_compute_tlb(9)
NAME amdgpu_vm_flush_compute_tlb - Flush TLB on compute VM SYNOPSIS int amdgpu_vm_flush_compute_tlb (struct amdgpu_device *adev , struct amdgpu_vm *vm , uint32_t flush_type , uint32_t xcc_mask ); ARGUMENTS adev amdgpu_device pointer vm requested vm flush_type flush type xcc_ma...
amdgpu_vm_free_mapping(9)
NAME amdgpu_vm_free_mapping - free a mapping SYNOPSIS void amdgpu_vm_free_mapping (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_bo_va_mapping *mapping , struct dma_fence *fence ); ARGUMENTS adev amdgpu_device pointer vm requested vm mapping mapping to be freed ...
amdgpu_vm_generation(9)
NAME amdgpu_vm_generation - return the page table re-generation counter SYNOPSIS uint64_t amdgpu_vm_generation (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev the amdgpu_device vm optional VM to check, might be NULL DESCRIPTION Returns a page table re-generation token to ...
amdgpu_vm_get_block_size(9)
NAME amdgpu_vm_get_block_size - calculate VM page table size as power of two SYNOPSIS uint32_t amdgpu_vm_get_block_size (uint64_t vm_size ); ARGUMENTS vm_size VM size RETURN VM page table as power of two SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), ...
amdgpu_vm_get_task_info_pasid(9)
NAME amdgpu_vm_get_task_info_pasid - Extracts task info for a PASID. SYNOPSIS struct amdgpu_task_info * amdgpu_vm_get_task_info_pasid (struct amdgpu_device *adev , u32 pasid ); ARGUMENTS adev drm device pointer pasid PASID identifier for VM DESCRIPTION Returns the reference counted task_info str...
amdgpu_vm_get_task_info_vm(9)
NAME amdgpu_vm_get_task_info_vm - Extracts task info for a vm. SYNOPSIS struct amdgpu_task_info * amdgpu_vm_get_task_info_vm (struct amdgpu_vm *vm ); ARGUMENTS vm VM to get info from DESCRIPTION Returns the reference counted task_info structure, which must be referenced down with amdgpu_vm_put_task_info. S...
amdgpu_vm_handle_fault(9)
NAME amdgpu_vm_handle_fault - graceful handling of VM faults. SYNOPSIS bool amdgpu_vm_handle_fault (struct amdgpu_device *adev , u32 pasid , u32 vmid , u32 node_id , uint64_t addr , uint64_t ts , bool write_fault ); ARGUMENTS adev amdgpu device pointer pasid PASID of the VM vmid VM...
amdgpu_vm_handle_moved(9)
NAME amdgpu_vm_handle_moved - handle moved BOs in the PT SYNOPSIS int amdgpu_vm_handle_moved (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct ww_acquire_ctx *ticket ); ARGUMENTS adev amdgpu_device pointer vm requested vm ticket optional reservation ticket used to reserv...
amdgpu_vm_init(9)
NAME amdgpu_vm_init - initialize a vm instance SYNOPSIS int amdgpu_vm_init (struct amdgpu_device *adev , struct amdgpu_vm *vm , int32_t xcp_id , uint32_t pasid ); ARGUMENTS adev amdgpu_device pointer vm requested vm xcp_id GPU partition selection id pasid the pasid t...
amdgpu_vm_ioctl(9)
NAME amdgpu_vm_ioctl - Manages VMID reservation for vm hubs. SYNOPSIS int amdgpu_vm_ioctl (struct drm_device *dev , void *data , struct drm_file *filp ); ARGUMENTS dev drm device pointer data drm_amdgpu_vm filp drm file pointer RETURN 0 for success, -errno for errors. SEE ALSO ...
amdgpu_vm_is_bo_always_valid(9)
NAME amdgpu_vm_is_bo_always_valid - check if the BO is VM always valid SYNOPSIS bool amdgpu_vm_is_bo_always_valid (struct amdgpu_vm *vm , struct amdgpu_bo *bo ); ARGUMENTS vm VM to test against. bo BO to be tested. DESCRIPTION Returns true if the BO shares the dma_resv object with the root ...
amdgpu_vm_lock_done_list(9)
NAME amdgpu_vm_lock_done_list - lock all BOs on the done list SYNOPSIS int amdgpu_vm_lock_done_list (struct amdgpu_vm *vm , struct drm_exec *exec , unsigned int num_fences ); ARGUMENTS vm vm providing the BOs exec drm execution context num_fences number of extra fences to reserve DES...
amdgpu_vm_lock_pd(9)
NAME amdgpu_vm_lock_pd - lock PD in drm_exec SYNOPSIS int amdgpu_vm_lock_pd (struct amdgpu_vm *vm , struct drm_exec *exec , unsigned int num_fences ); ARGUMENTS vm vm providing the BOs exec drm execution context num_fences number of extra fences to reserve DESCRIPTION Lock the VM roo...
amdgpu_vm_make_compute(9)
NAME amdgpu_vm_make_compute - Turn a GFX VM into a compute VM SYNOPSIS int amdgpu_vm_make_compute (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu_device pointer vm requested vm DESCRIPTION This only works on GFX VMs that don't have any BOs added and no page ta...
amdgpu_vm_manager_fini(9)
NAME amdgpu_vm_manager_fini - cleanup VM manager SYNOPSIS void amdgpu_vm_manager_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Cleanup the VM manager and free resources. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdg...
amdgpu_vm_manager_init(9)
NAME amdgpu_vm_manager_init - init the VM manager SYNOPSIS void amdgpu_vm_manager_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initialize the VM manager structures SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9...
amdgpu_vm_map_gart(9)
NAME amdgpu_vm_map_gart - Resolve gart mapping of addr SYNOPSIS uint64_t amdgpu_vm_map_gart (const dma_addr_t *pages_addr , uint64_t addr ); ARGUMENTS pages_addr optional DMA address to use for lookup addr the unmapped addr DESCRIPTION Look up the physical address of the page that the pte resolves to...
amdgpu_vm_move_to_lru_tail(9)
NAME amdgpu_vm_move_to_lru_tail - move all BOs to the end of LRU SYNOPSIS void amdgpu_vm_move_to_lru_tail (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu device pointer vm vm providing the BOs DESCRIPTION Move all BOs to the end of LRU and remember their positions ...
amdgpu_vm_need_pipeline_sync(9)
NAME amdgpu_vm_need_pipeline_sync - Check if pipe sync is needed for job. SYNOPSIS bool amdgpu_vm_need_pipeline_sync (struct amdgpu_ring *ring , struct amdgpu_job *job ); ARGUMENTS ring ring on which the job will be submitted job job to submit RETURN True if sync is needed. SEE ALSO Kernel ...
amdgpu_vm_pde_update(9)
NAME amdgpu_vm_pde_update - update a single level in the hierarchy SYNOPSIS int amdgpu_vm_pde_update (struct amdgpu_vm_update_params *params , struct amdgpu_vm_bo_base *entry ); ARGUMENTS params parameters for the update entry entry to update DESCRIPTION Makes sure the requested entry in parent is...
amdgpu_vm_prt_cb(9)
NAME amdgpu_vm_prt_cb - callback for updating the PRT status SYNOPSIS void amdgpu_vm_prt_cb (struct dma_fence *fence , struct dma_fence_cb *_cb ); ARGUMENTS fence fence for the callback _cb the callback function SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9)...
amdgpu_vm_prt_fini(9)
NAME amdgpu_vm_prt_fini - finish all prt mappings SYNOPSIS void amdgpu_vm_prt_fini (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu_device pointer vm requested vm DESCRIPTION Register a cleanup callback to disable PRT support after VM dies. SEE ALSO Kernel file ...
amdgpu_vm_prt_get(9)
NAME amdgpu_vm_prt_get - add a PRT user SYNOPSIS void amdgpu_vm_prt_get (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), struct amdgpu_vm_tlb_seq_struct(9), amdgpu_vm_assert_...
amdgpu_vm_prt_put(9)
NAME amdgpu_vm_prt_put - drop a PRT user SYNOPSIS void amdgpu_vm_prt_put (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), struct amdgpu_vm_tlb_seq_struct(9), amdgpu_vm_assert...
amdgpu_vm_pt_add_list(9)
NAME amdgpu_vm_pt_add_list - add PD/PT level to the flush list SYNOPSIS void amdgpu_vm_pt_add_list (struct amdgpu_vm_update_params *params , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS params parameters for the update cursor first PT entry to start DF search from, non NULL DESCRIPTION This list...
amdgpu_vm_pt_alloc(9)
NAME amdgpu_vm_pt_alloc - Allocate a specific page table SYNOPSIS int amdgpu_vm_pt_alloc (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_vm_pt_cursor *cursor , bool immediate ); ARGUMENTS adev amdgpu_device pointer vm VM to allocate page tables for cursor Which ...
amdgpu_vm_pt_ancestor(9)
NAME amdgpu_vm_pt_ancestor - go to parent node SYNOPSIS bool amdgpu_vm_pt_ancestor (struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS cursor current state DESCRIPTION Walk to the parent node of the current node. RETURN True if the walk was possible, false otherwise. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
amdgpu_vm_pt_clear(9)
NAME amdgpu_vm_pt_clear - initially clear the PDs/PTs SYNOPSIS int amdgpu_vm_pt_clear (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_bo_vm *vmbo , bool immediate ); ARGUMENTS adev amdgpu_device pointer vm VM to clear BO from vmbo BO to clear immediate...
amdgpu_vm_pt_continue_dfs(9)
NAME amdgpu_vm_pt_continue_dfs - check if the deep first search should continue SYNOPSIS bool amdgpu_vm_pt_continue_dfs (struct amdgpu_vm_pt_cursor *start , struct amdgpu_vm_bo_base *entry ); ARGUMENTS start starting point for the search entry current entry RETURN True when the search should cont...
amdgpu_vm_pt_create(9)
NAME amdgpu_vm_pt_create - create bo for PD/PT SYNOPSIS int amdgpu_vm_pt_create (struct amdgpu_device *adev , struct amdgpu_vm *vm , int level , bool immediate , struct amdgpu_bo_vm **vmbo , int32_t xcp_id ); ARGUMENTS adev amdgpu_device pointer vm requesting vm level the page ta...
amdgpu_vm_pt_descendant(9)
NAME amdgpu_vm_pt_descendant - go to child node SYNOPSIS bool amdgpu_vm_pt_descendant (struct amdgpu_device *adev , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device pointer cursor current state DESCRIPTION Walk to the child node of the current node. RETURN True if the walk was ...
amdgpu_vm_pt_entries_mask(9)
NAME amdgpu_vm_pt_entries_mask - the mask to get the entry number of a PD/PT SYNOPSIS uint32_t amdgpu_vm_pt_entries_mask (struct amdgpu_device *adev , unsigned int level ); ARGUMENTS adev amdgpu_device pointer level VMPT level RETURN The mask to extract the entry number of a PD/PT from an addres...
amdgpu_vm_pt_first_dfs(9)
NAME amdgpu_vm_pt_first_dfs - start a deep first search SYNOPSIS void amdgpu_vm_pt_first_dfs (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_vm_pt_cursor *start , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device structure vm amdgpu_vm structure star...
amdgpu_vm_pt_free(9)
NAME amdgpu_vm_pt_free - free one PD/PT SYNOPSIS void amdgpu_vm_pt_free (struct amdgpu_vm_bo_base *entry ); ARGUMENTS entry PDE to free SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c amdgpu_vm_pt_level_shift(9), amdgpu_vm_pt_num_entries(9), amdgpu_vm_pt_entries_mask(9), amdgpu_vm_pt_si...
amdgpu_vm_pt_free_list(9)
NAME amdgpu_vm_pt_free_list - free PD/PT levels SYNOPSIS void amdgpu_vm_pt_free_list (struct amdgpu_device *adev , struct amdgpu_vm_update_params *params ); ARGUMENTS adev amdgpu device structure params see amdgpu_vm_update_params definition DESCRIPTION Free the page directory objects saved in th...
amdgpu_vm_pt_free_root(9)
NAME amdgpu_vm_pt_free_root - free root PD SYNOPSIS void amdgpu_vm_pt_free_root (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu device structure vm amdgpu vm structure DESCRIPTION Free the root page directory and everything below it. SEE ALSO Kernel file ./driv...
amdgpu_vm_pt_level_shift(9)
NAME amdgpu_vm_pt_level_shift - return the addr shift for each level SYNOPSIS unsigned int amdgpu_vm_pt_level_shift (struct amdgpu_device *adev , unsigned int level ); ARGUMENTS adev amdgpu_device pointer level VMPT level RETURN The number of bits the pfn needs to be right shifted for a level. ...
amdgpu_vm_pt_map_tables(9)
NAME amdgpu_vm_pt_map_tables - have bo of root PD cpu accessible SYNOPSIS int amdgpu_vm_pt_map_tables (struct amdgpu_device *adev , struct amdgpu_vm *vm ); ARGUMENTS adev amdgpu device structure vm amdgpu vm structure DESCRIPTION make root page directory and everything below it cpu accessible...
amdgpu_vm_pt_next(9)
NAME amdgpu_vm_pt_next - get next PD/PT in hieratchy SYNOPSIS void amdgpu_vm_pt_next (struct amdgpu_device *adev , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device pointer cursor current state DESCRIPTION Walk the PD/PT tree to the next node. SEE ALSO Kernel file ./drivers/g...
amdgpu_vm_pt_next_dfs(9)
NAME amdgpu_vm_pt_next_dfs - get the next node for a deep first search SYNOPSIS void amdgpu_vm_pt_next_dfs (struct amdgpu_device *adev , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device structure cursor current state DESCRIPTION Move the cursor to the next node in a deep first s...
amdgpu_vm_pt_num_entries(9)
NAME amdgpu_vm_pt_num_entries - return the number of entries in a PD/PT SYNOPSIS unsigned int amdgpu_vm_pt_num_entries (struct amdgpu_device *adev , unsigned int level ); ARGUMENTS adev amdgpu_device pointer level VMPT level RETURN The number of entries in a page directory or page table. SEE AL...
amdgpu_vm_pt_parent(9)
NAME amdgpu_vm_pt_parent - get the parent page directory SYNOPSIS struct amdgpu_vm_bo_base * amdgpu_vm_pt_parent (struct amdgpu_vm_bo_base *pt ); ARGUMENTS pt child page table DESCRIPTION Helper to get the parent entry for the child page table. NULL if we are at the root page directory. SEE ALSO Kernel fi...
amdgpu_vm_pt_sibling(9)
NAME amdgpu_vm_pt_sibling - go to sibling node SYNOPSIS bool amdgpu_vm_pt_sibling (struct amdgpu_device *adev , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device pointer cursor current state DESCRIPTION Walk to the sibling node of the current node. RETURN True if the walk was po...
amdgpu_vm_pt_size(9)
NAME amdgpu_vm_pt_size - returns the size of the page table in bytes SYNOPSIS unsigned int amdgpu_vm_pt_size (struct amdgpu_device *adev , unsigned int level ); ARGUMENTS adev amdgpu_device pointer level VMPT level RETURN The size of the BO for a page directory or page table in bytes. SEE ALSO ...
amdgpu_vm_pt_start(9)
NAME amdgpu_vm_pt_start - start PD/PT walk SYNOPSIS void amdgpu_vm_pt_start (struct amdgpu_device *adev , struct amdgpu_vm *vm , uint64_t start , struct amdgpu_vm_pt_cursor *cursor ); ARGUMENTS adev amdgpu_device pointer vm amdgpu_vm structure start start address of the walk ...
amdgpu_vm_pte_fragment(9)
NAME amdgpu_vm_pte_fragment - get fragment for PTEs SYNOPSIS void amdgpu_vm_pte_fragment (struct amdgpu_vm_update_params *params , uint64_t start , uint64_t end , uint64_t flags , unsigned int *frag , uint64_t *frag_end ); ARGUMENTS params see amdgpu_vm_update_params definition start first PTE to h...
amdgpu_vm_pte_update_noretry_flags(9)
NAME amdgpu_vm_pte_update_noretry_flags - Update PTE no-retry flags SYNOPSIS void amdgpu_vm_pte_update_noretry_flags (struct amdgpu_device *adev , uint64_t *flags ); ARGUMENTS adev amdgpu_device pointer flags pointer to PTE flags DESCRIPTION Update PTE no-retry flags when TF is enabled. SEE ALS...
amdgpu_vm_ptes_update(9)
NAME amdgpu_vm_ptes_update - make sure that page tables are valid SYNOPSIS int amdgpu_vm_ptes_update (struct amdgpu_vm_update_params *params , uint64_t start , uint64_t end , uint64_t dst , uint64_t flags ); ARGUMENTS params see amdgpu_vm_update_params definition start start of GPU address range ...
amdgpu_vm_put_task_info(9)
NAME amdgpu_vm_put_task_info - reference down the vm task_info ptr SYNOPSIS void amdgpu_vm_put_task_info (struct amdgpu_task_info *task_info ); ARGUMENTS task_info task_info struct under discussion. DESCRIPTION frees the vm task_info ptr at the last put SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu...
amdgpu_vm_ready(9)
NAME amdgpu_vm_ready - check VM is ready for updates SYNOPSIS bool amdgpu_vm_ready (struct amdgpu_vm *vm ); ARGUMENTS vm VM to check DESCRIPTION Check if all VM PDs/PTs are ready for updates RETURN True if VM is not evicting and all VM entities are not stopped SEE ALSO Kernel file ./drivers/gpu/drm/am...
amdgpu_vm_sdma_commit(9)
NAME amdgpu_vm_sdma_commit - commit SDMA command submission SYNOPSIS int amdgpu_vm_sdma_commit (struct amdgpu_vm_update_params *p , struct dma_fence **fence ); ARGUMENTS p see amdgpu_vm_update_params definition fence resulting fence RETURN Negativ errno, 0 for success. SEE ALSO Kernel file ....
amdgpu_vm_sdma_copy_ptes(9)
NAME amdgpu_vm_sdma_copy_ptes - copy the PTEs from mapping SYNOPSIS void amdgpu_vm_sdma_copy_ptes (struct amdgpu_vm_update_params *p , struct amdgpu_bo *bo , uint64_t pe , unsigned count ); ARGUMENTS p see amdgpu_vm_update_params definition bo PD/PT to update pe addr of the...
amdgpu_vm_sdma_map_table(9)
NAME amdgpu_vm_sdma_map_table - make sure new PDs/PTs are GTT mapped SYNOPSIS int amdgpu_vm_sdma_map_table (struct amdgpu_bo_vm *table ); ARGUMENTS table newly allocated or validated PD/PT SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c amdgpu_vm_sdma_prepare(9), amdgpu_vm_sdma_commit(9), am...
amdgpu_vm_sdma_prepare(9)
NAME amdgpu_vm_sdma_prepare - prepare SDMA command submission SYNOPSIS int amdgpu_vm_sdma_prepare (struct amdgpu_vm_update_params *p , struct amdgpu_sync *sync , u64 k_job_id ); ARGUMENTS p see amdgpu_vm_update_params definition sync amdgpu_sync object with fences to wait for k_job_id...
amdgpu_vm_sdma_set_ptes(9)
NAME amdgpu_vm_sdma_set_ptes - helper to call the right asic function SYNOPSIS void amdgpu_vm_sdma_set_ptes (struct amdgpu_vm_update_params *p , struct amdgpu_bo *bo , uint64_t pe , uint64_t addr , unsigned count , uint32_t incr , uint64_t flags ); ARGUMENTS p see amdgpu_vm_update_params definition ...
amdgpu_vm_sdma_update(9)
NAME amdgpu_vm_sdma_update - execute VM update SYNOPSIS int amdgpu_vm_sdma_update (struct amdgpu_vm_update_params *p , struct amdgpu_bo_vm *vmbo , uint64_t pe , uint64_t addr , unsigned count , uint32_t incr , uint64_t flags ); ARGUMENTS p see amdgpu_vm_update_params definition vmbo PD/PT to ...
amdgpu_vm_set_task_info(9)
NAME amdgpu_vm_set_task_info - Sets VMs task info. SYNOPSIS void amdgpu_vm_set_task_info (struct amdgpu_vm *vm ); ARGUMENTS vm vm for which to set the info SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), struct amdgpu_vm_tlb_seq_struct(9), ...
amdgpu_vm_tlb_flush(9)
NAME amdgpu_vm_tlb_flush - prepare TLB flush SYNOPSIS void amdgpu_vm_tlb_flush (struct amdgpu_vm_update_params *params , struct dma_fence **fence , struct amdgpu_vm_tlb_seq_struct *tlb_cb ); ARGUMENTS params parameters for update fence input fence to sync TLB flush with tlb_cb the call...
amdgpu_vm_tlb_seq(9)
NAME amdgpu_vm_tlb_seq - return tlb flush sequence number SYNOPSIS uint64_t amdgpu_vm_tlb_seq (struct amdgpu_vm *vm ); ARGUMENTS vm the amdgpu_vm structure to query DESCRIPTION Returns the tlb flush sequence number which indicates that the VM TLBs needs to be invalidated whenever the sequence number change....
amdgpu_vm_tlb_seq_cb(9)
NAME amdgpu_vm_tlb_seq_cb - make sure to increment tlb sequence SYNOPSIS void amdgpu_vm_tlb_seq_cb (struct dma_fence *fence , struct dma_fence_cb *cb ); ARGUMENTS fence unused cb the callback structure DESCRIPTION Increments the tlb sequence to make sure that future CS execute a VM flush. SEE...
amdgpu_vm_update_fault_cache(9)
NAME amdgpu_vm_update_fault_cache - update cached fault into. SYNOPSIS void amdgpu_vm_update_fault_cache (struct amdgpu_device *adev , unsigned int pasid , uint64_t addr , uint32_t status , unsigned int vmhub ); ARGUMENTS adev amdgpu device pointer pasid PASID of the VM addr Addres...
amdgpu_vm_update_pdes(9)
NAME amdgpu_vm_update_pdes - make sure that all directories are valid SYNOPSIS int amdgpu_vm_update_pdes (struct amdgpu_device *adev , struct amdgpu_vm *vm , bool immediate ); ARGUMENTS adev amdgpu_device pointer vm requested vm immediate submit immediately to the paging queue DESCR...
amdgpu_vm_update_prt_state(9)
NAME amdgpu_vm_update_prt_state - update the global PRT state SYNOPSIS void amdgpu_vm_update_prt_state (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct amdgpu_prt_cb(9), struct amdgpu_vm_tlb_se...
amdgpu_vm_update_range(9)
NAME amdgpu_vm_update_range - update a range in the vm page table SYNOPSIS int amdgpu_vm_update_range (struct amdgpu_device *adev , struct amdgpu_vm *vm , bool immediate , bool unlocked , bool flush_tlb , bool allow_override , struct amdgpu_sync *sync , uint64_t start , uint64_t last , uint64_t flags , uint64_t offse...
amdgpu_vm_update_shared(9)
NAME amdgpu_vm_update_shared - helper to update shared memory stat SYNOPSIS void amdgpu_vm_update_shared (struct amdgpu_vm_bo_base *base ); ARGUMENTS base base structure for tracking BO usage in a VM DESCRIPTION Takes the vm status_lock and updates the shared memory stat. If the basic stat changed (e.g. buffe...
amdgpu_vm_update_stats(9)
NAME amdgpu_vm_update_stats - helper to update normal memory stat SYNOPSIS void amdgpu_vm_update_stats (struct amdgpu_vm_bo_base *base , struct ttm_resource *res , int sign ); ARGUMENTS base base structure for tracking BO usage in a VM res the ttm_resource to use for the purpose of accounting, ...
amdgpu_vm_update_stats_locked(9)
NAME amdgpu_vm_update_stats_locked - helper to update normal memory stat SYNOPSIS void amdgpu_vm_update_stats_locked (struct amdgpu_vm_bo_base *base , struct ttm_resource *res , int sign ); ARGUMENTS base base structure for tracking BO usage in a VM res the ttm_resource to use for the purpose o...
amdgpu_vm_validate(9)
NAME amdgpu_vm_validate - validate evicted BOs tracked in the VM SYNOPSIS int amdgpu_vm_validate (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct ww_acquire_ctx *ticket , int (*validate)(void *p, struct amdgpu_bo *bo) , void *param ); ARGUMENTS adev amdgpu device pointer vm vm provi...
amdgpu_vm_wait_idle(9)
NAME amdgpu_vm_wait_idle - wait for the VM to become idle SYNOPSIS long amdgpu_vm_wait_idle (struct amdgpu_vm *vm , long timeout ); ARGUMENTS vm VM object to wait for timeout timeout to wait for VM to become idle SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9)...
amdgpu_vmid_grab(9)
NAME amdgpu_vmid_grab - allocate the next free VMID SYNOPSIS int amdgpu_vmid_grab (struct amdgpu_vm *vm , struct amdgpu_ring *ring , struct amdgpu_job *job , struct dma_fence **fence ); ARGUMENTS vm vm to allocate id for ring ring we want to submit job to job job who wants to u...
amdgpu_vmid_grab_idle(9)
NAME amdgpu_vmid_grab_idle - grab idle VMID SYNOPSIS int amdgpu_vmid_grab_idle (struct amdgpu_ring *ring , struct amdgpu_vmid **idle , struct dma_fence **fence ); ARGUMENTS ring ring we want to submit job to idle resulting idle VMID fence fence to wait for if no id could be grabbed...
amdgpu_vmid_grab_reserved(9)
NAME amdgpu_vmid_grab_reserved - try to assign reserved VMID SYNOPSIS int amdgpu_vmid_grab_reserved (struct amdgpu_vm *vm , struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_vmid **id , struct dma_fence **fence ); ARGUMENTS vm vm to allocate id for ring ring we want to submit j...
amdgpu_vmid_grab_used(9)
NAME amdgpu_vmid_grab_used - try to reuse a VMID SYNOPSIS int amdgpu_vmid_grab_used (struct amdgpu_vm *vm , struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_vmid **id ); ARGUMENTS vm vm to allocate id for ring ring we want to submit job to job job who wants to ...
amdgpu_vmid_had_gpu_reset(9)
NAME amdgpu_vmid_had_gpu_reset - check if reset occured since last use SYNOPSIS bool amdgpu_vmid_had_gpu_reset (struct amdgpu_device *adev , struct amdgpu_vmid *id ); ARGUMENTS adev amdgpu_device pointer id VMID structure DESCRIPTION Check if GPU reset occured since last use of the VMID. SEE...
amdgpu_vmid_mgr_fini(9)
NAME amdgpu_vmid_mgr_fini - cleanup VM manager SYNOPSIS void amdgpu_vmid_mgr_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Cleanup the VM manager and free resources. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9), amdgpu...
amdgpu_vmid_mgr_init(9)
NAME amdgpu_vmid_mgr_init - init the VMID manager SYNOPSIS void amdgpu_vmid_mgr_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initialize the VM manager structures SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9), amdgpu_pasid_free...
amdgpu_vmid_reset(9)
NAME amdgpu_vmid_reset - reset VMID to zero SYNOPSIS void amdgpu_vmid_reset (struct amdgpu_device *adev , unsigned vmhub , unsigned vmid ); ARGUMENTS adev amdgpu device structure vmhub vmhub type vmid vmid number to use DESCRIPTION Reset saved GDW, GWS and OA to force switch on ne...
amdgpu_vmid_reset_all(9)
NAME amdgpu_vmid_reset_all - reset VMID to zero SYNOPSIS void amdgpu_vmid_reset_all (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device structure DESCRIPTION Reset VMID to force flush on next use SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9), amdgpu_pasid_fr...
amdgpu_vram_mgr_alloc_sgt(9)
NAME amdgpu_vram_mgr_alloc_sgt - allocate and fill a sg table SYNOPSIS int amdgpu_vram_mgr_alloc_sgt (struct amdgpu_device *adev , struct ttm_resource *res , u64 offset , u64 length , struct device *dev , enum dma_data_direction dir , struct sg_table **sgt ); ARGUMENTS adev amdgpu device pointer res ...
amdgpu_vram_mgr_bo_visible_size(9)
NAME amdgpu_vram_mgr_bo_visible_size - CPU visible BO size SYNOPSIS u64 amdgpu_vram_mgr_bo_visible_size (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu_bo buffer object (must be in VRAM) RETURN How much of the given amdgpu_bo buffer object lies in CPU visible VRAM. SEE ALSO Kernel file ./drivers/gpu/drm/a...
amdgpu_vram_mgr_clear_reset_blocks(9)
NAME amdgpu_vram_mgr_clear_reset_blocks - reset clear blocks SYNOPSIS void amdgpu_vram_mgr_clear_reset_blocks (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Reset the cleared drm buddy blocks. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c Kernel API(9...
amdgpu_vram_mgr_compatible(9)
NAME amdgpu_vram_mgr_compatible - test each drm buddy block for compatibility SYNOPSIS bool amdgpu_vram_mgr_compatible (struct ttm_resource_manager *man , struct ttm_resource *res , const struct ttm_place *place , size_t size ); ARGUMENTS man TTM memory type manager res The resource to test ...
amdgpu_vram_mgr_debug(9)
NAME amdgpu_vram_mgr_debug - dump VRAM table SYNOPSIS void amdgpu_vram_mgr_debug (struct ttm_resource_manager *man , struct drm_printer *printer ); ARGUMENTS man TTM memory type manager printer DRM printer to use DESCRIPTION Dump the table content using printk. SEE ALSO Kernel file ./drivers/g...
amdgpu_vram_mgr_del(9)
NAME amdgpu_vram_mgr_del - free ranges SYNOPSIS void amdgpu_vram_mgr_del (struct ttm_resource_manager *man , struct ttm_resource *res ); ARGUMENTS man TTM memory type manager res TTM memory object DESCRIPTION Free the allocated VRAM again. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/...
amdgpu_vram_mgr_fini(9)
NAME amdgpu_vram_mgr_fini - free and destroy VRAM manager SYNOPSIS void amdgpu_vram_mgr_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Destroy and free the VRAM manager, returns -EBUSY if ranges are still allocated inside it. SEE ALSO Kernel file ./drivers/gpu/drm/amd/...
amdgpu_vram_mgr_free_sgt(9)
NAME amdgpu_vram_mgr_free_sgt - allocate and fill a sg table SYNOPSIS void amdgpu_vram_mgr_free_sgt (struct device *dev , enum dma_data_direction dir , struct sg_table *sgt ); ARGUMENTS dev device pointer dir data direction of resource to unmap sgt sg table to free DESCRIPTION...