id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_sync_clone(9)
NAME amdgpu_sync_clone - clone a sync object SYNOPSIS int amdgpu_sync_clone (struct amdgpu_sync *source , struct amdgpu_sync *clone ); ARGUMENTS source sync object to clone clone pointer to destination sync object DESCRIPTION Adds references to all unsignaled fences in source to clone. Also remove...
amdgpu_sync_create(9)
NAME amdgpu_sync_create - zero init sync object SYNOPSIS void amdgpu_sync_create (struct amdgpu_sync *sync ); ARGUMENTS sync sync object to initialize DESCRIPTION Just clear the sync object for now. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_same_dev(9), amdgpu_sync_get_owner...
amdgpu_sync_fence(9)
NAME amdgpu_sync_fence - remember to sync to this fence SYNOPSIS int amdgpu_sync_fence (struct amdgpu_sync *sync , struct dma_fence *f , gfp_t flags ); ARGUMENTS sync sync object to add fence to f fence to sync to flags memory allocation flags to use when allocating sync entry ...
amdgpu_sync_fini(9)
NAME amdgpu_sync_fini - fini sync object subsystem SYNOPSIS void amdgpu_sync_fini (void ); ARGUMENTS void no arguments DESCRIPTION Free the slab allocator. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_create(9), amdgpu_sync_same_dev(9), amdgpu_sync_get_owner(9), a...
amdgpu_sync_free(9)
NAME amdgpu_sync_free - free the sync object SYNOPSIS void amdgpu_sync_free (struct amdgpu_sync *sync ); ARGUMENTS sync sync object to use DESCRIPTION Free the sync object. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_create(9), amdgpu_sync_same_dev(9), amdgpu_sync_...
amdgpu_sync_get_fence(9)
NAME amdgpu_sync_get_fence - get the next fence from the sync object SYNOPSIS struct dma_fence * amdgpu_sync_get_fence (struct amdgpu_sync *sync ); ARGUMENTS sync sync object to use DESCRIPTION Get and removes the next fence from the sync object not signaled yet. SEE ALSO Kernel file ./drivers/gpu/drm/...
amdgpu_sync_get_owner(9)
NAME amdgpu_sync_get_owner - extract the owner of a fence SYNOPSIS void * amdgpu_sync_get_owner (struct dma_fence *f ); ARGUMENTS f fence get the owner from DESCRIPTION Extract who originally created the fence. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_create(9), amdgp...
amdgpu_sync_init(9)
NAME amdgpu_sync_init - init sync object subsystem SYNOPSIS int amdgpu_sync_init (void ); ARGUMENTS void no arguments DESCRIPTION Allocate the slab allocator. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_create(9), amdgpu_sync_same_dev(9), amdgpu_sync_get_owner(9), ...
amdgpu_sync_keep_later(9)
NAME amdgpu_sync_keep_later - Keep the later fence SYNOPSIS void amdgpu_sync_keep_later (struct dma_fence **keep , struct dma_fence *fence ); ARGUMENTS keep existing fence to test fence new fence DESCRIPTION Either keep the existing fence or the new one, depending which one is later. SEE ALSO K...
amdgpu_sync_kfd(9)
NAME amdgpu_sync_kfd - sync to KFD fences SYNOPSIS int amdgpu_sync_kfd (struct amdgpu_sync *sync , struct dma_resv *resv ); ARGUMENTS sync sync object to add KFD fences to resv reservation object with KFD fences DESCRIPTION Extract all KFD fences and add them to the sync object. SEE ALSO Kerne...
amdgpu_sync_move(9)
NAME amdgpu_sync_move - move all fences from src to dst SYNOPSIS void amdgpu_sync_move (struct amdgpu_sync *src , struct amdgpu_sync *dst ); ARGUMENTS src source of the fences, empty after function dst destination for the fences DESCRIPTION Moves all fences from source to destination. All fen...
amdgpu_sync_peek_fence(9)
NAME amdgpu_sync_peek_fence - get the next fence not signaled yet SYNOPSIS struct dma_fence * amdgpu_sync_peek_fence (struct amdgpu_sync *sync , struct amdgpu_ring *ring ); ARGUMENTS sync the sync object ring optional ring to use for test DESCRIPTION Returns the next fence not signaled yet with...
amdgpu_sync_push_to_job(9)
NAME amdgpu_sync_push_to_job - push fences into job SYNOPSIS int amdgpu_sync_push_to_job (struct amdgpu_sync *sync , struct amdgpu_job *job ); ARGUMENTS sync sync object to get the fences from job job to push the fences into DESCRIPTION Add all unsignaled fences from sync to job. SEE ALSO Ker...
amdgpu_sync_resv(9)
NAME amdgpu_sync_resv - sync to a reservation object SYNOPSIS int amdgpu_sync_resv (struct amdgpu_device *adev , struct amdgpu_sync *sync , struct dma_resv *resv , enum amdgpu_sync_mode mode , void *owner ); ARGUMENTS adev amdgpu device sync sync object to add fences from reservation object to ...
amdgpu_sync_same_dev(9)
NAME amdgpu_sync_same_dev - test if fence belong to us SYNOPSIS bool amdgpu_sync_same_dev (struct amdgpu_device *adev , struct dma_fence *f ); ARGUMENTS adev amdgpu device to use for the test f fence to test DESCRIPTION Test if the fence was issued by us. SEE ALSO Kernel file ./drivers/gp...
amdgpu_ttm_access_memory(9)
NAME amdgpu_ttm_access_memory - Read or Write memory that backs a buffer object. SYNOPSIS int amdgpu_ttm_access_memory (struct ttm_buffer_object *bo , unsigned long offset , void *buf , int len , int write ); ARGUMENTS bo The buffer object to read/write offset Offset into buffer object b...
amdgpu_ttm_clear_buffer(9)
NAME amdgpu_ttm_clear_buffer - clear memory buffers SYNOPSIS int amdgpu_ttm_clear_buffer (struct amdgpu_bo *bo , struct dma_resv *resv , struct dma_fence **fence ); ARGUMENTS bo amdgpu buffer object resv reservation object fence dma_fence associated with the operation DESCRIPTIO...
amdgpu_ttm_copy_mem_to_mem(9)
NAME amdgpu_ttm_copy_mem_to_mem - Helper function for copy SYNOPSIS static int amdgpu_ttm_copy_mem_to_mem (struct amdgpu_device *adev , struct amdgpu_ttm_buffer_entity *entity , const struct amdgpu_copy_mem *src , const struct amdgpu_copy_mem *dst , uint64_t size , bool tmz , struct dma_resv *resv , struct dma_f...
amdgpu_ttm_domain_start(9)
NAME amdgpu_ttm_domain_start - Returns GPU start address SYNOPSIS uint64_t amdgpu_ttm_domain_start (struct amdgpu_device *adev , uint32_t type ); ARGUMENTS adev amdgpu device object type type of the memory RETURN GPU start address of a memory domain SEE ALSO Kernel file ./drivers/gpu/drm/amd/a...
amdgpu_ttm_drv_reserve_vram_fini(9)
NAME amdgpu_ttm_drv_reserve_vram_fini - free drv reserved vram SYNOPSIS void amdgpu_ttm_drv_reserve_vram_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION free drv reserved vram if it has been reserved. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgp...
amdgpu_ttm_drv_reserve_vram_init(9)
NAME amdgpu_ttm_drv_reserve_vram_init - create bo vram reservation from driver SYNOPSIS int amdgpu_ttm_drv_reserve_vram_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION create bo vram reservation from drv. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c a...
amdgpu_ttm_evict_resources(9)
NAME amdgpu_ttm_evict_resources - evict memory buffers SYNOPSIS int amdgpu_ttm_evict_resources (struct amdgpu_device *adev , int mem_type ); ARGUMENTS adev amdgpu device object mem_type evicted BO's memory type DESCRIPTION Evicts all mem_type buffers on the lru list of the memory type. RETURN 0 fo...
amdgpu_ttm_free_mmio_remap_bo(9)
NAME amdgpu_ttm_free_mmio_remap_bo - Free the singleton MMIO_REMAP BO SYNOPSIS void amdgpu_ttm_free_mmio_remap_bo (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device DESCRIPTION Frees the kernel-owned MMIO_REMAP BO if it was allocated by amdgpu_ttm_mmio_remap_bo_init. SEE ALSO Kernel file ./drivers...
amdgpu_ttm_fw_reserve_vram_fini(9)
NAME amdgpu_ttm_fw_reserve_vram_fini - free fw reserved vram SYNOPSIS void amdgpu_ttm_fw_reserve_vram_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION free fw reserved vram if it has been reserved. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_ev...
amdgpu_ttm_fw_reserve_vram_init(9)
NAME amdgpu_ttm_fw_reserve_vram_init - create bo vram reservation from fw SYNOPSIS int amdgpu_ttm_fw_reserve_vram_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION create bo vram reservation from fw. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c amdgpu_e...
amdgpu_ttm_map_buffer(9)
NAME amdgpu_ttm_map_buffer - Map memory into the GART windows SYNOPSIS int amdgpu_ttm_map_buffer (struct amdgpu_ttm_buffer_entity *entity , struct ttm_buffer_object *bo , struct ttm_resource *mem , struct amdgpu_res_cursor *mm_cur , unsigned int window , bool tmz , uint64_t *size , uint64_t *addr ); ARGUMENTS entity...
amdgpu_ttm_mmio_remap_alloc_sgt(9)
NAME amdgpu_ttm_mmio_remap_alloc_sgt - build an sg_table for MMIO_REMAP I/O aperture SYNOPSIS int amdgpu_ttm_mmio_remap_alloc_sgt (struct amdgpu_device *adev , struct ttm_resource *res , struct device *dev , enum dma_data_direction dir , struct sg_table **sgt ); ARGUMENTS adev amdgpu device providing the remap...
amdgpu_ttm_set_buffer_funcs_status(9)
NAME amdgpu_ttm_set_buffer_funcs_status - enable/disable use of buffer functions SYNOPSIS void amdgpu_ttm_set_buffer_funcs_status (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable true when we can use buffer functions. DESCRIPTION Enable/disable use of buffe...
amdgpu_ttm_training_reserve_vram_fini(9)
NAME amdgpu_ttm_training_reserve_vram_fini - free memory training reserved vram SYNOPSIS int amdgpu_ttm_training_reserve_vram_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION free memory training reserved vram if it has been reserved. SEE ALSO Kernel file ./drivers/gpu/d...
amdgpu_ttm_tt_create(9)
NAME amdgpu_ttm_tt_create - Create a ttm_tt object for a given BO SYNOPSIS struct ttm_tt * amdgpu_ttm_tt_create (struct ttm_buffer_object *bo , uint32_t page_flags ); ARGUMENTS bo The buffer object to create a GTT ttm_tt object around page_flags Page flags to be added to the ttm_tt object DESCRIPTI...
amdgpu_ttm_tt_get_userptr(9)
NAME amdgpu_ttm_tt_get_userptr - Return the userptr GTT ttm_tt for the current task SYNOPSIS int amdgpu_ttm_tt_get_userptr (const struct ttm_buffer_object *tbo , uint64_t *user_addr ); ARGUMENTS tbo The ttm_buffer_object that contains the userptr user_addr The returned value SEE ALSO Kernel file ...
amdgpu_ttm_tt_pde_flags(9)
NAME amdgpu_ttm_tt_pde_flags - Compute PDE flags for ttm_tt object SYNOPSIS uint64_t amdgpu_ttm_tt_pde_flags (struct ttm_tt *ttm , struct ttm_resource *mem ); ARGUMENTS ttm The ttm_tt object to compute the flags for mem The memory registry backing this ttm_tt object DESCRIPTION Figure out the...
amdgpu_ttm_tt_pte_flags(9)
NAME amdgpu_ttm_tt_pte_flags - Compute PTE flags for ttm_tt object SYNOPSIS uint64_t amdgpu_ttm_tt_pte_flags (struct amdgpu_device *adev , struct ttm_tt *ttm , struct ttm_resource *mem ); ARGUMENTS adev amdgpu_device pointer ttm The ttm_tt object to compute the flags for mem The...
amdgpu_ttm_tt_set_userptr(9)
NAME amdgpu_ttm_tt_set_userptr - Initialize userptr GTT ttm_tt for the current task SYNOPSIS int amdgpu_ttm_tt_set_userptr (struct ttm_buffer_object *bo , uint64_t addr , uint32_t flags ); ARGUMENTS bo The ttm_buffer_object to bind this userptr to addr The address in the current tasks VM space...
amdgpu_unregister_atpx_handler(9)
NAME amdgpu_unregister_atpx_handler - unregister with vga_switcheroo SYNOPSIS void amdgpu_unregister_atpx_handler (void ); ARGUMENTS void no arguments DESCRIPTION Unregister the PX callbacks with vga_switcheroo (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_...
amdgpu_userq_fence_read_wptr(9)
NAME amdgpu_userq_fence_read_wptr - Read the userq wptr value SYNOPSIS int amdgpu_userq_fence_read_wptr (struct amdgpu_device *adev , struct amdgpu_usermode_queue *queue , u64 *wptr ); ARGUMENTS adev amdgpu_device pointer queue user mode queue structure pointer wptr write pointer v...
amdgpu_uvd_cs_msg(9)
NAME amdgpu_uvd_cs_msg - handle UVD message SYNOPSIS int amdgpu_uvd_cs_msg (struct amdgpu_uvd_cs_ctx *ctx , struct amdgpu_bo *bo , unsigned int offset ); ARGUMENTS ctx UVD parser context bo buffer object containing the message offset offset into the buffer object DESCRIPTION Pee...
amdgpu_uvd_cs_msg_decode(9)
NAME amdgpu_uvd_cs_msg_decode - handle UVD decode message SYNOPSIS int amdgpu_uvd_cs_msg_decode (struct amdgpu_device *adev , uint32_t *msg , unsigned int buf_sizes[] ); ARGUMENTS adev amdgpu_device pointer msg pointer to message structure buf_sizes placeholder to put the different bu...
amdgpu_uvd_cs_packets(9)
NAME amdgpu_uvd_cs_packets - parse UVD packets SYNOPSIS int amdgpu_uvd_cs_packets (struct amdgpu_uvd_cs_ctx *ctx , int (*cb)(struct amdgpu_uvd_cs_ctx *ctx) ); ARGUMENTS ctx UVD parser context cb callback function DESCRIPTION Parse the command stream packets. SEE ALSO Kernel file ./dri...
amdgpu_uvd_cs_pass1(9)
NAME amdgpu_uvd_cs_pass1 - first parsing round SYNOPSIS int amdgpu_uvd_cs_pass1 (struct amdgpu_uvd_cs_ctx *ctx ); ARGUMENTS ctx UVD parser context DESCRIPTION Make sure UVD message and feedback buffers are in VRAM and nobody is violating an 256MB boundary. SEE ALSO Kernel file ./drivers/gpu/drm/amd/am...
amdgpu_uvd_cs_pass2(9)
NAME amdgpu_uvd_cs_pass2 - second parsing round SYNOPSIS int amdgpu_uvd_cs_pass2 (struct amdgpu_uvd_cs_ctx *ctx ); ARGUMENTS ctx UVD parser context DESCRIPTION Patch buffer addresses, make sure buffer sizes are correct. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_uvd_entity...
amdgpu_uvd_cs_reg(9)
NAME amdgpu_uvd_cs_reg - parse register writes SYNOPSIS int amdgpu_uvd_cs_reg (struct amdgpu_uvd_cs_ctx *ctx , int (*cb)(struct amdgpu_uvd_cs_ctx *ctx) ); ARGUMENTS ctx UVD parser context cb callback function DESCRIPTION Parse the register writes, call cb on each complete command. SEE ALSO ...
amdgpu_uvd_entity_init(9)
NAME amdgpu_uvd_entity_init - init entity SYNOPSIS int amdgpu_uvd_entity_init (struct amdgpu_device *adev , struct amdgpu_ring *ring ); ARGUMENTS adev amdgpu_device pointer ring amdgpu_ring pointer to check DESCRIPTION Initialize the entity used for handle management in the kernel driver. SEE ...
amdgpu_uvd_ring_parse_cs(9)
NAME amdgpu_uvd_ring_parse_cs - UVD command submission parser SYNOPSIS int amdgpu_uvd_ring_parse_cs (struct amdgpu_cs_parser *parser , struct amdgpu_job *job , struct amdgpu_ib *ib ); ARGUMENTS parser Command submission parser context job the job to parse ib the IB to patch DESC...
amdgpu_uvd_ring_test_ib(9)
NAME amdgpu_uvd_ring_test_ib - test ib execution SYNOPSIS int amdgpu_uvd_ring_test_ib (struct amdgpu_ring *ring , long timeout ); ARGUMENTS ring amdgpu_ring pointer timeout timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT DESCRIPTION Test if we can successfully execute an IB SEE ALSO Kernel file...
amdgpu_uvd_used_handles(9)
NAME amdgpu_uvd_used_handles - returns used UVD handles SYNOPSIS uint32_t amdgpu_uvd_used_handles (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Returns the number of UVD handles in use SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_uvd_entity_init(9), ...
amdgpu_vce_cs_reloc(9)
NAME amdgpu_vce_cs_reloc - command submission relocation SYNOPSIS int amdgpu_vce_cs_reloc (struct amdgpu_cs_parser *p , struct amdgpu_ib *ib , int lo , int hi , unsigned int size , uint32_t index ); ARGUMENTS p parser context ib indirect buffer to use lo address of lower dw...
amdgpu_vce_early_init(9)
NAME amdgpu_vce_early_init - try to load VCE firmware SYNOPSIS int amdgpu_vce_early_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Tries to load the VCE firmware. When not found, returns ENOENT so that the driver can still load and initialize the rest of the IP blocks. ...
amdgpu_vce_entity_init(9)
NAME amdgpu_vce_entity_init - init entity SYNOPSIS int amdgpu_vce_entity_init (struct amdgpu_device *adev , struct amdgpu_ring *ring ); ARGUMENTS adev amdgpu_device pointer ring amdgpu_ring pointer to check DESCRIPTION Initialize the entity used for handle management in the kernel driver. SEE ...
amdgpu_vce_firmware_name(9)
NAME amdgpu_vce_firmware_name - determine the firmware file name for VCE SYNOPSIS const char * amdgpu_vce_firmware_name (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Each chip that has VCE IP may need a different firmware. This function returns the name of the VCE firmware f...
amdgpu_vce_free_handles(9)
NAME amdgpu_vce_free_handles - free still open VCE handles SYNOPSIS void amdgpu_vce_free_handles (struct amdgpu_device *adev , struct drm_file *filp ); ARGUMENTS adev amdgpu_device pointer filp drm file pointer DESCRIPTION Close all VCE handles still open by this file pointer SEE ALSO Kernel ...
amdgpu_vce_get_create_msg(9)
NAME amdgpu_vce_get_create_msg - generate a VCE create msg SYNOPSIS int amdgpu_vce_get_create_msg (struct amdgpu_ring *ring , uint32_t handle , struct dma_fence **fence ); ARGUMENTS ring ring we should submit the msg to handle VCE session handle to use fence optional fence to return ...
amdgpu_vce_get_destroy_msg(9)
NAME amdgpu_vce_get_destroy_msg - generate a VCE destroy msg SYNOPSIS int amdgpu_vce_get_destroy_msg (struct amdgpu_ring *ring , uint32_t handle , bool direct , struct dma_fence **fence ); ARGUMENTS ring ring we should submit the msg to handle VCE session handle to use direct direct o...
amdgpu_vce_idle_work_handler(9)
NAME amdgpu_vce_idle_work_handler - power off VCE SYNOPSIS void amdgpu_vce_idle_work_handler (struct work_struct *work ); ARGUMENTS work pointer to work structure DESCRIPTION power of VCE when it's not used any more SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9),...
amdgpu_vce_required_gart_pages(9)
NAME amdgpu_vce_required_gart_pages - gets number of GART pages required by VCE SYNOPSIS u32 amdgpu_vce_required_gart_pages (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Returns how many GART pages we need before GTT for the VCE IP block. For VCE1, see vce_v1_0_ensure_vcpu_b...
amdgpu_vce_resume(9)
NAME amdgpu_vce_resume - pin VCE fw memory SYNOPSIS int amdgpu_vce_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vce_early_init(9), amdgpu_vce_sw_init(9), amdgpu_vce_sw_...
amdgpu_vce_ring_begin_use(9)
NAME amdgpu_vce_ring_begin_use - power up VCE SYNOPSIS void amdgpu_vce_ring_begin_use (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring DESCRIPTION Make sure VCE is powerd up when we want to use it SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vce_...
amdgpu_vce_ring_emit_fence(9)
NAME amdgpu_vce_ring_emit_fence - add a fence command to the ring SYNOPSIS void amdgpu_vce_ring_emit_fence (struct amdgpu_ring *ring , u64 addr , u64 seq , unsigned int flags ); ARGUMENTS ring engine to use addr address seq sequence number flags fence related flags ...
amdgpu_vce_ring_emit_ib(9)
NAME amdgpu_vce_ring_emit_ib - execute indirect buffer SYNOPSIS void amdgpu_vce_ring_emit_ib (struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_ib *ib , uint32_t flags ); ARGUMENTS ring engine to use job job to retrieve vmid from ib the IB to execute fla...
amdgpu_vce_ring_end_use(9)
NAME amdgpu_vce_ring_end_use - power VCE down SYNOPSIS void amdgpu_vce_ring_end_use (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring DESCRIPTION Schedule work to power VCE down again SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vce_early_init(9),...
amdgpu_vce_ring_parse_cs(9)
NAME amdgpu_vce_ring_parse_cs - parse and validate the command stream SYNOPSIS int amdgpu_vce_ring_parse_cs (struct amdgpu_cs_parser *p , struct amdgpu_job *job , struct amdgpu_ib *ib ); ARGUMENTS p parser context job the job to parse ib the IB to patch SEE ALSO Kernel fil...
amdgpu_vce_ring_parse_cs_vm(9)
NAME amdgpu_vce_ring_parse_cs_vm - parse the command stream in VM mode SYNOPSIS int amdgpu_vce_ring_parse_cs_vm (struct amdgpu_cs_parser *p , struct amdgpu_job *job , struct amdgpu_ib *ib ); ARGUMENTS p parser context job the job to parse ib the IB to patch SEE ALSO Kernel ...
amdgpu_vce_ring_test_ib(9)
NAME amdgpu_vce_ring_test_ib - test if VCE IBs are working SYNOPSIS int amdgpu_vce_ring_test_ib (struct amdgpu_ring *ring , long timeout ); ARGUMENTS ring the engine to test on timeout timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce....
amdgpu_vce_ring_test_ring(9)
NAME amdgpu_vce_ring_test_ring - test if VCE ring is working SYNOPSIS int amdgpu_vce_ring_test_ring (struct amdgpu_ring *ring ); ARGUMENTS ring the engine to test on SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vce_early_init(9), amdgpu_vce_sw_init(9), a...
amdgpu_vce_suspend(9)
NAME amdgpu_vce_suspend - unpin VCE fw memory SYNOPSIS int amdgpu_vce_suspend (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vce_early_init(9), amdgpu_vce_sw_init(9), amdgpu_vc...
amdgpu_vce_sw_fini(9)
NAME amdgpu_vce_sw_fini - free memory SYNOPSIS int amdgpu_vce_sw_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Last step on VCE teardown, free firmware memory SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c amdgpu_vce_firmware_name(9), amdgpu_vc...
amdgpu_vce_sw_init(9)
NAME amdgpu_vce_sw_init - allocate memory for VCE BO SYNOPSIS int amdgpu_vce_sw_init (struct amdgpu_device *adev , unsigned long size ); ARGUMENTS adev amdgpu_device pointer size size for the new BO DESCRIPTION First step to get VCE online: allocate memory for VCE BO. The VCE firmware binar...
amdgpu_vce_validate_bo(9)
NAME amdgpu_vce_validate_bo - make sure not to cross 4GB boundary SYNOPSIS int amdgpu_vce_validate_bo (struct amdgpu_cs_parser *p , struct amdgpu_ib *ib , int lo , int hi , unsigned int size , int32_t index ); ARGUMENTS p cs parser ib indirect buffer to use lo address of lo...
amdgpu_vce_validate_handle(9)
NAME amdgpu_vce_validate_handle - validate stream handle SYNOPSIS int amdgpu_vce_validate_handle (struct amdgpu_cs_parser *p , uint32_t handle , uint32_t *allocated ); ARGUMENTS p parser context handle handle to validate allocated allocated a new handle? DESCRIPTION Validates the han...
amdgpu_vcn_reset_engine(9)
NAME amdgpu_vcn_reset_engine - Reset a specific VCN engine SYNOPSIS int amdgpu_vcn_reset_engine (struct amdgpu_device *adev , uint32_t instance_id ); ARGUMENTS adev Pointer to the AMDGPU device instance_id VCN engine instance to reset RETURN 0 on success, or a negative error code on failure. SEE ALSO...
amdgpu_vcn_ring_reset(9)
NAME amdgpu_vcn_ring_reset - Reset a VCN ring SYNOPSIS int amdgpu_vcn_ring_reset (struct amdgpu_ring *ring , unsigned int vmid , struct amdgpu_fence *timedout_fence ); ARGUMENTS ring ring to reset vmid vmid of guilty job timedout_fence fence of timed out job DESCRIPTI...
amdgpu_virt_alloc_mm_table(9)
NAME amdgpu_virt_alloc_mm_table - alloc memory for mm table SYNOPSIS int amdgpu_virt_alloc_mm_table (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. MM table is used by UVD and VCE for its initialization RETURN Zero if allocate success. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amd...
amdgpu_virt_free_mm_table(9)
NAME amdgpu_virt_free_mm_table - free mm table memory SYNOPSIS void amdgpu_virt_free_mm_table (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. Free MM table memory SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c amdgpu_virt_request_full_gpu(9), amdgpu_virt_release_full_gpu(9), am...
amdgpu_virt_rcvd_ras_interrupt(9)
NAME amdgpu_virt_rcvd_ras_interrupt - receive ras interrupt SYNOPSIS bool amdgpu_virt_rcvd_ras_interrupt (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. Check whether host sent RAS error message RETURN true if found, otherwise false SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_virt...
amdgpu_virt_ready_to_reset(9)
NAME amdgpu_virt_ready_to_reset - send ready to reset to host SYNOPSIS void amdgpu_virt_ready_to_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. Send ready to reset message to GPU hypervisor to signal we have stopped GPU activity and is ready for host FLR SEE ALSO Kernel file ./drive...
amdgpu_virt_release_full_gpu(9)
NAME amdgpu_virt_release_full_gpu - release full gpu access SYNOPSIS int amdgpu_virt_release_full_gpu (struct amdgpu_device *adev , bool init ); ARGUMENTS adev amdgpu device. init is driver init time. When finishing driver init/fini, need to release full gpu access. RETURN Zero if release succ...
amdgpu_virt_request_full_gpu(9)
NAME amdgpu_virt_request_full_gpu - request full gpu access SYNOPSIS int amdgpu_virt_request_full_gpu (struct amdgpu_device *adev , bool init ); ARGUMENTS adev amdgpu device. init is driver init time. When start to init/fini driver, first need to request full gpu access. RETURN Zero if request...
amdgpu_virt_reset_gpu(9)
NAME amdgpu_virt_reset_gpu - reset gpu SYNOPSIS int amdgpu_virt_reset_gpu (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. Send reset command to GPU hypervisor to reset GPU that VM is using RETURN Zero if reset success, otherwise will return error. SEE ALSO Kernel file ./drivers/gpu/drm/amd/...
amdgpu_virt_wait_reset(9)
NAME amdgpu_virt_wait_reset - wait for reset gpu completed SYNOPSIS int amdgpu_virt_wait_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device. Wait for GPU reset completed. RETURN Zero if reset success, otherwise will return error. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vi...
amdgpu_vm_add_prt_cb(9)
NAME amdgpu_vm_add_prt_cb - add callback for updating the PRT status SYNOPSIS void amdgpu_vm_add_prt_cb (struct amdgpu_device *adev , struct dma_fence *fence ); ARGUMENTS adev amdgpu_device pointer fence fence for the callback SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c K...
amdgpu_vm_adjust_size(9)
NAME amdgpu_vm_adjust_size - adjust vm size, block size and fragment size SYNOPSIS void amdgpu_vm_adjust_size (struct amdgpu_device *adev , uint32_t min_vm_size , uint32_t fragment_size_default , unsigned max_level , unsigned max_bits ); ARGUMENTS adev amdgpu_device pointer min_vm_size the minimum vm s...
amdgpu_vm_assert_locked(9)
NAME amdgpu_vm_assert_locked - check if VM is correctly locked SYNOPSIS void amdgpu_vm_assert_locked (struct amdgpu_vm *vm ); ARGUMENTS vm the VM which schould be tested DESCRIPTION Asserts that the VM root PD is locked. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Kernel API(9), struct ...
amdgpu_vm_bo_add(9)
NAME amdgpu_vm_bo_add - add a bo to a specific vm SYNOPSIS struct amdgpu_bo_va * amdgpu_vm_bo_add (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_bo *bo ); ARGUMENTS adev amdgpu_device pointer vm requested vm bo amdgpu buffer object DESCRIPTION Add bo into ...
amdgpu_vm_bo_base_init(9)
NAME amdgpu_vm_bo_base_init - Adds bo to the list of bos associated with the vm SYNOPSIS void amdgpu_vm_bo_base_init (struct amdgpu_vm_bo_base *base , struct amdgpu_vm *vm , struct amdgpu_bo *bo ); ARGUMENTS base base structure for tracking BO usage in a VM vm vm to which bo is to be added ...
amdgpu_vm_bo_clear_mappings(9)
NAME amdgpu_vm_bo_clear_mappings - remove all mappings in a specific range SYNOPSIS int amdgpu_vm_bo_clear_mappings (struct amdgpu_device *adev , struct amdgpu_vm *vm , uint64_t saddr , uint64_t size ); ARGUMENTS adev amdgpu_device pointer vm VM structure to use saddr start of th...
amdgpu_vm_bo_del(9)
NAME amdgpu_vm_bo_del - remove a bo from a specific vm SYNOPSIS void amdgpu_vm_bo_del (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va ); ARGUMENTS adev amdgpu_device pointer bo_va requested bo_va DESCRIPTION Remove bo_va->bo from the requested vm. Object have to be reserved! SEE ALSO ...
amdgpu_vm_bo_done(9)
NAME amdgpu_vm_bo_done - vm_bo is done SYNOPSIS void amdgpu_vm_bo_done (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is now done DESCRIPTION State for normal BOs which are invalidated and that change has been updated in the PTs. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm...
amdgpu_vm_bo_evicted(9)
NAME amdgpu_vm_bo_evicted - vm_bo is evicted SYNOPSIS void amdgpu_vm_bo_evicted (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is evicted DESCRIPTION State for PDs/PTs and per VM BOs which are not at the location they should be. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Ke...
amdgpu_vm_bo_evicted_user(9)
NAME amdgpu_vm_bo_evicted_user - vm_bo is evicted SYNOPSIS void amdgpu_vm_bo_evicted_user (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is evicted DESCRIPTION State for BOs used by user mode queues which are not at the location they should be. SEE ALSO Kernel file ./drivers/gpu/drm/amd/a...
amdgpu_vm_bo_find(9)
NAME amdgpu_vm_bo_find - find the bo_va for a specific vm & bo SYNOPSIS struct amdgpu_bo_va * amdgpu_vm_bo_find (struct amdgpu_vm *vm , struct amdgpu_bo *bo ); ARGUMENTS vm requested vm bo requested buffer object DESCRIPTION Find bo inside the requested vm. Search inside the bos vm list fo...
amdgpu_vm_bo_idle(9)
NAME amdgpu_vm_bo_idle - vm_bo is idle SYNOPSIS void amdgpu_vm_bo_idle (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is now idle DESCRIPTION State for PDs/PTs and per VM BOs which have gone through the state machine and are now idle. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_v...
amdgpu_vm_bo_insert_map(9)
NAME amdgpu_vm_bo_insert_map - insert a new mapping SYNOPSIS void amdgpu_vm_bo_insert_map (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va , struct amdgpu_bo_va_mapping *mapping ); ARGUMENTS adev amdgpu_device pointer bo_va bo_va to store the address mapping the mapping to ins...
amdgpu_vm_bo_invalidate(9)
NAME amdgpu_vm_bo_invalidate - mark the bo as invalid SYNOPSIS void amdgpu_vm_bo_invalidate (struct amdgpu_bo *bo , bool evicted ); ARGUMENTS bo amdgpu buffer object evicted is the BO evicted DESCRIPTION Mark bo as invalid. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c Ker...
amdgpu_vm_bo_invalidated(9)
NAME amdgpu_vm_bo_invalidated - vm_bo is invalidated SYNOPSIS void amdgpu_vm_bo_invalidated (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is now invalidated DESCRIPTION State for normal BOs which are invalidated and that change not yet reflected in the PTs. SEE ALSO Kernel file ./drivers...
amdgpu_vm_bo_lookup_mapping(9)
NAME amdgpu_vm_bo_lookup_mapping - find mapping by address SYNOPSIS struct amdgpu_bo_va_mapping * amdgpu_vm_bo_lookup_mapping (struct amdgpu_vm *vm , uint64_t addr ); ARGUMENTS vm the requested VM addr the address DESCRIPTION Find a mapping by it's address. RETURN The amdgpu_bo_va_mapping ma...
amdgpu_vm_bo_map(9)
NAME amdgpu_vm_bo_map - map bo inside a vm SYNOPSIS int amdgpu_vm_bo_map (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va , uint64_t saddr , uint64_t offset , uint64_t size , uint32_t flags ); ARGUMENTS adev amdgpu_device pointer bo_va bo_va to store the address saddr where ...
amdgpu_vm_bo_move(9)
NAME amdgpu_vm_bo_move - handle BO move SYNOPSIS void amdgpu_vm_bo_move (struct amdgpu_bo *bo , struct ttm_resource *new_mem , bool evicted ); ARGUMENTS bo amdgpu buffer object new_mem the new placement of the BO move evicted is the BO evicted DESCRIPTION Update the memory stats for ...
amdgpu_vm_bo_moved(9)
NAME amdgpu_vm_bo_moved - vm_bo is moved SYNOPSIS void amdgpu_vm_bo_moved (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is moved DESCRIPTION State for per VM BOs which are moved, but that change is not yet reflected in the page tables. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgp...
amdgpu_vm_bo_relocated(9)
NAME amdgpu_vm_bo_relocated - vm_bo is reloacted SYNOPSIS void amdgpu_vm_bo_relocated (struct amdgpu_vm_bo_base *vm_bo ); ARGUMENTS vm_bo vm_bo which is relocated DESCRIPTION State for PDs/PTs which needs to update their parent PD. For the root PD, just move to idle state. SEE ALSO Kernel file ./drivers/...
amdgpu_vm_bo_replace_map(9)
NAME amdgpu_vm_bo_replace_map - map bo inside a vm, replacing existing mappings SYNOPSIS int amdgpu_vm_bo_replace_map (struct amdgpu_device *adev , struct amdgpu_bo_va *bo_va , uint64_t saddr , uint64_t offset , uint64_t size , uint32_t flags ); ARGUMENTS adev amdgpu_device pointer bo_va bo_va to...