summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-12-16 15:29:34 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-18 19:46:33 -0500
commit6e2237ef622113b8fa1149aa48988a99fa30594f (patch)
tree1356c45dda5751f7094f37aa93019f1199b635fb /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent8f5a42c4bf9c323b86452065d39ed7632b126561 (diff)
gpu: nvgpu: Use timer API in gk20a code
Use the timers API in the gk20a code instead of Linux specific API calls. This also changes the behavior of several functions to wait for the full timeout for each operation that can timeout. Previously the timeout was shared across each operation. Bug 1799159 Change-Id: I2bbed54630667b2b879b56a63a853266afc1e5d8 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1273826 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index 40b3bd44..e5d7e83b 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -600,7 +600,7 @@ int gr_gk20a_add_zbc_depth(struct gk20a *g, struct gr_gk20a *gr,
600int _gk20a_gr_zbc_set_table(struct gk20a *g, struct gr_gk20a *gr, 600int _gk20a_gr_zbc_set_table(struct gk20a *g, struct gr_gk20a *gr,
601 struct zbc_entry *zbc_val); 601 struct zbc_entry *zbc_val);
602void gr_gk20a_pmu_save_zbc(struct gk20a *g, u32 entries); 602void gr_gk20a_pmu_save_zbc(struct gk20a *g, u32 entries);
603int gr_gk20a_wait_idle(struct gk20a *g, unsigned long end_jiffies, 603int gr_gk20a_wait_idle(struct gk20a *g, unsigned long duration_ms,
604 u32 expect_delay); 604 u32 expect_delay);
605int gr_gk20a_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc, 605int gr_gk20a_handle_sm_exception(struct gk20a *g, u32 gpc, u32 tpc,
606 bool *post_event, struct channel_gk20a *fault_ch, 606 bool *post_event, struct channel_gk20a *fault_ch,
@@ -662,8 +662,8 @@ int gr_gk20a_get_ctx_id(struct gk20a *g,
662 662
663u32 gk20a_mask_hww_warp_esr(u32 hww_warp_esr); 663u32 gk20a_mask_hww_warp_esr(u32 hww_warp_esr);
664 664
665int gr_gk20a_wait_fe_idle(struct gk20a *g, unsigned long end_jiffies, 665int gr_gk20a_wait_fe_idle(struct gk20a *g, unsigned long duration_ms,
666 u32 expect_delay); 666 u32 expect_delay);
667 667
668bool gr_gk20a_suspend_context(struct channel_gk20a *ch); 668bool gr_gk20a_suspend_context(struct channel_gk20a *ch);
669bool gr_gk20a_resume_context(struct channel_gk20a *ch); 669bool gr_gk20a_resume_context(struct channel_gk20a *ch);