drivers/gpu/drm/msm/dp/dp_display.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/msm/dp/dp_display.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/msm/dp/dp_display.c- Extension
.c- Size
- 43061 bytes
- Lines
- 1549
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/slab.hlinux/uaccess.hlinux/debugfs.hlinux/component.hlinux/of_irq.hlinux/phy/phy.hlinux/delay.hlinux/string_choices.hdrm/display/drm_dp_aux_bus.hdrm/display/drm_hdmi_audio_helper.hdrm/drm_edid.hmsm_drv.hmsm_kms.hdp_ctrl.hdp_aux.hdp_reg.hdp_link.hdp_panel.hdp_display.hdp_drm.hdp_audio.hdp_debug.h
Detected Declarations
struct msm_dp_display_privatestruct msm_dp_descfunction msm_dp_display_signal_audio_startfunction msm_dp_display_signal_audio_completefunction msm_dp_display_bindfunction msm_dp_display_unbindfunction msm_dp_display_lttpr_initfunction msm_dp_display_process_hpd_highfunction msm_dp_display_host_phy_initfunction msm_dp_display_host_phy_exitfunction msm_dp_display_host_initfunction msm_dp_display_host_deinitfunction msm_dp_display_handle_video_requestfunction msm_dp_display_handle_irq_hpdfunction msm_dp_hpd_plug_handlefunction msm_dp_display_handle_plugged_changefunction msm_dp_hpd_unplug_handlefunction msm_dp_irq_hpd_handlefunction msm_dp_display_deinit_sub_modulesfunction msm_dp_init_sub_modulesfunction msm_dp_display_set_modefunction msm_dp_display_enablefunction msm_dp_display_post_enablefunction msm_dp_display_disablefunction msm_dp_bridge_mode_validfunction msm_dp_display_get_modesfunction msm_dp_display_check_video_testfunction msm_dp_display_get_test_bppfunction msm_dp_snapshotfunction msm_dp_display_set_psrfunction msm_dp_bridge_detectfunction msm_dp_display_irq_handlerfunction msm_dp_display_irq_threadfunction msm_dp_display_request_irqfunction msm_dp_display_probe_tailfunction msm_dp_auxbus_done_probefunction msm_dp_display_get_connector_typefunction msm_dp_display_get_iofunction msm_dp_ioremapfunction msm_dp_display_probefunction msm_dp_display_removefunction msm_dp_pm_runtime_suspendfunction msm_dp_pm_runtime_resumefunction msm_dp_registerfunction msm_dp_unregisterfunction msm_dp_is_yuv_420_enabledfunction msm_dp_needs_periph_flushfunction msm_dp_wide_bus_available
Annotated Snippet
struct msm_dp_display_private {
int irq;
unsigned int id;
/* state variables */
bool core_initialized;
bool phy_initialized;
bool audio_supported;
struct mutex plugged_lock;
bool plugged;
struct drm_device *drm_dev;
struct drm_dp_aux *aux;
struct msm_dp_link *link;
struct msm_dp_panel *panel;
struct msm_dp_ctrl *ctrl;
struct msm_dp_display_mode msm_dp_mode;
struct msm_dp msm_dp_display;
/* wait for audio signaling */
struct completion audio_comp;
/* HPD IRQ handling */
spinlock_t irq_thread_lock;
u32 hpd_isr_status;
bool wide_bus_supported;
struct msm_dp_audio *audio;
void __iomem *ahb_base;
size_t ahb_len;
void __iomem *aux_base;
size_t aux_len;
void __iomem *link_base;
size_t link_len;
void __iomem *p0_base;
size_t p0_len;
};
struct msm_dp_desc {
phys_addr_t io_start;
unsigned int id;
bool wide_bus_supported;
};
static const struct msm_dp_desc msm_dp_desc_glymur[] = {
{ .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{ .io_start = 0x0af5c000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
{ .io_start = 0x0af64000, .id = MSM_DP_CONTROLLER_2, .wide_bus_supported = true },
{ .io_start = 0x0af6c000, .id = MSM_DP_CONTROLLER_3, .wide_bus_supported = true },
{}
};
static const struct msm_dp_desc msm_dp_desc_sa8775p[] = {
{ .io_start = 0x0af54000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{ .io_start = 0x0af5c000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
{ .io_start = 0x22154000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{ .io_start = 0x2215c000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
{}
};
static const struct msm_dp_desc msm_dp_desc_sdm845[] = {
{ .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0 },
{}
};
static const struct msm_dp_desc msm_dp_desc_sc7180[] = {
{ .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{}
};
static const struct msm_dp_desc msm_dp_desc_sc7280[] = {
{ .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{ .io_start = 0x0aea0000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
{}
};
static const struct msm_dp_desc msm_dp_desc_sc8180x[] = {
{ .io_start = 0x0ae90000, .id = MSM_DP_CONTROLLER_0, .wide_bus_supported = true },
{ .io_start = 0x0ae98000, .id = MSM_DP_CONTROLLER_1, .wide_bus_supported = true },
{ .io_start = 0x0ae9a000, .id = MSM_DP_CONTROLLER_2, .wide_bus_supported = true },
{}
Annotation
- Immediate include surface: `linux/module.h`, `linux/slab.h`, `linux/uaccess.h`, `linux/debugfs.h`, `linux/component.h`, `linux/of_irq.h`, `linux/phy/phy.h`, `linux/delay.h`.
- Detected declarations: `struct msm_dp_display_private`, `struct msm_dp_desc`, `function msm_dp_display_signal_audio_start`, `function msm_dp_display_signal_audio_complete`, `function msm_dp_display_bind`, `function msm_dp_display_unbind`, `function msm_dp_display_lttpr_init`, `function msm_dp_display_process_hpd_high`, `function msm_dp_display_host_phy_init`, `function msm_dp_display_host_phy_exit`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.