diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2018-01-03 19:51:57 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-04 14:04:46 -0500 |
commit | de7721ddc989e16729911a637467a04d8bb134b8 (patch) | |
tree | d35527ff9cd333de4d1672d49c78418f0ee208c1 /drivers/gpu | |
parent | dde1913f164a030256bb454a8e9917279ae21396 (diff) |
gpu: nvgpu: no hv support for write_sm_error_state
There is no current need for a virtualized version of
nvgpu_dbg_gpu_ioctl_write_single_sm_error_state, so return
-ENOSYS when virtual.
Bug 200331110
Change-Id: I223a6298eb4c891859f1c8252049f9a83d84ccb5
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1631270
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-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; |