OSDN Git Service

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)
commit00bb9243d346cf749919035f2473d30fe9496153
tree2d04bb404794a68b9d42f0d97f5e2a07712bf7ea
parentb435f8b4f6a08f5bbf001cfd4bed22070e3774fd
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