msm: camera: mem_mgr: Cache invalidation optimization

During unmap these internal buffers will be freed immediately
afterwards, therefore there is no need to do cache operation.

CRs-Fixed: 2627074
Change-Id: Ica4ebb93eb212604268c3450a92d075197783537
Signed-off-by: Karthik Jayakumar <kjayakum@codeaurora.org>
This commit is contained in:
Karthik Jayakumar
2020-02-21 13:39:59 -08:00
parent c4d16b525c
commit a68684d77c
5 changed files with 52 additions and 10 deletions

View File

@@ -41,6 +41,7 @@ enum cam_smmu_mapping_client {
* @kmdvaddr: Kernel virtual address
* @active: state of the buffer
* @is_imported: Flag indicating if buffer is imported from an FD in user space
* @is_internal: Flag indicating kernel allocated buffer
*/
struct cam_mem_buf_queue {
struct dma_buf *dma_buf;
@@ -56,6 +57,7 @@ struct cam_mem_buf_queue {
uintptr_t kmdvaddr;
bool active;
bool is_imported;
bool is_internal;
};
/**