Re: [PATCH v18 07/26] drm/shmem-helper: Use refcount_t for pages_use_count

2023-11-24 Thread Maxime Ripard
On Mon, 30 Oct 2023 02:01:46 +0300, Dmitry Osipenko wrote: > Use atomic refcount_t helper for pages_use_count to optimize pin/unpin > functions by skipping reservation locking while GEM's pin refcount > 1. > > Reviewed-by: Boris Brezillon > Suggested-by: Boris Brezillon > > [ ... ] Acked-by:

[PATCH v18 07/26] drm/shmem-helper: Use refcount_t for pages_use_count

2023-10-29 Thread Dmitry Osipenko
Use atomic refcount_t helper for pages_use_count to optimize pin/unpin functions by skipping reservation locking while GEM's pin refcount > 1. Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem_shmem_helper.c | 33