gpu: nvgpu: add debugger flag for fb units

Add CONFIG_NVGPU_DEBUGGER flag for debugger specific code in
common.hal.fb unit

Jira NVGPU-3506

Change-Id: If459e623e73ce716088d9cb92c31864c26fe0d3d
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2132260
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2019-06-06 17:15:10 +05:30
committed by mobile promotions
parent 1112af9f8c
commit a3d30adab2
12 changed files with 24 additions and 2 deletions

View File

@@ -474,8 +474,10 @@ int gk20a_finalize_poweron(struct gk20a *g)
g->ops.chip_init_gpu_characteristics(g);
#ifdef CONFIG_NVGPU_DEBUGGER
/* Restore the debug setting */
g->ops.fb.set_debug_mode(g, g->mmu_debug_ctrl);
#endif
#ifdef CONFIG_NVGPU_CE
err = nvgpu_ce_init_support(g);