mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
- Define boot log related HSP message ID's. - Call camrtc_hsp_vm_read_boot_log as the first step during the HSP handshake. - The read_boot_log function will wait for 2000 ms for a boot log message. If the RCE has hung during boot, this will timeout, and return with error. - Move dev_set_drvdata to before camrtc_hsp_probe in camrtc_hsp_create. Explanation: The RCE, during a normal boot sequence, will boot before the RTCPU KMD starts probing, so the mailbox will already be full when the HSP driver is initializing. The RTCPU HSP full interrupt handler will be called immediately after the handlers are registered by the mailbox driver. The interrupt handler will reference the HSP device's drvdata, and it was a race condition as to whether the interrupt handler would be called before the drvdata was set. Thus, this change sets drvdata before the interrupt handlers are installed to prevent this race condition. - Update the full interrupt handler to return if camhsp is null. Jira CAMERASW-27443 Change-Id: Ibb7ed41771d2178e0d06adb94ae1955db61b9d92 Signed-off-by: Akihiro Mizusawa <amizusawa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3239620 Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Semi Malinen <smalinen@nvidia.com> Reviewed-by: Frank Chen <frankc@nvidia.com>