msm: camera: sync: Add extra support for monitor dump

Add monitor dump when dma/synx is already in signaled
state or has registered a cb, and when sync fails to
signal its corresponding dma/synx.

CRs-Fixed: 3350863
Change-Id: I4b52647f1d3f53eff119df1ab143be6848dd0d5d
Signed-off-by: Haochen Yang <quic_haocyang@quicinc.com>
This commit is contained in:
Haochen Yang
2023-02-03 17:04:42 -08:00
committed by Camera Software Integration
parent 69aaaa4e89
commit ae91bc4768
6 changed files with 86 additions and 103 deletions

View File

@@ -69,13 +69,13 @@
* dumps on any error, to explicitly trigger a dump on every fence release
* below BIT(fence_type_dump) needs to be used at the same time
*/
#define CAM_GENERIC_FENCE_DUMP 0x10
#define CAM_GENERIC_FENCE_DUMP_ALWAYS 0x10
#define CAM_GENERIC_FENCE_TYPE_SYNC_OBJ_DUMP \
(CAM_GENERIC_FENCE_TYPE_SYNC_OBJ + (CAM_GENERIC_FENCE_DUMP))
(CAM_GENERIC_FENCE_TYPE_SYNC_OBJ + (CAM_GENERIC_FENCE_DUMP_ALWAYS))
#define CAM_GENERIC_FENCE_TYPE_DMA_FENCE_DUMP \
(CAM_GENERIC_FENCE_TYPE_DMA_FENCE + (CAM_GENERIC_FENCE_DUMP))
(CAM_GENERIC_FENCE_TYPE_DMA_FENCE + (CAM_GENERIC_FENCE_DUMP_ALWAYS))
#define CAM_GENERIC_FENCE_TYPE_SYNX_OBJ_DUMP \
(CAM_GENERIC_FENCE_TYPE_SYNX_OBJ + (CAM_GENERIC_FENCE_DUMP))
(CAM_GENERIC_FENCE_TYPE_SYNX_OBJ + (CAM_GENERIC_FENCE_DUMP_ALWAYS))
/**
* enum sync_type - Enum to indicate the type of sync object,