An error occurred while fetching folder content.
Select Git revision
linux-kernel-rd

Dmitry Osipenko
authored
Introduce a common DRM SHMEM shrinker framework that allows to reduce code duplication among DRM drivers by replacing theirs custom shrinker implementations with the generic shrinker. In order to start using DRM SHMEM shrinker drivers should: 1. Implement new evict() shmem object callback. 2. Register shrinker using drm_gem_shmem_shrinker_register(drm_device). 3. Use drm_gem_shmem_set_purgeable(shmem) and alike API functions to activate shrinking of shmem GEMs. This patch is based on a ideas borrowed from Rob's Clark MSM shrinker, Thomas' Zimmermann variant of SHMEM shrinker and Intel's i915 shrinker. Signed-off-by:Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by:
Dmitry Osipenko <dmitry.osipenko@collabora.com>
Name | Last commit | Last update |
---|