summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/fifo
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-06-26 10:18:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-04 07:42:05 -0400
commitf403800dce923c8bac982291aee213e1e3afdab0 (patch)
tree01e7b9af55778f1514e5b02e520abf1b7ccd8d39 /drivers/gpu/nvgpu/common/fifo
parent145eb3321fb8b5411c9e4975eada21515c19ebb0 (diff)
gpu: nvgpu: move can_railgate to enabled.h
The g->can_railgate flag is a global constant-ish property like the rest of the flags behind nvgpu_is_enabled() API, so move it there. Bug 200327089 Change-Id: Id1f2f16ea1975a03fb56f10c2f3c8c705574e341 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1764266 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/fifo')
-rw-r--r--drivers/gpu/nvgpu/common/fifo/submit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/fifo/submit.c b/drivers/gpu/nvgpu/common/fifo/submit.c
index f6a79f80..00763036 100644
--- a/drivers/gpu/nvgpu/common/fifo/submit.c
+++ b/drivers/gpu/nvgpu/common/fifo/submit.c
@@ -368,7 +368,8 @@ static int nvgpu_submit_channel_gpfifo(struct channel_gk20a *c,
368 need_job_tracking = (flags & NVGPU_SUBMIT_FLAGS_FENCE_WAIT) || 368 need_job_tracking = (flags & NVGPU_SUBMIT_FLAGS_FENCE_WAIT) ||
369 (flags & NVGPU_SUBMIT_FLAGS_FENCE_GET) || 369 (flags & NVGPU_SUBMIT_FLAGS_FENCE_GET) ||
370 c->timeout.enabled || 370 c->timeout.enabled ||
371 (g->can_railgate && !c->deterministic) || 371 (nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE)
372 && !c->deterministic) ||
372 !skip_buffer_refcounting; 373 !skip_buffer_refcounting;
373 374
374 if (need_job_tracking) { 375 if (need_job_tracking) {
@@ -405,7 +406,7 @@ static int nvgpu_submit_channel_gpfifo(struct channel_gk20a *c,
405 need_deferred_cleanup = !c->deterministic || 406 need_deferred_cleanup = !c->deterministic ||
406 need_sync_framework || 407 need_sync_framework ||
407 c->timeout.enabled || 408 c->timeout.enabled ||
408 (g->can_railgate && 409 (nvgpu_is_enabled(g, NVGPU_CAN_RAILGATE) &&
409 !c->deterministic) || 410 !c->deterministic) ||
410 !skip_buffer_refcounting; 411 !skip_buffer_refcounting;
411 412