diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 8624d601..13635706 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -456,22 +456,19 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
456 | gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS; | 456 | gpu->flags |= NVGPU_GPU_FLAGS_HAS_SYNCPOINTS; |
457 | 457 | ||
458 | /* | 458 | /* |
459 | * Railgating needs job tracking which prevents fast submits. They're | 459 | * Fast submits are supported as long as the user doesn't request |
460 | * supported otherwise, provided that the user doesn't request anything | 460 | * anything that depends on job tracking. (Here, fast means strictly no |
461 | * that depends on job tracking. (Here, fast means strictly no | ||
462 | * metadata, just the gpfifo contents are copied and gp_put updated). | 461 | * metadata, just the gpfifo contents are copied and gp_put updated). |
463 | */ | 462 | */ |
464 | if (!g->can_railgate) | 463 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_NO_JOBTRACKING; |
465 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_NO_JOBTRACKING; | ||
466 | 464 | ||
467 | /* | 465 | /* |
468 | * Railgating and sync framework require deferred job cleanup which | 466 | * Sync framework requires deferred job cleanup, wrapping syncs in FDs, |
469 | * prevents deterministic submits. They're supported otherwise, | 467 | * and other heavy stuff, which prevents deterministic submits. This is |
470 | * provided that the user doesn't request anything that depends on | 468 | * supported otherwise, provided that the user doesn't request anything |
471 | * deferred cleanup. | 469 | * that depends on deferred cleanup. |
472 | */ | 470 | */ |
473 | if (!g->can_railgate | 471 | if (!gk20a_channel_sync_needs_sync_framework(g)) |
474 | && !gk20a_channel_sync_needs_sync_framework(g)) | ||
475 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL; | 472 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_DETERMINISTIC_SUBMIT_FULL; |
476 | 473 | ||
477 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_USERSPACE_MANAGED_AS; | 474 | gpu->flags |= NVGPU_GPU_FLAGS_SUPPORT_USERSPACE_MANAGED_AS; |