id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_ib_schedule(9)
NAME amdgpu_ib_schedule - schedule an IB (Indirect Buffer) on the ring SYNOPSIS int amdgpu_ib_schedule (struct amdgpu_ring *ring , unsigned int num_ibs , struct amdgpu_ib *ibs , struct amdgpu_job *job , struct dma_fence **f ); ARGUMENTS ring ring index the IB is associated with num_ibs number of IB...
amdgpu_ih_decode_iv_helper(9)
NAME amdgpu_ih_decode_iv_helper - decode an interrupt vector SYNOPSIS void amdgpu_ih_decode_iv_helper (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , struct amdgpu_iv_entry *entry ); ARGUMENTS adev amdgpu_device pointer ih ih ring to process entry IV entry DESCRIPTION ...
amdgpu_ih_process(9)
NAME amdgpu_ih_process - interrupt handler SYNOPSIS int amdgpu_ih_process (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih ih ring to process DESCRIPTION Interrupt hander (VI), walk the IH ring. Returns irq process return code. SEE ALSO Kern...
amdgpu_ih_ring_fini(9)
NAME amdgpu_ih_ring_fini - tear down the IH state SYNOPSIS void amdgpu_ih_ring_fini (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih ih ring to tear down DESCRIPTION Tears down the IH state and frees buffer used for the IH ring buffer. SEE AL...
amdgpu_ih_ring_init(9)
NAME amdgpu_ih_ring_init - initialize the IH state SYNOPSIS int amdgpu_ih_ring_init (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , unsigned ring_size , bool use_bus_addr ); ARGUMENTS adev amdgpu_device pointer ih ih ring to initialize ring_size ring size to allocate ...
amdgpu_ih_ring_write(9)
NAME amdgpu_ih_ring_write - write IV to the ring buffer SYNOPSIS void amdgpu_ih_ring_write (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , const uint32_t *iv , unsigned int num_dw ); ARGUMENTS adev amdgpu_device pointer ih ih ring to write to iv the iv to write ...
amdgpu_ih_wait_on_checkpoint_process_ts(9)
NAME amdgpu_ih_wait_on_checkpoint_process_ts - wait to process IVs up to checkpoint SYNOPSIS int amdgpu_ih_wait_on_checkpoint_process_ts (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih ih ring to process DESCRIPTION Used to ensure ring has pr...
amdgpu_info_ioctl(9)
NAME amdgpu_info_ioctl - answer a device specific request. SYNOPSIS int amdgpu_info_ioctl (struct drm_device *dev , void *data , struct drm_file *filp ); ARGUMENTS dev drm device pointer data request object filp drm filp DESCRIPTION This function is used to pass device specific ...
amdgpu_invalid_rreg(9)
NAME amdgpu_invalid_rreg - dummy reg read function SYNOPSIS uint32_t amdgpu_invalid_rreg (struct amdgpu_device *adev , uint32_t reg ); ARGUMENTS adev amdgpu_device pointer reg offset of register DESCRIPTION Dummy register read function. Used for register blocks that certain asics don't have (...
amdgpu_invalid_rreg64(9)
NAME amdgpu_invalid_rreg64 - dummy 64 bit reg read function SYNOPSIS uint64_t amdgpu_invalid_rreg64 (struct amdgpu_device *adev , uint32_t reg ); ARGUMENTS adev amdgpu_device pointer reg offset of register DESCRIPTION Dummy register read function. Used for register blocks that certain asics d...
amdgpu_invalid_wreg(9)
NAME amdgpu_invalid_wreg - dummy reg write function SYNOPSIS void amdgpu_invalid_wreg (struct amdgpu_device *adev , uint32_t reg , uint32_t v ); ARGUMENTS adev amdgpu_device pointer reg offset of register v value to write to the register DESCRIPTION Dummy register read functi...
amdgpu_invalid_wreg64(9)
NAME amdgpu_invalid_wreg64 - dummy reg write function SYNOPSIS void amdgpu_invalid_wreg64 (struct amdgpu_device *adev , uint32_t reg , uint64_t v ); ARGUMENTS adev amdgpu_device pointer reg offset of register v value to write to the register DESCRIPTION Dummy register read fu...
amdgpu_irq_add_domain(9)
NAME amdgpu_irq_add_domain - create a linear IRQ domain SYNOPSIS int amdgpu_irq_add_domain (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Creates an IRQ domain for GPU interrupt sources that may be driven by another driver (e.g., ACP). RETURN 0 on success or error code otherw...
amdgpu_irq_add_id(9)
NAME amdgpu_irq_add_id - register IRQ source SYNOPSIS int amdgpu_irq_add_id (struct amdgpu_device *adev , unsigned int client_id , unsigned int src_id , struct amdgpu_irq_src *source ); ARGUMENTS adev amdgpu device pointer client_id client id src_id source id source IRQ sour...
amdgpu_irq_create_mapping(9)
NAME amdgpu_irq_create_mapping - create mapping between domain Linux IRQs SYNOPSIS unsigned int amdgpu_irq_create_mapping (struct amdgpu_device *adev , unsigned int src_id ); ARGUMENTS adev amdgpu device pointer src_id IH source id DESCRIPTION Creates mapping between a domain IRQ (GPU IH src id) ...
amdgpu_irq_delegate(9)
NAME amdgpu_irq_delegate - delegate IV to soft IH ring SYNOPSIS void amdgpu_irq_delegate (struct amdgpu_device *adev , struct amdgpu_iv_entry *entry , unsigned int num_dw ); ARGUMENTS adev amdgpu device pointer entry IV entry num_dw size of IV DESCRIPTION Delegate the IV to the soft...
amdgpu_irq_disable_all(9)
NAME amdgpu_irq_disable_all - disable *all* interrupts SYNOPSIS void amdgpu_irq_disable_all (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Disable all types of interrupts from all sources. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c Kernel API(9), amdg...
amdgpu_irq_dispatch(9)
NAME amdgpu_irq_dispatch - dispatch IRQ to IP blocks SYNOPSIS void amdgpu_irq_dispatch (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu device pointer ih interrupt ring instance DESCRIPTION Dispatches IRQ to IP blocks. SEE ALSO Kernel file ./drivers/gpu/drm/...
amdgpu_irq_enabled(9)
NAME amdgpu_irq_enabled - check whether interrupt is enabled or not SYNOPSIS bool amdgpu_irq_enabled (struct amdgpu_device *adev , struct amdgpu_irq_src *src , unsigned int type ); ARGUMENTS adev amdgpu device pointer src interrupt source pointer type type of interrupt DESCRIPTI...
amdgpu_irq_fini_sw(9)
NAME amdgpu_irq_fini_sw - shut down interrupt handling SYNOPSIS void amdgpu_irq_fini_sw (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Tears down work functions for hotplug and reset interrupts, disables MSI functionality, shuts down vblank, hotplug and reset interrupt handlin...
amdgpu_irq_get(9)
NAME amdgpu_irq_get - enable interrupt SYNOPSIS int amdgpu_irq_get (struct amdgpu_device *adev , struct amdgpu_irq_src *src , unsigned int type ); ARGUMENTS adev amdgpu device pointer src interrupt source pointer type type of interrupt DESCRIPTION Enables specified type of inter...
amdgpu_irq_gpu_reset_resume_helper(9)
NAME amdgpu_irq_gpu_reset_resume_helper - update interrupt states on all sources SYNOPSIS void amdgpu_irq_gpu_reset_resume_helper (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Updates state of all types of interrupts on all sources on resume after reset. SEE ALSO Kernel fil...
amdgpu_irq_handle_ih1(9)
NAME amdgpu_irq_handle_ih1 - kick of processing for IH1 SYNOPSIS void amdgpu_irq_handle_ih1 (struct work_struct *work ); ARGUMENTS work work structure in struct amdgpu_irq DESCRIPTION Kick of processing IH ring 1. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c Kernel API(9), amdgpu_irq_d...
amdgpu_irq_handle_ih2(9)
NAME amdgpu_irq_handle_ih2 - kick of processing for IH2 SYNOPSIS void amdgpu_irq_handle_ih2 (struct work_struct *work ); ARGUMENTS work work structure in struct amdgpu_irq DESCRIPTION Kick of processing IH ring 2. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c Kernel API(9), amdgpu_irq_d...
amdgpu_irq_handle_ih_soft(9)
NAME amdgpu_irq_handle_ih_soft - kick of processing for ih_soft SYNOPSIS void amdgpu_irq_handle_ih_soft (struct work_struct *work ); ARGUMENTS work work structure in struct amdgpu_irq DESCRIPTION Kick of processing IH soft ring. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c Kernel API...
amdgpu_irq_handler(9)
NAME amdgpu_irq_handler - IRQ handler SYNOPSIS irqreturn_t amdgpu_irq_handler (int irq , void *arg ); ARGUMENTS irq IRQ number (unused) arg pointer to DRM device DESCRIPTION IRQ handler for amdgpu driver (all ASICs). RETURN result of handling the IRQ, as defined by irqreturn_t SEE ALSO Kern...
amdgpu_irq_init(9)
NAME amdgpu_irq_init - initialize interrupt handling SYNOPSIS int amdgpu_irq_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Sets up work functions for hotplug and reset interrupts, enables MSI functionality, initializes vblank, hotplug and reset interrupt handling. RETUR...
amdgpu_irq_put(9)
NAME amdgpu_irq_put - disable interrupt SYNOPSIS int amdgpu_irq_put (struct amdgpu_device *adev , struct amdgpu_irq_src *src , unsigned int type ); ARGUMENTS adev amdgpu device pointer src interrupt source pointer type type of interrupt DESCRIPTION Enables specified type of inte...
amdgpu_irq_remove_domain(9)
NAME amdgpu_irq_remove_domain - remove the IRQ domain SYNOPSIS void amdgpu_irq_remove_domain (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Removes the IRQ domain for GPU interrupt sources that may be driven by another driver (e.g., ACP). SEE ALSO Kernel file ./drivers/gp...
amdgpu_irq_update(9)
NAME amdgpu_irq_update - update hardware interrupt state SYNOPSIS int amdgpu_irq_update (struct amdgpu_device *adev , struct amdgpu_irq_src *src , unsigned int type ); ARGUMENTS adev amdgpu device pointer src interrupt source pointer type type of interrupt DESCRIPTION Updates in...
amdgpu_irqdomain_map(9)
NAME amdgpu_irqdomain_map - create mapping between virtual and hardware IRQ numbers SYNOPSIS int amdgpu_irqdomain_map (struct irq_domain *d , unsigned int irq , irq_hw_number_t hwirq ); ARGUMENTS d amdgpu IRQ domain pointer (unused) irq virtual IRQ number hwirq hardware irq num...
amdgpu_jpeg_dec_parse_cs(9)
NAME amdgpu_jpeg_dec_parse_cs - command submission parser SYNOPSIS int amdgpu_jpeg_dec_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 parse DESCRIPT...
amdgpu_max_hdmi_pixel_clock(9)
NAME amdgpu_max_hdmi_pixel_clock - Return max supported HDMI (TMDS) pixel clock SYNOPSIS int amdgpu_max_hdmi_pixel_clock (const struct amdgpu_device *adev ); ARGUMENTS adev pointer to amdgpu_device RETURN maximum supported HDMI (TMDS) pixel clock in KHz. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdg...
amdgpu_mem_type_to_domain(9)
NAME amdgpu_mem_type_to_domain - return domain corresponding to mem_type SYNOPSIS unsigned amdgpu_mem_type_to_domain (u32 mem_type ); ARGUMENTS mem_type ttm memory type DESCRIPTION Returns corresponding domain of the ttm mem_type SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_object.h amdgpu_bo_reserve...
amdgpu_mm_rdoorbell(9)
NAME amdgpu_mm_rdoorbell - read a doorbell dword SYNOPSIS u32 amdgpu_mm_rdoorbell (struct amdgpu_device *adev , u32 index ); ARGUMENTS adev amdgpu_device pointer index doorbell index DESCRIPTION Returns the value in the doorbell aperture at the requested doorbell index (CIK). SEE ALSO Kernel f...
amdgpu_mm_rdoorbell64(9)
NAME amdgpu_mm_rdoorbell64 - read a doorbell Qword SYNOPSIS u64 amdgpu_mm_rdoorbell64 (struct amdgpu_device *adev , u32 index ); ARGUMENTS adev amdgpu_device pointer index doorbell index DESCRIPTION Returns the value in the doorbell aperture at the requested doorbell index (VEGA10+). SEE ALSO K...
amdgpu_mm_rreg8(9)
NAME amdgpu_mm_rreg8 - read a memory mapped IO register SYNOPSIS uint8_t amdgpu_mm_rreg8 (struct amdgpu_device *adev , uint32_t offset ); ARGUMENTS adev amdgpu_device pointer offset byte aligned register offset DESCRIPTION Returns the 8 bit value from the offset specified. SEE ALSO Kernel file ....
amdgpu_mm_wdoorbell(9)
NAME amdgpu_mm_wdoorbell - write a doorbell dword SYNOPSIS void amdgpu_mm_wdoorbell (struct amdgpu_device *adev , u32 index , u32 v ); ARGUMENTS adev amdgpu_device pointer index doorbell index v value to write DESCRIPTION Writes v to the doorbell aperture at the requested doorb...
amdgpu_mm_wdoorbell64(9)
NAME amdgpu_mm_wdoorbell64 - write a doorbell Qword SYNOPSIS void amdgpu_mm_wdoorbell64 (struct amdgpu_device *adev , u32 index , u64 v ); ARGUMENTS adev amdgpu_device pointer index doorbell index v value to write DESCRIPTION Writes v to the doorbell aperture at the requested d...
amdgpu_mm_wreg8(9)
NAME amdgpu_mm_wreg8 - read a memory mapped IO register SYNOPSIS void amdgpu_mm_wreg8 (struct amdgpu_device *adev , uint32_t offset , uint8_t value ); ARGUMENTS adev amdgpu_device pointer offset byte aligned register offset value 8 bit value to write DESCRIPTION Writes the value spe...
amdgpu_mm_wreg_mmio_rlc(9)
NAME amdgpu_mm_wreg_mmio_rlc - write register either with direct/indirect mmio or with RLC path if in range SYNOPSIS void amdgpu_mm_wreg_mmio_rlc (struct amdgpu_device *adev , uint32_t reg , uint32_t v , uint32_t xcc_id ); ARGUMENTS adev amdgpu_device pointer reg mmio/rlc register v ...
amdgpu_msi_ok(9)
NAME amdgpu_msi_ok - check whether MSI functionality is enabled SYNOPSIS bool amdgpu_msi_ok (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer (unused) DESCRIPTION Checks whether MSI functionality has been disabled via module parameter (all ASICs). RETURN *true* if MSIs are allowed to be ena...
amdgpu_pasid_alloc(9)
NAME amdgpu_pasid_alloc - Allocate a PASID SYNOPSIS int amdgpu_pasid_alloc (unsigned int bits ); ARGUMENTS bits Maximum width of the PASID in bits, must be at least 1 DESCRIPTION Uses kernel's IDR cyclic allocator (same as PID allocation). Allocates sequentially with automatic wrap-around. Returns a positi...
amdgpu_pasid_free(9)
NAME amdgpu_pasid_free - Free a PASID SYNOPSIS void amdgpu_pasid_free (u32 pasid ); ARGUMENTS pasid PASID to free DESCRIPTION Called in IRQ context. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9), amdgpu_pasid_free_delayed(9), amdgpu_vmid_had_gpu_reset(9), amdgpu_vmid_...
amdgpu_pasid_free_delayed(9)
NAME amdgpu_pasid_free_delayed - free pasid when fences signal SYNOPSIS void amdgpu_pasid_free_delayed (struct dma_resv *resv , u32 pasid ); ARGUMENTS resv reservation object with the fences to wait for pasid pasid to free DESCRIPTION Free the pasid only after all the fences in resv are signaled...
amdgpu_pasid_mgr_cleanup(9)
NAME amdgpu_pasid_mgr_cleanup - cleanup PASID manager SYNOPSIS void amdgpu_pasid_mgr_cleanup (void ); ARGUMENTS void no arguments DESCRIPTION Cleanup the IDR allocator. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c amdgpu_pasid_alloc(9), amdgpu_pasid_free(9), amdgpu_pasid_free_delayed(9...
amdgpu_pci_error_detected(9)
NAME amdgpu_pci_error_detected - Called when a PCI error is detected. SYNOPSIS pci_ers_result_t amdgpu_pci_error_detected (struct pci_dev *pdev , pci_channel_state_t state ); ARGUMENTS pdev PCI device struct state PCI channel state DESCRIPTION Called when a PCI error is detected. RETURN PCI_ERS...
amdgpu_pci_mmio_enabled(9)
NAME amdgpu_pci_mmio_enabled - Enable MMIO and dump debug registers SYNOPSIS pci_ers_result_t amdgpu_pci_mmio_enabled (struct pci_dev *pdev ); ARGUMENTS pdev pointer to PCI device SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API(9), Kernel API(9), Kernel API(9), Kernel API(9), amdg...
amdgpu_pci_resume(9)
NAME amdgpu_pci_resume - resume normal ops after PCI reset SYNOPSIS void amdgpu_pci_resume (struct pci_dev *pdev ); ARGUMENTS pdev pointer to PCI device DESCRIPTION Called when the error recovery driver tells us that its OK to resume normal operation. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_...
amdgpu_pci_slot_reset(9)
NAME amdgpu_pci_slot_reset - Called when PCI slot has been reset. SYNOPSIS pci_ers_result_t amdgpu_pci_slot_reset (struct pci_dev *pdev ); ARGUMENTS pdev PCI device struct DESCRIPTION This routine is called by the pci error recovery code after the PCI slot has been reset, just before we should resume normal o...
amdgpu_pll_compute(9)
NAME amdgpu_pll_compute - compute PLL paramaters SYNOPSIS void amdgpu_pll_compute (struct amdgpu_device *adev , struct amdgpu_pll *pll , u32 freq , u32 *dot_clock_p , u32 *fb_div_p , u32 *frac_fb_div_p , u32 *ref_div_p , u32 *post_div_p ); ARGUMENTS adev amdgpu_device pointer pll information ab...
amdgpu_pll_get_fb_ref_div(9)
NAME amdgpu_pll_get_fb_ref_div - feedback and ref divider calculation SYNOPSIS void amdgpu_pll_get_fb_ref_div (struct amdgpu_device *adev , unsigned int nom , unsigned int den , unsigned int post_div , unsigned int fb_div_max , unsigned int ref_div_max , unsigned int *fb_div , unsigned int *ref_div ); ARGUMENTS adev...
amdgpu_pll_get_shared_dp_ppll(9)
NAME amdgpu_pll_get_shared_dp_ppll - return the PPLL used by another crtc for DP SYNOPSIS int amdgpu_pll_get_shared_dp_ppll (struct drm_crtc *crtc ); ARGUMENTS crtc drm crtc DESCRIPTION Returns the PPLL (Pixel PLL) used by another crtc/encoder which is also in DP mode. For DP, a single PPLL can be used for a...
amdgpu_pll_get_shared_nondp_ppll(9)
NAME amdgpu_pll_get_shared_nondp_ppll - return the PPLL used by another non-DP crtc SYNOPSIS int amdgpu_pll_get_shared_nondp_ppll (struct drm_crtc *crtc ); ARGUMENTS crtc drm crtc DESCRIPTION Returns the PPLL (Pixel PLL) used by another non-DP crtc/encoder which can be shared (i.e., same clock). SEE ALSO Ker...
amdgpu_pll_get_use_mask(9)
NAME amdgpu_pll_get_use_mask - look up a mask of which pplls are in use SYNOPSIS u32 amdgpu_pll_get_use_mask (struct drm_crtc *crtc ); ARGUMENTS crtc drm crtc DESCRIPTION Returns the mask of which PPLLs (Pixel PLLs) are in use. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c amdgpu_pll_reduce_...
amdgpu_pll_reduce_ratio(9)
NAME amdgpu_pll_reduce_ratio - fractional number reduction SYNOPSIS void amdgpu_pll_reduce_ratio (unsigned *nom , unsigned *den , unsigned nom_min , unsigned den_min ); ARGUMENTS nom nominator den denominator nom_min minimum value for nominator den_min minimum value for...
amdgpu_pm_dev_state_check(9)
NAME amdgpu_pm_dev_state_check - Check if device can be accessed. SYNOPSIS int amdgpu_pm_dev_state_check (struct amdgpu_device *adev , bool runpm ); ARGUMENTS adev Target device. runpm Check runpm status for suspend state checks. DESCRIPTION Checks the state of the adev for access. Return 0 if t...
amdgpu_pm_get_access(9)
NAME amdgpu_pm_get_access - Check if device can be accessed, resume if needed. SYNOPSIS int amdgpu_pm_get_access (struct amdgpu_device *adev ); ARGUMENTS adev Target device. DESCRIPTION Checks the state of the adev for access. Use runtime pm API to resume if needed. Return 0 if the device is accessible or a n...
amdgpu_pm_get_access_if_active(9)
NAME amdgpu_pm_get_access_if_active - Check if device is active for access. SYNOPSIS int amdgpu_pm_get_access_if_active (struct amdgpu_device *adev ); ARGUMENTS adev Target device. DESCRIPTION Checks the state of the adev for access. Use runtime pm API to determine if device is active. Allow access only if de...
amdgpu_pm_put_access(9)
NAME amdgpu_pm_put_access - Put to auto suspend mode after a device access. SYNOPSIS void amdgpu_pm_put_access (struct amdgpu_device *adev ); ARGUMENTS adev Target device. DESCRIPTION Should be paired with amdgpu_pm_get_access* calls SEE ALSO Kernel file ./drivers/gpu/drm/amd/pm/amdgpu_pm.c amdgpu_pm_dev_st...
amdgpu_preempt_mgr_del(9)
NAME amdgpu_preempt_mgr_del - free ranges SYNOPSIS void amdgpu_preempt_mgr_del (struct ttm_resource_manager *man , struct ttm_resource *res ); ARGUMENTS man TTM memory type manager res TTM memory object DESCRIPTION Free the allocated GTT again. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdg...
amdgpu_preempt_mgr_fini(9)
NAME amdgpu_preempt_mgr_fini - free and destroy GTT manager SYNOPSIS void amdgpu_preempt_mgr_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Destroy and free the GTT manager, returns -EBUSY if ranges are still allocated inside it. SEE ALSO Kernel file ./drivers/gpu/drm/am...
amdgpu_preempt_mgr_init(9)
NAME amdgpu_preempt_mgr_init - init PREEMPT manager and DRM MM SYNOPSIS int amdgpu_preempt_mgr_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate and initialize the GTT manager. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c Kernel API(9), am...
amdgpu_preempt_mgr_new(9)
NAME amdgpu_preempt_mgr_new - allocate a new node SYNOPSIS int amdgpu_preempt_mgr_new (struct ttm_resource_manager *man , struct ttm_buffer_object *tbo , const struct ttm_place *place , struct ttm_resource **res ); ARGUMENTS man TTM memory type manager tbo TTM BO we need this range for ...
amdgpu_ras_eeprom_append(9)
NAME amdgpu_ras_eeprom_append - - append records to the EEPROM RAS table SYNOPSIS int amdgpu_ras_eeprom_append (struct amdgpu_ras_eeprom_control *control , struct eeprom_table_record *record , const u32 num ); ARGUMENTS control pointer to control structure record array of records to append nu...
amdgpu_ras_eeprom_read(9)
NAME amdgpu_ras_eeprom_read - - read EEPROM SYNOPSIS int amdgpu_ras_eeprom_read (struct amdgpu_ras_eeprom_control *control , struct eeprom_table_record *record , const u32 num ); ARGUMENTS control pointer to control structure record array of records to read into num number of records ...
amdgpu_ras_eeprom_reset_table(9)
NAME amdgpu_ras_eeprom_reset_table - - Reset the RAS EEPROM table SYNOPSIS int amdgpu_ras_eeprom_reset_table (struct amdgpu_ras_eeprom_control *control ); ARGUMENTS control pointer to control structure DESCRIPTION Reset the contents of the header of the RAS EEPROM table. Return 0 on success, -errno on error. S...
amdgpu_ras_query_error_count(9)
NAME amdgpu_ras_query_error_count - - Get error counts of all IPs or specific IP SYNOPSIS int amdgpu_ras_query_error_count (struct amdgpu_device *adev , unsigned long *ce_count , unsigned long *ue_count , struct ras_query_if *query_info ); ARGUMENTS adev pointer to AMD GPU device ce_count pointer to...
amdgpu_ras_query_error_count_helper(9)
NAME amdgpu_ras_query_error_count_helper - - Get error counter for specific IP SYNOPSIS int amdgpu_ras_query_error_count_helper (struct amdgpu_device *adev , unsigned long *ce_count , unsigned long *ue_count , struct ras_query_if *query_info ); ARGUMENTS adev pointer to AMD GPU device ce_count point...
amdgpu_register_atpx_handler(9)
NAME amdgpu_register_atpx_handler - register with vga_switcheroo SYNOPSIS void amdgpu_register_atpx_handler (void ); ARGUMENTS void no arguments DESCRIPTION Register the PX callbacks with vga_switcheroo (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c amdgpu_atpx_cal...
amdgpu_res_cleared(9)
NAME amdgpu_res_cleared - check if blocks are cleared SYNOPSIS bool amdgpu_res_cleared (struct amdgpu_res_cursor *cur ); ARGUMENTS cur the cursor to extract the block DESCRIPTION Check if the cur block is cleared SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_res_cursor.h amdgpu_res_first(9), amdg...
amdgpu_res_cpu_visible(9)
NAME amdgpu_res_cpu_visible - Check that resource can be accessed by CPU SYNOPSIS bool amdgpu_res_cpu_visible (struct amdgpu_device *adev , struct ttm_resource *res ); ARGUMENTS adev amdgpu device res the resource to check RETURN true if the full resource is CPU visible, false otherwise. SEE ...
amdgpu_res_first(9)
NAME amdgpu_res_first - initialize a amdgpu_res_cursor SYNOPSIS void amdgpu_res_first (struct ttm_resource *res , uint64_t start , uint64_t size , struct amdgpu_res_cursor *cur ); ARGUMENTS res TTM resource object to walk start Start of the range size Size of the range cur...
amdgpu_res_next(9)
NAME amdgpu_res_next - advance the cursor SYNOPSIS void amdgpu_res_next (struct amdgpu_res_cursor *cur , uint64_t size ); ARGUMENTS cur the cursor to advance size number of bytes to move forward DESCRIPTION Move the cursor size bytes forwrad, walking to the next node if necessary. SEE ALSO Ke...
amdgpu_ring_alloc(9)
NAME amdgpu_ring_alloc - allocate space on the ring buffer SYNOPSIS int amdgpu_ring_alloc (struct amdgpu_ring *ring , unsigned int ndw ); ARGUMENTS ring amdgpu_ring structure holding ring information ndw number of dwords to allocate in the ring buffer DESCRIPTION Allocate ndw dwords in the rin...
amdgpu_ring_alloc_reemit(9)
NAME amdgpu_ring_alloc_reemit - allocate space on the ring buffer for reemit SYNOPSIS void amdgpu_ring_alloc_reemit (struct amdgpu_ring *ring , unsigned int ndw ); ARGUMENTS ring amdgpu_ring structure holding ring information ndw number of dwords to allocate in the ring buffer DESCRIPTION Allo...
amdgpu_ring_commit(9)
NAME amdgpu_ring_commit - tell the GPU to execute the new commands on the ring buffer SYNOPSIS void amdgpu_ring_commit (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring structure holding ring information DESCRIPTION Update the wptr (write pointer) to tell the GPU to execute new commands on the ring buff...
amdgpu_ring_emit_reg_write_reg_wait_helper(9)
NAME amdgpu_ring_emit_reg_write_reg_wait_helper - ring helper SYNOPSIS void amdgpu_ring_emit_reg_write_reg_wait_helper (struct amdgpu_ring *ring , uint32_t reg0 , uint32_t reg1 , uint32_t ref , uint32_t mask ); ARGUMENTS ring ring to write to reg0 register to write reg1 register t...
amdgpu_ring_fini(9)
NAME amdgpu_ring_fini - tear down the driver ring struct. SYNOPSIS void amdgpu_ring_fini (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring structure holding ring information DESCRIPTION Tear down the driver information for the selected ring (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdg...
amdgpu_ring_generic_pad_ib(9)
NAME amdgpu_ring_generic_pad_ib - pad IB with NOP packets SYNOPSIS void amdgpu_ring_generic_pad_ib (struct amdgpu_ring *ring , struct amdgpu_ib *ib ); ARGUMENTS ring amdgpu_ring structure holding ring information ib IB to add NOP packets to DESCRIPTION This is the generic pad_ib function for ...
amdgpu_ring_init(9)
NAME amdgpu_ring_init - init driver ring struct. SYNOPSIS int amdgpu_ring_init (struct amdgpu_device *adev , struct amdgpu_ring *ring , unsigned int max_dw , struct amdgpu_irq_src *irq_src , unsigned int irq_type , unsigned int hw_prio , atomic_t *sched_score ); ARGUMENTS adev amdgpu_device pointer rin...
amdgpu_ring_insert_nop(9)
NAME amdgpu_ring_insert_nop - insert NOP packets SYNOPSIS void amdgpu_ring_insert_nop (struct amdgpu_ring *ring , uint32_t count ); ARGUMENTS ring amdgpu_ring structure holding ring information count the number of NOP packets to insert DESCRIPTION This is the generic insert_nop function for ring...
amdgpu_ring_max_ibs(9)
NAME amdgpu_ring_max_ibs - Return max IBs that fit in a single submission. SYNOPSIS unsigned int amdgpu_ring_max_ibs (enum amdgpu_ring_type type ); ARGUMENTS type ring type for which to return the limit. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_ring_alloc(9), amdgpu_ring_...
amdgpu_ring_mux_get_rptr(9)
NAME amdgpu_ring_mux_get_rptr - get the readptr of the software ring SYNOPSIS u64 amdgpu_ring_mux_get_rptr (struct amdgpu_ring_mux *mux , struct amdgpu_ring *ring ); ARGUMENTS mux the multiplexer the software rings attach to ring the software ring of which we calculate the readptr DESCRIPTION ...
amdgpu_ring_patch_cond_exec(9)
NAME amdgpu_ring_patch_cond_exec - patch dw count of conditional execute SYNOPSIS void amdgpu_ring_patch_cond_exec (struct amdgpu_ring *ring , unsigned int offset ); ARGUMENTS ring amdgpu_ring structure offset offset returned by amdgpu_ring_init_cond_exec DESCRIPTION Calculate the dw count and pa...
amdgpu_ring_soft_recovery(9)
NAME amdgpu_ring_soft_recovery - try to soft recover a ring lockup SYNOPSIS bool amdgpu_ring_soft_recovery (struct amdgpu_ring *ring , unsigned int vmid , struct dma_fence *fence ); ARGUMENTS ring ring to try the recovery on vmid VMID we try to get going again fence timedout fence ...
amdgpu_ring_test_helper(9)
NAME amdgpu_ring_test_helper - tests ring and set sched readiness status SYNOPSIS int amdgpu_ring_test_helper (struct amdgpu_ring *ring ); ARGUMENTS ring ring to try the recovery on DESCRIPTION Tests ring and set sched readiness status Returns 0 on success, error on failure. SEE ALSO Kernel file ./driver...
amdgpu_ring_undo(9)
NAME amdgpu_ring_undo - reset the wptr SYNOPSIS void amdgpu_ring_undo (struct amdgpu_ring *ring ); ARGUMENTS ring amdgpu_ring structure holding ring information DESCRIPTION Reset the driver's copy of the wptr (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_ring_max_i...
amdgpu_sdma_is_shared_inv_eng(9)
NAME amdgpu_sdma_is_shared_inv_eng - Check if a ring is an SDMA ring that shares a VM invalidation engine SYNOPSIS bool amdgpu_sdma_is_shared_inv_eng (struct amdgpu_device *adev , struct amdgpu_ring *ring ); ARGUMENTS adev Pointer to the AMDGPU device structure ring Pointer to the ring structure...
amdgpu_sdma_reset_engine(9)
NAME amdgpu_sdma_reset_engine - Reset a specific SDMA engine SYNOPSIS int amdgpu_sdma_reset_engine (struct amdgpu_device *adev , uint32_t instance_id , bool caller_handles_kernel_queues ); ARGUMENTS adev Pointer to the AMDGPU device instance_id Logical ID of the SDMA engine instance to reset ca...
amdgpu_seq64_alloc(9)
NAME amdgpu_seq64_alloc - Allocate a 64 bit memory SYNOPSIS int amdgpu_seq64_alloc (struct amdgpu_device *adev , u64 *va , u64 *gpu_addr , u64 **cpu_addr ); ARGUMENTS adev amdgpu_device pointer va VA to access the seq in process address space gpu_addr GPU address to access the seq ...
amdgpu_seq64_fini(9)
NAME amdgpu_seq64_fini - Cleanup seq64 driver SYNOPSIS void amdgpu_seq64_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Free the memory space allocated for seq64. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c Kernel API(9), amdgpu_seq64_get_va_base(9),...
amdgpu_seq64_free(9)
NAME amdgpu_seq64_free - Free the given 64 bit memory SYNOPSIS void amdgpu_seq64_free (struct amdgpu_device *adev , u64 va ); ARGUMENTS adev amdgpu_device pointer va gpu start address to be freed DESCRIPTION Free the given 64 bit memory from seq64 pool. SEE ALSO Kernel file ./drivers/gpu/drm...
amdgpu_seq64_get_va_base(9)
NAME amdgpu_seq64_get_va_base - Get the seq64 va base address SYNOPSIS u64 amdgpu_seq64_get_va_base (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer RETURN va base address on success SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c Kernel API(9), amdgpu_seq64_map(9), amdgpu...
amdgpu_seq64_init(9)
NAME amdgpu_seq64_init - Initialize seq64 driver SYNOPSIS int amdgpu_seq64_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate the required memory space for seq64. RETURN 0 on success or a negative error code on failure SEE ALSO Kernel file ./drivers/gpu/drm/amd/amd...
amdgpu_seq64_map(9)
NAME amdgpu_seq64_map - Map the seq64 memory to VM SYNOPSIS int amdgpu_seq64_map (struct amdgpu_device *adev , struct amdgpu_vm *vm , struct amdgpu_bo_va **bo_va ); ARGUMENTS adev amdgpu_device pointer vm vm pointer bo_va bo_va pointer DESCRIPTION Map the seq64 memory to the giv...
amdgpu_seq64_unmap(9)
NAME amdgpu_seq64_unmap - Unmap the seq64 memory SYNOPSIS void amdgpu_seq64_unmap (struct amdgpu_device *adev , struct amdgpu_fpriv *fpriv ); ARGUMENTS adev amdgpu_device pointer fpriv DRM file private DESCRIPTION Unmap the seq64 memory from the given VM. SEE ALSO Kernel file ./drivers/gpu/drm/...
amdgpu_switcheroo_can_switch(9)
NAME amdgpu_switcheroo_can_switch - see if switcheroo state can change SYNOPSIS bool amdgpu_switcheroo_can_switch (struct pci_dev *pdev ); ARGUMENTS pdev pci dev pointer DESCRIPTION Callback for the switcheroo driver. Check of the switcheroo state can be changed. Returns true if the state can be changed, fa...
amdgpu_switcheroo_set_state(9)
NAME amdgpu_switcheroo_set_state - set switcheroo state SYNOPSIS void amdgpu_switcheroo_set_state (struct pci_dev *pdev , enum vga_switcheroo_state state ); ARGUMENTS pdev pci dev pointer state vga_switcheroo state DESCRIPTION Callback for the switcheroo driver. Suspends or resumes the asics be...
amdgpu_sync_add_later(9)
NAME amdgpu_sync_add_later - add the fence to the hash SYNOPSIS bool amdgpu_sync_add_later (struct amdgpu_sync *sync , struct dma_fence *f ); ARGUMENTS sync sync object to add the fence to f fence to add DESCRIPTION Tries to add the fence to an existing hash entry. Returns true when an entry...