Re: [PATCH v10 08/11] drm/shmem-helper: Add memory shrinker

2023-02-26 Thread Dmitry Osipenko
On 2/17/23 16:19, Thomas Zimmermann wrote: >> +/** >> + * drm_gem_shmem_swap_in() - Moves shmem GEM back to memory and enables >> + *   hardware access to the memory. > > Do we have a better name than _swap_in()? I suggest > drm_gem_shmem_unevict(), which suggest that it's

Re: [PATCH v10 08/11] drm/shmem-helper: Add memory shrinker

2023-02-17 Thread Thomas Zimmermann
Hi Am 08.01.23 um 22:04 schrieb Dmitry Osipenko: Introduce common drm-shmem shrinker for DRM drivers. To start using drm-shmem shrinker drivers should do the following: 1. Implement evict() callback of GEM object where driver should check whether object is purgeable or evictable using drm-

[PATCH v10 08/11] drm/shmem-helper: Add memory shrinker

2023-01-08 Thread Dmitry Osipenko
Introduce common drm-shmem shrinker for DRM drivers. To start using drm-shmem shrinker drivers should do the following: 1. Implement evict() callback of GEM object where driver should check whether object is purgeable or evictable using drm-shmem helpers and perform the shrinking action 2.