summaryrefslogtreecommitdiffstats
path: root/include/linux/nvmap.h
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2016-03-31 12:10:00 -0400
committerSri Krishna chowdary <schowdary@nvidia.com>2016-04-14 04:08:19 -0400
commit55de4040cbe228ebd1f8b3aa673c7be190894f19 (patch)
treea5c3457397b8f583017e502326cacc28de858aa7 /include/linux/nvmap.h
parent2c05f5930ab38a891d4432b50f0500a158b9ae49 (diff)
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 <schowdary@nvidia.com> Reviewed-on: http://git-master/r/1118452 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'include/linux/nvmap.h')
-rw-r--r--include/linux/nvmap.h1
1 files changed, 1 insertions, 0 deletions
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 {
87 int can_alloc; 87 int can_alloc;
88 bool enable_static_dma_map; 88 bool enable_static_dma_map;
89 bool disable_dynamic_dma_map; 89 bool disable_dynamic_dma_map;
90 bool no_cpu_access; /* carveout can't be accessed from cpu at all */
90 bool init_done; /* FIXME: remove once all caveouts use reserved-memory */ 91 bool init_done; /* FIXME: remove once all caveouts use reserved-memory */
91}; 92};
92 93