diff options
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c index 4bade485..9372fca8 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.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) 2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2017-2018, 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, |
@@ -244,6 +244,10 @@ static int nvgpu_dbg_gpu_ioctl_write_single_sm_error_state( | |||
244 | struct nvgpu_gr_sm_error_state sm_error_state; | 244 | struct nvgpu_gr_sm_error_state sm_error_state; |
245 | int err = 0; | 245 | int err = 0; |
246 | 246 | ||
247 | /* Not currently supported in the virtual case */ | ||
248 | if (g->is_virtual) | ||
249 | return -ENOSYS; | ||
250 | |||
247 | ch = nvgpu_dbg_gpu_get_session_channel(dbg_s); | 251 | ch = nvgpu_dbg_gpu_get_session_channel(dbg_s); |
248 | if (!ch) | 252 | if (!ch) |
249 | return -EINVAL; | 253 | return -EINVAL; |