1. 10 Aug, 2018 6 commits
  2. 05 Aug, 2018 1 commit
  3. 03 Aug, 2018 1 commit
  4. 31 Jul, 2018 1 commit
  5. 30 Jul, 2018 27 commits
  6. 26 Jul, 2018 4 commits
    • Rajesh Yadav's avatar
      drm/msm: rework vblank event handling in dpu_crtc · 2f2eb723
      Rajesh Yadav authored
      The vblank on/off calls were missing in dpu_crtc
      leading to "driver forgot to call drm_crtc_vblank_off()"
      warning while entering suspend state.
      Also handle the state update completion event for
      a crtc being disabled in current atomic commit.
      
      This patch depends on https://www.spinics.net/lists/dri-devel/msg182402.htmlSigned-off-by: default avatarRajesh Yadav <ryadav@codeaurora.org>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      2f2eb723
    • Jeykumar Sankaran's avatar
      drm/msm: Add SDM845 DPU support · 25fdd593
      Jeykumar Sankaran authored
      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: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
      Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
      Signed-off-by: default avatarChandan Uddaraju <chandanu@codeaurora.org>
      Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
      Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: default avatarRajesh Yadav <ryadav@codeaurora.org>
      Signed-off-by: default avatarSravanthi Kollukuduru <skolluku@codeaurora.org>
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      [robclark minor rebase]
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      25fdd593
    • Jeykumar Sankaran's avatar
      drm/msm: Add pm_suspend/resume callbacks to msm_kms · 036bfeb3
      Jeykumar Sankaran authored
      Used by the dpu driver for custom suspend/resume.
      
      Changes in v3:
      - None
      Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
      [seanpaul split this out of the megapatch]
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      036bfeb3
    • Jeykumar Sankaran's avatar
      drm/msm: Add .commit() callback to msm_kms functions · 2b7ac1a8
      Jeykumar Sankaran authored
      Called right before wait_for_commit_done() to perform kickoff for
      active crtcs.
      
      Changes in v3:
      - None
      Signed-off-by: default avatarJeykumar Sankaran <jsanka@codeaurora.org>
      [seanpaul split this out of the megapatch]
      Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      2b7ac1a8