]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gpu: add support for ocmem interconnect path
authorBrian Masney <masneyb@onstation.org>
Fri, 22 Nov 2019 01:26:43 +0000 (20:26 -0500)
committerRob Clark <robdclark@chromium.org>
Thu, 2 Jan 2020 22:20:42 +0000 (14:20 -0800)
commit47669dcfc00558ebe14c4637db5334ae2d5d79f8
tree2d04bb404794a68b9d42f0d97f5e2a07712bf7ea
parentfc8134f9357ba08173d9d53097bdb47bf5fb382e
drm/msm/gpu: add support for ocmem interconnect path

Some A3xx and all A4xx Adreno GPUs do not have GMEM inside the GPU core
and must use the On Chip MEMory (OCMEM) in order to be functional.
There's a separate interconnect path that needs to be setup to OCMEM.
Add support for this second path to the GPU core.

In the downstream MSM 3.4 sources, the two interconnect paths for the
GPU are between:

  - MSM_BUS_MASTER_GRAPHICS_3D and MSM_BUS_SLAVE_EBI_CH0
  - MSM_BUS_MASTER_V_OCMEM_GFX3D and MSM_BUS_SLAVE_OCMEM

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.h