1. 24 Jan, 2019 6 commits
    • Joe Perches's avatar
      drm/msm: Add __printf verification · 023014e7
      Joe Perches authored
      Add a few __printf attribute specifiers to routines that
      could use them.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      023014e7
    • Douglas Anderson's avatar
      drm/msm: Fix A6XX support for opp-level · a3c5e2cd
      Douglas Anderson authored
      The bindings for Qualcomm opp levels changed after being Acked but
      before landing.  Thus the code in the GPU driver that was relying on
      the old bindings is now broken.
      
      Let's change the code to match the new bindings by adjusting the old
      string 'qcom,level' to the new string 'opp-level'.  See the patch
      ("dt-bindings: opp: Introduce opp-level bindings").
      
      NOTE: we will do additional cleanup to totally remove the string from
      the code and use the new dev_pm_opp_get_level() but we'll do it in a
      future patch.  This will facilitate getting the important code fix in
      sooner without having to deal with cross-maintainer dependencies.
      
      This patch needs to land before the patch ("arm64: dts: sdm845: Add
      gpu and gmu device nodes") since if a tree contains the device tree
      patch but not this one you'll get a crash at bootup.
      
      Fixes: 4b565ca5 ("drm/msm: Add A6XX device support")
      Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
      Reviewed-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      a3c5e2cd
    • Rob Clark's avatar
      drm/msm: honor GPU_READONLY flag · bbc2cd07
      Rob Clark authored
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      bbc2cd07
    • Jordan Crouse's avatar
      drm/msm: drop interrupt-names · 895ad6b0
      Jordan Crouse authored
      Each GPU core only uses one interrupt so we don't to look up
      an interrupt by name and thereby we don't need interrupt-names.
      Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
      Reviewed-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      895ad6b0
    • Jordan Crouse's avatar
      drm/msm/gpu: Remove hardcoded interrupt name · 878411ae
      Jordan Crouse authored
      Every GPU core only has one interrupt so there isn't any
      value in looking up the interrupt by name. Remove the name (which
      is legacy anyway) and use platform_get_irq() instead.
      Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
      Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      878411ae
    • Arnd Bergmann's avatar
      drm/msm/gpu: fix building without debugfs · c878a628
      Arnd Bergmann authored
      When debugfs is disabled, but coredump is turned on, the adreno driver fails to build:
      
      drivers/gpu/drm/msm/adreno/a3xx_gpu.c:460:4: error: 'struct msm_gpu_funcs' has no member named 'show'
         .show = adreno_show,
          ^~~~
      drivers/gpu/drm/msm/adreno/a3xx_gpu.c:460:11: note: (near initialization for 'funcs.base')
      drivers/gpu/drm/msm/adreno/a3xx_gpu.c:460:11: error: initialization of 'void (*)(struct msm_gpu *, struct msm_gem_submit *, struct msm_file_private *)' from incompatible pointer type 'void (*)(struct msm_gpu *, struct msm_gpu_state *, struct drm_printer *)' [-Werror=incompatible-pointer-types]
      drivers/gpu/drm/msm/adreno/a3xx_gpu.c:460:11: note: (near initialization for 'funcs.base.submit')
      drivers/gpu/drm/msm/adreno/a4xx_gpu.c:546:4: error: 'struct msm_gpu_funcs' has no member named 'show'
      drivers/gpu/drm/msm/adreno/a5xx_gpu.c:1460:4: error: 'struct msm_gpu_funcs' has no member named 'show'
      drivers/gpu/drm/msm/adreno/a6xx_gpu.c:769:4: error: 'struct msm_gpu_funcs' has no member named 'show'
      drivers/gpu/drm/msm/msm_gpu.c: In function 'msm_gpu_devcoredump_read':
      drivers/gpu/drm/msm/msm_gpu.c:289:12: error: 'const struct msm_gpu_funcs' has no member named 'show'
      
      Adjust the #ifdef to make it build again.
      
      Fixes: c0fec7f5 ("drm/msm/gpu: Capture the GPU state on a GPU hang")
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      c878a628
  2. 19 Dec, 2018 1 commit
  3. 11 Dec, 2018 33 commits