1. 19 6月, 2019 1 次提交
  2. 14 1月, 2019 1 次提交
  3. 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
  4. 04 10月, 2018 1 次提交
  5. 30 7月, 2018 1 次提交
  6. 26 7月, 2018 2 次提交
  7. 25 7月, 2018 2 次提交
  8. 10 7月, 2018 1 次提交
  9. 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
  10. 04 6月, 2018 5 次提交
  11. 19 4月, 2018 3 次提交
  12. 19 3月, 2018 1 次提交
  13. 20 2月, 2018 3 次提交
  14. 28 10月, 2017 1 次提交
  15. 13 10月, 2017 1 次提交
  16. 02 8月, 2017 3 次提交
    • A
      drm/msm/dsi: Implement RPM suspend/resume callbacks · f54ca1a0
      Archit Taneja 提交于
      The bus clocks are always enabled/disabled along with the power
      domain, so move it to the runtime suspend/resume ops. This cleans
      up the clock code a bit. Get rid of the clk_mutex mutex since it
      isn't needed.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      f54ca1a0
    • A
      drm/msm/dsi: Set up runtime PM for DSI · f6be1121
      Archit Taneja 提交于
      Call the pm_runtime_get/put API where we need the clocks enabled.
      
      The main entry/exit points are 1) enabling/disabling the DSI bridge
      and 2) Sending commands from the DSI host to the device.
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      f6be1121
    • A
      drm/msm/dsi: Calculate link clock rates with updated dsi->lanes · d4cea38e
      Archit Taneja 提交于
      After the commit mentioned below, we start computing the byte and pixel
      clocks (dsi_calc_clk_rate) in the DSI bridge's mode_set() op. The
      calculation involves the number of DSI lanes being used by the
      downstream bridge/panel.
      
      If the downstream bridge/panel tries to change the number of DSI lanes
      (as done in the ADV7533 driver) in its mode_set() op, then our DSI
      host driver will not have the correct number of lanes when computing
      byte/pixel clocks.
      
      Fix this by delaying the clock rate calculation in the DSI bridge
      enable path. In particular, compute the clock rates in
      msm_dsi_host_get_phy_clk_req().
      
      This fixes the DSI host error interrupts seen when we try to switch
      between modes that require different number of lanes (4 to 3 lanes, or
      vice versa) on db410c. The error interrupts occur since the byte/pixel
      clock rates aren't according to what the DSI video mode timing engine
      expects.
      
      Fixes: b62aa70a ("drm/msm/dsi: Move PHY operations out of host")
      Signed-off-by: NArchit Taneja <architt@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@gmail.com>
      d4cea38e
  17. 17 6月, 2017 1 次提交
  18. 16 6月, 2017 2 次提交
  19. 07 4月, 2017 1 次提交
  20. 15 2月, 2017 1 次提交
  21. 07 2月, 2017 4 次提交