nvidia-oot: camera: isp: track syncpt threshold

This change does the following:
 - Keep the capture progress syncpt threshold up to date by
   incrementing it when a capture request is made
 - Fast forward the syncpoints via host1x api on reset

Bug 4882047

Change-Id: If971bf4f248bd7a0be6a79ccb0e124f2768c0af4
Signed-off-by: Rakibul Hassan <rakibulh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3248427
(cherry picked from commit cbac4a12165c2d19f9f5889cbeffffb3b63e54d0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3253387
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
Reviewed-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Rakibul Hassan
2024-11-14 01:15:11 +00:00
committed by Jon Hunter
parent d4f85d7379
commit 652c032bb5
3 changed files with 58 additions and 0 deletions

View File

@@ -48,6 +48,18 @@ struct isp_channel_drv_ops {
struct platform_device *pdev,
uint32_t id);
/**
* Fast forward a progres syncpt to Host1x.
*
* @param[in] pdev VI platform_device
* @param[in] id syncpt id to fast forward
* @param[in] threshold value to fast forward to
*/
void (*fast_forward_syncpt)(
struct platform_device *pdev,
uint32_t id,
uint32_t threshold);
/**
* @brief Retrieve the GoS table allocated in the ISP-THI carveout.
*