From 8eb41a68955e4c40881e11afe0cdfd165b33473b Mon Sep 17 00:00:00 2001 From: Sri Krishna chowdary Date: Wed, 15 Mar 2017 16:11:45 +0530 Subject: video: tegra: nvmap: support cache op on handles >= 4GB size Add a new field len_msb to nvmap_cache_op struct so as to not modify the struct's size and also support cache operations on handles larger than 4GB. This len_msb will store the most significant 32 bits of length. bug 1860962 Change-Id: I75360a8531975e79329daa655575ee58525841f6 Signed-off-by: Sri Krishna chowdary Reviewed-on: https://git-master/r/1509944 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam --- include/linux/nvmap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/linux') diff --git a/include/linux/nvmap.h b/include/linux/nvmap.h index 5ac4cdd9f..7d142ab01 100644 --- a/include/linux/nvmap.h +++ b/include/linux/nvmap.h @@ -284,6 +284,13 @@ struct nvmap_cache_op { __s32 op; /* wb/wb_inv/inv */ }; +struct nvmap_cache_op_64 { + unsigned long addr; /* user pointer*/ + __u32 handle; /* nvmap handle */ + __u64 len; /* bytes to flush */ + __s32 op; /* wb/wb_inv/inv */ +}; + #ifdef CONFIG_COMPAT struct nvmap_cache_op_32 { __u32 addr; /* user pointer*/ @@ -379,6 +386,7 @@ struct nvmap_available_heaps { #endif #define NVMAP_IOC_CACHE _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op) +#define NVMAP_IOC_CACHE_64 _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op_64) #ifdef CONFIG_COMPAT #define NVMAP_IOC_CACHE_32 _IOW(NVMAP_IOC_MAGIC, 12, struct nvmap_cache_op_32) #endif -- cgit v1.2.2