drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h- Extension
.h- Size
- 30642 bytes
- Lines
- 1172
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/display/drm_dp_mst_helper.hdrm/drm_atomic.hdrm/drm_connector.hdrm/drm_crtc.hdrm/drm_plane.hlink_service_types.hdrm/drm_writeback.hinclude/amdgpu_dal_power_if.hamdgpu_dm_irq.hirq_types.hsignal_types.hamdgpu_dm_crc.hmod_info_packet.h
Detected Declarations
struct aux_payloadstruct set_config_cmd_payloadstruct amdgpu_devicestruct amdgpu_crtcstruct drm_devicestruct dcstruct amdgpu_bostruct dmub_srvstruct dc_plane_statestruct dmub_notificationstruct dmub_cmd_fused_requeststruct common_irq_paramsstruct dm_compressor_infostruct dm_boot_time_crc_infostruct dmub_hpd_workstruct vblank_control_workstruct idle_workqueuestruct vupdate_offload_workstruct amdgpu_dm_luminance_datastruct amdgpu_dm_backlight_capsstruct dal_allocationstruct hpd_rx_irq_offload_work_queuestruct hpd_rx_irq_offload_workstruct amdgpu_display_managerstruct fused_io_syncstruct dsc_preferred_settingsstruct amdgpu_hdmi_vsdb_infostruct amdgpu_dm_connectorstruct amdgpu_dm_wb_connectorstruct dm_plane_statestruct dm_crtc_statestruct dm_atomic_statestruct dm_connector_stateenum amd_vsdb_panel_typeenum aux_return_code_typeenum set_config_statusenum dsc_clock_force_stateenum mst_progress_statusenum amdgpu_transfer_functionenum amdgpu_dm_cursor_modefunction amdgpu_dm_set_mst_status
Annotated Snippet
struct common_irq_params {
struct amdgpu_device *adev;
enum dc_irq_source irq_src;
atomic64_t previous_timestamp;
};
/**
* struct dm_compressor_info - Buffer info used by frame buffer compression
* @cpu_addr: MMIO cpu addr
* @bo_ptr: Pointer to the buffer object
* @gpu_addr: MMIO gpu addr
*/
struct dm_compressor_info {
void *cpu_addr;
struct amdgpu_bo *bo_ptr;
uint64_t gpu_addr;
};
/**
* struct dm_boot_time_crc_info - Buffer info used by boot time CRC
* @cpu_addr: MMIO cpu addr
* @bo_ptr: Pointer to the buffer object
* @gpu_addr: MMIO gpu addr
* @size: Size of the buffer
*/
struct dm_boot_time_crc_info {
void *cpu_addr;
struct amdgpu_bo *bo_ptr;
uint64_t gpu_addr;
uint32_t size;
};
typedef void (*dmub_notify_interrupt_callback_t)(struct amdgpu_device *adev, struct dmub_notification *notify);
/**
* struct dmub_hpd_work - Handle time consuming work in low priority outbox IRQ
*
* @handle_hpd_work: Work to be executed in a separate thread to handle hpd_low_irq
* @dmub_notify: notification for callback function
* @adev: amdgpu_device pointer
*/
struct dmub_hpd_work {
struct work_struct handle_hpd_work;
struct dmub_notification *dmub_notify;
struct amdgpu_device *adev;
};
/**
* struct vblank_control_work - Work data for vblank control
* @work: Kernel work data for the work event
* @dm: amdgpu display manager device
* @acrtc: amdgpu CRTC instance for which the event has occurred
* @stream: DC stream for which the event has occurred
* @enable: true if enabling vblank
*/
struct vblank_control_work {
struct work_struct work;
struct amdgpu_display_manager *dm;
struct amdgpu_crtc *acrtc;
struct dc_stream_state *stream;
bool enable;
};
/**
* struct idle_workqueue - Work data for periodic action in idle
* @work: Kernel work data for the work event
* @dm: amdgpu display manager device
* @enable: true if idle worker is enabled
* @running: true if idle worker is running
*/
struct idle_workqueue {
struct work_struct work;
struct amdgpu_display_manager *dm;
bool enable;
bool running;
};
/**
* struct vupdate_offload_work - Work data for offloading task from vupdate handler
* @work: Kernel work data for the work event
* @adev: amdgpu_device back pointer
* @stream: DC stream associated with the crtc
* @adjust: DC CRTC timing adjust to be applied to the crtc
*/
struct vupdate_offload_work {
struct work_struct work;
struct amdgpu_device *adev;
struct dc_stream_state *stream;
struct dc_crtc_timing_adjust *adjust;
};
Annotation
- Immediate include surface: `drm/display/drm_dp_mst_helper.h`, `drm/drm_atomic.h`, `drm/drm_connector.h`, `drm/drm_crtc.h`, `drm/drm_plane.h`, `link_service_types.h`, `drm/drm_writeback.h`, `include/amdgpu_dal_power_if.h`.
- Detected declarations: `struct aux_payload`, `struct set_config_cmd_payload`, `struct amdgpu_device`, `struct amdgpu_crtc`, `struct drm_device`, `struct dc`, `struct amdgpu_bo`, `struct dmub_srv`, `struct dc_plane_state`, `struct dmub_notification`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.