mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: compile out priv_access_map config/addr hals
These hals are non-safe. Compile them out with CONFIG_NVGPU_SET_FALCON_ACCESS_MAP. JIRA NVGPU-5358 Change-Id: I75b46e201fa132e09fee15679a402d24bbf9b2ab Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2581360 (cherry picked from commit d048333ef391019b2618abf7d09c8fe2042f8ee0) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2581841 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
fe7368f8f4
commit
62b04331de
@@ -497,12 +497,14 @@ void nvgpu_gr_ctx_load_golden_ctx_image(struct gk20a *g,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_SET_FALCON_ACCESS_MAP
|
||||
/* set priv access map */
|
||||
g->ops.gr.ctxsw_prog.set_priv_access_map_config_mode(g, mem,
|
||||
g->allow_all);
|
||||
g->ops.gr.ctxsw_prog.set_priv_access_map_addr(g, mem,
|
||||
nvgpu_gr_ctx_get_global_ctx_va(gr_ctx,
|
||||
NVGPU_GR_CTX_PRIV_ACCESS_MAP_VA));
|
||||
#endif
|
||||
|
||||
/* disable verif features */
|
||||
g->ops.gr.ctxsw_prog.disable_verif_features(g, mem);
|
||||
|
||||
Reference in New Issue
Block a user