Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 055a2042 authored by Vinayak Menon's avatar Vinayak Menon
Browse files

mm: process_reclaim: support reclaim of driver owned pages



GPU drivers can allocate memory via shmem and these pages
may or may not be mapped to userspace at any moment. But
these pages are allocated on behalf of userspace tasks.
It is ideal to swapout the unmapped pages of a task during
process reclaim. But as process reclaims works on mappings
to derive pages, it misses the unmapped gpu pages. Add an
option to reclaim these pages. Drivers can register to the
reclaim notifier and call into the reclaim function with the
mapping that contains these mapped/unmapped pages.

Change-Id: Ia5de99d9830c0bdf0e9e56d860987f79f95df435
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent f3ac939f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment