diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2017-02-06 10:39:29 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-04-08 06:59:36 -0400 |
commit | 9873ef0743535ee71efecfb5228f96432e393f8a (patch) | |
tree | f6790acfcbbcfa6d1095ae10a8cfc31ac427c1fb /drivers/gpu/drm/msm/msm_gpu.c | |
parent | 3a882143794ab31aa25551ba90b2d0740c4973c4 (diff) | |
download | op-kernel-dev-9873ef0743535ee71efecfb5228f96432e393f8a.zip op-kernel-dev-9873ef0743535ee71efecfb5228f96432e393f8a.tar.gz |
drm/msm: Make sure to detach the MMU during GPU cleanup
We should be detaching the MMU before destroying the address
space. To do this cleanly, the detach has to happen in
adreno_gpu_cleanup() because it needs access to structs
in adreno_gpu.c. Plus it is better symmetry to have
the attach and detach at the same code level.
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 41d2abc..937f1a0 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -661,9 +661,6 @@ void msm_gpu_cleanup(struct msm_gpu *gpu) msm_ringbuffer_destroy(gpu->rb); } - if (gpu->aspace) - msm_gem_address_space_destroy(gpu->aspace); - if (gpu->fctx) msm_fence_context_free(gpu->fctx); } |