summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/lima/lima_gem.c
diff options
context:
space:
mode:
authorDmitry Osipenko <dmitry.osipenko@collabora.com>2025-03-23 00:26:05 +0300
committerDmitry Osipenko <dmitry.osipenko@collabora.com>2025-03-26 23:00:16 +0300
commitd586b535f1448a6969e2b664e4e061c40bec4679 (patch)
tree8d71fdba7e1cbb576e052c57003e4d41c3dd82b4 /drivers/gpu/drm/lima/lima_gem.c
parenteab10538073c3ff9e21c857bd462f79f2f6f7e00 (diff)
downloadlinux-d586b535f1448a6969e2b664e4e061c40bec4679.tar.xz
drm/shmem-helper: Add and use pages_pin_count
Add separate pages_pin_count for tracking of whether drm-shmem pages are moveable or not. With the addition of memory shrinker support to drm-shmem, the pages_use_count will no longer determine whether pages are hard-pinned in memory, but whether pages exist and are soft-pinned (and could be swapped out). The pages_pin_count > 1 will hard-pin pages in memory. Acked-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Suggested-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.d> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250322212608.40511-8-dmitry.osipenko@collabora.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions