]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/msm: Make sure to detach the MMU during GPU cleanup
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 6 Feb 2017 17:39:29 +0000 (10:39 -0700)
committerRob Clark <robdclark@gmail.com>
Mon, 3 Apr 2017 20:09:37 +0000 (16:09 -0400)
commit028402d4bcfd3e99421504674cc41b0cd32768c8
tree8a7ee848bf64b8389e347270c4ae3a15e9ada63b
parentd322a693f585832130c3d09f2175b8f2b3ae99e1
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>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c