id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_bo_explicit_sync(9)
NAME amdgpu_bo_explicit_sync - return whether the bo is explicitly synced SYNOPSIS bool amdgpu_bo_explicit_sync (struct amdgpu_bo *bo ); ARGUMENTS bo -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.h amdgpu_mem_type_to_domain(9), amdgpu_bo_reserve(9), amdgpu_bo_mmap_offset(...
amdgpu_bo_fault_reserve_notify(9)
NAME amdgpu_bo_fault_reserve_notify - notification about a memory fault SYNOPSIS vm_fault_t amdgpu_bo_fault_reserve_notify (struct ttm_buffer_object *bo ); ARGUMENTS bo pointer to a buffer object DESCRIPTION Notifies the driver we are taking a fault on this BO and have reserved it, also performs bookkeeping...
amdgpu_bo_fb_aper_addr(9)
NAME amdgpu_bo_fb_aper_addr - return FB aperture GPU offset of the VRAM bo SYNOPSIS u64 amdgpu_bo_fb_aper_addr (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu VRAM buffer object for which we query the offset RETURN current FB aperture GPU offset of the object. SEE ALSO Kernel file ./drivers/gpu/drm/amd/am...
amdgpu_bo_fence(9)
NAME amdgpu_bo_fence - add fence to buffer object SYNOPSIS void amdgpu_bo_fence (struct amdgpu_bo *bo , struct dma_fence *fence , bool shared ); ARGUMENTS bo buffer object in question fence fence to add shared true if fence should be added shared SEE ALSO Kernel file ./drivers...
amdgpu_bo_fini(9)
NAME amdgpu_bo_fini - tear down memory manager SYNOPSIS void amdgpu_bo_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device object DESCRIPTION Reverses amdgpu_bo_init to tear down memory manager. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c Kernel API(9), amdgpu_bo_...
amdgpu_bo_free_isp_user(9)
NAME amdgpu_bo_free_isp_user - free BO for isp use SYNOPSIS void amdgpu_bo_free_isp_user (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu isp user BO to free DESCRIPTION unpin and unref BO for isp internal use. This function is exported to allow the V4L2 isp device external to drm device to free the isp user B...
amdgpu_bo_free_kernel(9)
NAME amdgpu_bo_free_kernel - free BO for kernel use SYNOPSIS void amdgpu_bo_free_kernel (struct amdgpu_bo **bo , u64 *gpu_addr , void **cpu_addr ); ARGUMENTS bo amdgpu BO to free gpu_addr pointer to where the BO's GPU memory space address was stored cpu_addr pointer to where the BO's CP...
amdgpu_bo_get_metadata(9)
NAME amdgpu_bo_get_metadata - get metadata SYNOPSIS int amdgpu_bo_get_metadata (struct amdgpu_bo *bo , void *buffer , size_t buffer_size , uint32_t *metadata_size , uint64_t *flags ); ARGUMENTS bo amdgpu_bo buffer object buffer returned metadata buffer_size size of the buffer met...
amdgpu_bo_get_preferred_domain(9)
NAME amdgpu_bo_get_preferred_domain - get preferred domain SYNOPSIS uint32_t amdgpu_bo_get_preferred_domain (struct amdgpu_device *adev , uint32_t domain ); ARGUMENTS adev amdgpu device object domain allowed :ref:`memory domains <amdgpu_memory_domains>` RETURN Which of the allowed domains is pref...
amdgpu_bo_get_tiling_flags(9)
NAME amdgpu_bo_get_tiling_flags - get tiling flags SYNOPSIS void amdgpu_bo_get_tiling_flags (struct amdgpu_bo *bo , u64 *tiling_flags ); ARGUMENTS bo amdgpu_bo buffer object tiling_flags returned flags DESCRIPTION Gets buffer object's tiling flags. Used by GEM ioctl or kernel driv...
amdgpu_bo_gpu_offset(9)
NAME amdgpu_bo_gpu_offset - return GPU offset of bo SYNOPSIS u64 amdgpu_bo_gpu_offset (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu object for which we query the offset NOTE object should either be pinned or reserved when calling this function, it might be useful to add check for this for debugging. RETURN ...
amdgpu_bo_gpu_offset_no_check(9)
NAME amdgpu_bo_gpu_offset_no_check - return GPU offset of bo SYNOPSIS u64 amdgpu_bo_gpu_offset_no_check (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu object for which we query the offset RETURN current GPU offset of the object without raising warnings. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/a...
amdgpu_bo_init(9)
NAME amdgpu_bo_init - initialize memory manager SYNOPSIS int amdgpu_bo_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device object DESCRIPTION Calls amdgpu_ttm_init to initialize amdgpu memory manager. RETURN 0 for success or a negative error code on failure. SEE ALSO Kernel file ./drivers/g...
amdgpu_bo_is_amdgpu_bo(9)
NAME amdgpu_bo_is_amdgpu_bo - check if the buffer object is an &amdgpu_bo SYNOPSIS bool amdgpu_bo_is_amdgpu_bo (struct ttm_buffer_object *bo ); ARGUMENTS bo buffer object to be checked DESCRIPTION Uses destroy function associated with the object to determine if this is an amdgpu_bo. RETURN true if the obje...
amdgpu_bo_kmap(9)
NAME amdgpu_bo_kmap - map an &amdgpu_bo buffer object SYNOPSIS int amdgpu_bo_kmap (struct amdgpu_bo *bo , void **ptr ); ARGUMENTS bo amdgpu_bo buffer object to be mapped ptr kernel virtual address to be returned DESCRIPTION Calls ttm_bo_kmap to set up the kernel virtual mapping; calls amdgpu...
amdgpu_bo_kptr(9)
NAME amdgpu_bo_kptr - returns a kernel virtual address of the buffer object SYNOPSIS void * amdgpu_bo_kptr (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu_bo buffer object DESCRIPTION Calls ttm_kmap_obj_virtual to get the kernel virtual address RETURN the virtual address of a buffer object area. SEE ALSO Ker...
amdgpu_bo_kunmap(9)
NAME amdgpu_bo_kunmap - unmap an &amdgpu_bo buffer object SYNOPSIS void amdgpu_bo_kunmap (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu_bo buffer object to be unmapped DESCRIPTION Unmaps a kernel map set up by amdgpu_bo_kmap. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c Kernel AP...
amdgpu_bo_mem_stats_placement(9)
NAME amdgpu_bo_mem_stats_placement - bo placement for memory accounting SYNOPSIS uint32_t amdgpu_bo_mem_stats_placement (struct amdgpu_bo *bo ); ARGUMENTS bo the buffer object we should look at DESCRIPTION BO can have multiple preferred placements, to avoid double counting we want to file it under a single ...
amdgpu_bo_mmap_offset(9)
NAME amdgpu_bo_mmap_offset - return mmap offset of bo SYNOPSIS u64 amdgpu_bo_mmap_offset (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu object for which we query the offset DESCRIPTION Returns mmap offset of the object. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.h amdgpu_mem_type_to_doma...
amdgpu_bo_move_notify(9)
NAME amdgpu_bo_move_notify - notification about a memory move SYNOPSIS void amdgpu_bo_move_notify (struct ttm_buffer_object *bo , bool evict , struct ttm_resource *new_mem ); ARGUMENTS bo pointer to a buffer object evict if this move is evicting the buffer from the graphics address space ...
amdgpu_bo_pin(9)
NAME amdgpu_bo_pin - pin an &amdgpu_bo buffer object SYNOPSIS int amdgpu_bo_pin (struct amdgpu_bo *bo , u32 domain ); ARGUMENTS bo amdgpu_bo buffer object to be pinned domain domain to be pinned to DESCRIPTION Pins the buffer object according to requested domain. If the memory is unbound gar...
amdgpu_bo_placement_from_domain(9)
NAME amdgpu_bo_placement_from_domain - set buffer's placement SYNOPSIS void amdgpu_bo_placement_from_domain (struct amdgpu_bo *abo , u32 domain ); ARGUMENTS abo amdgpu_bo buffer object whose placement is to be set domain requested domain DESCRIPTION Sets buffer's placement according to requested...
amdgpu_bo_print_info(9)
NAME amdgpu_bo_print_info - print BO info in debugfs file SYNOPSIS u64 amdgpu_bo_print_info (int id , struct amdgpu_bo *bo , struct seq_file *m ); ARGUMENTS id Index or Id of the BO bo Requested BO for printing info m debugfs file DESCRIPTION Print BO information in debugf...
amdgpu_bo_ref(9)
NAME amdgpu_bo_ref - reference an &amdgpu_bo buffer object SYNOPSIS struct amdgpu_bo * amdgpu_bo_ref (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu_bo buffer object DESCRIPTION References the contained ttm_buffer_object. RETURN a refcounted pointer to the amdgpu_bo buffer object. SEE ALSO Kernel file ./...
amdgpu_bo_release_notify(9)
NAME amdgpu_bo_release_notify - notification about a BO being released SYNOPSIS void amdgpu_bo_release_notify (struct ttm_buffer_object *bo ); ARGUMENTS bo pointer to a buffer object DESCRIPTION Wipes VRAM buffers whose contents should not be leaked before the memory is released. SEE ALSO Kernel file ....
amdgpu_bo_reserve(9)
NAME amdgpu_bo_reserve - reserve bo SYNOPSIS int amdgpu_bo_reserve (struct amdgpu_bo *bo , bool no_intr ); ARGUMENTS bo bo structure no_intr don't return -ERESTARTSYS on pending signal RETURN -ERESTARTSYS: A wait for the buffer to become unreserved was interrupted by a signal. Release all buffer...
amdgpu_bo_set_metadata(9)
NAME amdgpu_bo_set_metadata - set metadata SYNOPSIS int amdgpu_bo_set_metadata (struct amdgpu_bo *bo , void *metadata , u32 metadata_size , uint64_t flags ); ARGUMENTS bo amdgpu_bo buffer object metadata new metadata metadata_size size of the new metadata flags ...
amdgpu_bo_set_tiling_flags(9)
NAME amdgpu_bo_set_tiling_flags - set tiling flags SYNOPSIS int amdgpu_bo_set_tiling_flags (struct amdgpu_bo *bo , u64 tiling_flags ); ARGUMENTS bo amdgpu_bo buffer object tiling_flags new flags DESCRIPTION Sets buffer object's tiling flags with the new one. Used by GEM ioctl or k...
amdgpu_bo_sync_wait(9)
NAME amdgpu_bo_sync_wait - Wrapper for amdgpu_bo_sync_wait_resv SYNOPSIS int amdgpu_bo_sync_wait (struct amdgpu_bo *bo , void *owner , bool intr ); ARGUMENTS bo buffer object to wait for owner fence owner intr Whether the wait is interruptible DESCRIPTION Wrapper to wait for fen...
amdgpu_bo_sync_wait_resv(9)
NAME amdgpu_bo_sync_wait_resv - Wait for BO reservation fences SYNOPSIS int amdgpu_bo_sync_wait_resv (struct amdgpu_device *adev , struct dma_resv *resv , enum amdgpu_sync_mode sync_mode , void *owner , bool intr ); ARGUMENTS adev amdgpu device pointer resv reservation object to sync to ...
amdgpu_bo_unpin(9)
NAME amdgpu_bo_unpin - unpin an &amdgpu_bo buffer object SYNOPSIS void amdgpu_bo_unpin (struct amdgpu_bo *bo ); ARGUMENTS bo amdgpu_bo buffer object to be unpinned DESCRIPTION Decreases the pin_count, and clears the flags if pin_count reaches 0. Changes placement and pin size accordingly. RETURN 0 for suc...
amdgpu_bo_unref(9)
NAME amdgpu_bo_unref - unreference an &amdgpu_bo buffer object SYNOPSIS void amdgpu_bo_unref (struct amdgpu_bo **bo ); ARGUMENTS bo amdgpu_bo buffer object DESCRIPTION Unreferences the contained ttm_buffer_object and clear the pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.c ...
amdgpu_connector_dvi_mode_valid(9)
NAME amdgpu_connector_dvi_mode_valid - Validate a mode on DVI/HDMI connectors SYNOPSIS enum drm_mode_status amdgpu_connector_dvi_mode_valid (struct drm_connector *connector , const struct drm_display_mode *mode ); ARGUMENTS connector DRM connector to validate the mode on mode display mode to validate...
amdgpu_cs_find_mapping(9)
NAME amdgpu_cs_find_mapping - find bo_va for VM address SYNOPSIS int amdgpu_cs_find_mapping (struct amdgpu_cs_parser *parser , uint64_t addr , struct amdgpu_bo **bo , struct amdgpu_bo_va_mapping **map ); ARGUMENTS parser command submission parser context addr VM address bo resulti...
amdgpu_cs_get_fence(9)
NAME amdgpu_cs_get_fence - helper to get fence from drm_amdgpu_fence SYNOPSIS struct dma_fence * amdgpu_cs_get_fence (struct amdgpu_device *adev , struct drm_file *filp , struct drm_amdgpu_fence *user ); ARGUMENTS adev amdgpu device filp file private user drm_amdgpu_fence copied f...
amdgpu_cs_wait_all_fences(9)
NAME amdgpu_cs_wait_all_fences - wait on all fences to signal SYNOPSIS int amdgpu_cs_wait_all_fences (struct amdgpu_device *adev , struct drm_file *filp , union drm_amdgpu_wait_fences *wait , struct drm_amdgpu_fence *fences ); ARGUMENTS adev amdgpu device filp file private wait wa...
amdgpu_cs_wait_any_fence(9)
NAME amdgpu_cs_wait_any_fence - wait on any fence to signal SYNOPSIS int amdgpu_cs_wait_any_fence (struct amdgpu_device *adev , struct drm_file *filp , union drm_amdgpu_wait_fences *wait , struct drm_amdgpu_fence *fences ); ARGUMENTS adev amdgpu device filp file private wait wait ...
amdgpu_cs_wait_fences_ioctl(9)
NAME amdgpu_cs_wait_fences_ioctl - wait for multiple command submissions to finish SYNOPSIS int amdgpu_cs_wait_fences_ioctl (struct drm_device *dev , void *data , struct drm_file *filp ); ARGUMENTS dev drm device data data from userspace filp file private SEE ALSO Kernel file ./...
amdgpu_cs_wait_ioctl(9)
NAME amdgpu_cs_wait_ioctl - wait for a command submission to finish SYNOPSIS int amdgpu_cs_wait_ioctl (struct drm_device *dev , void *data , struct drm_file *filp ); ARGUMENTS dev drm device data data from userspace filp file private DESCRIPTION Wait for the command submission i...
amdgpu_debugfs_gca_config_read(9)
NAME amdgpu_debugfs_gca_config_read - Read from gfx config data SYNOPSIS ssize_t amdgpu_debugfs_gca_config_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_gfxoff_count_read(9)
NAME amdgpu_debugfs_gfxoff_count_read - Read GFXOFF entry count SYNOPSIS ssize_t amdgpu_debugfs_gfxoff_count_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_gfxoff_read(9)
NAME amdgpu_debugfs_gfxoff_read - read gfxoff status SYNOPSIS ssize_t amdgpu_debugfs_gfxoff_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read pos ...
amdgpu_debugfs_gfxoff_residency_read(9)
NAME amdgpu_debugfs_gfxoff_residency_read - Read GFXOFF residency SYNOPSIS ssize_t amdgpu_debugfs_gfxoff_residency_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to ...
amdgpu_debugfs_gfxoff_residency_write(9)
NAME amdgpu_debugfs_gfxoff_residency_write - Log GFXOFF Residency SYNOPSIS ssize_t amdgpu_debugfs_gfxoff_residency_write (struct file *f , const char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to write data from size Number of bytes...
amdgpu_debugfs_gfxoff_write(9)
NAME amdgpu_debugfs_gfxoff_write - Enable/disable GFXOFF SYNOPSIS ssize_t amdgpu_debugfs_gfxoff_write (struct file *f , const char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to write data from size Number of bytes to write p...
amdgpu_debugfs_process_reg_op(9)
NAME amdgpu_debugfs_process_reg_op - Handle MMIO register reads/writes SYNOPSIS int amdgpu_debugfs_process_reg_op (bool read , struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS read True if reading f open file handle buf User buffer to write/read to ...
amdgpu_debugfs_regs_didt_read(9)
NAME amdgpu_debugfs_regs_didt_read - Read from a DIDT register SYNOPSIS ssize_t amdgpu_debugfs_regs_didt_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_regs_didt_write(9)
NAME amdgpu_debugfs_regs_didt_write - Write to a DIDT register SYNOPSIS ssize_t amdgpu_debugfs_regs_didt_write (struct file *f , const char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to write data from size Number of bytes to write ...
amdgpu_debugfs_regs_init(9)
NAME amdgpu_debugfs_regs_init - Initialize debugfs entries that provide register access. SYNOPSIS int amdgpu_debugfs_regs_init (struct amdgpu_device *adev ); ARGUMENTS adev The device to attach the debugfs entries to SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c amdgpu_debugfs_pro...
amdgpu_debugfs_regs_pcie_read(9)
NAME amdgpu_debugfs_regs_pcie_read - Read from a PCIE register SYNOPSIS ssize_t amdgpu_debugfs_regs_pcie_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_regs_pcie_write(9)
NAME amdgpu_debugfs_regs_pcie_write - Write to a PCIE register SYNOPSIS ssize_t amdgpu_debugfs_regs_pcie_write (struct file *f , const char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to write data from size Number of bytes to write ...
amdgpu_debugfs_regs_smc_read(9)
NAME amdgpu_debugfs_regs_smc_read - Read from a SMC register SYNOPSIS ssize_t amdgpu_debugfs_regs_smc_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_regs_smc_write(9)
NAME amdgpu_debugfs_regs_smc_write - Write to a SMC register SYNOPSIS ssize_t amdgpu_debugfs_regs_smc_write (struct file *f , const char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to write data from size Number of bytes to write ...
amdgpu_debugfs_sensor_read(9)
NAME amdgpu_debugfs_sensor_read - Read from the powerplay sensors SYNOPSIS ssize_t amdgpu_debugfs_sensor_read (struct file *f , char __user *buf , size_t size , loff_t *pos ); ARGUMENTS f open file handle buf User buffer to store read data in size Number of bytes to read ...
amdgpu_debugfs_vm_bo_info(9)
NAME amdgpu_debugfs_vm_bo_info - print BO info for the VM SYNOPSIS void amdgpu_debugfs_vm_bo_info (struct amdgpu_vm *vm , struct seq_file *m ); ARGUMENTS vm Requested VM for printing BO info m debugfs file DESCRIPTION Print BO information in debugfs file for the VM SEE ALSO Kernel file ...
amdgpu_device_aper_access(9)
NAME amdgpu_device_aper_access - access vram by vram aperture SYNOPSIS size_t amdgpu_device_aper_access (struct amdgpu_device *adev , loff_t pos , void *buf , size_t size , bool write ); ARGUMENTS adev amdgpu_device pointer pos offset of the buffer in vram buf virtual address of...
amdgpu_device_asic_has_dc_support(9)
NAME amdgpu_device_asic_has_dc_support - determine if DC supports the asic SYNOPSIS bool amdgpu_device_asic_has_dc_support (struct pci_dev *pdev , enum amd_asic_type asic_type ); ARGUMENTS pdev pci device context asic_type AMD asic type DESCRIPTION Check if there is DC (new modesetting infrastructre...
amdgpu_device_asic_init(9)
NAME amdgpu_device_asic_init - Wrapper for atom asic_init SYNOPSIS int amdgpu_device_asic_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Does any asic specific work and then calls atom asic init. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel AP...
amdgpu_device_check_arguments(9)
NAME amdgpu_device_check_arguments - validate module params SYNOPSIS int amdgpu_device_check_arguments (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Validates certain module parameters and updates the associated values used by the driver (all asics). SEE ALSO Kernel file ....
amdgpu_device_check_block_size(9)
NAME amdgpu_device_check_block_size - validate the vm block size SYNOPSIS void amdgpu_device_check_block_size (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Validates the vm block size specified via module parameter. The vm block size defines number of bits in page table ver...
amdgpu_device_check_iommu_direct_map(9)
NAME amdgpu_device_check_iommu_direct_map - check if RAM direct mapped to GPU SYNOPSIS void amdgpu_device_check_iommu_direct_map (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION RAM direct mapped to GPU if IOMMU is not enabled or is pass through mode SEE ALSO Kernel file ./driv...
amdgpu_device_check_iommu_remap(9)
NAME amdgpu_device_check_iommu_remap - Check if DMA remapping is enabled. SYNOPSIS bool amdgpu_device_check_iommu_remap (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION return if IOMMU remapping bar address SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kerne...
amdgpu_device_check_vm_size(9)
NAME amdgpu_device_check_vm_size - validate the vm size SYNOPSIS void amdgpu_device_check_vm_size (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Validates the vm size in GB specified via module parameter. The VM size is the size of the GPU virtual memory space in GB. SEE ALS...
amdgpu_device_check_vram_lost(9)
NAME amdgpu_device_check_vram_lost - check if vram is valid SYNOPSIS bool amdgpu_device_check_vram_lost (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Checks the reset magic value written to the gart pointer in VRAM. The driver calls this after a GPU reset to see if the conte...
amdgpu_device_complete(9)
NAME amdgpu_device_complete - complete power state transition SYNOPSIS void amdgpu_device_complete (struct drm_device *dev ); ARGUMENTS dev drm dev pointer DESCRIPTION Undo the changes from amdgpu_device_prepare. This will be called on all resume transitions, including those that failed. SEE ALSO Kernel fil...
amdgpu_device_delayed_init_work_handler(9)
NAME amdgpu_device_delayed_init_work_handler - work handler for IB tests SYNOPSIS void amdgpu_device_delayed_init_work_handler (struct work_struct *work ); ARGUMENTS work work_struct. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API(9), Kernel API(9), Kernel API(9), Kernel API(9), ...
amdgpu_device_detect_sriov_bios(9)
NAME amdgpu_device_detect_sriov_bios - determine if the board supports SR-IOV SYNOPSIS void amdgpu_device_detect_sriov_bios (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Query the VBIOS data tables to determine if the board supports SR-IOV. SEE ALSO Kernel file ./drivers/gpu...
amdgpu_device_enable_virtual_display(9)
NAME amdgpu_device_enable_virtual_display - enable virtual display feature SYNOPSIS void amdgpu_device_enable_virtual_display (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Enabled the virtual display feature if the user has enabled it via the module parameter virtual_display...
amdgpu_device_enforce_isolation(9)
NAME amdgpu_device_enforce_isolation - enforce HW isolation SYNOPSIS struct dma_fence * amdgpu_device_enforce_isolation (struct amdgpu_device *adev , struct amdgpu_ring *ring , struct amdgpu_job *job ); ARGUMENTS adev the amdgpu device pointer ring the HW ring the job is supposed to run on ...
amdgpu_device_evict_resources(9)
NAME amdgpu_device_evict_resources - evict device resources SYNOPSIS int amdgpu_device_evict_resources (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device object DESCRIPTION Evicts all ttm device resources(vram BOs, gart table) from the lru list of the vram memory type. Mainly used for evicting device...
amdgpu_device_fill_reset_magic(9)
NAME amdgpu_device_fill_reset_magic - writes reset magic to gart pointer SYNOPSIS void amdgpu_device_fill_reset_magic (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Writes a reset magic value to the gart pointer in VRAM. The driver calls this function before a GPU reset. If ...
amdgpu_device_fini_hw(9)
NAME amdgpu_device_fini_hw - tear down the driver SYNOPSIS void amdgpu_device_fini_hw (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Tear down the driver info (all asics). Called at driver shutdown. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API...
amdgpu_device_get_gang(9)
NAME amdgpu_device_get_gang - return a reference to the current gang SYNOPSIS struct dma_fence * amdgpu_device_get_gang (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer RETURN A new reference to the current gang leader. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kern...
amdgpu_device_get_pcie_info(9)
NAME amdgpu_device_get_pcie_info - fence pcie info about the PCIE slot SYNOPSIS void amdgpu_device_get_pcie_info (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Fetches and stores in the driver the PCIE capabilities (gen speed and lanes) of the slot the device is in. Handles AP...
amdgpu_device_get_rev_id(9)
NAME amdgpu_device_get_rev_id - query device rev_id SYNOPSIS u32 amdgpu_device_get_rev_id (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Return device rev_id SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API(9), Kernel API(9), Kernel API(9), Kernel ...
amdgpu_device_gpu_bandwidth(9)
NAME amdgpu_device_gpu_bandwidth - find the bandwidth of the GPU SYNOPSIS void amdgpu_device_gpu_bandwidth (struct amdgpu_device *adev , enum pci_bus_speed *speed , enum pcie_link_width *width ); ARGUMENTS adev amdgpu_device pointer speed pointer to the speed of the link width point...
amdgpu_device_gpu_recover(9)
NAME amdgpu_device_gpu_recover - reset the asic and recover scheduler SYNOPSIS int amdgpu_device_gpu_recover (struct amdgpu_device *adev , struct amdgpu_job *job , struct amdgpu_reset_context *reset_context ); ARGUMENTS adev amdgpu_device pointer job which job trigger hang reset_context...
amdgpu_device_halt(9)
NAME amdgpu_device_halt - bring hardware to some kind of halt state SYNOPSIS void amdgpu_device_halt (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Bring hardware to some kind of halt state so that no one can touch it any more. It will help to maintain error context when err...
amdgpu_device_has_dc_support(9)
NAME amdgpu_device_has_dc_support - check if dc is supported SYNOPSIS bool amdgpu_device_has_dc_support (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Returns true for supported, false for not supported SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel ...
amdgpu_device_has_job_running(9)
NAME amdgpu_device_has_job_running - check if there is any unfinished job SYNOPSIS bool amdgpu_device_has_job_running (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION check if there is any job running on the device when guest driver receives FLR notification from host driver. If...
amdgpu_device_indirect_rreg(9)
NAME amdgpu_device_indirect_rreg - read an indirect register SYNOPSIS u32 amdgpu_device_indirect_rreg (struct amdgpu_device *adev , u32 reg_addr ); ARGUMENTS adev amdgpu_device pointer reg_addr indirect register address to read from DESCRIPTION Returns the value of indirect register reg_addr SEE A...
amdgpu_device_indirect_rreg64(9)
NAME amdgpu_device_indirect_rreg64 - read a 64bits indirect register SYNOPSIS u64 amdgpu_device_indirect_rreg64 (struct amdgpu_device *adev , u32 reg_addr ); ARGUMENTS adev amdgpu_device pointer reg_addr indirect register address to read from DESCRIPTION Returns the value of indirect register reg_a...
amdgpu_device_indirect_wreg(9)
NAME amdgpu_device_indirect_wreg - write an indirect register address SYNOPSIS void amdgpu_device_indirect_wreg (struct amdgpu_device *adev , u32 reg_addr , u32 reg_data ); ARGUMENTS adev amdgpu_device pointer reg_addr indirect register offset reg_data indirect register data SEE ALSO Ker...
amdgpu_device_indirect_wreg64(9)
NAME amdgpu_device_indirect_wreg64 - write a 64bits indirect register address SYNOPSIS void amdgpu_device_indirect_wreg64 (struct amdgpu_device *adev , u32 reg_addr , u64 reg_data ); ARGUMENTS adev amdgpu_device pointer reg_addr indirect register offset reg_data indirect register data SE...
amdgpu_device_init(9)
NAME amdgpu_device_init - initialize the driver SYNOPSIS int amdgpu_device_init (struct amdgpu_device *adev , uint32_t flags ); ARGUMENTS adev amdgpu_device pointer flags driver flags DESCRIPTION Initializes the driver info and hw (all asics). Returns 0 for success or an error on failure. Call...
amdgpu_device_ip_block_add(9)
NAME amdgpu_device_ip_block_add - SYNOPSIS int amdgpu_device_ip_block_add (struct amdgpu_device *adev , const struct amdgpu_ip_block_version *ip_block_version ); ARGUMENTS adev amdgpu_device pointer ip_block_version pointer to the IP to add DESCRIPTION Adds the IP block driver infor...
amdgpu_device_ip_block_version_cmp(9)
NAME amdgpu_device_ip_block_version_cmp - SYNOPSIS int amdgpu_device_ip_block_version_cmp (struct amdgpu_device *adev , enum amd_ip_block_type type , u32 major , u32 minor ); ARGUMENTS adev amdgpu_device pointer type enum amd_ip_block_type major major version minor mi...
amdgpu_device_ip_check_soft_reset(9)
NAME amdgpu_device_ip_check_soft_reset - did soft reset succeed SYNOPSIS bool amdgpu_device_ip_check_soft_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION The list of all the hardware IPs that make up the asic is walked and the check_soft_reset callbacks are run. check...
amdgpu_device_ip_early_init(9)
NAME amdgpu_device_ip_early_init - run early init for hardware IPs SYNOPSIS int amdgpu_device_ip_early_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Early initialization pass for hardware IPs. The hardware IPs that make up each asic are discovered each IP's early_init ...
amdgpu_device_ip_fini(9)
NAME amdgpu_device_ip_fini - run fini for hardware IPs SYNOPSIS int amdgpu_device_ip_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main teardown pass for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the hw_fini and sw_fini callba...
amdgpu_device_ip_get_clockgating_state(9)
NAME amdgpu_device_ip_get_clockgating_state - get the CG state SYNOPSIS void amdgpu_device_ip_get_clockgating_state (struct amdgpu_device *adev , u64 *flags ); ARGUMENTS adev amdgpu_device pointer flags clockgating feature flags DESCRIPTION Walks the list of IPs on the device and updates the clo...
amdgpu_device_ip_get_ip_block(9)
NAME amdgpu_device_ip_get_ip_block - get a hw IP pointer SYNOPSIS struct amdgpu_ip_block * amdgpu_device_ip_get_ip_block (struct amdgpu_device *adev , enum amd_ip_block_type type ); ARGUMENTS adev amdgpu_device pointer type Type of hardware IP (SMU, GFX, UVD, etc.) DESCRIPTION Returns a pointer...
amdgpu_device_ip_init(9)
NAME amdgpu_device_ip_init - run init for hardware IPs SYNOPSIS int amdgpu_device_ip_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main initialization pass for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the sw_init and hw_init cal...
amdgpu_device_ip_is_hw(9)
NAME amdgpu_device_ip_is_hw - is the hardware IP enabled SYNOPSIS bool amdgpu_device_ip_is_hw (struct amdgpu_device *adev , enum amd_ip_block_type block_type ); ARGUMENTS adev amdgpu_device pointer block_type Type of hardware IP (SMU, GFX, UVD, etc.) DESCRIPTION Check if the hardware IP is enable or ...
amdgpu_device_ip_is_valid(9)
NAME amdgpu_device_ip_is_valid - is the hardware IP valid SYNOPSIS bool amdgpu_device_ip_is_valid (struct amdgpu_device *adev , enum amd_ip_block_type block_type ); ARGUMENTS adev amdgpu_device pointer block_type Type of hardware IP (SMU, GFX, UVD, etc.) DESCRIPTION Check if the hardware IP is valid ...
amdgpu_device_ip_late_init(9)
NAME amdgpu_device_ip_late_init - run late init for hardware IPs SYNOPSIS int amdgpu_device_ip_late_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Late initialization pass for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the late_in...
amdgpu_device_ip_need_full_reset(9)
NAME amdgpu_device_ip_need_full_reset - check if a full asic reset is needed SYNOPSIS bool amdgpu_device_ip_need_full_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Some hardware IPs cannot be soft reset. If they are hung, a full gpu reset is necessary to recover. Retu...
amdgpu_device_ip_post_soft_reset(9)
NAME amdgpu_device_ip_post_soft_reset - clean up from soft reset SYNOPSIS int amdgpu_device_ip_post_soft_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION The list of all the hardware IPs that make up the asic is walked and the post_soft_reset callbacks are run if the asic...
amdgpu_device_ip_pre_soft_reset(9)
NAME amdgpu_device_ip_pre_soft_reset - prepare for soft reset SYNOPSIS int amdgpu_device_ip_pre_soft_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION The list of all the hardware IPs that make up the asic is walked and the pre_soft_reset callbacks are run if the block is h...
amdgpu_device_ip_resume(9)
NAME amdgpu_device_ip_resume - run resume for hardware IPs SYNOPSIS int amdgpu_device_ip_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main resume function for hardware IPs. The hardware IPs are split into two resume functions because they are also used in recovering...