summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2017-02-16 19:53:35 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-12 18:33:50 -0400
commitc3c3a3c5715d6aa38544922b76a636135429fd22 (patch)
tree4e608ad8e817229ff088cad2f2ddb3606f39b73e /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parent3867db86bce819901e566ac46ea5cd1ead3dad11 (diff)
gpu: nvgpu: add fifo ops for handling pbdma intr_0
This is needed to handle bit 20 (clear_faulted_error) and bit 24 (eng_reset) of t19x pbdma_intr_0 interrupt. JIRA GPUT19X-47 Change-Id: I07c603eff96344c0104579e339e5cf7f675128ef Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1306556 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index dc43c532..70addf13 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -42,6 +42,8 @@
42 42
43#define RC_TYPE_NORMAL 0 43#define RC_TYPE_NORMAL 0
44#define RC_TYPE_MMU_FAULT 1 44#define RC_TYPE_MMU_FAULT 1
45#define RC_TYPE_PBDMA_FAULT 2
46#define RC_TYPE_NO_RC 0xff
45 47
46/* 48/*
47 * Number of entries in the kickoff latency buffer, used to calculate 49 * Number of entries in the kickoff latency buffer, used to calculate
@@ -391,4 +393,8 @@ bool gk20a_fifo_check_tsg_ctxsw_timeout(struct tsg_gk20a *tsg,
391 bool *verbose, u32 *ms); 393 bool *verbose, u32 *ms);
392bool gk20a_fifo_handle_sched_error(struct gk20a *g); 394bool gk20a_fifo_handle_sched_error(struct gk20a *g);
393 395
396void gk20a_fifo_reset_pbdma_method(struct gk20a *g, int pbdma_id,
397 int pbdma_method_index);
398unsigned int gk20a_fifo_handle_pbdma_intr_0(struct gk20a *g, u32 pbdma_id,
399 u32 pbdma_intr_0, u32 *handled, u32 *error_notifier);
394#endif /*__GR_GK20A_H__*/ 400#endif /*__GR_GK20A_H__*/