mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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>
86 lines
3.8 KiB
C
86 lines
3.8 KiB
C
/*
|
|
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
* to deal in the Software without restriction, including without limitation
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
* Software is furnished to do so, subject to the following conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in
|
|
* all copies or substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
* DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef NVGPU_LOG_COMMON_H
|
|
#define NVGPU_LOG_COMMON_H
|
|
|
|
enum nvgpu_log_type {
|
|
NVGPU_ERROR = 0,
|
|
NVGPU_WARNING,
|
|
NVGPU_DEBUG,
|
|
NVGPU_INFO,
|
|
};
|
|
|
|
/*
|
|
* Use this define to set a default mask.
|
|
*/
|
|
#define NVGPU_DEFAULT_DBG_MASK U64(0)
|
|
|
|
#define gpu_dbg_info BIT(0) /* Lightly verbose info. */
|
|
#define gpu_dbg_fn BIT(1) /* Function name tracing. */
|
|
#define gpu_dbg_reg BIT(2) /* Register accesses; very verbose. */
|
|
#define gpu_dbg_pte BIT(3) /* GMMU PTEs. */
|
|
#define gpu_dbg_intr BIT(4) /* Interrupts. */
|
|
#define gpu_dbg_pmu BIT(5) /* gk20a pmu. */
|
|
#define gpu_dbg_clk BIT(6) /* gk20a clk. */
|
|
#define gpu_dbg_map BIT(7) /* Memory mappings. */
|
|
#define gpu_dbg_map_v BIT(8) /* Verbose mem mappings. */
|
|
#define gpu_dbg_gpu_dbg BIT(9) /* GPU debugger/profiler. */
|
|
#define gpu_dbg_cde BIT(10) /* cde info messages. */
|
|
#define gpu_dbg_cde_ctx BIT(11) /* cde context usage messages. */
|
|
#define gpu_dbg_ctxsw BIT(12) /* ctxsw tracing. */
|
|
#define gpu_dbg_sched BIT(13) /* Sched control tracing. */
|
|
#define gpu_dbg_sema BIT(14) /* Semaphore debugging. */
|
|
#define gpu_dbg_sema_v BIT(15) /* Verbose semaphore debugging. */
|
|
#define gpu_dbg_pmu_pstate BIT(16) /* p state controlled by pmu. */
|
|
#define gpu_dbg_xv BIT(17) /* XVE debugging. */
|
|
#define gpu_dbg_shutdown BIT(18) /* GPU shutdown tracing. */
|
|
#define gpu_dbg_kmem BIT(19) /* Kmem tracking debugging. */
|
|
#define gpu_dbg_pd_cache BIT(20) /* PD cache traces. */
|
|
#define gpu_dbg_alloc BIT(21) /* Allocator debugging. */
|
|
#define gpu_dbg_dma BIT(22) /* DMA allocation prints. */
|
|
#define gpu_dbg_sgl BIT(23) /* SGL related traces. */
|
|
#ifdef CONFIG_NVGPU_DGPU
|
|
#define gpu_dbg_vidmem BIT(24) /* VIDMEM tracing. */
|
|
#endif
|
|
#define gpu_dbg_nvlink BIT(25) /* nvlink Operation tracing. */
|
|
#define gpu_dbg_clk_arb BIT(26) /* Clk arbiter debugging. */
|
|
#define gpu_dbg_event BIT(27) /* Events to User debugging. */
|
|
#define gpu_dbg_vsrv BIT(28) /* server debugging. */
|
|
#define gpu_dbg_prof BIT(29) /* GPU profiler object debugging. */
|
|
#define gpu_dbg_gr BIT(30) /* common.gr debugging. */
|
|
#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_rec BIT(34) /* Recovery sequence debugging. */
|
|
#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
|