msm: camera: sync: Update global synx property

Currently all synx handles need to be global. Update
synx create params accordingly.

CRs-Fixed: 3351015
Change-Id: I58d6f927b5a7c1508a34a64c916ca3c9fbb1de49
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
Cette révision appartient à :
Karthik Anantha Ram
2022-11-04 13:18:28 -07:00
révisé par Camera Software Integration
Parent 7bbd2390ff
révision c8ee871fdf

Voir le fichier

@@ -248,10 +248,11 @@ static int __cam_synx_map_generic_flags_to_create(uint32_t generic_flags,
return -EINVAL;
}
if (CAM_GENERIC_FENCE_FLAG_IS_GLOBAL_SYNX_OBJ & generic_flags)
params->flags |= SYNX_CREATE_GLOBAL_FENCE;
else
params->flags |= SYNX_CREATE_LOCAL_FENCE;
/*
* Create Global Always - remove after userspace optimizes and
* determines when global Vs local is needed
*/
params->flags |= SYNX_CREATE_GLOBAL_FENCE;
return 0;
}
@@ -264,10 +265,11 @@ static int __cam_synx_map_generic_flags_to_import(uint32_t generic_flags,
return -EINVAL;
}
if (CAM_GENERIC_FENCE_FLAG_IS_GLOBAL_SYNX_OBJ & generic_flags)
params->flags |= SYNX_IMPORT_GLOBAL_FENCE;
else
params->flags |= SYNX_IMPORT_LOCAL_FENCE;
/*
* Create Global Always - remove after userspace optimizes and
* determines when global Vs local is needed
*/
params->flags |= SYNX_IMPORT_GLOBAL_FENCE;
return 0;
}
@@ -293,12 +295,6 @@ int cam_synx_obj_create(const char *name, uint32_t flags, uint32_t *synx_obj,
goto free_idx;
}
/*
* Create Global Always - remove after userspace optimizes and
* determines when global Vs local is needed
*/
params.flags |= SYNX_CREATE_GLOBAL_FENCE;
rc = synx_create(g_cam_synx_obj_dev->session_handle, &params);
if (rc) {
CAM_ERR(CAM_SYNX, "Failed to create synx obj");