id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_fence_driver_init_ring(9)
NAME amdgpu_fence_driver_init_ring - init the fence driver for the requested ring. SYNOPSIS int amdgpu_fence_driver_init_ring (struct amdgpu_ring *ring ); ARGUMENTS ring ring to init the fence driver on DESCRIPTION Init the fence driver for the requested ring (all asics). Helper function for amdgpu_fence_dri...
amdgpu_fence_driver_set_error(9)
NAME amdgpu_fence_driver_set_error - set error code on fences SYNOPSIS void amdgpu_fence_driver_set_error (struct amdgpu_ring *ring , int error ); ARGUMENTS ring the ring which contains the fences error the error code to set DESCRIPTION Set an error code to all the fences pending on the ring. S...
amdgpu_fence_driver_start_ring(9)
NAME amdgpu_fence_driver_start_ring - make the fence driver ready for use on the requested ring. SYNOPSIS int amdgpu_fence_driver_start_ring (struct amdgpu_ring *ring , struct amdgpu_irq_src *irq_src , unsigned int irq_type ); ARGUMENTS ring ring to start the fence driver on irq_src interrupt sourc...
amdgpu_fence_driver_sw_init(9)
NAME amdgpu_fence_driver_sw_init - init the fence driver for all possible rings. SYNOPSIS int amdgpu_fence_driver_sw_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Init the fence driver for all possible rings (all asics). Not all asics have all rings, so each asic will o...
amdgpu_fence_driver_update_timedout_fence_state(9)
NAME amdgpu_fence_driver_update_timedout_fence_state - Update fence state and set errors SYNOPSIS void amdgpu_fence_driver_update_timedout_fence_state (struct amdgpu_fence *af ); ARGUMENTS af fence of the ring to update SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_write(...
amdgpu_fence_emit(9)
NAME amdgpu_fence_emit - emit a fence on the requested ring SYNOPSIS int amdgpu_fence_emit (struct amdgpu_ring *ring , struct amdgpu_fence *af , unsigned int flags ); ARGUMENTS ring ring the fence is associated with af amdgpu fence input flags flags to pass into the subordinate ....
amdgpu_fence_emit_polling(9)
NAME amdgpu_fence_emit_polling - emit a fence on the requeste ring SYNOPSIS int amdgpu_fence_emit_polling (struct amdgpu_ring *ring , uint32_t *s , uint32_t timeout ); ARGUMENTS ring ring the fence is associated with s resulting sequence number timeout the timeout for waiting in u...
amdgpu_fence_enable_signaling(9)
NAME amdgpu_fence_enable_signaling - enable signalling on fence SYNOPSIS bool amdgpu_fence_enable_signaling (struct dma_fence *f ); ARGUMENTS f fence DESCRIPTION This function is called with fence_queue lock held, and adds a callback to fence_queue that checks if this fence is signaled, and if so it signal...
amdgpu_fence_fallback(9)
NAME amdgpu_fence_fallback - fallback for hardware interrupts SYNOPSIS void amdgpu_fence_fallback (struct timer_list *t ); ARGUMENTS t timer context used to obtain the pointer to ring structure DESCRIPTION Checks for fence activity. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdg...
amdgpu_fence_free(9)
NAME amdgpu_fence_free - free up the fence memory SYNOPSIS void amdgpu_fence_free (struct rcu_head *rcu ); ARGUMENTS rcu RCU callback head DESCRIPTION Free up the fence memory after the RCU grace period. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_write(9), amdgpu_fenc...
amdgpu_fence_last_unsignaled_time_us(9)
NAME amdgpu_fence_last_unsignaled_time_us - the time fence emitted until now SYNOPSIS u64 amdgpu_fence_last_unsignaled_time_us (struct amdgpu_ring *ring ); ARGUMENTS ring ring the fence is associated with DESCRIPTION Find the earliest fence unsignaled until now, calculate the time delta between the time fence...
amdgpu_fence_need_ring_interrupt_restore(9)
NAME amdgpu_fence_need_ring_interrupt_restore - helper function to check whether fence driver interrupts need to be restored. SYNOPSIS bool amdgpu_fence_need_ring_interrupt_restore (struct amdgpu_ring *ring ); ARGUMENTS ring ring that to be checked DESCRIPTION Interrupts for rings that belong to GFX IP don't ...
amdgpu_fence_process(9)
NAME amdgpu_fence_process - check for fence activity SYNOPSIS bool amdgpu_fence_process (struct amdgpu_ring *ring ); ARGUMENTS ring pointer to struct amdgpu_ring DESCRIPTION Checks the current fence value and calculates the last signalled fence value. Wakes the fence queue if the sequence number has increased...
amdgpu_fence_read(9)
NAME amdgpu_fence_read - read a fence value SYNOPSIS u32 amdgpu_fence_read (struct amdgpu_ring *ring ); ARGUMENTS ring ring the fence is associated with DESCRIPTION Reads a fence value from memory (all asics). Returns the value of the fence read from memory. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdg...
amdgpu_fence_release(9)
NAME amdgpu_fence_release - callback that fence can be freed SYNOPSIS void amdgpu_fence_release (struct dma_fence *f ); ARGUMENTS f fence DESCRIPTION This function is called when the reference count becomes zero. It just RCU schedules freeing up the fence. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amd...
amdgpu_fence_schedule_fallback(9)
NAME amdgpu_fence_schedule_fallback - schedule fallback check SYNOPSIS void amdgpu_fence_schedule_fallback (struct amdgpu_ring *ring ); ARGUMENTS ring pointer to struct amdgpu_ring DESCRIPTION Start a timer as fallback to our interrupts. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c ...
amdgpu_fence_update_start_timestamp(9)
NAME amdgpu_fence_update_start_timestamp - update the timestamp of the fence SYNOPSIS void amdgpu_fence_update_start_timestamp (struct amdgpu_ring *ring , uint32_t seq , ktime_t timestamp ); ARGUMENTS ring ring the fence is associated with seq the fence seq number to update. timestamp ...
amdgpu_fence_wait_empty(9)
NAME amdgpu_fence_wait_empty - wait for all fences to signal SYNOPSIS int amdgpu_fence_wait_empty (struct amdgpu_ring *ring ); ARGUMENTS ring ring index the fence is associated with DESCRIPTION Wait for all fences on the requested ring to signal (all asics). Returns 0 if the fences have passed, error for all...
amdgpu_fence_wait_polling(9)
NAME amdgpu_fence_wait_polling - busy wait for givn sequence number SYNOPSIS signed long amdgpu_fence_wait_polling (struct amdgpu_ring *ring , uint32_t wait_seq , signed long timeout ); ARGUMENTS ring ring index the fence is associated with wait_seq sequence number to wait timeout the ti...
amdgpu_fence_write(9)
NAME amdgpu_fence_write - write a fence value SYNOPSIS void amdgpu_fence_write (struct amdgpu_ring *ring , u32 seq ); ARGUMENTS ring ring the fence is associated with seq sequence number to write DESCRIPTION Writes a fence value to memory (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/...
amdgpu_gart_bind(9)
NAME amdgpu_gart_bind - bind pages into the gart page table SYNOPSIS void amdgpu_gart_bind (struct amdgpu_device *adev , uint64_t offset , int pages , dma_addr_t *dma_addr , uint64_t flags ); ARGUMENTS adev amdgpu_device pointer offset offset into the GPU's gart aperture pages number...
amdgpu_gart_dummy_page_fini(9)
NAME amdgpu_gart_dummy_page_fini - free dummy page used by the driver SYNOPSIS void amdgpu_gart_dummy_page_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Frees the dummy page used by the driver (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gart....
amdgpu_gart_dummy_page_init(9)
NAME amdgpu_gart_dummy_page_init - init dummy page used by the driver SYNOPSIS int amdgpu_gart_dummy_page_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate the dummy page used by the driver (all asics). This dummy page is used by the driver as a filler for gart ent...
amdgpu_gart_init(9)
NAME amdgpu_gart_init - init the driver info for managing the gart SYNOPSIS int amdgpu_gart_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate the dummy page and init the gart driver info (all asics). Returns 0 for success, error for failure. SEE ALSO Kernel file ...
amdgpu_gart_invalidate_tlb(9)
NAME amdgpu_gart_invalidate_tlb - invalidate gart TLB SYNOPSIS void amdgpu_gart_invalidate_tlb (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device driver pointer DESCRIPTION Invalidate gart TLB which can be use as a way to flush gart changes SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_...
amdgpu_gart_map(9)
NAME amdgpu_gart_map - map dma_addresses into GART entries SYNOPSIS void amdgpu_gart_map (struct amdgpu_device *adev , uint64_t offset , int pages , dma_addr_t *dma_addr , uint64_t flags , void *dst ); ARGUMENTS adev amdgpu_device pointer offset offset into the GPU's gart aperture pages ...
amdgpu_gart_map_gfx9_mqd(9)
NAME amdgpu_gart_map_gfx9_mqd - map mqd and ctrl_stack dma_addresses into GART entries SYNOPSIS void amdgpu_gart_map_gfx9_mqd (struct amdgpu_device *adev , uint64_t offset , int pages , dma_addr_t *dma_addr , uint64_t flags ); ARGUMENTS adev amdgpu_device pointer offset offset into the GPU's gart ...
amdgpu_gart_map_vram_range(9)
NAME amdgpu_gart_map_vram_range - map VRAM pages into the GART page table SYNOPSIS void amdgpu_gart_map_vram_range (struct amdgpu_device *adev , uint64_t pa , uint64_t start_page , uint64_t num_pages , uint64_t flags , void *dst ); ARGUMENTS adev amdgpu_device pointer pa physical address of th...
amdgpu_gart_table_ram_alloc(9)
NAME amdgpu_gart_table_ram_alloc - allocate system ram for gart page table SYNOPSIS int amdgpu_gart_table_ram_alloc (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate system memory for GART page table for ASICs that don't have dedicated VRAM. Returns 0 for success, error...
amdgpu_gart_table_ram_free(9)
NAME amdgpu_gart_table_ram_free - free gart page table system ram SYNOPSIS void amdgpu_gart_table_ram_free (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Free the system memory used for the GART page tableon ASICs that don't have dedicated VRAM. SEE ALSO Kernel file ./drive...
amdgpu_gart_table_vram_alloc(9)
NAME amdgpu_gart_table_vram_alloc - allocate vram for gart page table SYNOPSIS int amdgpu_gart_table_vram_alloc (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate video memory for GART page table (pcie r4xx, r5xx+). These asics require the gart table to be in video memor...
amdgpu_gart_table_vram_free(9)
NAME amdgpu_gart_table_vram_free - free gart page table vram SYNOPSIS void amdgpu_gart_table_vram_free (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Free the video memory used for the GART page table (pcie r4xx, r5xx+). These asics require the gart table to be in video memor...
amdgpu_gart_unbind(9)
NAME amdgpu_gart_unbind - unbind pages from the gart page table SYNOPSIS void amdgpu_gart_unbind (struct amdgpu_device *adev , uint64_t offset , int pages ); ARGUMENTS adev amdgpu_device pointer offset offset into the GPU's gart aperture pages number of pages to unbind DESCRIPTION U...
amdgpu_gem_list_handles_ioctl(9)
NAME amdgpu_gem_list_handles_ioctl - get information about a process' buffer objects SYNOPSIS int amdgpu_gem_list_handles_ioctl (struct drm_device *dev , void *data , struct drm_file *filp ); ARGUMENTS dev drm device pointer data drm_amdgpu_gem_list_handles filp drm file pointer ...
amdgpu_gem_prime_export(9)
NAME amdgpu_gem_prime_export - &drm_driver.gem_prime_export implementation SYNOPSIS struct dma_buf * amdgpu_gem_prime_export (struct drm_gem_object *gobj , int flags ); ARGUMENTS gobj GEM BO flags Flags such as DRM_CLOEXEC and DRM_RDWR. DESCRIPTION The main work is done by the drm_gem_prime_expo...
amdgpu_gem_prime_import(9)
NAME amdgpu_gem_prime_import - &drm_driver.gem_prime_import implementation SYNOPSIS struct drm_gem_object * amdgpu_gem_prime_import (struct drm_device *dev , struct dma_buf *dma_buf ); ARGUMENTS dev DRM device dma_buf Shared DMA buffer DESCRIPTION Import a dma_buf into a the driver and potentiall...
amdgpu_gem_timeout(9)
NAME amdgpu_gem_timeout - calculate jiffies timeout from absolute value SYNOPSIS unsigned long amdgpu_gem_timeout (uint64_t timeout_ns ); ARGUMENTS timeout_ns timeout in ns DESCRIPTION Calculate the timeout in jiffies from an absolute timeout in ns. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c am...
amdgpu_gem_va_update_vm(9)
NAME amdgpu_gem_va_update_vm - update the bo_va in its VM SYNOPSIS struct dma_fence * amdgpu_gem_va_update_vm (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_bo_va *bo_va , uint32_t operation ); ARGUMENTS adev amdgpu_device pointer vm vm to update bo_va bo_va t...
amdgpu_get_vblank_counter_kms(9)
NAME amdgpu_get_vblank_counter_kms - get frame count SYNOPSIS u32 amdgpu_get_vblank_counter_kms (struct drm_crtc *crtc ); ARGUMENTS crtc crtc to get the frame count from DESCRIPTION Gets the frame count on the requested crtc (all asics). Returns frame count on success, -EINVAL on failure. SEE ALSO Kernel f...
amdgpu_gfx_create_bitmask(9)
NAME amdgpu_gfx_create_bitmask - create a bitmask SYNOPSIS u32 amdgpu_gfx_create_bitmask (u32 bit_width ); ARGUMENTS bit_width length of the mask DESCRIPTION create a variable length bit mask. Returns the bitmask. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h April 2026 ...
amdgpu_gfx_csb_data_parser(9)
NAME amdgpu_gfx_csb_data_parser - Parser CS data SYNOPSIS u32 amdgpu_gfx_csb_data_parser (struct amdgpu_device *adev , u32 *buffer , u32 count ); ARGUMENTS adev amdgpu_device pointer used to get the CS data and other gfx info. buffer This is an output variable that gets the PACKET3 preamble end. ...
amdgpu_gfx_csb_preamble_end(9)
NAME amdgpu_gfx_csb_preamble_end - Set CSB preamble end SYNOPSIS void amdgpu_gfx_csb_preamble_end (u32 *buffer , u32 count ); ARGUMENTS buffer This is an output variable that gets the PACKET3 preamble end. count Index to start set the preemble end. SEE ALSO Kernel file ./drivers/gpu/drm/am...
amdgpu_gfx_csb_preamble_start(9)
NAME amdgpu_gfx_csb_preamble_start - Set CSB preamble start SYNOPSIS u32 amdgpu_gfx_csb_preamble_start (u32 *buffer ); ARGUMENTS buffer This is an output variable that gets the PACKET3 preamble setup. RETURN return the latest index. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amd...
amdgpu_gfx_enforce_isolation_handler(9)
NAME amdgpu_gfx_enforce_isolation_handler - work handler for enforcing shader isolation SYNOPSIS void amdgpu_gfx_enforce_isolation_handler (struct work_struct *work ); ARGUMENTS work work_struct. DESCRIPTION This function is the work handler for enforcing shader isolation on AMD GPUs. It counts the number of...
amdgpu_gfx_enforce_isolation_ring_begin_use(9)
NAME amdgpu_gfx_enforce_isolation_ring_begin_use - Begin use of a ring with enforced isolation SYNOPSIS void amdgpu_gfx_enforce_isolation_ring_begin_use (struct amdgpu_ring *ring ); ARGUMENTS ring Pointer to the amdgpu_ring structure DESCRIPTION Ring begin_use helper implementation for gfx which serializ...
amdgpu_gfx_enforce_isolation_ring_end_use(9)
NAME amdgpu_gfx_enforce_isolation_ring_end_use - End use of a ring with enforced isolation SYNOPSIS void amdgpu_gfx_enforce_isolation_ring_end_use (struct amdgpu_ring *ring ); ARGUMENTS ring Pointer to the amdgpu_ring structure DESCRIPTION Ring end_use helper implementation for gfx which serializes access to ...
amdgpu_gfx_enforce_isolation_wait_for_kfd(9)
NAME amdgpu_gfx_enforce_isolation_wait_for_kfd - Manage KFD wait period for process isolation SYNOPSIS void amdgpu_gfx_enforce_isolation_wait_for_kfd (struct amdgpu_device *adev , u32 idx ); ARGUMENTS adev amdgpu_device pointer idx Index of the GPU partition DESCRIPTION When kernel submissio...
amdgpu_gfx_get_enforce_isolation(9)
NAME amdgpu_gfx_get_enforce_isolation - Query AMDGPU GFX Enforce Isolation Settings SYNOPSIS ssize_t amdgpu_gfx_get_enforce_isolation (struct device *dev , struct device_attribute *attr , char *buf ); ARGUMENTS dev The device structure attr The device attribute structure buf The...
amdgpu_gfx_kfd_sch_ctrl(9)
NAME amdgpu_gfx_kfd_sch_ctrl - Control the KFD scheduler from the KGD (Graphics Driver) SYNOPSIS void amdgpu_gfx_kfd_sch_ctrl (struct amdgpu_device *adev , u32 idx , bool enable ); ARGUMENTS adev amdgpu_device pointer idx Index of the scheduler to control enable Whether to enable o...
amdgpu_gfx_parse_disable_cu(9)
NAME amdgpu_gfx_parse_disable_cu - Parse the disable_cu module parameter SYNOPSIS void amdgpu_gfx_parse_disable_cu (struct amdgpu_device *adev , unsigned int *mask , unsigned int max_se , unsigned int max_sh ); ARGUMENTS adev amdgpu device pointer mask array in which the per-shader array disable...
amdgpu_gfx_rlc_enter_safe_mode(9)
NAME amdgpu_gfx_rlc_enter_safe_mode - Set RLC into safe mode SYNOPSIS void amdgpu_gfx_rlc_enter_safe_mode (struct amdgpu_device *adev , int xcc_id ); ARGUMENTS adev amdgpu_device pointer xcc_id xcc accelerated compute core id DESCRIPTION Set RLC enter into safe mode if RLC is enabled and haven't ...
amdgpu_gfx_rlc_exit_safe_mode(9)
NAME amdgpu_gfx_rlc_exit_safe_mode - Set RLC out of safe mode SYNOPSIS void amdgpu_gfx_rlc_exit_safe_mode (struct amdgpu_device *adev , int xcc_id ); ARGUMENTS adev amdgpu_device pointer xcc_id xcc accelerated compute core id DESCRIPTION Set RLC exit safe mode if RLC is enabled and have entered i...
amdgpu_gfx_rlc_fini(9)
NAME amdgpu_gfx_rlc_fini - Free BO which used for RLC SYNOPSIS void amdgpu_gfx_rlc_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Free three BO which is used for rlc_save_restore_block, rlc_clear_state_block and rlc_jump_table_block. SEE ALSO Kernel file ./drivers/...
amdgpu_gfx_rlc_init_cpt(9)
NAME amdgpu_gfx_rlc_init_cpt - Init cp table SYNOPSIS int amdgpu_gfx_rlc_init_cpt (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate and setup value to cp table of rlc. Returns 0 on succeess or negative error code if allocate failed. SEE ALSO Kernel file ./drivers/g...
amdgpu_gfx_rlc_init_csb(9)
NAME amdgpu_gfx_rlc_init_csb - Init clear state block SYNOPSIS int amdgpu_gfx_rlc_init_csb (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate and setup value to clear state block of rlc. Returns 0 on succeess or negative error code if allocate failed. SEE ALSO Kernel ...
amdgpu_gfx_rlc_init_sr(9)
NAME amdgpu_gfx_rlc_init_sr - Init save restore block SYNOPSIS int amdgpu_gfx_rlc_init_sr (struct amdgpu_device *adev , u32 dws ); ARGUMENTS adev amdgpu_device pointer dws the size of save restore block DESCRIPTION Allocate and setup value to save restore block of rlc. Returns 0 on succeess o...
amdgpu_gfx_rlc_setup_cp_table(9)
NAME amdgpu_gfx_rlc_setup_cp_table - setup cp the buffer of cp table SYNOPSIS void amdgpu_gfx_rlc_setup_cp_table (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Write cp firmware data into cp table. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_rlc.c amdgpu_gfx_rlc_...
amdgpu_gfx_set_enforce_isolation(9)
NAME amdgpu_gfx_set_enforce_isolation - Control AMDGPU GFX Enforce Isolation SYNOPSIS ssize_t amdgpu_gfx_set_enforce_isolation (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev The device structure attr The device attribute structure b...
amdgpu_gfx_set_run_cleaner_shader(9)
NAME amdgpu_gfx_set_run_cleaner_shader - Execute the AMDGPU GFX Cleaner Shader SYNOPSIS ssize_t amdgpu_gfx_set_run_cleaner_shader (struct device *dev , struct device_attribute *attr , const char *buf , size_t count ); ARGUMENTS dev The device structure attr The device attribute structure ...
amdgpu_gmc_agp_addr(9)
NAME amdgpu_gmc_agp_addr - return the address in the AGP address space SYNOPSIS uint64_t amdgpu_gmc_agp_addr (struct ttm_buffer_object *bo ); ARGUMENTS bo TTM BO which needs the address, must be in GTT domain DESCRIPTION Tries to figure out how to access the BO through the AGP aperture. Returns AMDGPU_BO_IN...
amdgpu_gmc_agp_location(9)
NAME amdgpu_gmc_agp_location - try to find AGP location SYNOPSIS void amdgpu_gmc_agp_location (struct amdgpu_device *adev , struct amdgpu_gmc *mc ); ARGUMENTS adev amdgpu device structure holding all necessary information mc memory controller structure holding memory information DESCRIPTION F...
amdgpu_gmc_fault_key(9)
NAME amdgpu_gmc_fault_key - get hask key from vm fault address and pasid SYNOPSIS uint64_t amdgpu_gmc_fault_key (uint64_t addr , uint16_t pasid ); ARGUMENTS addr 48 bit physical address, page aligned (36 significant bits) pasid 16 bit process address space identifier SEE ALSO Kernel file ./dri...
amdgpu_gmc_filter_faults(9)
NAME amdgpu_gmc_filter_faults - filter VM faults SYNOPSIS bool amdgpu_gmc_filter_faults (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , uint64_t addr , uint16_t pasid , uint64_t timestamp ); ARGUMENTS adev amdgpu device structure ih interrupt ring that the fault received from ...
amdgpu_gmc_filter_faults_remove(9)
NAME amdgpu_gmc_filter_faults_remove - remove address from VM faults filter SYNOPSIS void amdgpu_gmc_filter_faults_remove (struct amdgpu_device *adev , uint64_t addr , uint16_t pasid ); ARGUMENTS adev amdgpu device structure addr address of the VM fault pasid PASID of the process c...
amdgpu_gmc_gart_location(9)
NAME amdgpu_gmc_gart_location - try to find GART location SYNOPSIS void amdgpu_gmc_gart_location (struct amdgpu_device *adev , struct amdgpu_gmc *mc , enum amdgpu_gart_placement gart_placement ); ARGUMENTS adev amdgpu device structure holding all necessary information mc memory controller stru...
amdgpu_gmc_get_pde_for_bo(9)
NAME amdgpu_gmc_get_pde_for_bo - get the PDE for a BO SYNOPSIS void amdgpu_gmc_get_pde_for_bo (struct amdgpu_bo *bo , int level , uint64_t *addr , uint64_t *flags ); ARGUMENTS bo the BO to get the PDE for level the level in the PD hirarchy addr resulting addr flags ...
amdgpu_gmc_init_pdb0(9)
NAME amdgpu_gmc_init_pdb0 - initialize PDB0 SYNOPSIS void amdgpu_gmc_init_pdb0 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION This function is only used when GART page table is used for FB address translatioin. In such a case, we construct a 2-level system VM page table: PDB0...
amdgpu_gmc_noretry_set(9)
NAME amdgpu_gmc_noretry_set - - set per asic noretry defaults SYNOPSIS void amdgpu_gmc_noretry_set (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set a per asic default for the no-retry parameter. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c amdgpu_g...
amdgpu_gmc_pdb0_alloc(9)
NAME amdgpu_gmc_pdb0_alloc - allocate vram for pdb0 SYNOPSIS int amdgpu_gmc_pdb0_alloc (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate video memory for pdb0 and map it for CPU access Returns 0 for success, error for failure. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
amdgpu_gmc_set_agp_default(9)
NAME amdgpu_gmc_set_agp_default - Set the default AGP aperture value. SYNOPSIS void amdgpu_gmc_set_agp_default (struct amdgpu_device *adev , struct amdgpu_gmc *mc ); ARGUMENTS adev amdgpu device structure holding all necessary information mc memory controller structure holding memory informati...
amdgpu_gmc_set_pte_pde(9)
NAME amdgpu_gmc_set_pte_pde - update the page tables using CPU SYNOPSIS int amdgpu_gmc_set_pte_pde (struct amdgpu_device *adev , void *cpu_pt_addr , uint32_t gpu_page_idx , uint64_t addr , uint64_t flags ); ARGUMENTS adev amdgpu_device pointer cpu_pt_addr cpu address of the page table gpu_page_...
amdgpu_gmc_sign_extend(9)
NAME amdgpu_gmc_sign_extend - sign extend the given gmc address SYNOPSIS amdgpu_gmc_sign_extend (addr ); ARGUMENTS addr address to extend SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h amdgpu_gmc_vram_full_visible(9) April 2026 ...
amdgpu_gmc_tmz_set(9)
NAME amdgpu_gmc_tmz_set - - check and set if a device supports TMZ SYNOPSIS void amdgpu_gmc_tmz_set (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Check and set if an the device adev supports Trusted Memory Zones (TMZ). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdg...
amdgpu_gmc_vram_full_visible(9)
NAME amdgpu_gmc_vram_full_visible - Check if full VRAM is visible through the BAR SYNOPSIS bool amdgpu_gmc_vram_full_visible (struct amdgpu_gmc *gmc ); ARGUMENTS gmc -- undescribed -- RETURN True if full VRAM is visible through the BAR SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h amdgpu_gm...
amdgpu_gmc_vram_location(9)
NAME amdgpu_gmc_vram_location - try to find VRAM location SYNOPSIS void amdgpu_gmc_vram_location (struct amdgpu_device *adev , struct amdgpu_gmc *mc , u64 base ); ARGUMENTS adev amdgpu device structure holding all necessary information mc memory controller structure holding memory information ...
amdgpu_gmc_vram_mc2pa(9)
NAME amdgpu_gmc_vram_mc2pa - calculate vram buffer's physical address from MC address SYNOPSIS uint64_t amdgpu_gmc_vram_mc2pa (struct amdgpu_device *adev , uint64_t mc_addr ); ARGUMENTS adev amdgpu_device pointer mc_addr MC address of buffer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdg...
amdgpu_gmc_vram_pa(9)
NAME amdgpu_gmc_vram_pa - calculate vram buffer object's physical address from GPU's view SYNOPSIS uint64_t amdgpu_gmc_vram_pa (struct amdgpu_device *adev , struct amdgpu_bo *bo ); ARGUMENTS adev amdgpu_device pointer bo amdgpu buffer object SEE ALSO Kernel file ./drivers/gpu/drm/amd/am...
amdgpu_gtt_mgr_alloc_entries(9)
NAME amdgpu_gtt_mgr_alloc_entries - alloc GART entries without GTT bo SYNOPSIS int amdgpu_gtt_mgr_alloc_entries (struct amdgpu_gtt_mgr *mgr , struct drm_mm_node *mm_node , u64 num_pages , enum drm_mm_insert_mode mode ); ARGUMENTS mgr The GTT manager object mm_node The drm mm node to return the new...
amdgpu_gtt_mgr_compatible(9)
NAME amdgpu_gtt_mgr_compatible - test for compatibility SYNOPSIS bool amdgpu_gtt_mgr_compatible (struct ttm_resource_manager *man , struct ttm_resource *res , const struct ttm_place *place , size_t size ); ARGUMENTS man Our manager object res The resource to test place The place ...
amdgpu_gtt_mgr_debug(9)
NAME amdgpu_gtt_mgr_debug - dump VRAM table SYNOPSIS void amdgpu_gtt_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...
amdgpu_gtt_mgr_del(9)
NAME amdgpu_gtt_mgr_del - free ranges SYNOPSIS void amdgpu_gtt_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 GTT again. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/a...
amdgpu_gtt_mgr_fini(9)
NAME amdgpu_gtt_mgr_fini - free and destroy GTT manager SYNOPSIS void amdgpu_gtt_mgr_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Destroy and free the GTT manager, returns -EBUSY if ranges are still allocated inside it. SEE ALSO Kernel file ./drivers/gpu/drm/amd/...
amdgpu_gtt_mgr_free_entries(9)
NAME amdgpu_gtt_mgr_free_entries - free GART entries not accocaited with GTT bo SYNOPSIS void amdgpu_gtt_mgr_free_entries (struct amdgpu_gtt_mgr *mgr , struct drm_mm_node *mm_node ); ARGUMENTS mgr The GTT manager object mm_node The drm mm node to free SEE ALSO Kernel file ./drivers/gpu/drm/amd/...
amdgpu_gtt_mgr_has_gart_addr(9)
NAME amdgpu_gtt_mgr_has_gart_addr - Check if mem has address space SYNOPSIS bool amdgpu_gtt_mgr_has_gart_addr (struct ttm_resource *res ); ARGUMENTS res the mem object to check DESCRIPTION Check if a mem object has already address space allocated. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_g...
amdgpu_gtt_mgr_init(9)
NAME amdgpu_gtt_mgr_init - init GTT manager and DRM MM SYNOPSIS int amdgpu_gtt_mgr_init (struct amdgpu_device *adev , uint64_t gtt_size ); ARGUMENTS adev amdgpu_device pointer gtt_size maximum size of GTT DESCRIPTION Allocate and initialize the GTT manager. SEE ALSO Kernel file ./drivers/gpu...
amdgpu_gtt_mgr_intersects(9)
NAME amdgpu_gtt_mgr_intersects - test for intersection SYNOPSIS bool amdgpu_gtt_mgr_intersects (struct ttm_resource_manager *man , struct ttm_resource *res , const struct ttm_place *place , size_t size ); ARGUMENTS man Our manager object res The resource to test place The place f...
amdgpu_gtt_mgr_new(9)
NAME amdgpu_gtt_mgr_new - allocate a new node SYNOPSIS int amdgpu_gtt_mgr_new (struct ttm_resource_manager *man , struct ttm_buffer_object *tbo , const struct ttm_place *place , struct ttm_resource **res ); ARGUMENTS man TTM memory type manager tbo TTM BO we need this range for place ...
amdgpu_gtt_mgr_recover(9)
NAME amdgpu_gtt_mgr_recover - re-init gart SYNOPSIS void amdgpu_gtt_mgr_recover (struct amdgpu_gtt_mgr *mgr ); ARGUMENTS mgr amdgpu_gtt_mgr pointer DESCRIPTION Re-init the gart for each known BO in the GTT. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c Kernel API(9), Kernel ...
amdgpu_hmm_invalidate_gfx(9)
NAME amdgpu_hmm_invalidate_gfx - callback to notify about mm change SYNOPSIS bool amdgpu_hmm_invalidate_gfx (struct mmu_interval_notifier *mni , const struct mmu_notifier_range *range , unsigned long cur_seq ); ARGUMENTS mni the range (mm) is about to update range details on the invalidation ...
amdgpu_hmm_invalidate_hsa(9)
NAME amdgpu_hmm_invalidate_hsa - callback to notify about mm change SYNOPSIS bool amdgpu_hmm_invalidate_hsa (struct mmu_interval_notifier *mni , const struct mmu_notifier_range *range , unsigned long cur_seq ); ARGUMENTS mni the range (mm) is about to update range details on the invalidation ...
amdgpu_hmm_range_alloc(9)
NAME amdgpu_hmm_range_alloc - allocate and initialize an AMDGPU HMM range SYNOPSIS struct amdgpu_hmm_range * amdgpu_hmm_range_alloc (struct amdgpu_bo *bo ); ARGUMENTS bo optional buffer object to associate with this HMM range DESCRIPTION Allocates memory for amdgpu_hmm_range and associates it with the bo pa...
amdgpu_hmm_range_free(9)
NAME amdgpu_hmm_range_free - release an AMDGPU HMM range SYNOPSIS void amdgpu_hmm_range_free (struct amdgpu_hmm_range *range ); ARGUMENTS range pointer to the range object to free DESCRIPTION Releases all resources held by range, including the associated hmm_pfns and the dropping reference of associated bo if ...
amdgpu_hmm_range_valid(9)
NAME amdgpu_hmm_range_valid - check if an HMM range is still valid SYNOPSIS bool amdgpu_hmm_range_valid (struct amdgpu_hmm_range *range ); ARGUMENTS range pointer to the struct amdgpu_hmm_range to validate DESCRIPTION Determines whether the given HMM range range is still valid by checking for invalidations via...
amdgpu_hmm_register(9)
NAME amdgpu_hmm_register - register a BO for notifier updates SYNOPSIS int amdgpu_hmm_register (struct amdgpu_bo *bo , unsigned long addr ); ARGUMENTS bo amdgpu buffer object addr userptr addr we should monitor DESCRIPTION Registers a mmu_notifier for the given BO at the specified address. R...
amdgpu_hmm_unregister(9)
NAME amdgpu_hmm_unregister - unregister a BO for notifier updates SYNOPSIS void amdgpu_hmm_unregister (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu buffer object DESCRIPTION Remove any registration of mmu notifier updates from the buffer object. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_h...
amdgpu_ib_free(9)
NAME amdgpu_ib_free - free an IB (Indirect Buffer) SYNOPSIS void amdgpu_ib_free (struct amdgpu_ib *ib , struct dma_fence *f ); ARGUMENTS ib IB object to free f the fence SA bo need wait on for the ib alloation DESCRIPTION Free an IB (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/...
amdgpu_ib_get(9)
NAME amdgpu_ib_get - request an IB (Indirect Buffer) SYNOPSIS int amdgpu_ib_get (struct amdgpu_device *adev , struct amdgpu_vm *vm , unsigned int size , enum amdgpu_ib_pool_type pool_type , struct amdgpu_ib *ib ); ARGUMENTS adev amdgpu_device pointer vm amdgpu_vm pointer size re...
amdgpu_ib_pool_fini(9)
NAME amdgpu_ib_pool_fini - Free the IB (Indirect Buffer) pool SYNOPSIS void amdgpu_ib_pool_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Tear down the suballocator managing the pool of memory for use as IBs (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/...
amdgpu_ib_pool_init(9)
NAME amdgpu_ib_pool_init - Init the IB (Indirect Buffer) pool SYNOPSIS int amdgpu_ib_pool_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initialize the suballocator to manage a pool of memory for use as IBs (all asics). Returns 0 on success, error on failure. SEE ALSO K...
amdgpu_ib_ring_tests(9)
NAME amdgpu_ib_ring_tests - test IBs on the rings SYNOPSIS int amdgpu_ib_ring_tests (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Test an IB (Indirect Buffer) on each ring. If the test fails, disable the ring. Returns 0 on success, error if the primary GFX ring IB test fail...