mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-10 03:20:30 +01:00
Add support for madvise and a shrinker similar to other drivers. This allows userspace to mark BOs which can be freed when there is memory pressure. Unlike other implementations, we don't depend on struct_mutex. The driver maintains a list of BOs which can be freed when the shrinker is called. Access to the list is serialized with the shrinker_lock. Cc: Tomeu Vizoso <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
15 lines
274 B
Makefile
15 lines
274 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
panfrost-y := \
|
|
panfrost_drv.o \
|
|
panfrost_device.o \
|
|
panfrost_devfreq.o \
|
|
panfrost_gem.o \
|
|
panfrost_gem_shrinker.o \
|
|
panfrost_gpu.o \
|
|
panfrost_job.o \
|
|
panfrost_mmu.o \
|
|
panfrost_perfcnt.o
|
|
|
|
obj-$(CONFIG_DRM_PANFROST) += panfrost.o
|