1. 05 11月, 2020 1 次提交
  2. 02 11月, 2020 1 次提交
  3. 31 7月, 2020 2 次提交
  4. 20 5月, 2020 1 次提交
  5. 08 1月, 2020 1 次提交
    • H
      drm/msm: update LANE_CTRL register value from default value · e3ff6881
      Harigovindan P 提交于
      LANE_CTRL register in latest version of DSI controller (v2.2)
      has additional functionality introduced to enable/disable HS
      signalling with default value set to enabled. To accommodate this
      change, LANE_CTRL register should be read and bit wise ORed to enable
      non continuous clock mode. Without this change, if register is written
      directly, HS signalling will be disabled resulting in black screen.
      
      Changes in v1:
      	-Update LANE_CTRL register value
      Changes in v2:
      	-Changing commit message accordingly.
      Signed-off-by: NHarigovindan P <harigovi@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      e3ff6881
  6. 05 1月, 2020 1 次提交
  7. 12 10月, 2019 1 次提交
    • J
      drm/msm/dsi: Implement reset correctly · 78e31c42
      Jeffrey Hugo 提交于
      On msm8998, vblank timeouts are observed because the DSI controller is not
      reset properly, which ends up stalling the MDP.  This is because the reset
      logic is not correct per the hardware documentation.
      
      The documentation states that after asserting reset, software should wait
      some time (no indication of how long), or poll the status register until it
      returns 0 before deasserting reset.
      
      wmb() is insufficient for this purpose since it just ensures ordering, not
      timing between writes.  Since asserting and deasserting reset occurs on the
      same register, ordering is already guaranteed by the architecture, making
      the wmb extraneous.
      
      Since we would define a timeout for polling the status register to avoid a
      possible infinite loop, lets just use a static delay of 20 ms, since 16.666
      ms is the time available to process one frame at 60 fps.
      
      Fixes: a689554b ("drm/msm: Initial add DSI connector support")
      Cc: Hai Li <hali@codeaurora.org>
      Cc: Rob Clark <robdclark@gmail.com>
      Signed-off-by: NJeffrey Hugo <jeffrey.l.hugo@gmail.com>
      Reviewed-by: NSean Paul <sean@poorly.run>
      [seanpaul renamed RESET_DELAY to DSI_RESET_TOGGLE_DELAY_MS]
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191011133939.16551-1-jeffrey.l.hugo@gmail.com
      78e31c42
  8. 11 10月, 2019 1 次提交
  9. 04 9月, 2019 3 次提交
    • S
      drm/msm/dsi: Fix return value check for clk_get_parent · 5fb9b797
      Sean Paul 提交于
      clk_get_parent returns an error pointer upon failure, not NULL. So the
      checks as they exist won't catch a failure. This patch changes the
      checks and the return values to properly handle an error pointer.
      
      Fixes: c4d8cfe5 ("drm/msm/dsi: add implementation for helper functions")
      Cc: Sibi Sankar <sibis@codeaurora.org>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Rob Clark <robdclark@chromium.org>
      Cc: <stable@vger.kernel.org> # v4.19+
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      5fb9b797
    • L
      drm/msm/dsi: Drop unused GPIO includes · 2acc0d2d
      Linus Walleij 提交于
      This DSI driver uses the new descriptor API so these old
      GPIO API includes are surplus.
      
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: linux-arm-msm@vger.kernel.org
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      2acc0d2d
    • S
      drm/msm: drop use of drmP.h · feea39a8
      Sam Ravnborg 提交于
      Drop the deprecated drmP.h header file, and trim msm_drv.h
      to the relevant include files.
      
      This resulted in a suprisingly many edits as many files relied
      on headers included via msm_drv.h.
      But msm_drv.h is not supposed to carry include files it do not need, so
      the individual files have to include what extra they needs.
      
      v2:
      - Rebased on top of https://gitlab.freedesktop.org/drm/msm.git msm-next
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Cc: Rob Clark <robdclark@gmail.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Jordan Crouse <jcrouse@codeaurora.org>
      Cc: Jeykumar Sankaran <jsanka@codeaurora.org>
      Cc: Bruce Wang <bzwang@chromium.org>
      Cc: Shayenne Moura <shayenneluzmoura@gmail.com>
      Cc: Mamta Shukla <mamtashukla555@gmail.com>
      Cc: Jonathan Marek <jonathan@marek.ca>
      Cc: Carsten Behling <carsten.behling@googlemail.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
      Cc: Sibi Sankar <sibis@codeaurora.org>
      Cc: Todor Tomov <todor.tomov@linaro.org>
      Cc: linux-arm-msm@vger.kernel.org
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190804065551.GA5211@ravnborg.org
      feea39a8
  10. 21 6月, 2019 3 次提交
  11. 19 6月, 2019 1 次提交
  12. 05 6月, 2019 1 次提交
  13. 14 1月, 2019 1 次提交
  14. 12 12月, 2018 4 次提交
    • J
      drm/msm: Add a name field for gem objects · 0815d774
      Jordan Crouse 提交于
      For debugging purposes it is useful to assign descriptions
      to buffers so that we know what they are used for. Add
      a field to the buffer object and use that to name the various
      kernel side allocations which ends up looking like like this
      in /d/dri/X/gem:
      
         flags       id ref  offset   kaddr            size     madv      name
         00040000: I  0 ( 1) 00000000 0000000070b79eca 00004096           memptrs
            vmas: [gpu: 01000000,mapped,inuse=1]
         00020000: I  0 ( 1) 00000000 0000000031ed4074 00032768           ring0
      Signed-off-by: NJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      0815d774
    • J
      drm/msm: Count how many times iova memory is pinned · 7ad0e8cf
      Jordan Crouse 提交于
      Add a reference count to track how many times a particular
      chunk of iova memory is pinned (mapped) in the iomu and
      add msm_gem_unpin_iova to give up references.
      
      It is important to note that msm_gem_unpin_iova replaces
      msm_gem_put_iova because the new implicit behavior
      that an assigned iova in a given vma is now valid for the
      life of the buffer and what we are really focusing on is
      the use of that iova.
      
      For now the unmappings are lazy; once the reference counts
      go to zero they *COULD* be unmapped dynamically but that
      will require an outside force such as a shrinker or
      mm_notifiers.  For now, we're just focusing on getting
      the counting right and setting ourselves up to be ready
      for the future.
      Signed-off-by: NJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      7ad0e8cf
    • J
      drm/msm: Add msm_gem_get_and_pin_iova() · 9fe041f6
      Jordan Crouse 提交于
      Add a new function to get and pin the iova memory in one
      step (basically renaming the old msm_gem_get_iova function)
      and switch msm_gem_get_iova() to only allocate an iova but
      not map it in the IOMMU. This is only currently used by
      msm_ioctl_gem_info() since all other users of of the iova
      expect that the memory be immediately available.
      Signed-off-by: NJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      9fe041f6
    • M
      drm: msm: Use DRM_DEV_* instead of dev_* · 6a41da17
      Mamta Shukla 提交于
      Use DRM_DEV_INFO/ERROR/WARN instead of dev_info/err/debug to generate
      drm-formatted specific log messages so that it will be easy to
      differentiate in case of multiple instances of driver.
      Signed-off-by: NMamta Shukla <mamtashukla555@gmail.com>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      6a41da17
  15. 04 10月, 2018 1 次提交
  16. 30 7月, 2018 1 次提交
  17. 26 7月, 2018 2 次提交
  18. 25 7月, 2018 2 次提交
  19. 10 7月, 2018 1 次提交
  20. 05 6月, 2018 1 次提交
    • S
      drm/msm: Fix NULL deref on bind/probe deferral · 74d3a3a7
      Sean Paul 提交于
      This patch avoids dereferencing msm_host->dev when it is NULL.
      
      If we find ourselves tearing down dsi before calling
      (mdp4|mdp5|dpu)_kms_init(), we'll end up in a state where the dev
      pointer is NULL and trying to extract priv from it will fail.
      
      This was introduced in a seemingly innocuous commit to ensure the
      arguments to msm_gem_put_iova() are correct (even though that
      function has been a stub for ~5 years). Correctness FTW! \o/
      
      Fixes: b01884a286b0 drm/msm: use correct aspace pointer in msm_gem_put_iova()
      Cc: Daniel Mack <daniel@zonque.org>
      Cc: Rob Clark <robdclark@gmail.com>
      Signed-off-by: NSean Paul <seanpaul@chromium.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      74d3a3a7
  21. 04 6月, 2018 5 次提交
  22. 19 4月, 2018 3 次提交
  23. 19 3月, 2018 1 次提交
  24. 20 2月, 2018 1 次提交