From 28514b49fb47623c1946500b4eef2a09717ae6ed Mon Sep 17 00:00:00 2001 From: Adeel Raza Date: Fri, 13 Dec 2019 15:13:02 -0800 Subject: [PATCH] gpu: nvgpu: convert disable_syncpoints into a bool The disable_syncpoints debugfs knob allows the user to disable syncpt support at runtime. This knob was incorrectly defined as a u32. Convert it into a boolean variable. JIRA NVGPU-3873 Change-Id: If1cfe07fa7b795c0d1b507395bd6e4fa547e3615 Signed-off-by: Adeel Raza Reviewed-on: https://git-master.nvidia.com/r/2262193 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/gk20a.h | 2 +- drivers/gpu/nvgpu/os/linux/debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h index 8a6a6ec4c..2c05f567b 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h @@ -789,7 +789,7 @@ struct gk20a { bool aggressive_sync_destroy; /** Debugfs knob for forcing syncpt support off in runtime. */ - u32 disable_syncpoints; + bool disable_syncpoints; /** Is LS PMU supported? */ bool support_ls_pmu; diff --git a/drivers/gpu/nvgpu/os/linux/debug.c b/drivers/gpu/nvgpu/os/linux/debug.c index 8c55aa21d..609eb5f86 100644 --- a/drivers/gpu/nvgpu/os/linux/debug.c +++ b/drivers/gpu/nvgpu/os/linux/debug.c @@ -362,7 +362,7 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink) debugfs_create_u32("ch_wdt_init_limit_ms", S_IRUGO|S_IWUSR, l->debugfs, &g->ch_wdt_init_limit_ms); - debugfs_create_u32("disable_syncpoints", S_IRUGO, + debugfs_create_bool("disable_syncpoints", S_IRUGO, l->debugfs, &g->disable_syncpoints); /* New debug logging API. */