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>
This commit is contained in:
Deepak Nibade
2015-12-29 13:53:46 +05:30
committed by Sachin Nikam
parent 0ce201e8de
commit ca76b336b3
6 changed files with 101 additions and 56 deletions

View File

@@ -2529,6 +2529,12 @@ int gk20a_fifo_set_channel_priority(
return 0;
}
struct channel_gk20a *gk20a_fifo_channel_from_hw_chid(struct gk20a *g,
u32 hw_chid)
{
return g->fifo.channel + hw_chid;
}
void gk20a_init_fifo(struct gpu_ops *gops)
{
gk20a_init_channel(gops);