diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index e30c595e..2a20c2d9 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -5057,16 +5057,22 @@ int gk20a_gr_reset(struct gk20a *g) | |||
5057 | nvgpu_mutex_acquire(&g->gr.fecs_mutex); | 5057 | nvgpu_mutex_acquire(&g->gr.fecs_mutex); |
5058 | 5058 | ||
5059 | err = gk20a_enable_gr_hw(g); | 5059 | err = gk20a_enable_gr_hw(g); |
5060 | if (err) | 5060 | if (err) { |
5061 | nvgpu_mutex_release(&g->gr.fecs_mutex); | ||
5061 | return err; | 5062 | return err; |
5063 | } | ||
5062 | 5064 | ||
5063 | err = gk20a_init_gr_setup_hw(g); | 5065 | err = gk20a_init_gr_setup_hw(g); |
5064 | if (err) | 5066 | if (err) { |
5067 | nvgpu_mutex_release(&g->gr.fecs_mutex); | ||
5065 | return err; | 5068 | return err; |
5069 | } | ||
5066 | 5070 | ||
5067 | err = gr_gk20a_init_ctxsw(g); | 5071 | err = gr_gk20a_init_ctxsw(g); |
5068 | if (err) | 5072 | if (err) { |
5073 | nvgpu_mutex_release(&g->gr.fecs_mutex); | ||
5069 | return err; | 5074 | return err; |
5075 | } | ||
5070 | 5076 | ||
5071 | nvgpu_mutex_release(&g->gr.fecs_mutex); | 5077 | nvgpu_mutex_release(&g->gr.fecs_mutex); |
5072 | 5078 | ||