diff options
author | Peter Daifuku <pdaifuku@nvidia.com> | 2017-09-08 18:51:35 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-12 00:02:59 -0400 |
commit | 8bd5b7e3b86b605de936d4270373de6b72039ca6 (patch) | |
tree | c6dcf5a8862b10c2d1bd235844888839c5671a7a /drivers/gpu | |
parent | 60b655330a233fd0ea1ab97341e025284d55186f (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: I2a8cf07b2962de4c91b752b276678bee4eea6e80
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1568906
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/gk20a/dbg_gpu_gk20a.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index c3cb0f4c..bf28ed1e 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -837,6 +837,10 @@ static int nvgpu_dbg_gpu_ioctl_write_single_sm_error_state( | |||
837 | struct nvgpu_dbg_gpu_sm_error_state_record *sm_error_state; | 837 | struct nvgpu_dbg_gpu_sm_error_state_record *sm_error_state; |
838 | int err = 0; | 838 | int err = 0; |
839 | 839 | ||
840 | /* Not currently supported in the virtual case */ | ||
841 | if (g->is_virtual) | ||
842 | return -ENOSYS; | ||
843 | |||
840 | ch = nvgpu_dbg_gpu_get_session_channel(dbg_s); | 844 | ch = nvgpu_dbg_gpu_get_session_channel(dbg_s); |
841 | if (!ch) | 845 | if (!ch) |
842 | return -EINVAL; | 846 | return -EINVAL; |