diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-12-29 03:23:46 -0500 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2016-01-13 01:58:32 -0500 |
commit | ca76b336b32dce2e57034fbd44a273c539f67a54 (patch) | |
tree | ac0dadeb96f3c180a7a0bfcc51679858b2dedb95 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |
parent | 0ce201e8de6a320b70f1f34d05202650b9b5a046 (diff) |
gpu: nvgpu: support preprocessing of SM exceptions
Support preprocessing of SM exceptions if API
pointer pre_process_sm_exception() is defined
Also, expose some common APIs
Bug 200156699
Change-Id: I1303642c1c4403c520b62efb6fd83e95eaeb519b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/925883
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index ca5c0ee6..ce91fd49 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -2529,6 +2529,12 @@ int gk20a_fifo_set_channel_priority( | |||
2529 | return 0; | 2529 | return 0; |
2530 | } | 2530 | } |
2531 | 2531 | ||
2532 | struct channel_gk20a *gk20a_fifo_channel_from_hw_chid(struct gk20a *g, | ||
2533 | u32 hw_chid) | ||
2534 | { | ||
2535 | return g->fifo.channel + hw_chid; | ||
2536 | } | ||
2537 | |||
2532 | void gk20a_init_fifo(struct gpu_ops *gops) | 2538 | void gk20a_init_fifo(struct gpu_ops *gops) |
2533 | { | 2539 | { |
2534 | gk20a_init_channel(gops); | 2540 | gk20a_init_channel(gops); |