diff options
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); |