gpu: nvgpu: reduce traffic on dbg_fn or dbg_info

Reduce debug logs printed when gpu_dbg_info or gpu_dbg_fn is set.
- Add gpu_dbg_verbose flag for more verbose debug prints. Update prints
in to ga10b_gr_init_wait_idle(), gm20b_gr_init_wait_fe_idle(),
gv11b_gr_init_write_bundle_veid_state() and
gv11b_gr_init_load_sw_veid_bundle().
- Add gpu_dbg_hwpm flag for hwpm specific debug prints. Update print in
nvgpu_gr_hwpm_map_create().
- Add gpu_dbg_mm for MM specific debug prints. Update prints in
gm20b_fb_tlb_invalidate(), gk20a_mm_fb_flush(),
gk20a_mm_l2_invalidate_locked(), gk20a_mm_l2_flush() and
gv11b_mm_l2_flush().
- Remove gpu_dbg_fn mask print in gr_ga10b_create_priv_addr_table(),
gr_gk20a_get_pm_ctx_buffer_offsets(), gr_gv11b_decode_priv_addr() and
gr_gv11b_create_priv_addr_table().

Jira NVGPU-7183

Change-Id: I9842d567047cb95a42e23b5907ae324214eed606
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2602797
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Vedashree Vidwans
2021-08-10 21:40:27 -07:00
committed by mobile promotions
parent 1c1fec6d9f
commit b24f577a5c
11 changed files with 34 additions and 27 deletions

View File

@@ -71,12 +71,15 @@ enum nvgpu_log_type {
#define gpu_dbg_mem BIT(31) /* memory accesses; very verbose. */
#define gpu_dbg_device BIT(32) /* Device initialization and
querying. */
#define gpu_dbg_mig BIT(33) /* MIG info */
#define gpu_dbg_mig BIT(33) /* MIG info. */
#define gpu_dbg_rec BIT(34) /* Recovery sequence debugging. */
#define gpu_dbg_zbc BIT(35) /* Gr ZBC */
#define gpu_dbg_vab BIT(36) /* VAB */
#define gpu_dbg_zbc BIT(35) /* Gr ZBC. */
#define gpu_dbg_vab BIT(36) /* VAB. */
#define gpu_dbg_runlists BIT(38) /* Runlist related debugging. */
#define gpu_dbg_cic BIT(39) /* Interrupt Handling debugging. */
#define gpu_dbg_falcon BIT(40) /* Falcon/NVRISCV debugging */
#define gpu_dbg_mm BIT(41) /* Memory management debugging. */
#define gpu_dbg_hwpm BIT(42) /* GPU HWPM. */
#define gpu_dbg_verbose BIT(43) /* More verbose logs. */
#endif