Hi,
This a continuation of a year-old series that adds generic DRM-shmem
shrinker [1]. The old series became too big with too many patches, more
reasonable to split it up into multiple smaller patchsets. Here is
the firtst part that makes preparatory DRM changes.
[1] https://lore.kernel.org/dri-devel/20240105184624.508603-1-dmitry.osipenko@xxxxxxxxxxxxx/
Changelog:
v20:- Rebased on recent drm-misc. Added r-bs that were given to v19.
Dmitry Osipenko (10):
drm/gem: Change locked/unlocked postfix of drm_gem_v/unmap() function
names
drm/gem: Add _locked postfix to functions that have unlocked
counterpart
drm/gem: Document locking rule of vmap and evict callbacks
drm/shmem-helper: Make all exported symbols GPL
drm/shmem-helper: Refactor locked/unlocked functions
drm/shmem-helper: Remove obsoleted is_iomem test
drm/shmem-helper: Add and use pages_pin_count
drm/shmem-helper: Use refcount_t for pages_use_count
drm/shmem-helper: Switch drm_gem_shmem_vmap/vunmap to use pin/unpin
drm/shmem-helper: Use refcount_t for vmap_use_count
drivers/gpu/drm/drm_client.c | 10 +-
drivers/gpu/drm/drm_gem.c | 26 ++--
drivers/gpu/drm/drm_gem_framebuffer_helper.c | 6 +-
drivers/gpu/drm/drm_gem_shmem_helper.c | 145 +++++++++---------
drivers/gpu/drm/drm_internal.h | 4 +-
drivers/gpu/drm/drm_prime.c | 4 +-
drivers/gpu/drm/imagination/pvr_gem.c | 4 +-
drivers/gpu/drm/lima/lima_gem.c | 4 +-
drivers/gpu/drm/lima/lima_sched.c | 4 +-
drivers/gpu/drm/panfrost/panfrost_drv.c | 2 +-
drivers/gpu/drm/panfrost/panfrost_dump.c | 4 +-
.../gpu/drm/panfrost/panfrost_gem_shrinker.c | 2 +-
drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 +-
drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 6 +-
drivers/gpu/drm/panthor/panthor_gem.h | 4 +-
drivers/gpu/drm/panthor/panthor_sched.c | 4 +-
drivers/gpu/drm/tests/drm_gem_shmem_test.c | 28 ++--
include/drm/drm_gem.h | 15 +-
include/drm/drm_gem_shmem_helper.h | 45 ++++--
19 files changed, 167 insertions(+), 152 deletions(-)