gpu: nvgpu: fix bug in CHANNEL_FORCE_RESET

Channels belonging to a TSG did not have their error notifier
set correctly. This was due to using an incorrect TSG id.

Bug 1617046

Change-Id: Icb6911c7d79a9d02d7713bb47a7cbb24c3098dc1
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/1155293
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Aingara Paramakuru
2016-05-27 15:31:48 -04:00
committed by Terje Bergstrom
parent 97a58123e8
commit e8fd660ab9

View File

@@ -1419,7 +1419,7 @@ int gk20a_fifo_force_reset_ch(struct channel_gk20a *ch, bool verbose)
struct gk20a *g = ch->g; struct gk20a *g = ch->g;
if (gk20a_is_channel_marked_as_tsg(ch)) { if (gk20a_is_channel_marked_as_tsg(ch)) {
tsg = &g->fifo.tsg[ch->hw_chid]; tsg = &g->fifo.tsg[ch->tsgid];
mutex_lock(&tsg->ch_list_lock); mutex_lock(&tsg->ch_list_lock);