mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
Add unit tests to cover the invalid falcon port access, falcon sw init switch cases, nvgpu_falcon_set_irq, nvgpu_timeout_init failure branch coverage. Compile out the functions nvgpu_falcon_get_mem_size & falcon_bootstrap as they are needed by LS PMU and VBIOS code. For iGPU safety the falcon functions needing these will call the HAL APIs directly. This way we avoid the unreachable code as well. Updated the prototype of falcon bootstrap HAL API as that doesn't return any error. With these changes, we get 100% line coverage for common.falcon unit. JIRA NVGPU-2214 Change-Id: I1fe653d97c1a6a1521d7da38f171928dda58c5b5 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2258311 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>