diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-09-26 13:37:40 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-11-09 10:57:17 -0800 |
commit | 359a8f6ae5a2e33ffd8dd2a06883fad83e7e09c9 (patch) | |
tree | fd3ec9fcbf75c81dcd381306c4d682819c57bee2 /bin | |
parent | 7d72af4f09c0482661096797594287e6d7d5c1b2 (diff) |
broadcom/vc4: Mark BOs as purgeable when they enter the BO cache
This patch makes use of the DRM_IOCTL_VC4_GEM_MADVISE ioctl to mark all
BOs placed in the mesa BO cache as purgeable so that the system can
reclaim this memory under memory pressure.
v2:
- Removed BOs from the cache when they've been purged by the kernel
- Check whether the madvise ioctl is supported or not before using it
v3: Don't walk the whole list when we find a busy BO (by anholt, acked by
Boris)
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions