summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-08-03 16:04:38 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-15 15:23:37 -0400
commiteee2744d497213a503de927cbbfe179753f5e370 (patch)
treefd4570dfa75578c7227e00e653113b8765789e72 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parent33665060728693c28ed5222a0d9004e261c63e82 (diff)
gpu: nvgpu: When powering down, abort if not idle
When trying to power down GPU the engine might be still busy. In this case delay power down by returning -EBUSY from gk20a_pm_runtime_suspend(). Bug 200224907 Change-Id: Ibad74c090add24a185bc1a7a02df367af9b95ced Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1213042 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index 17c6dbf6..71a9d35d 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -206,6 +206,7 @@ void gk20a_init_fifo(struct gpu_ops *gops);
206void fifo_gk20a_finish_mmu_fault_handling(struct gk20a *g, 206void fifo_gk20a_finish_mmu_fault_handling(struct gk20a *g,
207 unsigned long fault_id); 207 unsigned long fault_id);
208int gk20a_fifo_wait_engine_idle(struct gk20a *g); 208int gk20a_fifo_wait_engine_idle(struct gk20a *g);
209bool gk20a_fifo_is_engine_busy(struct gk20a *g);
209u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g); 210u32 gk20a_fifo_engine_interrupt_mask(struct gk20a *g);
210u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g); 211u32 gk20a_fifo_get_pbdma_signature(struct gk20a *g);
211u32 gk20a_fifo_get_failing_engine_data(struct gk20a *g, 212u32 gk20a_fifo_get_failing_engine_data(struct gk20a *g,