From 5bac50c04406dd88bd4aad285601067620c540d4 Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Mon, 3 Nov 2014 11:55:48 -0500 Subject: 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 Reviewed-on: http://git-master/r/592878 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/ctrl_gk20a.c') 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 struct zbc_entry *zbc_val; struct zbc_query_params *zbc_tbl; int i, err = 0; - struct gk20a_platform *platform = platform_get_drvdata(dev); gk20a_dbg_fn(""); @@ -320,7 +319,8 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg case NVGPU_GPU_IOCTL_ZBC_SET_TABLE: set_table_args = (struct nvgpu_gpu_zbc_set_table_args *)buf; - if (platform->virtual_dev) + /* not supported for vgpu */ + if (gk20a_gpu_is_virtual(dev)) return -ENOMEM; zbc_val = kzalloc(sizeof(struct zbc_entry), GFP_KERNEL); -- cgit v1.2.2