id
stringlengths
4
63
text
stringlengths
153
8.81M
amdgpu_device_ip_resume_phase1(9)
NAME amdgpu_device_ip_resume_phase1 - run resume for hardware IPs SYNOPSIS int amdgpu_device_ip_resume_phase1 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION First resume function for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the resume...
amdgpu_device_ip_resume_phase2(9)
NAME amdgpu_device_ip_resume_phase2 - run resume for hardware IPs SYNOPSIS int amdgpu_device_ip_resume_phase2 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Second resume function for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the resum...
amdgpu_device_ip_resume_phase3(9)
NAME amdgpu_device_ip_resume_phase3 - run resume for hardware IPs SYNOPSIS int amdgpu_device_ip_resume_phase3 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Third resume function for hardware IPs. The list of all the hardware IPs that make up the asic is walked and the resume...
amdgpu_device_ip_set_clockgating_state(9)
NAME amdgpu_device_ip_set_clockgating_state - set the CG state SYNOPSIS int amdgpu_device_ip_set_clockgating_state (struct amdgpu_device *adev , enum amd_ip_block_type block_type , enum amd_clockgating_state state ); ARGUMENTS adev amdgpu_device pointer block_type Type of hardware IP (SMU, GFX, UVD, e...
amdgpu_device_ip_set_powergating_state(9)
NAME amdgpu_device_ip_set_powergating_state - set the PG state SYNOPSIS int amdgpu_device_ip_set_powergating_state (struct amdgpu_device *adev , enum amd_ip_block_type block_type , enum amd_powergating_state state ); ARGUMENTS adev amdgpu_device pointer block_type Type of hardware IP (SMU, GFX, UVD, e...
amdgpu_device_ip_soft_reset(9)
NAME amdgpu_device_ip_soft_reset - do a soft reset SYNOPSIS int amdgpu_device_ip_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 soft_reset callbacks are run if the block is hung. soft_reset ha...
amdgpu_device_ip_suspend(9)
NAME amdgpu_device_ip_suspend - run suspend for hardware IPs SYNOPSIS int amdgpu_device_ip_suspend (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main suspend function for hardware IPs. The list of all the hardware IPs that make up the asic is walked, clockgating is disable...
amdgpu_device_ip_suspend_phase1(9)
NAME amdgpu_device_ip_suspend_phase1 - run suspend for hardware IPs (phase 1) SYNOPSIS int amdgpu_device_ip_suspend_phase1 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main suspend function for hardware IPs. The list of all the hardware IPs that make up the asic is walked,...
amdgpu_device_ip_suspend_phase2(9)
NAME amdgpu_device_ip_suspend_phase2 - run suspend for hardware IPs (phase 2) SYNOPSIS int amdgpu_device_ip_suspend_phase2 (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Main suspend function for hardware IPs. The list of all the hardware IPs that make up the asic is walked...
amdgpu_device_ip_wait_for_idle(9)
NAME amdgpu_device_ip_wait_for_idle - wait for idle SYNOPSIS int amdgpu_device_ip_wait_for_idle (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 Waits for the request hardware IP to...
amdgpu_device_is_peer_accessible(9)
NAME amdgpu_device_is_peer_accessible - Check peer access through PCIe BAR SYNOPSIS bool amdgpu_device_is_peer_accessible (struct amdgpu_device *adev , struct amdgpu_device *peer_adev ); ARGUMENTS adev amdgpu_device pointer peer_adev amdgpu_device pointer for peer device trying to access adev DESCRI...
amdgpu_device_mem_scratch_fini(9)
NAME amdgpu_device_mem_scratch_fini - Free the VRAM scratch page SYNOPSIS void amdgpu_device_mem_scratch_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Frees the VRAM scratch page. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API(9), Kernel AP...
amdgpu_device_mem_scratch_init(9)
NAME amdgpu_device_mem_scratch_init - allocate the VRAM scratch page SYNOPSIS int amdgpu_device_mem_scratch_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocates a scratch page of VRAM for use by various things in the driver. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
amdgpu_device_mm_access(9)
NAME amdgpu_device_mm_access - access vram by MM_INDEX/MM_DATA SYNOPSIS void amdgpu_device_mm_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 th...
amdgpu_device_need_post(9)
NAME amdgpu_device_need_post - check if the hw need post or not SYNOPSIS bool amdgpu_device_need_post (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Check if the asic has been initialized (all asics) at driver startup or post is needed if hw reset is performed. Returns true ...
amdgpu_device_parse_gpu_info_fw(9)
NAME amdgpu_device_parse_gpu_info_fw - parse gpu info firmware SYNOPSIS int amdgpu_device_parse_gpu_info_fw (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Parses the asic configuration parameters specified in the gpu info firmware and makes them available to the driver for use...
amdgpu_device_partner_bandwidth(9)
NAME amdgpu_device_partner_bandwidth - find the bandwidth of appropriate partner SYNOPSIS void amdgpu_device_partner_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 ...
amdgpu_device_pci_config_reset(9)
NAME amdgpu_device_pci_config_reset - reset the GPU SYNOPSIS void amdgpu_device_pci_config_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Resets the GPU using the pci config reset sequence. Only applicable to asics prior to vega10. SEE ALSO Kernel file ./drivers/gpu/dr...
amdgpu_device_pci_reset(9)
NAME amdgpu_device_pci_reset - reset the GPU using generic PCI means SYNOPSIS int amdgpu_device_pci_reset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Resets the GPU using generic pci reset interfaces (FLR, SBR, etc.). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgp...
amdgpu_device_pm_notifier(9)
NAME amdgpu_device_pm_notifier - Notification block for Suspend/Hibernate events SYNOPSIS int amdgpu_device_pm_notifier (struct notifier_block *nb , unsigned long mode , void *data ); ARGUMENTS nb notifier block mode suspend mode data data DESCRIPTION This function is called wh...
amdgpu_device_prepare(9)
NAME amdgpu_device_prepare - prepare for device suspend SYNOPSIS int amdgpu_device_prepare (struct drm_device *dev ); ARGUMENTS dev drm dev pointer DESCRIPTION Prepare to put the hw in the suspend state (all asics). Returns 0 for success or an error on failure. Called at driver suspend. SEE ALSO Kernel fi...
amdgpu_device_program_register_sequence(9)
NAME amdgpu_device_program_register_sequence - program an array of registers. SYNOPSIS void amdgpu_device_program_register_sequence (struct amdgpu_device *adev , const u32 *registers , const u32 array_size ); ARGUMENTS adev amdgpu_device pointer registers pointer to the register array array_s...
amdgpu_device_reset_sriov(9)
NAME amdgpu_device_reset_sriov - reset ASIC for SR-IOV vf SYNOPSIS int amdgpu_device_reset_sriov (struct amdgpu_device *adev , struct amdgpu_reset_context *reset_context ); ARGUMENTS adev amdgpu_device pointer reset_context amdgpu reset context pointer DESCRIPTION do VF FLR and rein...
amdgpu_device_resize_fb_bar(9)
NAME amdgpu_device_resize_fb_bar - try to resize FB BAR SYNOPSIS int amdgpu_device_resize_fb_bar (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Try to resize FB BAR to make all VRAM CPU accessible. We try very hard not to fail, but if any of the BARs is not accessible after th...
amdgpu_device_resume(9)
NAME amdgpu_device_resume - initiate device resume SYNOPSIS int amdgpu_device_resume (struct drm_device *dev , bool notify_clients ); ARGUMENTS dev drm dev pointer notify_clients notify in-kernel DRM clients DESCRIPTION Bring the hw back to operating state (all asics). Returns 0 f...
amdgpu_device_rreg(9)
NAME amdgpu_device_rreg - read a memory mapped IO or indirect register SYNOPSIS uint32_t amdgpu_device_rreg (struct amdgpu_device *adev , uint32_t reg , uint32_t acc_flags ); ARGUMENTS adev amdgpu_device pointer reg dword aligned register offset acc_flags access flags which require sp...
amdgpu_device_set_cg_state(9)
NAME amdgpu_device_set_cg_state - set clockgating for amdgpu device SYNOPSIS int amdgpu_device_set_cg_state (struct amdgpu_device *adev , enum amd_clockgating_state state ); ARGUMENTS adev amdgpu_device pointer state clockgating state (gate or ungate) DESCRIPTION The list of all the hardware IPs...
amdgpu_device_should_recover_gpu(9)
NAME amdgpu_device_should_recover_gpu - check if we should try GPU recovery SYNOPSIS bool amdgpu_device_should_recover_gpu (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Check amdgpu_gpu_recovery and SRIOV status to see if we should try to recover a hung GPU. SEE ALSO Kernel ...
amdgpu_device_should_use_aspm(9)
NAME amdgpu_device_should_use_aspm - check if the device should program ASPM SYNOPSIS bool amdgpu_device_should_use_aspm (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Confirm whether the module parameter and pcie bridge agree that ASPM should be set for this device. Returns ...
amdgpu_device_smu_fini_early(9)
NAME amdgpu_device_smu_fini_early - smu hw_fini wrapper SYNOPSIS void amdgpu_device_smu_fini_early (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION For ASICs need to disable SMC first SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c Kernel API(9), Kernel API(9)...
amdgpu_device_supports_baco(9)
NAME amdgpu_device_supports_baco - Does the device support BACO SYNOPSIS int amdgpu_device_supports_baco (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer RETURN 1 if the device supports BACO; 3 if the device supports MACO (only works if BACO is supported) otherwise return 0. SEE ALSO Kerne...
amdgpu_device_supports_boco(9)
NAME amdgpu_device_supports_boco - Is the device a dGPU with ACPI power resources SYNOPSIS bool amdgpu_device_supports_boco (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Returns true if the device is a dGPU with ACPI power control, otherwise return false. SEE ALSO Kernel fi...
amdgpu_device_supports_px(9)
NAME amdgpu_device_supports_px - Is the device a dGPU with ATPX power control SYNOPSIS bool amdgpu_device_supports_px (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Returns true if the device is a dGPU with ATPX power control, otherwise return false. SEE ALSO Kernel file ./...
amdgpu_device_supports_smart_shift(9)
NAME amdgpu_device_supports_smart_shift - Is the device dGPU with smart shift support SYNOPSIS bool amdgpu_device_supports_smart_shift (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Returns true if the device is a dGPU with Smart Shift support, otherwise returns false. SEE AL...
amdgpu_device_suspend(9)
NAME amdgpu_device_suspend - initiate device suspend SYNOPSIS int amdgpu_device_suspend (struct drm_device *dev , bool notify_clients ); ARGUMENTS dev drm dev pointer notify_clients notify in-kernel DRM clients DESCRIPTION Puts the hw in the suspend state (all asics). Returns 0 fo...
amdgpu_device_switch_gang(9)
NAME amdgpu_device_switch_gang - switch to a new gang SYNOPSIS struct dma_fence * amdgpu_device_switch_gang (struct amdgpu_device *adev , struct dma_fence *gang ); ARGUMENTS adev amdgpu_device pointer gang the gang to switch to DESCRIPTION Try to switch to a new gang. RETURN NULL if we switche...
amdgpu_device_vga_set_decode(9)
NAME amdgpu_device_vga_set_decode - enable/disable vga decode SYNOPSIS unsigned int amdgpu_device_vga_set_decode (struct pci_dev *pdev , bool state ); ARGUMENTS pdev PCI device pointer state enable/disable vga decode DESCRIPTION Enable/disable vga decode (all asics). Returns VGA resource flags....
amdgpu_device_vram_access(9)
NAME amdgpu_device_vram_access - read/write a buffer in vram SYNOPSIS void amdgpu_device_vram_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 th...
amdgpu_device_wb_fini(9)
NAME amdgpu_device_wb_fini - Disable Writeback and free memory SYNOPSIS void amdgpu_device_wb_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Disables Writeback and frees the Writeback memory (all asics). Used at driver shutdown. SEE ALSO Kernel file ./drivers/gpu/drm/am...
amdgpu_device_wb_free(9)
NAME amdgpu_device_wb_free - Free a wb entry SYNOPSIS void amdgpu_device_wb_free (struct amdgpu_device *adev , u32 wb ); ARGUMENTS adev amdgpu_device pointer wb wb index DESCRIPTION Free a wb slot allocated for use by the driver (all asics) SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/a...
amdgpu_device_wb_get(9)
NAME amdgpu_device_wb_get - Allocate a wb entry SYNOPSIS int amdgpu_device_wb_get (struct amdgpu_device *adev , u32 *wb ); ARGUMENTS adev amdgpu_device pointer wb wb index DESCRIPTION Allocate a wb slot for use by the driver (all asics). Returns 0 on success or -EINVAL on failure. SEE ALSO ...
amdgpu_device_wb_init(9)
NAME amdgpu_device_wb_init - Init Writeback driver info and allocate memory SYNOPSIS int amdgpu_device_wb_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initializes writeback and allocates writeback memory (all asics). Used at driver startup. Returns 0 on success or an ...
amdgpu_device_wreg(9)
NAME amdgpu_device_wreg - write to a memory mapped IO or indirect register SYNOPSIS void amdgpu_device_wreg (struct amdgpu_device *adev , uint32_t reg , uint32_t v , uint32_t acc_flags ); ARGUMENTS adev amdgpu_device pointer reg dword aligned register offset v 32 bit value to ...
amdgpu_device_xcc_rreg(9)
NAME amdgpu_device_xcc_rreg - read a memory mapped IO or indirect register with specific XCC SYNOPSIS uint32_t amdgpu_device_xcc_rreg (struct amdgpu_device *adev , uint32_t reg , uint32_t acc_flags , uint32_t xcc_id ); ARGUMENTS adev amdgpu_device pointer reg dword aligned register offset ...
amdgpu_device_xcc_wreg(9)
NAME amdgpu_device_xcc_wreg - write to a memory mapped IO or indirect register with specific XCC SYNOPSIS void amdgpu_device_xcc_wreg (struct amdgpu_device *adev , uint32_t reg , uint32_t v , uint32_t acc_flags , uint32_t xcc_id ); ARGUMENTS adev amdgpu_device pointer reg dword aligned register...
amdgpu_disable_vblank_kms(9)
NAME amdgpu_disable_vblank_kms - disable vblank interrupt SYNOPSIS void amdgpu_disable_vblank_kms (struct drm_crtc *crtc ); ARGUMENTS crtc crtc to disable vblank interrupt for DESCRIPTION Disable the interrupt on the requested crtc (all asics). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdg...
amdgpu_display_hotplug_work_func(9)
NAME amdgpu_display_hotplug_work_func - work handler for display hotplug event SYNOPSIS void amdgpu_display_hotplug_work_func (struct work_struct *work ); ARGUMENTS work work struct pointer DESCRIPTION This is the hotplug event work handler (all ASICs). The work gets scheduled from the IRQ handler if there w...
amdgpu_dm_atomic_check(9)
NAME amdgpu_dm_atomic_check - Atomic check implementation for AMDgpu DM. SYNOPSIS int amdgpu_dm_atomic_check (struct drm_device *dev , struct drm_atomic_state *state ); ARGUMENTS dev The DRM device state The atomic state to commit DESCRIPTION Validate that the given atomic state is programmab...
amdgpu_dm_atomic_commit_tail(9)
NAME amdgpu_dm_atomic_commit_tail - AMDgpu DM's commit tail implementation. SYNOPSIS void amdgpu_dm_atomic_commit_tail (struct drm_atomic_state *state ); ARGUMENTS state The atomic state to commit DESCRIPTION This will tell DC to commit the constructed DC state from atomic_check, programming the hardware. Any ...
amdgpu_dm_check_crtc_color_mgmt(9)
NAME amdgpu_dm_check_crtc_color_mgmt - Check if DRM color props are programmable by DC. SYNOPSIS int amdgpu_dm_check_crtc_color_mgmt (struct dm_crtc_state *crtc , bool check_only ); ARGUMENTS crtc amdgpu_dm crtc state check_only only check color state without update dc stream DESCRIPTION This functi...
amdgpu_dm_connector_detect(9)
NAME amdgpu_dm_connector_detect - Detect whether a DRM connector is connected to a display SYNOPSIS enum drm_connector_status amdgpu_dm_connector_detect (struct drm_connector *connector , bool force ); ARGUMENTS connector The DRM connector we are checking. We convert it to amdgpu_dm_connector so we can read the DC ...
amdgpu_dm_connector_poll(9)
NAME amdgpu_dm_connector_poll - Poll a connector to see if it's connected to a display SYNOPSIS enum drm_connector_status amdgpu_dm_connector_poll (struct amdgpu_dm_connector *aconnector , bool force ); ARGUMENTS aconnector DM connector to poll (owns base drm_connector and dc_link) force if true, force...
amdgpu_dm_crtc_handle_crc_irq(9)
NAME amdgpu_dm_crtc_handle_crc_irq - Report to DRM the CRC on given CRTC. SYNOPSIS void amdgpu_dm_crtc_handle_crc_irq (struct drm_crtc *crtc ); ARGUMENTS crtc DRM CRTC object. DESCRIPTION This function should be called at the end of a vblank, when the fb has been fully processed through the pipe. SEE ALSO Ke...
amdgpu_dm_crtc_set_panel_sr_feature(9)
NAME amdgpu_dm_crtc_set_panel_sr_feature - Manage panel self-refresh features. SYNOPSIS void amdgpu_dm_crtc_set_panel_sr_feature (struct vblank_control_work *vblank_work , bool vblank_enabled , bool allow_sr_entry ); ARGUMENTS vblank_work is a pointer to a struct vblank_control_work object. vblank_enabled ...
amdgpu_dm_dump_links_and_sinks(9)
NAME amdgpu_dm_dump_links_and_sinks - Debug dump of all DC links and their sinks SYNOPSIS void amdgpu_dm_dump_links_and_sinks (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Iterates through all DC links and dumps information about local and remote (MST) sinks. Should be called...
amdgpu_dm_hpd_fini(9)
NAME amdgpu_dm_hpd_fini - hpd tear down callback. SYNOPSIS void amdgpu_dm_hpd_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Tear down the hpd pins used by the card (evergreen+). Disable the hpd interrupts. SEE ALSO Kernel file ./drivers/gpu/drm/amd/display/amdgpu_d...
amdgpu_dm_hpd_init(9)
NAME amdgpu_dm_hpd_init - hpd setup callback. SYNOPSIS void amdgpu_dm_hpd_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Setup the hpd pins used by the card (evergreen+). Enable the pin, set the polarity, and enable the hpd interrupts. SEE ALSO Kernel file ./drivers...
amdgpu_dm_init_color_mod(9)
NAME amdgpu_dm_init_color_mod - Initialize the color module. SYNOPSIS void amdgpu_dm_init_color_mod (void ); ARGUMENTS void no arguments DESCRIPTION We're not using the full color module, only certain components. Only call setup functions for components that we need. SEE ALSO Kernel file ./drivers/gpu/d...
amdgpu_dm_irq_fini(9)
NAME amdgpu_dm_irq_fini - deallocate internal structures of 'amdgpu_dm_irq'. SYNOPSIS void amdgpu_dm_irq_fini (struct amdgpu_device *adev ); ARGUMENTS adev -- undescribed -- DESCRIPTION This function should be called exactly once - during DM destruction. SEE ALSO Kernel file ./drivers/gpu/drm/amd/display...
amdgpu_dm_irq_handler(9)
NAME amdgpu_dm_irq_handler - Generic DM IRQ handler SYNOPSIS int amdgpu_dm_irq_handler (struct amdgpu_device *adev , struct amdgpu_irq_src *source , struct amdgpu_iv_entry *entry ); ARGUMENTS adev amdgpu base driver device containing the DM device source Unused entry Data about the t...
amdgpu_dm_irq_init(9)
NAME amdgpu_dm_irq_init - Initialize internal structures of 'amdgpu_dm_irq'. SYNOPSIS int amdgpu_dm_irq_init (struct amdgpu_device *adev ); ARGUMENTS adev -- undescribed -- DESCRIPTION This function should be called exactly once - during DM initialization. RETURN 0 - success non-zero - error SEE ALSO Kernel...
amdgpu_dm_irq_register_interrupt(9)
NAME amdgpu_dm_irq_register_interrupt - register irq handler for Display block. SYNOPSIS void * amdgpu_dm_irq_register_interrupt (struct amdgpu_device *adev , struct dc_interrupt_params *int_params , void (*ih)(void *) , void *handler_args ); ARGUMENTS adev AMD DRM device int_params parameters for the...
amdgpu_dm_irq_resume_early(9)
NAME amdgpu_dm_irq_resume_early - enable HPDRX ASIC interrupts during resume. amdgpu_dm_irq_resume - enable ASIC interrupt during resume. SYNOPSIS void amdgpu_dm_irq_resume_early (struct amdgpu_device *adev ); ARGUMENTS adev -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu...
amdgpu_dm_irq_suspend(9)
NAME amdgpu_dm_irq_suspend - disable ASIC interrupt during suspend. SYNOPSIS void amdgpu_dm_irq_suspend (struct amdgpu_device *adev ); ARGUMENTS adev -- undescribed -- SEE ALSO Kernel file ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h amdgpu_dm_irq_init(9), amdgpu_dm_irq_fini(9), amdgpu_dm_irq_regis...
amdgpu_dm_irq_unregister_interrupt(9)
NAME amdgpu_dm_irq_unregister_interrupt - unregister handler which was registered by amdgpu_dm_irq_register_interrupt(). SYNOPSIS void amdgpu_dm_irq_unregister_interrupt (struct amdgpu_device *adev , enum dc_irq_source irq_source , void *ih_index ); ARGUMENTS adev AMD DRM device. irq_source -- undescr...
amdgpu_dm_psr_wait_disable(9)
NAME amdgpu_dm_psr_wait_disable - Wait for eDP panel to exit PSR SYNOPSIS bool amdgpu_dm_psr_wait_disable (struct dc_stream_state *stream ); ARGUMENTS stream stream state attached to the eDP link DESCRIPTION Waits for a max of 500ms for the eDP panel to exit PSR. RETURN true if panel exited PSR, false otherwis...
amdgpu_dm_update_crtc_color_mgmt(9)
NAME amdgpu_dm_update_crtc_color_mgmt - Maps DRM color management to DC stream. SYNOPSIS int amdgpu_dm_update_crtc_color_mgmt (struct dm_crtc_state *crtc ); ARGUMENTS crtc amdgpu_dm crtc state DESCRIPTION With no plane level color management properties we're free to use any of the HW blocks as long as the C...
amdgpu_dm_update_freesync_caps(9)
NAME amdgpu_dm_update_freesync_caps - Update Freesync capabilities SYNOPSIS void amdgpu_dm_update_freesync_caps (struct drm_connector *connector , const struct drm_edid *drm_edid ); ARGUMENTS connector Connector to query. drm_edid DRM EDID from monitor DESCRIPTION Amdgpu supports Freesync in DP and HDM...
amdgpu_dm_update_plane_color_mgmt(9)
NAME amdgpu_dm_update_plane_color_mgmt - Maps DRM color management to DC plane. SYNOPSIS int amdgpu_dm_update_plane_color_mgmt (struct dm_crtc_state *crtc , struct drm_plane_state *plane_state , struct dc_plane_state *dc_plane_state ); ARGUMENTS crtc amdgpu_dm crtc state plane_state DRM plane state ...
amdgpu_dm_verify_lut3d_size(9)
NAME amdgpu_dm_verify_lut3d_size - verifies if 3D LUT is supported and if user shaper and 3D LUTs match the hw supported size SYNOPSIS int amdgpu_dm_verify_lut3d_size (struct amdgpu_device *adev , struct drm_plane_state *plane_state ); ARGUMENTS adev amdgpu device plane_state the DRM plane state DESCR...
amdgpu_dm_verify_lut_sizes(9)
NAME amdgpu_dm_verify_lut_sizes - verifies if DRM luts match the hw supported sizes SYNOPSIS int amdgpu_dm_verify_lut_sizes (const struct drm_crtc_state *crtc_state ); ARGUMENTS crtc_state the DRM CRTC state DESCRIPTION Verifies that the Degamma and Gamma LUTs attached to the crtc_state are of the expected size. R...
amdgpu_dma_buf_attach(9)
NAME amdgpu_dma_buf_attach - &dma_buf_ops.attach implementation SYNOPSIS int amdgpu_dma_buf_attach (struct dma_buf *dmabuf , struct dma_buf_attachment *attach ); ARGUMENTS dmabuf DMA-buf where we attach to attach attachment to add DESCRIPTION Add the attachment as user to the exported DMA-buf. SEE...
amdgpu_dma_buf_begin_cpu_access(9)
NAME amdgpu_dma_buf_begin_cpu_access - &dma_buf_ops.begin_cpu_access implementation SYNOPSIS int amdgpu_dma_buf_begin_cpu_access (struct dma_buf *dma_buf , enum dma_data_direction direction ); ARGUMENTS dma_buf Shared DMA buffer direction Direction of DMA transfer DESCRIPTION This is called before CPU ...
amdgpu_dma_buf_create_obj(9)
NAME amdgpu_dma_buf_create_obj - create BO for DMA-buf import SYNOPSIS struct drm_gem_object * amdgpu_dma_buf_create_obj (struct drm_device *dev , struct dma_buf *dma_buf ); ARGUMENTS dev DRM device dma_buf DMA-buf DESCRIPTION Creates an empty SG BO for DMA-buf import. RETURN A new GEM BO of the...
amdgpu_dma_buf_map(9)
NAME amdgpu_dma_buf_map - &dma_buf_ops.map_dma_buf implementation SYNOPSIS struct sg_table * amdgpu_dma_buf_map (struct dma_buf_attachment *attach , enum dma_data_direction dir ); ARGUMENTS attach DMA-buf attachment dir DMA direction DESCRIPTION Makes sure that the shared DMA buffer can be acces...
amdgpu_dma_buf_move_notify(9)
NAME amdgpu_dma_buf_move_notify - &attach.move_notify implementation SYNOPSIS void amdgpu_dma_buf_move_notify (struct dma_buf_attachment *attach ); ARGUMENTS attach the DMA-buf attachment DESCRIPTION Invalidate the DMA-buf attachment, making sure that the we re-create the mapping before the next use. SEE ALSO ...
amdgpu_dma_buf_pin(9)
NAME amdgpu_dma_buf_pin - &dma_buf_ops.pin implementation SYNOPSIS int amdgpu_dma_buf_pin (struct dma_buf_attachment *attach ); ARGUMENTS attach attachment to pin down DESCRIPTION Pin the BO which is backing the DMA-buf so that it can't move any more. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_...
amdgpu_dma_buf_unmap(9)
NAME amdgpu_dma_buf_unmap - &dma_buf_ops.unmap_dma_buf implementation SYNOPSIS void amdgpu_dma_buf_unmap (struct dma_buf_attachment *attach , struct sg_table *sgt , enum dma_data_direction dir ); ARGUMENTS attach DMA-buf attachment sgt sg_table to unmap dir DMA direction DESCRIPT...
amdgpu_dma_buf_unpin(9)
NAME amdgpu_dma_buf_unpin - &dma_buf_ops.unpin implementation SYNOPSIS void amdgpu_dma_buf_unpin (struct dma_buf_attachment *attach ); ARGUMENTS attach attachment to unpin DESCRIPTION Unpin a previously pinned BO to make it movable again. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c Ke...
amdgpu_dmabuf_is_xgmi_accessible(9)
NAME amdgpu_dmabuf_is_xgmi_accessible - Check if xgmi available for P2P transfer SYNOPSIS bool amdgpu_dmabuf_is_xgmi_accessible (struct amdgpu_device *adev , struct amdgpu_bo *bo ); ARGUMENTS adev amdgpu_device pointer of the importer bo amdgpu buffer object RETURN True if dmabuf accessible o...
amdgpu_doorbell_create_kernel_doorbells(9)
NAME amdgpu_doorbell_create_kernel_doorbells - Create kernel doorbells for graphics SYNOPSIS int amdgpu_doorbell_create_kernel_doorbells (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Creates doorbells for graphics driver usages. returns 0 on success, error otherwise. SEE AL...
amdgpu_doorbell_fini(9)
NAME amdgpu_doorbell_fini - Tear down doorbell driver information. SYNOPSIS void amdgpu_doorbell_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Tear down doorbell driver information (CIK) SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c amdgpu_m...
amdgpu_doorbell_get_kfd_info(9)
NAME amdgpu_doorbell_get_kfd_info - Report doorbell configuration required to setup amdkfd SYNOPSIS void amdgpu_doorbell_get_kfd_info (struct amdgpu_device *adev , phys_addr_t *aperture_base , size_t *aperture_size , size_t *start_offset ); ARGUMENTS adev amdgpu_device pointer aperture_base ...
amdgpu_doorbell_index_on_bar(9)
NAME amdgpu_doorbell_index_on_bar - Find doorbell's absolute offset in BAR SYNOPSIS uint32_t amdgpu_doorbell_index_on_bar (struct amdgpu_device *adev , struct amdgpu_bo *db_bo , uint32_t doorbell_index , uint32_t db_size ); ARGUMENTS adev amdgpu_device pointer db_bo doorbell object's bo d...
amdgpu_doorbell_init(9)
NAME amdgpu_doorbell_init - Init doorbell driver information. SYNOPSIS int amdgpu_doorbell_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Init doorbell driver information (CIK) Returns 0 on success, error on failure. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/am...
amdgpu_dpm_get_temp_metrics(9)
NAME amdgpu_dpm_get_temp_metrics - Retrieve metrics for a specific compute partition SYNOPSIS ssize_t amdgpu_dpm_get_temp_metrics (struct amdgpu_device *adev , enum smu_temp_metric_type type , void *table ); ARGUMENTS adev Pointer to the device. type Identifier for the temperature type metrics t...
amdgpu_dpm_get_xcp_metrics(9)
NAME amdgpu_dpm_get_xcp_metrics - Retrieve metrics for a specific compute partition SYNOPSIS ssize_t amdgpu_dpm_get_xcp_metrics (struct amdgpu_device *adev , int xcp_id , void *table ); ARGUMENTS adev Pointer to the device. xcp_id Identifier of the XCP for which metrics are to be retrieved. ...
amdgpu_dpm_is_temp_metrics_supported(9)
NAME amdgpu_dpm_is_temp_metrics_supported - Return if specific temperature metrics support is available SYNOPSIS bool amdgpu_dpm_is_temp_metrics_supported (struct amdgpu_device *adev , enum smu_temp_metric_type type ); ARGUMENTS adev Pointer to the device. type Identifier for the temperature typ...
amdgpu_dpm_reset_sdma_is_supported(9)
NAME amdgpu_dpm_reset_sdma_is_supported - Check if SDMA reset is supported SYNOPSIS bool amdgpu_dpm_reset_sdma_is_supported (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION This function checks if the SMU supports resetting the SDMA engine. It returns false if the hardware does...
amdgpu_driver_load_kms(9)
NAME amdgpu_driver_load_kms - Main load function for KMS. SYNOPSIS int amdgpu_driver_load_kms (struct amdgpu_device *adev , unsigned long flags ); ARGUMENTS adev pointer to struct amdgpu_device flags device flags DESCRIPTION This is the main load function for KMS (all asics). Returns 0 on succe...
amdgpu_driver_open_kms(9)
NAME amdgpu_driver_open_kms - drm callback for open SYNOPSIS int amdgpu_driver_open_kms (struct drm_device *dev , struct drm_file *file_priv ); ARGUMENTS dev drm dev pointer file_priv drm file DESCRIPTION On device open, init vm on cayman+ (all asics). Returns 0 on success, error on failure. SEE ...
amdgpu_driver_postclose_kms(9)
NAME amdgpu_driver_postclose_kms - drm callback for post close SYNOPSIS void amdgpu_driver_postclose_kms (struct drm_device *dev , struct drm_file *file_priv ); ARGUMENTS dev drm dev pointer file_priv drm file DESCRIPTION On device post close, tear down vm on cayman+ (all asics). SEE ALSO Kernel f...
amdgpu_driver_unload_kms(9)
NAME amdgpu_driver_unload_kms - Main unload function for KMS. SYNOPSIS void amdgpu_driver_unload_kms (struct drm_device *dev ); ARGUMENTS dev drm dev pointer DESCRIPTION This is the main unload function for KMS (all asics). Returns 0 on success. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_...
amdgpu_eeprom_xfer(9)
NAME amdgpu_eeprom_xfer - - Read/write from/to an I2C EEPROM device SYNOPSIS int amdgpu_eeprom_xfer (struct i2c_adapter *i2c_adap , u32 eeprom_addr , u8 *eeprom_buf , u32 buf_size , bool read ); ARGUMENTS i2c_adap pointer to the I2C adapter to use eeprom_addr EEPROM address from which to read/write ...
amdgpu_enable_vblank_kms(9)
NAME amdgpu_enable_vblank_kms - enable vblank interrupt SYNOPSIS int amdgpu_enable_vblank_kms (struct drm_crtc *crtc ); ARGUMENTS crtc crtc to enable vblank interrupt for DESCRIPTION Enable the interrupt on the requested crtc (all asics). Returns 0 on success, -EINVAL on failure. SEE ALSO Kernel file ...
amdgpu_evict_flags(9)
NAME amdgpu_evict_flags - Compute placement flags SYNOPSIS void amdgpu_evict_flags (struct ttm_buffer_object *bo , struct ttm_placement *placement ); ARGUMENTS bo The buffer object to evict placement Possible destination(s) for evicted BO DESCRIPTION Fill in placement data when ttm_bo_evict is cal...
amdgpu_fence_count_emitted(9)
NAME amdgpu_fence_count_emitted - get the count of emitted fences SYNOPSIS unsigned int amdgpu_fence_count_emitted (struct amdgpu_ring *ring ); ARGUMENTS ring ring the fence is associated with DESCRIPTION Get the number of fences emitted on the requested ring (all asics). Returns the number of emitted fences...
amdgpu_fence_driver_force_completion(9)
NAME amdgpu_fence_driver_force_completion - force signal latest fence of ring SYNOPSIS void amdgpu_fence_driver_force_completion (struct amdgpu_ring *ring ); ARGUMENTS ring fence of the ring to signal SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c amdgpu_fence_write(9), amdgpu_fence_rea...
amdgpu_fence_driver_hw_fini(9)
NAME amdgpu_fence_driver_hw_fini - tear down the fence driver for all possible rings. SYNOPSIS void amdgpu_fence_driver_hw_fini (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Tear down the fence driver for all possible rings (all asics). SEE ALSO Kernel file ./drivers/gpu/...
amdgpu_fence_driver_hw_init(9)
NAME amdgpu_fence_driver_hw_init - enable the fence driver for all possible rings. SYNOPSIS void amdgpu_fence_driver_hw_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu device pointer DESCRIPTION Enable the fence driver for all possible rings (all asics). Not all asics have all rings, so each asic w...