diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index a78f0498..5fab43ca 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -51,6 +51,7 @@ | |||
51 | #define GK20A_TIMEOUT_FPGA 100000 /* 100 sec */ | 51 | #define GK20A_TIMEOUT_FPGA 100000 /* 100 sec */ |
52 | 52 | ||
53 | struct channel_gk20a; | 53 | struct channel_gk20a; |
54 | struct nvgpu_warpstate; | ||
54 | 55 | ||
55 | enum /* global_ctx_buffer */ { | 56 | enum /* global_ctx_buffer */ { |
56 | CIRCULAR = 0, | 57 | CIRCULAR = 0, |
@@ -488,6 +489,12 @@ struct fecs_method_op_gk20a { | |||
488 | 489 | ||
489 | }; | 490 | }; |
490 | 491 | ||
492 | struct nvgpu_warpstate { | ||
493 | u64 valid_warps[2]; | ||
494 | u64 trapped_warps[2]; | ||
495 | u64 paused_warps[2]; | ||
496 | }; | ||
497 | |||
491 | struct gpu_ops; | 498 | struct gpu_ops; |
492 | int gr_gk20a_load_golden_ctx_image(struct gk20a *g, | 499 | int gr_gk20a_load_golden_ctx_image(struct gk20a *g, |
493 | struct channel_gk20a *c); | 500 | struct channel_gk20a *c); |
@@ -718,7 +725,7 @@ void gk20a_gr_enable_gpc_exceptions(struct gk20a *g); | |||
718 | void gk20a_gr_enable_exceptions(struct gk20a *g); | 725 | void gk20a_gr_enable_exceptions(struct gk20a *g); |
719 | int gr_gk20a_inval_icache(struct gk20a *g, struct channel_gk20a *ch); | 726 | int gr_gk20a_inval_icache(struct gk20a *g, struct channel_gk20a *ch); |
720 | int gr_gk20a_trigger_suspend(struct gk20a *g); | 727 | int gr_gk20a_trigger_suspend(struct gk20a *g); |
721 | int gr_gk20a_wait_for_pause(struct gk20a *g, struct warpstate *w_state); | 728 | int gr_gk20a_wait_for_pause(struct gk20a *g, struct nvgpu_warpstate *w_state); |
722 | int gr_gk20a_resume_from_pause(struct gk20a *g); | 729 | int gr_gk20a_resume_from_pause(struct gk20a *g); |
723 | int gr_gk20a_clear_sm_errors(struct gk20a *g); | 730 | int gr_gk20a_clear_sm_errors(struct gk20a *g); |
724 | u32 gr_gk20a_tpc_enabled_exceptions(struct gk20a *g); | 731 | u32 gr_gk20a_tpc_enabled_exceptions(struct gk20a *g); |