Re: [PATCH v18 14/26] drm/lima: Explicitly get and put drm-shmem pages

2023-11-10 Thread Boris Brezillon
On Mon, 30 Oct 2023 02:01:53 +0300 Dmitry Osipenko wrote: > To simplify the drm-shmem refcnt handling, we're moving away from > the implicit get_pages() that is used by get_pages_sgt(). From now on > drivers will have to pin pages while they use sgt. Lima driver doesn't > have shrinker, hence

[PATCH v18 14/26] drm/lima: Explicitly get and put drm-shmem pages

2023-10-29 Thread Dmitry Osipenko
To simplify the drm-shmem refcnt handling, we're moving away from the implicit get_pages() that is used by get_pages_sgt(). From now on drivers will have to pin pages while they use sgt. Lima driver doesn't have shrinker, hence pages are pinned and sgt is valid as long as pages' use-count > 0.