diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-11-03 11:55:48 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:25 -0400 |
commit | 5bac50c04406dd88bd4aad285601067620c540d4 (patch) | |
tree | c6625bf96cf9d550d120c96e635286a3e9d771e6 /drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |
parent | 36834282354de2760e54b1381e03e0fe8bc8b2a4 (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/regops_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/regops_gk20a.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c index fe444c78..cbdd1a55 100644 --- a/drivers/gpu/nvgpu/gk20a/regops_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/regops_gk20a.c | |||
@@ -392,6 +392,17 @@ int exec_regops_gk20a(struct dbg_session_gk20a *dbg_s, | |||
392 | 392 | ||
393 | ch = dbg_s->ch; | 393 | ch = dbg_s->ch; |
394 | 394 | ||
395 | /* For vgpu, the regops routines need to be handled in the | ||
396 | * context of the server and support for that does not exist. | ||
397 | * | ||
398 | * The two users of the regops interface are the compute driver | ||
399 | * and tools. The compute driver will work without a functional | ||
400 | * regops implementation, so we return -ENOSYS. This will allow | ||
401 | * compute apps to run with vgpu. Tools will not work in this | ||
402 | * configuration and are not required to work at this time. */ | ||
403 | if (gk20a_gpu_is_virtual(dbg_s->pdev)) | ||
404 | return -ENOSYS; | ||
405 | |||
395 | ok = g->allow_all || validate_reg_ops(dbg_s, | 406 | ok = g->allow_all || validate_reg_ops(dbg_s, |
396 | &ctx_rd_count, &ctx_wr_count, | 407 | &ctx_rd_count, &ctx_wr_count, |
397 | ops, num_ops); | 408 | ops, num_ops); |