msm: camera: smmu: Add support to force all CACHED
Add implementation to allow forcing all camera buffer allocations to be CACHED and mapped as CACHED while iommu_map. This is enabled based on DT property. Force this only if io-coherency is enabled. Validations are added to make sure a correct combination of "force_cache" and "io-coherency" properties are mentioned in DT. CRs-Fixed: 2814719 Change-Id: I0d291ce199f523d67e8cd0105386cc63a671806e Signed-off-by: Pavan Kumar Chilamkurthi <pchilamk@codeaurora.org>
This commit is contained in:
@@ -70,6 +70,7 @@ struct cam_mem_buf_queue {
|
||||
* @dentry: Debugfs entry
|
||||
* @alloc_profile_enable: Whether to enable alloc profiling
|
||||
* @dbg_buf_idx: debug buffer index to get usecases info
|
||||
* @force_cache_allocs: Force all internal buffer allocations with cache
|
||||
*/
|
||||
struct cam_mem_table {
|
||||
struct mutex m_lock;
|
||||
@@ -79,6 +80,7 @@ struct cam_mem_table {
|
||||
struct dentry *dentry;
|
||||
bool alloc_profile_enable;
|
||||
size_t dbg_buf_idx;
|
||||
bool force_cache_allocs;
|
||||
};
|
||||
|
||||
/**
|
||||
|
مرجع در شماره جدید
Block a user