From de7721ddc989e16729911a637467a04d8bb134b8 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 3 Jan 2018 16:51:57 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1631270 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_dbg.c') 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 @@ /* * Tegra GK20A GPU Debugger/Profiler Driver * - * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * 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( struct nvgpu_gr_sm_error_state sm_error_state; int err = 0; + /* Not currently supported in the virtual case */ + if (g->is_virtual) + return -ENOSYS; + ch = nvgpu_dbg_gpu_get_session_channel(dbg_s); if (!ch) return -EINVAL; -- cgit v1.2.2