]> git.karo-electronics.de Git - linux-beck.git/commit
drm/vc4: Free hang state before destroying BO cache.
authorEric Anholt <eric@anholt.net>
Tue, 26 Jul 2016 20:47:13 +0000 (13:47 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 02:17:32 +0000 (19:17 -0700)
commitdef96527707e1978a0c88e75d13b082f51460d5c
treeeab4cba5d2041bcf774f69f15bbbeb6ca998efbc
parent163195fc12cae0c8b5c0d74d3ba8d2c5f81773bc
drm/vc4: Free hang state before destroying BO cache.

The BO cache will complain if BOs are still allocated when we try to
destroy it (since freeing those BOs would try to hit the cache).  You
could hit this if you were to unload the module after a GPU hang.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 214613656b51 ("drm/vc4: Add an interface for capturing the GPU state after a hang.")
drivers/gpu/drm/vc4/vc4_gem.c