diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-03-16 16:22:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-04 19:04:26 -0400 |
commit | 0778d7f33181e4f945083e8e051d5f9476fe5968 (patch) | |
tree | 5e181d064505776dc5f19205d83f0351214a501d /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |
parent | 06fe28567d45c8fb1c2a04f0f007fa5d750b849d (diff) |
gpu: nvgpu: add teardown_ch_tsg fifo ops
teardown_ch_tsg fifo ops added as t19x s/w recovery procedure
is different than legacy chips.
JIRA GPUT19X-7
Change-Id: I5b88f2c1a19d309e5c97c588ddf9689163a75fea
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1327932
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index a399e95f..6d1b902e 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -40,6 +40,9 @@ | |||
40 | 40 | ||
41 | #define GRFIFO_TIMEOUT_CHECK_PERIOD_US 100000 | 41 | #define GRFIFO_TIMEOUT_CHECK_PERIOD_US 100000 |
42 | 42 | ||
43 | #define RC_TYPE_NORMAL 0 | ||
44 | #define RC_TYPE_MMU_FAULT 1 | ||
45 | |||
43 | /* | 46 | /* |
44 | * Number of entries in the kickoff latency buffer, used to calculate | 47 | * Number of entries in the kickoff latency buffer, used to calculate |
45 | * the profiling and histogram. This number is calculated to be statistically | 48 | * the profiling and histogram. This number is calculated to be statistically |
@@ -376,4 +379,11 @@ int gk20a_fifo_setup_userd(struct channel_gk20a *c); | |||
376 | u32 gk20a_fifo_pbdma_acquire_val(u64 timeout); | 379 | u32 gk20a_fifo_pbdma_acquire_val(u64 timeout); |
377 | 380 | ||
378 | 381 | ||
382 | void gk20a_fifo_handle_runlist_event(struct gk20a *g); | ||
383 | bool gk20a_fifo_should_defer_engine_reset(struct gk20a *g, u32 engine_id, | ||
384 | u32 engine_subid, bool fake_fault); | ||
385 | |||
386 | void gk20a_fifo_teardown_ch_tsg(struct gk20a *g, u32 __engine_ids, | ||
387 | u32 hw_id, unsigned int id_type, unsigned int rc_type, | ||
388 | struct mmu_fault_info *mmfault); | ||
379 | #endif /*__GR_GK20A_H__*/ | 389 | #endif /*__GR_GK20A_H__*/ |