Skip to content

Commit 25fdd59

Browse files
Jeykumar Sankaranatseanpaul
Jeykumar Sankaran
authored andcommitted
drm/msm: Add SDM845 DPU support
SDM845 SoC includes the Mobile Display Sub System (MDSS) which is a top level wrapper consisting of Display Processing Unit (DPU) and display peripheral modules such as Display Serial Interface (DSI) and DisplayPort (DP). MDSS functions essentially as a back-end composition engine. It blends video and graphic images stored in the frame buffers and scans out the composed image to a display sink (over DSI/DP). The following diagram represents hardware blocks for a simple pipeline (two planes are present on a given crtc which is connected to a DSI connector): MDSS +---------------------------------+ | +-----------------------------+ | | | DPU | | | | +--------+ +--------+ | | | | | SSPP | | SSPP | | | | | +----+---+ +----+---+ | | | | | | | | | | +----v-----------v---+ | | | | | Layer Mixer (LM) | | | | | +--------------------+ | | | | +--------------------+ | | | | | PingPong (PP) | | | | | +--------------------+ | | | | +--------------------+ | | | | | INTERFACE (VIDEO) | | | | | +---+----------------+ | | | +------|----------------------+ | | | | | +------|---------------------+ | | | | DISPLAY PERIPHERALS | | | | +---v-+ +-----+ | | | | | DSI | | DP | | | | | +-----+ +-----+ | | | +----------------------------+ | +---------------------------------+ The number of DPU sub-blocks (i.e. SSPPs, LMs, PP blocks and INTFs) depends on SoC capabilities. Overview of DPU sub-blocks: --------------------------- * Source Surface Processor (SSPP): Refers to any of hardware pipes like ViG, DMA etc. Only ViG pipes are capable of performing format conversion, scaling and quality improvement for source surfaces. * Layer Mixer (LM): Blend source surfaces together (in requested zorder) * PingPong (PP): This block controls frame done interrupt output, EOL and EOF generation, overflow/underflow control. * Display interface (INTF): Timing generator and interface connecting the display peripherals. DRM components mapping to DPU architecture: ------------------------------------------ PLANEs maps to SSPPs CRTC maps to LMs Encoder maps to PPs, INTFs Data flow setup: --------------- MDSS hardware can support various data flows (e.g.): - Dual pipe: Output from two LMs combined to single display. - Split display: Output from two LMs connected to two separate interfaces. The hardware capabilities determine the number of concurrent data paths possible. Any control path (i.e. pipeline w/i DPU) can be routed to any of the hardware data paths. A given control path can be triggered, flushed and controlled independently. Changes in v3: - Move msm_media_info.h from uapi to dpu/ subdir - Remove preclose callback dpu (it's handled in core) - Fix kbuild warnings with parent_ops - Remove unused functions from dpu_core_irq - Rename mdss_phys to mdss - Rename mdp_phys address space to mdp - Drop _phys from vbif and regdma binding names Signed-off-by: Abhinav Kumar <[email protected]> Signed-off-by: Archit Taneja <[email protected]> Signed-off-by: Chandan Uddaraju <[email protected]> Signed-off-by: Jeykumar Sankaran <[email protected]> Signed-off-by: Jordan Crouse <[email protected]> Signed-off-by: Rajesh Yadav <[email protected]> Signed-off-by: Sravanthi Kollukuduru <[email protected]> Signed-off-by: Sean Paul <[email protected]> [robclark minor rebase] Signed-off-by: Rob Clark <[email protected]>
1 parent 036bfeb commit 25fdd59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+31913
-15
lines changed

drivers/gpu/drm/msm/Makefile

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
ccflags-y := -Idrivers/gpu/drm/msm
3+
ccflags-y += -Idrivers/gpu/drm/msm/disp/dpu1
34
ccflags-$(CONFIG_DRM_MSM_DSI) += -Idrivers/gpu/drm/msm/dsi
45

56
msm-y := \
@@ -45,6 +46,34 @@ msm-y := \
4546
disp/mdp5/mdp5_mixer.o \
4647
disp/mdp5/mdp5_plane.o \
4748
disp/mdp5/mdp5_smp.o \
49+
disp/dpu1/dpu_core_irq.o \
50+
disp/dpu1/dpu_core_perf.o \
51+
disp/dpu1/dpu_crtc.o \
52+
disp/dpu1/dpu_encoder.o \
53+
disp/dpu1/dpu_encoder_phys_cmd.o \
54+
disp/dpu1/dpu_encoder_phys_vid.o \
55+
disp/dpu1/dpu_formats.o \
56+
disp/dpu1/dpu_hw_blk.o \
57+
disp/dpu1/dpu_hw_catalog.o \
58+
disp/dpu1/dpu_hw_cdm.o \
59+
disp/dpu1/dpu_hw_ctl.o \
60+
disp/dpu1/dpu_hw_interrupts.o \
61+
disp/dpu1/dpu_hw_intf.o \
62+
disp/dpu1/dpu_hw_lm.o \
63+
disp/dpu1/dpu_hw_pingpong.o \
64+
disp/dpu1/dpu_hw_sspp.o \
65+
disp/dpu1/dpu_hw_top.o \
66+
disp/dpu1/dpu_hw_util.o \
67+
disp/dpu1/dpu_hw_vbif.o \
68+
disp/dpu1/dpu_io_util.o \
69+
disp/dpu1/dpu_irq.o \
70+
disp/dpu1/dpu_kms.o \
71+
disp/dpu1/dpu_kms_utils.o \
72+
disp/dpu1/dpu_mdss.o \
73+
disp/dpu1/dpu_plane.o \
74+
disp/dpu1/dpu_power_handle.o \
75+
disp/dpu1/dpu_rm.o \
76+
disp/dpu1/dpu_vbif.o \
4877
msm_atomic.o \
4978
msm_debugfs.o \
5079
msm_drv.o \
@@ -62,7 +91,8 @@ msm-y := \
6291
msm_ringbuffer.o \
6392
msm_submitqueue.o
6493

65-
msm-$(CONFIG_DEBUG_FS) += adreno/a5xx_debugfs.o
94+
msm-$(CONFIG_DEBUG_FS) += adreno/a5xx_debugfs.o \
95+
disp/dpu1/dpu_dbg.o
6696

6797
msm-$(CONFIG_DRM_FBDEV_EMULATION) += msm_fbdev.o
6898
msm-$(CONFIG_COMMON_CLK) += disp/mdp4/mdp4_lvds_pll.o

0 commit comments

Comments
 (0)