From 55de4040cbe228ebd1f8b3aa673c7be190894f19 Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary Date: Thu, 31 Mar 2016 21:40:00 +0530 Subject: video: tegra: nvmap: disallow cpu access to carveout if specified Disable cpu accesses on all allocations from carveouts which specify that they can't be accessed from cpu. Disable both kernel and user space accesses. Also, do not allow any cache related operations to execute on such carveouts as it is not required. JIRA TMM-40 Change-Id: I437e41b1bc66947915cf31e431438f27b8dec233 Signed-off-by: Sri Krishna chowdary Reviewed-on: http://git-master/r/1118452 Reviewed-by: Sachin Nikam --- include/linux/nvmap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index d551f992d..764e03fe3 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -87,6 +87,7 @@ struct nvmap_platform_carveout { int can_alloc; bool enable_static_dma_map; bool disable_dynamic_dma_map; + bool no_cpu_access; /* carveout can't be accessed from cpu at all */ bool init_done; /* FIXME: remove once all caveouts use reserved-memory */ }; -- cgit v1.2.2