summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
diff options
context:
space:
mode:
authorAingara Paramakuru <aparamakuru@nvidia.com>2014-11-03 11:55:48 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:12:25 -0400
commit5bac50c04406dd88bd4aad285601067620c540d4 (patch)
treec6625bf96cf9d550d120c96e635286a3e9d771e6 /drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
parent36834282354de2760e54b1381e03e0fe8bc8b2a4 (diff)
gpu: nvgpu: vgpu: debugger interface fixes
To run CUDA apps, the following minimal changes have been made: - power-gating is disabled for vgpu - regop rd/wr returns -ENOSYS Tools (debugger/profiler) support is known to not work and not needed at this time. Bug 200043227 Change-Id: I923caad78450e72d310fb9290cf2849ed5460ad5 Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/592878 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
index 3bcbdfd9..34351f93 100644
--- a/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c
@@ -258,7 +258,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg
258 struct zbc_entry *zbc_val; 258 struct zbc_entry *zbc_val;
259 struct zbc_query_params *zbc_tbl; 259 struct zbc_query_params *zbc_tbl;
260 int i, err = 0; 260 int i, err = 0;
261 struct gk20a_platform *platform = platform_get_drvdata(dev);
262 261
263 gk20a_dbg_fn(""); 262 gk20a_dbg_fn("");
264 263
@@ -320,7 +319,8 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg
320 case NVGPU_GPU_IOCTL_ZBC_SET_TABLE: 319 case NVGPU_GPU_IOCTL_ZBC_SET_TABLE:
321 set_table_args = (struct nvgpu_gpu_zbc_set_table_args *)buf; 320 set_table_args = (struct nvgpu_gpu_zbc_set_table_args *)buf;
322 321
323 if (platform->virtual_dev) 322 /* not supported for vgpu */
323 if (gk20a_gpu_is_virtual(dev))
324 return -ENOMEM; 324 return -ENOMEM;
325 325
326 zbc_val = kzalloc(sizeof(struct zbc_entry), GFP_KERNEL); 326 zbc_val = kzalloc(sizeof(struct zbc_entry), GFP_KERNEL);