]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gem: Convert to using drm_gem_lru
authorRob Clark <robdclark@chromium.org>
Tue, 2 Aug 2022 15:51:43 +0000 (08:51 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 27 Aug 2022 16:32:45 +0000 (09:32 -0700)
commit7803b30d2f6e20bac7efb49ce3af6c018894013a
tree483719eba02232bdcc0f51a47b650ab29f1f8e50
parente5b59d22bb508161fe51408b5cfe7172fb7835ab
drm/msm/gem: Convert to using drm_gem_lru

This converts over to use the shared GEM LRU/shrinker helpers.  Note
that it means we are no longer tracking purgeable or willneed buffers
that are active separately.  But the most recently pinned buffers should
be at the tail of the various LRUs, and the shrinker is already prepared
to encounter objects which are still active.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/496131/
Link: https://lore.kernel.org/r/20220802155152.1727594-11-robdclark@gmail.com
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gem.c
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gem_shrinker.c
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h