]> git.baikalelectronics.ru Git - kernel.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>
Tue, 11 Dec 2018 18:05:30 +0000 (13:05 -0500)
commit29e6f53bf4e1af11fa173899509c42d92fb3878f
treeef8569126eedff5c7335a46f53129bd7db76c2bc
parent240fc49ac950644de951dba0ac2d07b7b6e909fa
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