diff options
author | Rob Herring <[email protected]> | 2019-07-31 23:28:37 +0000 |
---|---|---|
committer | Rob Herring <[email protected]> | 2019-08-19 19:33:20 -0500 |
commit | d0ec5d38f6cff2e61d9e526423c0a016cc830d14 (patch) | |
tree | d51ab040b6dfcf6e4c793a56e83bf61582a12224 /scons | |
parent | c45c2d79605b27022975ff1635f9df8f5d01806a (diff) |
panfrost: Add madvise support to BO cache
The kernel now supports madvise ioctl to indicate which BOs can be freed
when there is memory pressure. Mark BOs purgeable when they are in the
BO cache. The BOs must also be munmapped when they are in the cache or
they cannot be purged.
We could optimize avoiding the madvise ioctl on older kernels once the
driver version bump lands, but probably not worth it given the other
driver features also being added.
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions