]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video: tegra: nvmap: support inserting pages on unreserve
authorSri Krishna chowdary <schowdary@nvidia.com>
Tue, 12 May 2015 07:12:49 +0000 (12:42 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 9 Dec 2015 02:23:26 +0000 (18:23 -0800)
commitce62f04082dc1adfe07c1bcd8cbff0d59b3abf80
tree69a8567d9c593b5aa24eda470b5b4a1a615660b2
parent6fe63a8bbd692b73eb59415b662f12508196524f
video: tegra: nvmap: support inserting pages on unreserve

Some times it is beneficial to insert pages into vma on unreserve.
This avoids page fault overhead for any accesses later. If user space
knows apriori which regions of a group of handles will be accessed for
sure, user space can pass relevant information with this new
NVMAP_INSERT_PAGE_ON_UNRESERVE option to reserve ioctl call.

Mark pages as writable, else write accesses after read fault nullifying the
purpose of the option.

Bug 200092803

Change-Id: Id44502b9a5d890d24f221e38c6ae781584ce7ace
Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/781602
GVS: Gerrit_Virtual_Submit
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
drivers/video/tegra/nvmap/nvmap_mm.c
drivers/video/tegra/nvmap/nvmap_priv.h
include/linux/nvmap.h