mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
af65ec2697
commit
a108d3f036
@@ -308,11 +308,11 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
||||
l->debugfs, &g->disable_syncpoints);
|
||||
|
||||
/* Legacy debugging API. */
|
||||
debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR,
|
||||
debugfs_create_u64("dbg_mask", S_IRUGO|S_IWUSR,
|
||||
l->debugfs, &nvgpu_dbg_mask);
|
||||
|
||||
/* New debug logging API. */
|
||||
debugfs_create_u32("log_mask", S_IRUGO|S_IWUSR,
|
||||
debugfs_create_u64("log_mask", S_IRUGO|S_IWUSR,
|
||||
l->debugfs, &g->log_mask);
|
||||
debugfs_create_u32("log_trace", S_IRUGO|S_IWUSR,
|
||||
l->debugfs, &g->log_trace);
|
||||
|
||||
Reference in New Issue
Block a user