From 6f732e040d70404fb4044310740e31b8870dbc3a Mon Sep 17 00:00:00 2001 From: Vaibhav Deshu Venkatesh Date: Mon, 5 Dec 2016 14:40:44 -0800 Subject: msm: vidc: Cache invalidate performance fix When allocate buffer is used we allocate one huge buffer with offsets instead of allocating multiple small buffers. During cache invalidate we pass this big buffer and the size passed is the size of this big buffer. This causes performance issue. Instead we now pass the actual offsetted buffer and smaller individual buffer size for invalidation. CRs-Fixed: 1096624 Change-Id: Ifad386882e4a404b1e455cc3e11ae0e820d2a577 Signed-off-by: Vaibhav Deshu Venkatesh Signed-off-by: Chinmay Sawarkar --- include/media/msm_vidc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/media/msm_vidc.h') diff --git a/include/media/msm_vidc.h b/include/media/msm_vidc.h index 0a089c4faee1..003adc38eb14 100644 --- a/include/media/msm_vidc.h +++ b/include/media/msm_vidc.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -68,6 +68,7 @@ struct msm_smem { void *smem_priv; enum hal_buffer buffer_type; struct dma_mapping_info mapping_info; + unsigned int offset; }; enum smem_cache_ops { -- cgit v1.2.3