]> www.infradead.org Git - users/willy/linux.git/commit
drm/msm/a6xx: Track and manage a6xx state memory
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 2 Nov 2018 15:25:26 +0000 (09:25 -0600)
committerRob Clark <robdclark@gmail.com>
Mon, 3 Dec 2018 13:53:27 +0000 (08:53 -0500)
commit6781608140f76fd45d404cb2418dbf90557dac4f
tree92174daf75a773b50172104a1bc1d12ffeefddb1
parentc0531822dabaf850e789214145d82181e8f533f5
drm/msm/a6xx: Track and manage a6xx state memory

The a6xx GPU state allocates a LOT of memory. Add a bit of
infrastructure to track the memory allocations in the GPU structure
and delete them when the state is destroyed much the same way
that devm works with the device model as a whole.  This protects
against the developer accidentally forgetting to add a kfree() to
an ever growing list.

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