mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add debugger flag for hwpm_map units
Add NVGPU_DEBUGGER flag for common.gr.hwpm_map and common.hal.gr.hwpm_map units Jira NVGPU-3505 Change-Id: I5c9b6f98c7a8f536f5a8492febaa6140ef2adb6f Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2130147 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
455b0da253
commit
c5f5eb896c
@@ -284,7 +284,9 @@ static void gr_remove_support(struct gk20a *g)
|
||||
|
||||
nvgpu_netlist_deinit_ctx_vars(g);
|
||||
|
||||
#ifdef NVGPU_DEBUGGER
|
||||
nvgpu_gr_hwpm_map_deinit(g, gr->hwpm_map);
|
||||
#endif
|
||||
|
||||
nvgpu_gr_falcon_remove_support(g, gr->falcon);
|
||||
gr->falcon = NULL;
|
||||
@@ -401,12 +403,14 @@ static int gr_init_setup_sw(struct gk20a *g)
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
#ifdef NVGPU_DEBUGGER
|
||||
err = nvgpu_gr_hwpm_map_init(g, &g->gr->hwpm_map,
|
||||
nvgpu_gr_falcon_get_pm_ctxsw_image_size(g->gr->falcon));
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "hwpm_map init failed");
|
||||
goto clean_up;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef NVGPU_GRAPHICS
|
||||
err = nvgpu_gr_config_init_map_tiles(g, gr->config);
|
||||
|
||||
Reference in New Issue
Block a user