id
stringlengths
4
63
text
stringlengths
153
8.81M
sdio_uart_activate(9)
NAME sdio_uart_activate - start up hardware SYNOPSIS int sdio_uart_activate (struct tty_port *tport , struct tty_struct *tty ); ARGUMENTS tport tty port to activate tty tty bound to this port DESCRIPTION Activate a tty port. The port locking guarantees us this will be run exactly once per set o...
sdio_uart_cleanup(9)
NAME sdio_uart_cleanup - called on the last tty kref drop SYNOPSIS void sdio_uart_cleanup (struct tty_struct *tty ); ARGUMENTS tty the tty being destroyed DESCRIPTION Called asynchronously when the last reference to the tty is dropped. We cannot destroy the tty->driver_data port kref until this point SEE A...
sdio_uart_install(9)
NAME sdio_uart_install - install method SYNOPSIS int sdio_uart_install (struct tty_driver *driver , struct tty_struct *tty ); ARGUMENTS driver the driver in use (sdio_uart in our case) tty the tty being bound DESCRIPTION Look up and bind the tty and the driver together. Initialize any needed pri...
sdio_uart_shutdown(9)
NAME sdio_uart_shutdown - stop hardware SYNOPSIS void sdio_uart_shutdown (struct tty_port *tport ); ARGUMENTS tport tty port to shut down DESCRIPTION Deactivate a tty port. The port locking guarantees us this will be run only if a successful matching activate already ran. The two are protected from each oth...
sdio_unregister_driver(9)
NAME sdio_unregister_driver - unregister a function driver SYNOPSIS void sdio_unregister_driver (struct sdio_driver *drv ); ARGUMENTS drv SDIO function driver SEE ALSO Kernel file ./drivers/mmc/core/sdio_bus.c __sdio_register_driver(9) April 2026 ...
sdio_writeb(9)
NAME sdio_writeb - write a single byte to a SDIO function SYNOPSIS void sdio_writeb (struct sdio_func *func , u8 b , unsigned int addr , int *err_ret ); ARGUMENTS func SDIO function to access b byte to write addr address to write to err_ret optional status value fro...
sdio_writeb_readb(9)
NAME sdio_writeb_readb - write and read a byte from SDIO function SYNOPSIS u8 sdio_writeb_readb (struct sdio_func *func , u8 write_byte , unsigned int addr , int *err_ret ); ARGUMENTS func SDIO function to access write_byte byte to write addr address to write to err_ret opti...
sdio_writel(9)
NAME sdio_writel - write a 32 bit integer to a SDIO function SYNOPSIS void sdio_writel (struct sdio_func *func , u32 b , unsigned int addr , int *err_ret ); ARGUMENTS func SDIO function to access b integer to write addr address to write to err_ret optional status va...
sdio_writesb(9)
NAME sdio_writesb - write to a FIFO of a SDIO function SYNOPSIS int sdio_writesb (struct sdio_func *func , unsigned int addr , void *src , int count ); ARGUMENTS func SDIO function to access addr address of (single byte) FIFO src buffer that contains the data to write cou...
sdio_writew(9)
NAME sdio_writew - write a 16 bit integer to a SDIO function SYNOPSIS void sdio_writew (struct sdio_func *func , u16 b , unsigned int addr , int *err_ret ); ARGUMENTS func SDIO function to access b integer to write addr address to write to err_ret optional status va...
sdjournal(1)
NAME sdjournal - Provide an interface to capture systemd journal entries. SYNOPSIS sdjournal [ --help ] [ --version ] [ --extcap-interfaces ] [ --extcap-dlts ] [ --extcap-interface=<interface> ] [ --extcap-config ] [ --capture ] [ --fifo=<path to file or pipe> ] [ --start-from=<entry count> ] DESCRIPTION sdjournal is...
sdma_ahg_alloc(9)
NAME sdma_ahg_alloc - allocate an AHG entry SYNOPSIS int sdma_ahg_alloc (struct sdma_engine *sde ); ARGUMENTS sde engine to allocate from RETURN 0-31 when successful, -EOPNOTSUPP if AHG is not enabled, -ENOSPC if an entry is not available SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_stat...
sdma_ahg_free(9)
NAME sdma_ahg_free - free an AHG entry SYNOPSIS void sdma_ahg_free (struct sdma_engine *sde , int ahg_index ); ARGUMENTS sde engine to return AHG entry ahg_index index to free DESCRIPTION This routine frees the indicate AHG entry. SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_st...
sdma_all_running(9)
NAME sdma_all_running - called when the link goes up SYNOPSIS void sdma_all_running (struct hfi1_devdata *dd ); ARGUMENTS dd hfi1_devdata DESCRIPTION This routine moves all engines to the running state. SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_state_name(9), sdma_get_descq_cnt(9), ...
sdma_clean(9)
NAME sdma_clean - Clean up allocated memory SYNOPSIS void sdma_clean (struct hfi1_devdata *dd , size_t num_engines ); ARGUMENTS dd struct hfi1_devdata num_engines num sdma engines DESCRIPTION This routine can be called regardless of the success of sdma_init SEE ALSO Kernel file ./drivers/infiniba...
sdma_empty(9)
NAME sdma_empty - idle engine test SYNOPSIS int sdma_empty (struct sdma_engine *sde ); ARGUMENTS sde -- undescribed -- DESCRIPTION Currently used by verbs as a latency optimization. RETURN 1 - empty, 0 - non-empty SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.h Kernel API(9), Kernel API(9), Ker...
sdma_engine_error(9)
NAME sdma_engine_error - error handler for engine SYNOPSIS void sdma_engine_error (struct sdma_engine *sde , u64 status ); ARGUMENTS sde sdma engine status sdma interrupt reason SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_state_name(9), sdma_get_descq_cnt(9), sdma_engine_g...
sdma_engine_get_vl(9)
NAME sdma_engine_get_vl - return vl for a given sdma engine SYNOPSIS int sdma_engine_get_vl (struct sdma_engine *sde ); ARGUMENTS sde sdma engine DESCRIPTION This function returns the vl mapped to a given engine, or an error if the mapping can't be found. The mapping fields are protected by RCU. SEE ALSO Ke...
sdma_engine_progress_schedule(9)
NAME sdma_engine_progress_schedule - schedule progress on engine SYNOPSIS void sdma_engine_progress_schedule (struct sdma_engine *sde ); ARGUMENTS sde sdma_engine to schedule progress DESCRIPTION This is the fast path. SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.h Kernel API(9), Kernel API(...
sdma_exit(9)
NAME sdma_exit - used when module is removed SYNOPSIS void sdma_exit (struct hfi1_devdata *dd ); ARGUMENTS dd hfi1_devdata SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_state_name(9), sdma_get_descq_cnt(9), sdma_engine_get_vl(9), sdma_select_engine_vl(9), sdma_select_engine_sc(9), sdm...
sdma_get_descq_cnt(9)
NAME sdma_get_descq_cnt - called when device probed SYNOPSIS u16 sdma_get_descq_cnt (void ); ARGUMENTS void no arguments DESCRIPTION Return a validated descq count. This is currently only used in the verbs initialization to build the tx list. This will probably be deleted in favor of a more scalable approac...
sdma_init(9)
NAME sdma_init - called when device probed SYNOPSIS int sdma_init (struct hfi1_devdata *dd , u8 port ); ARGUMENTS dd hfi1_devdata port port number (currently only zero) DESCRIPTION Initializes each sde and its csrs. Interrupts are not required to be enabled. RETURN 0 - success, -errno on fa...
sdma_map_init(9)
NAME sdma_map_init - called when # vls change SYNOPSIS int sdma_map_init (struct hfi1_devdata *dd , u8 port , u8 num_vls , u8 *vl_engines ); ARGUMENTS dd hfi1_devdata port port number num_vls number of vls vl_engines per vl engine mapping (optional) DESCRIPTION This rout...
sdma_progress(9)
NAME sdma_progress - use seq number of detect head progress SYNOPSIS unsigned sdma_progress (struct sdma_engine *sde , unsigned seq , struct sdma_txreq *tx ); ARGUMENTS sde sdma_engine to check seq base seq count tx txreq for which we need to check descriptor availability DES...
sdma_running(9)
NAME sdma_running - state suitability test SYNOPSIS int sdma_running (struct sdma_engine *engine ); ARGUMENTS engine sdma engine DESCRIPTION sdma_running probes the internal state to determine if it is suitable for submitting packets. RETURN 1 - ok to submit, 0 - not ok to submit SEE ALSO Kernel file ./driv...
sdma_select_engine_sc(9)
NAME sdma_select_engine_sc - select sdma engine SYNOPSIS struct sdma_engine * sdma_select_engine_sc (struct hfi1_devdata *dd , u32 selector , u8 sc5 ); ARGUMENTS dd devdata selector a spreading factor sc5 the 5 bit sc DESCRIPTION This function returns an engine based on the select...
sdma_select_engine_vl(9)
NAME sdma_select_engine_vl - select sdma engine SYNOPSIS struct sdma_engine * sdma_select_engine_vl (struct hfi1_devdata *dd , u32 selector , u8 vl ); ARGUMENTS dd devdata selector a spreading factor vl this vl DESCRIPTION This function returns an engine based on the selector and...
sdma_send_txlist(9)
NAME sdma_send_txlist - submit a list of tx req to ring SYNOPSIS int sdma_send_txlist (struct sdma_engine *sde , struct iowait_work *wait , struct list_head *tx_list , u16 *count_out ); ARGUMENTS sde sdma engine to use wait SE wait structure to use when full (may be NULL) tx_list li...
sdma_send_txreq(9)
NAME sdma_send_txreq - submit a tx req to ring SYNOPSIS int sdma_send_txreq (struct sdma_engine *sde , struct iowait_work *wait , struct sdma_txreq *tx , bool pkts_sent ); ARGUMENTS sde sdma engine to use wait SE wait structure to use when full (may be NULL) tx sdma_txreq to su...
sdma_seqfile_dump_cpu_list(9)
NAME sdma_seqfile_dump_cpu_list - debugfs dump the cpu to sdma mappings SYNOPSIS void sdma_seqfile_dump_cpu_list (struct seq_file *s , struct hfi1_devdata *dd , unsigned long cpuid ); ARGUMENTS s seq file dd hfi1_devdata cpuid cpu id DESCRIPTION This routine dumps the process...
sdma_seqfile_dump_sde(9)
NAME sdma_seqfile_dump_sde - debugfs dump of sde SYNOPSIS void sdma_seqfile_dump_sde (struct seq_file *s , struct sdma_engine *sde ); ARGUMENTS s seq file sde send dma engine to dump DESCRIPTION This routine dumps the sde to the indicated seq file. SEE ALSO Kernel file ./drivers/infiniba...
sdma_start(9)
NAME sdma_start - called to kick off state processing for all engines SYNOPSIS void sdma_start (struct hfi1_devdata *dd ); ARGUMENTS dd hfi1_devdata DESCRIPTION This routine is for kicking off the state processing for all required sdma engines. Interrupts need to be working at this point. SEE ALSO Kernel ...
sdma_state_name(9)
NAME sdma_state_name - return state string from enum SYNOPSIS const char * sdma_state_name (enum sdma_states state ); ARGUMENTS state state SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/sdma.c sdma_get_descq_cnt(9), sdma_engine_get_vl(9), sdma_select_engine_vl(9), sdma_select_engine_sc(9), sdma_s...
sdma_txadd_daddr(9)
NAME sdma_txadd_daddr - add a dma address to the sdma_txreq SYNOPSIS int sdma_txadd_daddr (struct hfi1_devdata *dd , struct sdma_txreq *tx , dma_addr_t addr , u16 len ); ARGUMENTS dd the device to use for mapping tx sdma_txreq to which the page is added addr dma address mapped...
sdma_txadd_kvaddr(9)
NAME sdma_txadd_kvaddr - add a kernel virtual address to sdma_txreq SYNOPSIS int sdma_txadd_kvaddr (struct hfi1_devdata *dd , struct sdma_txreq *tx , void *kvaddr , u16 len ); ARGUMENTS dd the device to use for mapping tx sdma_txreq to which the page is added kvaddr the kernel v...
sdma_txadd_page(9)
NAME sdma_txadd_page - add a page to the sdma_txreq SYNOPSIS int sdma_txadd_page (struct hfi1_devdata *dd , struct sdma_txreq *tx , struct page *page , unsigned long offset , u16 len , void *pinning_ctx , void (*ctx_get)(void *) , void (*ctx_put)(void *) ); ARGUMENTS dd the device to use for mapping ...
sdma_txinit(9)
NAME sdma_txinit - initialize an sdma_txreq struct (no AHG) SYNOPSIS int sdma_txinit (struct sdma_txreq *tx , u16 flags , u16 tlen , void (*cb)(struct sdma_txreq *, int) ); ARGUMENTS tx tx request to initialize flags flags to key last descriptor additions tlen total packet length...
sdma_txinit_ahg(9)
NAME sdma_txinit_ahg - initialize an sdma_txreq struct with AHG SYNOPSIS int sdma_txinit_ahg (struct sdma_txreq *tx , u16 flags , u16 tlen , u8 ahg_entry , u8 num_ahg , u32 *ahg , u8 ahg_hlen , void (*cb)(struct sdma_txreq *, int) ); ARGUMENTS tx tx request to initialize flags flags to key last...
sdma_v2_4_emit_copy_buffer(9)
NAME sdma_v2_4_emit_copy_buffer - copy buffer using the sDMA engine SYNOPSIS void sdma_v2_4_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t copy_flags ); ARGUMENTS ib indirect buffer to copy to src_offset src GPU address dst...
sdma_v2_4_emit_fill_buffer(9)
NAME sdma_v2_4_emit_fill_buffer - fill buffer using the sDMA engine SYNOPSIS void sdma_v2_4_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t src_data , uint64_t dst_offset , uint32_t byte_count ); ARGUMENTS ib indirect buffer to copy to src_data value to write to buffer dst_offset dst GP...
sdma_v2_4_enable(9)
NAME sdma_v2_4_enable - stop the async dma engines SYNOPSIS void sdma_v2_4_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable/disable the DMA MEs. DESCRIPTION Halt or unhalt the async dma engines (VI). SEE ALSO Kernel file ./drivers/gp...
sdma_v2_4_gfx_resume(9)
NAME sdma_v2_4_gfx_resume - setup and start the async dma engines SYNOPSIS int sdma_v2_4_gfx_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the gfx DMA ring buffers and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./...
sdma_v2_4_gfx_stop(9)
NAME sdma_v2_4_gfx_stop - stop the gfx async dma engines SYNOPSIS void sdma_v2_4_gfx_stop (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Stop the gfx async dma ring buffers (VI). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c sdma_v2_4_init_microco...
sdma_v2_4_init_microcode(9)
NAME sdma_v2_4_init_microcode - load ucode images from disk SYNOPSIS int sdma_v2_4_init_microcode (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Use the firmware interface to load the ucode images into the driver (not loaded into hw). Returns 0 on success, error on failure. ...
sdma_v2_4_ring_emit_fence(9)
NAME sdma_v2_4_ring_emit_fence - emit a fence on the DMA ring SYNOPSIS void sdma_v2_4_ring_emit_fence (struct amdgpu_ring *ring , u64 addr , u64 seq , unsigned flags ); ARGUMENTS ring amdgpu ring pointer addr address seq sequence number flags fence related flags DE...
sdma_v2_4_ring_emit_hdp_flush(9)
NAME sdma_v2_4_ring_emit_hdp_flush - emit an hdp flush on the DMA ring SYNOPSIS void sdma_v2_4_ring_emit_hdp_flush (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Emit an hdp flush packet on the requested DMA ring. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2...
sdma_v2_4_ring_emit_ib(9)
NAME sdma_v2_4_ring_emit_ib - Schedule an IB on the DMA engine SYNOPSIS void sdma_v2_4_ring_emit_ib (struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_ib *ib , uint32_t flags ); ARGUMENTS ring amdgpu ring pointer job job to retrieve vmid from ib IB object to sch...
sdma_v2_4_ring_emit_pipeline_sync(9)
NAME sdma_v2_4_ring_emit_pipeline_sync - sync the pipeline SYNOPSIS void sdma_v2_4_ring_emit_pipeline_sync (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring pointer DESCRIPTION Make sure all previous operations are completed (CIK). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c ...
sdma_v2_4_ring_emit_vm_flush(9)
NAME sdma_v2_4_ring_emit_vm_flush - cik vm flush using sDMA SYNOPSIS void sdma_v2_4_ring_emit_vm_flush (struct amdgpu_ring *ring , unsigned vmid , uint64_t pd_addr ); ARGUMENTS ring amdgpu_ring pointer vmid vmid number to use pd_addr address DESCRIPTION Update the page table base an...
sdma_v2_4_ring_get_rptr(9)
NAME sdma_v2_4_ring_get_rptr - get the current read pointer SYNOPSIS uint64_t sdma_v2_4_ring_get_rptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Get the current rptr from the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c sdma_v2_4_in...
sdma_v2_4_ring_get_wptr(9)
NAME sdma_v2_4_ring_get_wptr - get the current write pointer SYNOPSIS uint64_t sdma_v2_4_ring_get_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Get the current wptr from the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c sdma_v2_4_i...
sdma_v2_4_ring_pad_ib(9)
NAME sdma_v2_4_ring_pad_ib - pad the IB to the required number of dw SYNOPSIS void sdma_v2_4_ring_pad_ib (struct amdgpu_ring *ring , struct amdgpu_ib *ib ); ARGUMENTS ring amdgpu_ring structure holding ring information ib indirect buffer to fill with padding SEE ALSO Kernel file ./dr...
sdma_v2_4_ring_set_wptr(9)
NAME sdma_v2_4_ring_set_wptr - commit the write pointer SYNOPSIS void sdma_v2_4_ring_set_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Write the wptr back to the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c sdma_v2_4_init_microcod...
sdma_v2_4_ring_test_ib(9)
NAME sdma_v2_4_ring_test_ib - test an IB on the DMA engine SYNOPSIS int sdma_v2_4_ring_test_ib (struct amdgpu_ring *ring , long timeout ); ARGUMENTS ring amdgpu_ring structure holding ring information timeout timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT DESCRIPTION Test a simple IB in the DMA...
sdma_v2_4_ring_test_ring(9)
NAME sdma_v2_4_ring_test_ring - simple async dma engine test SYNOPSIS int sdma_v2_4_ring_test_ring (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring structure holding ring information DESCRIPTION Test the DMA engine by writing using it to write an value to memory. (VI). Returns 0 for success, error for...
sdma_v2_4_rlc_resume(9)
NAME sdma_v2_4_rlc_resume - setup and start the async dma engines SYNOPSIS int sdma_v2_4_rlc_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the compute DMA queues and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./dr...
sdma_v2_4_rlc_stop(9)
NAME sdma_v2_4_rlc_stop - stop the compute async dma engines SYNOPSIS void sdma_v2_4_rlc_stop (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Stop the compute async dma queues (VI). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c sdma_v2_4_init_micro...
sdma_v2_4_start(9)
NAME sdma_v2_4_start - setup and start the async dma engines SYNOPSIS int sdma_v2_4_start (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the DMA engines and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
sdma_v2_4_vm_copy_pte(9)
NAME sdma_v2_4_vm_copy_pte - update PTEs by copying them from the GART SYNOPSIS void sdma_v2_4_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe , uint64_t src , unsigned count ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry src src addr to copy ...
sdma_v2_4_vm_set_pte_pde(9)
NAME sdma_v2_4_vm_set_pte_pde - update the page tables using sDMA SYNOPSIS void sdma_v2_4_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe , uint64_t addr , unsigned count , uint32_t incr , uint64_t flags ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry ...
sdma_v2_4_vm_write_pte(9)
NAME sdma_v2_4_vm_write_pte - update PTEs by writing them manually SYNOPSIS void sdma_v2_4_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe , uint64_t value , unsigned count , uint32_t incr ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry value ds...
sdma_v3_0_ctx_switch_enable(9)
NAME sdma_v3_0_ctx_switch_enable - stop the async dma engines context switch SYNOPSIS void sdma_v3_0_ctx_switch_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable/disable the DMA MEs context switch. DESCRIPTION Halt or unhalt the async dma engin...
sdma_v3_0_emit_copy_buffer(9)
NAME sdma_v3_0_emit_copy_buffer - copy buffer using the sDMA engine SYNOPSIS void sdma_v3_0_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t copy_flags ); ARGUMENTS ib indirect buffer to copy to src_offset src GPU address dst...
sdma_v3_0_emit_fill_buffer(9)
NAME sdma_v3_0_emit_fill_buffer - fill buffer using the sDMA engine SYNOPSIS void sdma_v3_0_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t src_data , uint64_t dst_offset , uint32_t byte_count ); ARGUMENTS ib indirect buffer to copy to src_data value to write to buffer dst_offset dst GP...
sdma_v3_0_enable(9)
NAME sdma_v3_0_enable - stop the async dma engines SYNOPSIS void sdma_v3_0_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable/disable the DMA MEs. DESCRIPTION Halt or unhalt the async dma engines (VI). SEE ALSO Kernel file ./drivers/gp...
sdma_v3_0_gfx_resume(9)
NAME sdma_v3_0_gfx_resume - setup and start the async dma engines SYNOPSIS int sdma_v3_0_gfx_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the gfx DMA ring buffers and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./...
sdma_v3_0_gfx_stop(9)
NAME sdma_v3_0_gfx_stop - stop the gfx async dma engines SYNOPSIS void sdma_v3_0_gfx_stop (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Stop the gfx async dma ring buffers (VI). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c sdma_v3_0_init_microco...
sdma_v3_0_init_microcode(9)
NAME sdma_v3_0_init_microcode - load ucode images from disk SYNOPSIS int sdma_v3_0_init_microcode (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Use the firmware interface to load the ucode images into the driver (not loaded into hw). Returns 0 on success, error on failure. ...
sdma_v3_0_ring_emit_fence(9)
NAME sdma_v3_0_ring_emit_fence - emit a fence on the DMA ring SYNOPSIS void sdma_v3_0_ring_emit_fence (struct amdgpu_ring *ring , u64 addr , u64 seq , unsigned flags ); ARGUMENTS ring amdgpu ring pointer addr address seq sequence number flags fence related flags DE...
sdma_v3_0_ring_emit_hdp_flush(9)
NAME sdma_v3_0_ring_emit_hdp_flush - emit an hdp flush on the DMA ring SYNOPSIS void sdma_v3_0_ring_emit_hdp_flush (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Emit an hdp flush packet on the requested DMA ring. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3...
sdma_v3_0_ring_emit_ib(9)
NAME sdma_v3_0_ring_emit_ib - Schedule an IB on the DMA engine SYNOPSIS void sdma_v3_0_ring_emit_ib (struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_ib *ib , uint32_t flags ); ARGUMENTS ring amdgpu ring pointer job job to retrieve vmid from ib IB object to sch...
sdma_v3_0_ring_emit_pipeline_sync(9)
NAME sdma_v3_0_ring_emit_pipeline_sync - sync the pipeline SYNOPSIS void sdma_v3_0_ring_emit_pipeline_sync (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring pointer DESCRIPTION Make sure all previous operations are completed (CIK). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c ...
sdma_v3_0_ring_emit_vm_flush(9)
NAME sdma_v3_0_ring_emit_vm_flush - cik vm flush using sDMA SYNOPSIS void sdma_v3_0_ring_emit_vm_flush (struct amdgpu_ring *ring , unsigned vmid , uint64_t pd_addr ); ARGUMENTS ring amdgpu_ring pointer vmid vmid number to use pd_addr address DESCRIPTION Update the page table base an...
sdma_v3_0_ring_get_rptr(9)
NAME sdma_v3_0_ring_get_rptr - get the current read pointer SYNOPSIS uint64_t sdma_v3_0_ring_get_rptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Get the current rptr from the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c sdma_v3_0_in...
sdma_v3_0_ring_get_wptr(9)
NAME sdma_v3_0_ring_get_wptr - get the current write pointer SYNOPSIS uint64_t sdma_v3_0_ring_get_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Get the current wptr from the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c sdma_v3_0_i...
sdma_v3_0_ring_pad_ib(9)
NAME sdma_v3_0_ring_pad_ib - pad the IB to the required number of dw SYNOPSIS void sdma_v3_0_ring_pad_ib (struct amdgpu_ring *ring , struct amdgpu_ib *ib ); ARGUMENTS ring amdgpu_ring structure holding ring information ib indirect buffer to fill with padding SEE ALSO Kernel file ./dr...
sdma_v3_0_ring_set_wptr(9)
NAME sdma_v3_0_ring_set_wptr - commit the write pointer SYNOPSIS void sdma_v3_0_ring_set_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Write the wptr back to the hardware (VI+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c sdma_v3_0_init_microcod...
sdma_v3_0_ring_test_ib(9)
NAME sdma_v3_0_ring_test_ib - test an IB on the DMA engine SYNOPSIS int sdma_v3_0_ring_test_ib (struct amdgpu_ring *ring , long timeout ); ARGUMENTS ring amdgpu_ring structure holding ring information timeout timeout value in jiffies, or MAX_SCHEDULE_TIMEOUT DESCRIPTION Test a simple IB in the DMA...
sdma_v3_0_ring_test_ring(9)
NAME sdma_v3_0_ring_test_ring - simple async dma engine test SYNOPSIS int sdma_v3_0_ring_test_ring (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring structure holding ring information DESCRIPTION Test the DMA engine by writing using it to write an value to memory. (VI). Returns 0 for success, error for...
sdma_v3_0_rlc_resume(9)
NAME sdma_v3_0_rlc_resume - setup and start the async dma engines SYNOPSIS int sdma_v3_0_rlc_resume (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the compute DMA queues and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./dr...
sdma_v3_0_rlc_stop(9)
NAME sdma_v3_0_rlc_stop - stop the compute async dma engines SYNOPSIS void sdma_v3_0_rlc_stop (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Stop the compute async dma queues (VI). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c sdma_v3_0_init_micro...
sdma_v3_0_start(9)
NAME sdma_v3_0_start - setup and start the async dma engines SYNOPSIS int sdma_v3_0_start (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Set up the DMA engines and enable them (VI). Returns 0 for success, error for failure. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
sdma_v3_0_vm_copy_pte(9)
NAME sdma_v3_0_vm_copy_pte - update PTEs by copying them from the GART SYNOPSIS void sdma_v3_0_vm_copy_pte (struct amdgpu_ib *ib , uint64_t pe , uint64_t src , unsigned count ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry src src addr to copy ...
sdma_v3_0_vm_set_pte_pde(9)
NAME sdma_v3_0_vm_set_pte_pde - update the page tables using sDMA SYNOPSIS void sdma_v3_0_vm_set_pte_pde (struct amdgpu_ib *ib , uint64_t pe , uint64_t addr , unsigned count , uint32_t incr , uint64_t flags ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry ...
sdma_v3_0_vm_write_pte(9)
NAME sdma_v3_0_vm_write_pte - update PTEs by writing them manually SYNOPSIS void sdma_v3_0_vm_write_pte (struct amdgpu_ib *ib , uint64_t pe , uint64_t value , unsigned count , uint32_t incr ); ARGUMENTS ib indirect buffer to fill with commands pe addr of the page entry value ds...
sdma_v4_0_ctx_switch_enable(9)
NAME sdma_v4_0_ctx_switch_enable - stop the async dma engines context switch SYNOPSIS void sdma_v4_0_ctx_switch_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable/disable the DMA MEs context switch. DESCRIPTION Halt or unhalt the async dma engin...
sdma_v4_0_emit_copy_buffer(9)
NAME sdma_v4_0_emit_copy_buffer - copy buffer using the sDMA engine SYNOPSIS void sdma_v4_0_emit_copy_buffer (struct amdgpu_ib *ib , uint64_t src_offset , uint64_t dst_offset , uint32_t byte_count , uint32_t copy_flags ); ARGUMENTS ib indirect buffer to copy to src_offset src GPU address dst...
sdma_v4_0_emit_fill_buffer(9)
NAME sdma_v4_0_emit_fill_buffer - fill buffer using the sDMA engine SYNOPSIS void sdma_v4_0_emit_fill_buffer (struct amdgpu_ib *ib , uint32_t src_data , uint64_t dst_offset , uint32_t byte_count ); ARGUMENTS ib indirect buffer to copy to src_data value to write to buffer dst_offset dst GP...
sdma_v4_0_enable(9)
NAME sdma_v4_0_enable - stop the async dma engines SYNOPSIS void sdma_v4_0_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable/disable the DMA MEs. DESCRIPTION Halt or unhalt the async dma engines (VEGA10). SEE ALSO Kernel file ./drivers...
sdma_v4_0_gfx_enable(9)
NAME sdma_v4_0_gfx_enable - enable the gfx async dma engines SYNOPSIS void sdma_v4_0_gfx_enable (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable SDMA RB/IB control the gfx async dma ring buffers (VEGA10). SEE ALSO Kernel file ./drivers/gpu/dr...
sdma_v4_0_gfx_resume(9)
NAME sdma_v4_0_gfx_resume - setup and start the async dma engines SYNOPSIS void sdma_v4_0_gfx_resume (struct amdgpu_device *adev , unsigned int i ); ARGUMENTS adev amdgpu_device pointer i instance to resume DESCRIPTION Set up the gfx DMA ring buffers and enable them (VEGA10). Returns 0 for ...
sdma_v4_0_init_microcode(9)
NAME sdma_v4_0_init_microcode - load ucode images from disk SYNOPSIS int sdma_v4_0_init_microcode (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Use the firmware interface to load the ucode images into the driver (not loaded into hw). Returns 0 on success, error on failure. ...
sdma_v4_0_load_microcode(9)
NAME sdma_v4_0_load_microcode - load the sDMA ME ucode SYNOPSIS int sdma_v4_0_load_microcode (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Loads the sDMA0/1 ucode. Returns 0 for success, -EINVAL if the ucode is not available. SEE ALSO Kernel file ./drivers/gpu/drm/a...
sdma_v4_0_page_resume(9)
NAME sdma_v4_0_page_resume - setup and start the async dma engines SYNOPSIS void sdma_v4_0_page_resume (struct amdgpu_device *adev , unsigned int i ); ARGUMENTS adev amdgpu_device pointer i instance to resume DESCRIPTION Set up the page DMA ring buffers and enable them (VEGA10). Returns 0 f...
sdma_v4_0_page_ring_get_wptr(9)
NAME sdma_v4_0_page_ring_get_wptr - get the current write pointer SYNOPSIS uint64_t sdma_v4_0_page_ring_get_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Get the current wptr from the hardware (VEGA10+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c ...
sdma_v4_0_page_ring_set_wptr(9)
NAME sdma_v4_0_page_ring_set_wptr - commit the write pointer SYNOPSIS void sdma_v4_0_page_ring_set_wptr (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Write the wptr back to the hardware (VEGA10+). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c sdma_v4_0...
sdma_v4_0_page_stop(9)
NAME sdma_v4_0_page_stop - stop the page async dma engines SYNOPSIS void sdma_v4_0_page_stop (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Stop the page async dma ring buffers (VEGA10). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c sdma_v4_0_init_m...
sdma_v4_0_ring_emit_fence(9)
NAME sdma_v4_0_ring_emit_fence - emit a fence on the DMA ring SYNOPSIS void sdma_v4_0_ring_emit_fence (struct amdgpu_ring *ring , u64 addr , u64 seq , unsigned flags ); ARGUMENTS ring amdgpu ring pointer addr address seq sequence number flags fence related flags DE...
sdma_v4_0_ring_emit_hdp_flush(9)
NAME sdma_v4_0_ring_emit_hdp_flush - emit an hdp flush on the DMA ring SYNOPSIS void sdma_v4_0_ring_emit_hdp_flush (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu ring pointer DESCRIPTION Emit an hdp flush packet on the requested DMA ring. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/sdma_v4_...
sdma_v4_0_ring_emit_ib(9)
NAME sdma_v4_0_ring_emit_ib - Schedule an IB on the DMA engine SYNOPSIS void sdma_v4_0_ring_emit_ib (struct amdgpu_ring *ring , struct amdgpu_job *job , struct amdgpu_ib *ib , uint32_t flags ); ARGUMENTS ring amdgpu ring pointer job job to retrieve vmid from ib IB object to sch...