drm/msm: Attach the GPU MMU when it is created
authorJordan Crouse <jcrouse@codeaurora.org>
Thu, 27 Jul 2017 16:42:39 +0000 (10:42 -0600)
committerRob Clark <robdclark@gmail.com>
Tue, 22 Aug 2017 17:19:15 +0000 (13:19 -0400)
commit1267a4dfe045df42faea5fc1dfe379b480595406
tree60a4b1355404fc5c191d78e4b105a1a5a8086223
parentac1b5ab411315234c67eb258bfaa7e50561aa5c2
drm/msm: Attach the GPU MMU when it is created

Currently the GPU MMU is attached in the adreno_gpu code but as
more and more of the GPU initialization moves to the generic
GPU path we have a need to map and use GPU memory earlier and
earlier.  There isn't any reason to defer attaching the MMU
until later so attach it right after the address space is
created so it can be used immediately.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c