]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
video:tegra:nvmap: defer virtual space free till handle free
authorKirill Artamonov <kartamonov@nvidia.com>
Sun, 9 Mar 2014 00:55:19 +0000 (02:55 +0200)
committerKrishna Reddy <vdumpa@nvidia.com>
Wed, 12 Mar 2014 20:30:11 +0000 (13:30 -0700)
commit0c46896de2db7a4b4abd11bbd0831649e9ddd1fd
tree4889b3af03ec73b6f6a29d7e78270f6461215d03
parentaf38c644126f547c1f10bbf71027883e1ea960e5
video:tegra:nvmap: defer virtual space free till handle free

Remappings are expensive operation and should be avoided.

Create a single virtual mapping on first cache maintenance or
mapping request and reuse it until memory buffer is destroyed.

Do not enable this optimization on 32bit platforms because
of limited vmalloc space.

bug 1460266

Change-Id: Ib9361ec779f3e529c79a97e60dd6e3ae55c0a7d4
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/379316
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>
drivers/video/tegra/nvmap/nvmap.c
drivers/video/tegra/nvmap/nvmap_handle.c
drivers/video/tegra/nvmap/nvmap_ioctl.c
drivers/video/tegra/nvmap/nvmap_priv.h