1. 08 4月, 2021 1 次提交
    • K
      drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver · 73743e72
      Kalyan Thota 提交于
      Set the flag vblank_disable_immediate = true to turn off vblank irqs
      immediately as soon as drm_vblank_put is requested so that there are
      no irqs triggered during idle state. This will reduce cpu wakeups
      and help in power saving.
      
      To enable vblank_disable_immediate flag the underlying KMS driver
      needs to support high precision vblank timestamping and also a
      reliable way of providing vblank counter which is incrementing
      at the leading edge of vblank.
      
      This patch also brings in changes to support vblank_disable_immediate
      requirement in dpu driver.
      
      Changes in v1:
       - Specify reason to add vblank timestamp support. (Rob).
       - Add changes to provide vblank counter from dpu driver.
      
      Changes in v2:
       - Fix warn stack reported by Rob Clark with v2 patch.
      
      Changes in v3:
       - Move back to HW frame counter (Rob).
      
      Changes in v4:
       - Frame count mismatch was causing a DRM WARN stack spew.
         DPU HW will increment the frame count at the end of
         the sync, where as vblank will be triggered at the
         fetch_start counter which is calculated as v_total - vfp.
         This is to start fetching early for panels with low
         vbp w.r.t hw latency lines.
      
         Add logic to detect the line count if it falls between
         vactive and v_total then return incremented frame count value.
      Signed-off-by: NKalyan Thota <kalyan_t@codeaurora.org>
      Link: https://lore.kernel.org/r/1613651746-12783-1-git-send-email-kalyan_t@codeaurora.orgSigned-off-by: NRob Clark <robdclark@chromium.org>
      73743e72
  2. 30 11月, 2020 1 次提交
    • L
      drm/msm/disp/dpu1/dpu_encoder: Fix a few parameter/member formatting issues · cca5ff94
      Lee Jones 提交于
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:207: warning: Function parameter or member 'cur_slave' not described in 'dpu_encoder_virt'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:207: warning: Function parameter or member 'hw_pp' not described in 'dpu_encoder_virt'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:207: warning: Function parameter or member 'intfs_swapped' not described in 'dpu_encoder_virt'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1445: warning: Function parameter or member 'drm_enc' not described in '_dpu_encoder_trigger_flush'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1445: warning: Function parameter or member 'phys' not described in '_dpu_encoder_trigger_flush'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1445: warning: Function parameter or member 'extra_flush_bits' not described in '_dpu_encoder_trigger_flush'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1481: warning: Function parameter or member 'phys' not described in '_dpu_encoder_trigger_start'
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1564: warning: Function parameter or member 'dpu_enc' not described in '_dpu_encoder_kickoff_phys'
      
      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: linux-arm-msm@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Reviewed-by: NAbhinav Kumar <abhinavk@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      cca5ff94
  3. 24 11月, 2020 1 次提交
    • L
      drm/msm/disp/dpu1/dpu_encoder: Remove a bunch of unused variables · ff8b941a
      Lee Jones 提交于
      Fixes the following W=1 kernel build warning(s):
      
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function ‘dpu_encoder_virt_mode_set’:
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:981:31: warning: variable ‘num_dspp’ set but not used [-Wunused-but-set-variable]
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:976:30: warning: variable ‘topology’ set but not used [-Wunused-but-set-variable]
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function ‘_dpu_encoder_virt_enable_helper’:
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1099:26: warning: variable ‘priv’ set but not used [-Wunused-but-set-variable]
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function ‘dpu_encoder_virt_disable’:
       drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1210:18: warning: variable ‘dpu_kms’ set but not used [-Wunused-but-set-variable]
      
      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: linux-arm-msm@vger.kernel.org
      Cc: dri-devel@lists.freedesktop.org
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Reviewed-by: NAbhinav Kumar <abhinavk@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      ff8b941a
  4. 22 9月, 2020 1 次提交
  5. 16 9月, 2020 4 次提交
  6. 18 8月, 2020 1 次提交
    • K
      drm/msm/dpu: Fix reservation failures in modeset · ccc862b9
      Kalyan Thota 提交于
      In TEST_ONLY commit, rm global_state will duplicate the
      object and request for new reservations, once they pass
      then the new state will be swapped with the old and will
      be available for the Atomic Commit.
      
      This patch fixes some of missing links in the resource
      reservation sequence mentioned above.
      
      1) Creation of duplicate state in test_only commit (Rob)
      2) Allocate and release the resources on every modeset.
      3) Avoid allocation only when active is false.
      
      In a modeset operation, swap state happens well before
      disable. Hence clearing reservations in disable will
      cause failures in modeset enable.
      
      Allow reservations to be cleared/allocated before swap,
      such that only newly committed resources are pushed to HW.
      
      Changes in v1:
       - Move the rm release to atomic_check.
       - Ensure resource allocation and free happens when active
         is not changed i.e only when mode is changed.(Rob)
      
      Changes in v2:
       - Handle dpu_kms_get_global_state API failure as it may
         return EDEADLK (swboyd).
      Signed-off-by: NKalyan Thota <kalyan_t@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      ccc862b9
  7. 31 7月, 2020 3 次提交
  8. 12 6月, 2020 3 次提交
  9. 27 5月, 2020 1 次提交
  10. 19 5月, 2020 1 次提交
  11. 20 3月, 2020 3 次提交
  12. 16 2月, 2020 1 次提交
  13. 03 1月, 2020 4 次提交
  14. 08 10月, 2019 1 次提交
    • Z
      drm/msm/dpu: Remove set but not used variables 'mode', 'dpu_kms', 'priv' · 8fbd534b
      zhengbin 提交于
      Fixes gcc '-Wunused-but-set-variable' warning:
      
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function dpu_encoder_virt_disable:
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1199:27: warning: variable mode set but not used [-Wunused-but-set-variable]
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function _dpu_encoder_init_debugfs:
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:1963:18: warning: variable dpu_kms set but not used [-Wunused-but-set-variable]
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c: In function dpu_encoder_frame_done_timeout:
      drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:2183:26: warning: variable priv set but not used [-Wunused-but-set-variable]
      
      They are not used since commit 25fdd593 ("drm/msm:
      Add SDM845 DPU support")
      Reported-by: NHulk Robot <hulkci@huawei.com>
      Signed-off-by: Nzhengbin <zhengbin13@huawei.com>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      8fbd534b
  15. 07 10月, 2019 3 次提交
  16. 04 9月, 2019 5 次提交
  17. 23 7月, 2019 1 次提交
  18. 21 6月, 2019 1 次提交
  19. 19 6月, 2019 2 次提交
  20. 19 4月, 2019 2 次提交