1. 07 7月, 2022 1 次提交
  2. 06 7月, 2022 2 次提交
  3. 12 4月, 2022 1 次提交
    • N
      drm/msm/gpu: Avoid -Wunused-function with !CONFIG_PM_SLEEP · 390d6458
      Nathan Chancellor 提交于
      When building with CONFIG_PM=y and CONFIG_PM_SLEEP=n (such as ARCH=riscv
      allmodconfig), the following warnings/errors occur:
      
        drivers/gpu/drm/msm/adreno/adreno_device.c:679:12: error: 'adreno_system_resume' defined but not used [-Werror=unused-function]
          679 | static int adreno_system_resume(struct device *dev)
              |            ^~~~~~~~~~~~~~~~~~~~
        drivers/gpu/drm/msm/adreno/adreno_device.c:655:12: error: 'adreno_system_suspend' defined but not used [-Werror=unused-function]
          655 | static int adreno_system_suspend(struct device *dev)
              |            ^~~~~~~~~~~~~~~~~~~~~
        cc1: all warnings being treated as errors
      
      These functions are only used in SET_SYSTEM_SLEEP_PM_OPS(), which
      evaluates to empty when CONFIG_PM_SLEEP is not set, making these
      functions unused.
      
      To resolve this, use the SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS()
      macros, which were introduced in commit 1a3c7bb0 ("PM: core: Add new
      *_PM_OPS macros, deprecate old ones"). They are designed to avoid these
      compiler warnings while still guarding their use on
      CONFIG_PM{,_SLEEP}=y.
      
      Fixes: 7e4167c9 ("drm/msm/gpu: Park scheduler threads for system suspend")
      Signed-off-by: NNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/r/20220411181249.2758344-1-nathan@kernel.orgSigned-off-by: NRob Clark <robdclark@chromium.org>
      390d6458
  4. 24 3月, 2022 3 次提交
  5. 26 2月, 2022 1 次提交
  6. 26 1月, 2022 1 次提交
  7. 18 12月, 2021 1 次提交
  8. 07 12月, 2021 1 次提交
  9. 29 11月, 2021 1 次提交
  10. 07 8月, 2021 1 次提交
  11. 31 7月, 2021 2 次提交
  12. 23 6月, 2021 2 次提交
  13. 01 2月, 2021 2 次提交
  14. 08 1月, 2021 1 次提交
  15. 05 11月, 2020 1 次提交
  16. 13 9月, 2020 2 次提交
  17. 23 8月, 2020 1 次提交
  18. 31 7月, 2020 2 次提交
  19. 19 5月, 2020 2 次提交
  20. 03 1月, 2020 1 次提交
  21. 05 11月, 2019 1 次提交
    • A
      drm/msm/adreno: Add support for Adreno 510 GPU · e20c9284
      AngeloGioacchino Del Regno 提交于
      The Adreno 510 GPU is a stripped version of the Adreno 5xx,
      found in low-end SoCs like 8x56 and 8x76, which has 256K of
      GMEM, with no GPMU nor ZAP.
      Also, since the Adreno 5xx part of this driver seems to be
      developed with high-end Adreno GPUs in mind, and since this
      is a lower end one, add a comment making clear which GPUs
      which support is not implemented yet is not using the GPMU
      related hw init code, so that future developers will not go
      crazy with that.
      
      By the way, the lower end Adreno GPUs with no GPMU are:
      A505/A506/A510 (usually no ZAP firmware)
      A508/A509/A512 (usually with ZAP firmware)
      Signed-off-by: NAngeloGioacchino Del Regno <kholk11@gmail.com>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      e20c9284
  22. 04 9月, 2019 1 次提交
  23. 19 6月, 2019 3 次提交
  24. 21 4月, 2019 1 次提交
    • J
      drm/msm/a6xx: Add zap shader load · abccb9fe
      Jordan Crouse 提交于
      The a6xx GPU powers on in secure mode which restricts what memory it can
      write to. To get out of secure mode the GPU driver can write to
      REG_A6XX_RBBM_SECVID_TRUST_CNTL but on targets that are "secure" that
      register region is blocked and writes will cause the system to go down.
      
      For those targets we need to execute a special sequence that involves
      loadinga special shader that clears the GPU registers and use a PM4
      sequence to pull the GPU out of secure. Add support for loading the zap
      shader and executing the secure sequence. For targets that do not support
      SCM or the specific SCM sequence this should fail and we would fall back
      to writing the register.
      Signed-off-by: NJordan Crouse <jcrouse@codeaurora.org>
      Signed-off-by: NRob Clark <robdclark@chromium.org>
      abccb9fe
  25. 20 4月, 2019 1 次提交
  26. 12 12月, 2018 4 次提交