linux_dsm_epyc7002/drivers/gpu/drm/panfrost
Rob Herring 013b651013 drm/panfrost: Add madvise and shrinker support
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 <tomeu.vizoso@collabora.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190805143358.21245-2-robh@kernel.org
2019-08-08 15:57:36 -06:00
..
Kconfig drm/panfrost: Require the simple_ondemand governor 2019-06-10 09:30:34 -06:00
Makefile drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_devfreq.c drm: Switch to use DEVFREQ_GOV_SIMPLE_ONDEMAND constant 2019-07-25 16:14:43 -06:00
panfrost_devfreq.h
panfrost_device.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_device.h drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_drv.c drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_features.h
panfrost_gem_shrinker.c drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_gem.c drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_gem.h drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00
panfrost_gpu.c drm/panfrost: Export all GPU feature registers 2019-07-25 16:10:52 -06:00
panfrost_gpu.h
panfrost_issues.h
panfrost_job.c drm/scheduler: rework job destruction 2019-05-02 15:45:48 -05:00
panfrost_job.h
panfrost_mmu.c drm/panfrost: Make sure a BO is only unmapped when appropriate 2019-06-18 09:26:28 -06:00
panfrost_mmu.h
panfrost_perfcnt.c drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_perfcnt.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
panfrost_regs.h drm/panfrost: Expose performance counters through unstable ioctls 2019-06-18 09:23:48 -06:00
TODO drm/panfrost: Add madvise and shrinker support 2019-08-08 15:57:36 -06:00