nvmap: implement deferred cache maintenance
authorKirill Artamonov <kartamonov@nvidia.com>
Mon, 25 Jun 2012 17:13:57 +0000 (20:13 +0300)
committerRiham Haidar <rhaidar@nvidia.com>
Thu, 17 Jan 2013 03:13:19 +0000 (19:13 -0800)
commitec2fc4aed965609899900d6aba7ec71b98ac8791
tree7f56f77e37cd2208d29026b17e99e9297a356ffb
parent82659ffae1a790fc3a95a55029f854d405ceb8bc
nvmap: implement deferred cache maintenance

Defer maintenance till pin or unmap. Handle multiple deferred
operations in batches to flush faster. Enable full L1/L2 flush
if batch is big enough.

bug 983964
bug 994226

Reviewed-on: http://git-master/r/138931
(cherry picked from commit 01d0145ea95c7f98aa4bea3f71962872ba70bdfc)
Change-Id: I29bc82ded1fd7282426e8f161cc55e17f67fc649
Signed-off-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-on: http://git-master/r/171176
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
drivers/video/tegra/Kconfig
drivers/video/tegra/nvmap/nvmap.c
drivers/video/tegra/nvmap/nvmap.h
drivers/video/tegra/nvmap/nvmap_dev.c
drivers/video/tegra/nvmap/nvmap_ioctl.c