From ed220567798156aee74291044a6b2d9586cdee71 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Wed, 25 Jan 2017 14:35:49 +0200 Subject: gpu: nvgpu: add disable_syncpoints debugfs node To test semaphore-related bugs with igpus, add a debugfs node called "disable_syncpoints" to override the "has_syncpoints" platform flag. This makes job synchronization use semaphores, for example. NVGPU_GPU_FLAGS_HAS_SYNCPOINTS is still reported in gpu characteristics if the platform supports that, because it is filled in during boot. Jira NVGPU-18 Change-Id: I58c815f896a6054df472f571012c239f1478bf07 Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/1293972 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c index 609ddf72..37ba720a 100644 --- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c @@ -1,7 +1,7 @@ /* * drivers/video/tegra/host/t20/debug_gk20a.c * - * Copyright (C) 2011-2016 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2011-2017 NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -412,6 +412,9 @@ void gk20a_debug_init(struct device *dev, const char *debugfs_symlink) debugfs_create_u32("ch_wdt_timeout_ms", S_IRUGO|S_IWUSR, platform->debugfs, &platform->ch_wdt_timeout_ms); + debugfs_create_bool("disable_syncpoints", S_IRUGO|S_IWUSR, + platform->debugfs, &platform->disable_syncpoints); + #if defined(GK20A_DEBUG) debugfs_create_u32("dbg_mask", S_IRUGO|S_IWUSR, platform->debugfs, &gk20a_dbg_mask); -- cgit v1.2.2