summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-04-14 18:12:57 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-14 03:05:12 -0400
commit7acc993cdbcc202854f188e7f53646f387573a09 (patch)
tree61d213424ed8985973fa7ee3e4580c7b1b95bd3b /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parentab22d66386e3a23e0dfe897bca25e01623f6d61c (diff)
gpu: nvgpu: Move can_railgate & railgate_delay to gk20a
Copy can_railgate and railgate_delay to struct gk20a at probe time, and access them from gk20a instead of platform_gk20a. JIRA NVGPU-16 Change-Id: I63d4f4aff7eb17a167775fd7982a1b548bbca3a5 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463543 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 04765eea..0d615d65 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -2454,7 +2454,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2454 need_job_tracking = (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_WAIT) || 2454 need_job_tracking = (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_WAIT) ||
2455 (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET) || 2455 (flags & NVGPU_SUBMIT_GPFIFO_FLAGS_FENCE_GET) ||
2456 c->wdt_enabled || 2456 c->wdt_enabled ||
2457 platform->can_railgate || 2457 g->can_railgate ||
2458 !skip_buffer_refcounting; 2458 !skip_buffer_refcounting;
2459 2459
2460 if (need_job_tracking) { 2460 if (need_job_tracking) {
@@ -2492,7 +2492,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2492 need_deferred_cleanup = !c->deterministic || 2492 need_deferred_cleanup = !c->deterministic ||
2493 need_sync_framework || 2493 need_sync_framework ||
2494 c->wdt_enabled || 2494 c->wdt_enabled ||
2495 platform->can_railgate || 2495 g->can_railgate ||
2496 !skip_buffer_refcounting; 2496 !skip_buffer_refcounting;
2497 2497
2498 /* 2498 /*