summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/debug.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-03-28 16:39:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-04 02:24:31 -0400
commita108d3f0368c72f2d553cac1470531677b5a7b88 (patch)
tree24e252a07dfc4951c60e321e8e44e74a4df7e84f /drivers/gpu/nvgpu/common/linux/debug.c
parentaf65ec26976719547212ae29abc10548cf40b7ac (diff)
gpu: nvgpu: Use u64 for log mask
BIT() is defined as returning a 64-bit value. We use it to create the log mask values, but the functions that accept log mask take only u32 as parameter. Use u64 as log mask parameter for the logging functions to match the sizes. Change-Id: I6f0803a7d04ee6a2ee725b5defc4cc14b5b7acf5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1683818 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/debug.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/debug.c b/drivers/gpu/nvgpu/common/linux/debug.c
index 80a1f7db..a458a3d4 100644
--- a/drivers/gpu/nvgpu/common/linux/debug.c
+++ b/drivers/gpu/nvgpu/common/linux/debug.c
@@ -308,11 +308,11 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
308 l->debugfs, &g->disable_syncpoints); 308 l->debugfs, &g->disable_syncpoints);
309 309
310 /* Legacy debugging API. */ 310 /* Legacy debugging API. */
311 debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR, 311 debugfs_create_u64("dbg_mask", S_IRUGO|S_IWUSR,
312 l->debugfs, &nvgpu_dbg_mask); 312 l->debugfs, &nvgpu_dbg_mask);
313 313
314 /* New debug logging API. */ 314 /* New debug logging API. */
315 debugfs_create_u32("log_mask", S_IRUGO|S_IWUSR, 315 debugfs_create_u64("log_mask", S_IRUGO|S_IWUSR,
316 l->debugfs, &g->log_mask); 316 l->debugfs, &g->log_mask);
317 debugfs_create_u32("log_trace", S_IRUGO|S_IWUSR, 317 debugfs_create_u32("log_trace", S_IRUGO|S_IWUSR,
318 l->debugfs, &g->log_trace); 318 l->debugfs, &g->log_trace);