gpu: nvgpu: reduce too much debug logs

When CONFIG_DEBUG_FS is not set, lots of gpu_dbg_info spew.
To reduce the debug logs, set GK20A_DEFAULT_DBG_MASK to 0.

Bug 1885240

Change-Id: I3f60ce1b205b316641228a34fa791df7fab48c9e
Signed-off-by: Jake Park <jakep@nvidia.com>
Reviewed-on: http://git-master/r/1474997
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Kamal Balagopalan <kbalagopalan@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Jake Park
2017-05-04 09:34:38 +09:00
committed by mobile promotions
parent dd26a9bb65
commit 3edd3cbde4

View File

@@ -1142,14 +1142,10 @@ struct gk20a_cyclestate_buffer_elem {
/* debug accessories */
#ifdef CONFIG_DEBUG_FS
/* debug info, default is compiled-in but effectively disabled (0 mask) */
/*e.g: echo 1 > /d/gk20a.0/dbg_mask */
#define GK20A_DEFAULT_DBG_MASK 0
#else
/* manually enable and turn it on the mask */
#define GK20A_DEFAULT_DBG_MASK (gpu_dbg_info)
#endif
/* debug info, default is compiled-in but effectively disabled (0 mask) */
/*e.g: echo 1 > /d/gk20a.0/dbg_mask */
/* or, manually enable and turn it on the mask */
#define GK20A_DEFAULT_DBG_MASK 0
enum gk20a_dbg_categories {
gpu_dbg_info = BIT(0), /* lightly verbose info */