mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
g->ops.gr.init.get_access_map() returns whitelist of register addresses that can be accessed by SET_FALCON methods when added into pushbuffer. SET_FALCON method does not need to be supported in safety. Hence install an empty register access map in safety build by adding a new flag CONFIG_NVGPU_SET_FALCON_ACCESS_MAP. Compile out g->ops.gr.init.get_access_map() and code that writes whitelist in access map buffer. Note that we still need to configure base address of access map in context image even for safety. Jira NVGPU-3995 Bug 2686235 Change-Id: I111b46f96821a09929aff32fcba5bb2215c81b9a Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2185469 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>