summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-12-18 01:53:05 -0500
committerSachin Nikam <snikam@nvidia.com>2016-01-13 01:59:24 -0500
commit4bc0a42f32f16b2050b9f190909d0d5df4d80e44 (patch)
tree6b2d449853a518746980e0ba348f7fb17348957c /drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
parentca76b336b32dce2e57034fbd44a273c539f67a54 (diff)
gpu: nvgpu: APIs to suspend/resume single SM
Add below APIs to suspend or resume single SM : gk20a_suspend_single_sm() gk20a_resume_single_sm() Also, update gk20a_suspend_all_sms() to make it more generic by passing global_esr_mask and check_errors flag as parameter Bug 200156699 Change-Id: If40f4bcae74a8132673b4dca10b7d9898f23c164 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/925884 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
index 1397549e..1f1b164f 100644
--- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * Tegra GK20A GPU Debugger/Profiler Driver 2 * Tegra GK20A GPU Debugger/Profiler Driver
3 * 3 *
4 * Copyright (c) 2013-2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2013-2016, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -867,7 +867,7 @@ static int nvgpu_dbg_gpu_ioctl_suspend_resume_sm(
867 if (ch_is_curr_ctx) { 867 if (ch_is_curr_ctx) {
868 switch (action) { 868 switch (action) {
869 case NVGPU_DBG_GPU_SUSPEND_ALL_SMS: 869 case NVGPU_DBG_GPU_SUSPEND_ALL_SMS:
870 gk20a_suspend_all_sms(g); 870 gk20a_suspend_all_sms(g, 0, false);
871 break; 871 break;
872 872
873 case NVGPU_DBG_GPU_RESUME_ALL_SMS: 873 case NVGPU_DBG_GPU_RESUME_ALL_SMS: