From a16f79eeff8f61dccc679dd84a0ecb1f138c506e Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Mon, 20 Aug 2018 20:25:22 +0300 Subject: tegra: camera: rtcpu: fix boot timeouts The t186-sce boot time sometimes exceeds 2000 milliseconds. The undue boot time is because the memory bandwidth problems. During the boot the DRAM image is read twice (once when copying, once when calculating SHA1). Calculate time from deasserting resets to the first mailbox handshake with camrtc. Add a dedicated bandwidth manager client for camrtc. Request for extra memory bandwidth during boot time. Retry camrtc boot if it fails. Report failed boot handshake correctly to the platform, avoid corruption. Bug 2305627 Change-Id: Ia96e369ee1b09d6298268f7bd309db1c8f326564 Signed-off-by: Pekka Pessi Reviewed-on: https://git-master.nvidia.com/r/1803895 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Semi Malinen Reviewed-by: Bharat Nihalani GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/platform/tegra/emc_bwmgr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux/platform') diff --git a/include/linux/platform/tegra/emc_bwmgr.h b/include/linux/platform/tegra/emc_bwmgr.h index 64d6f6f89..cbc79b03b 100644 --- a/include/linux/platform/tegra/emc_bwmgr.h +++ b/include/linux/platform/tegra/emc_bwmgr.h @@ -50,6 +50,7 @@ enum tegra_bwmgr_client_id { TEGRA_BWMGR_CLIENT_ISPB, TEGRA_BWMGR_CLIENT_CAMERA, TEGRA_BWMGR_CLIENT_CAMERA_NON_ISO, + TEGRA_BWMGR_CLIENT_CAMRTC, TEGRA_BWMGR_CLIENT_ISOMGR, TEGRA_BWMGR_CLIENT_THERMAL_CAP, TEGRA_BWMGR_CLIENT_VIC, -- cgit v1.2.2