diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c index 4bade4857..9372fca8f 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;