diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index bc8d3ea8..3b888559 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -5106,7 +5106,8 @@ static void gk20a_gr_set_error_notifier(struct gk20a *g, | |||
5106 | if (gk20a_is_channel_marked_as_tsg(ch)) { | 5106 | if (gk20a_is_channel_marked_as_tsg(ch)) { |
5107 | tsg = &g->fifo.tsg[ch->tsgid]; | 5107 | tsg = &g->fifo.tsg[ch->tsgid]; |
5108 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); | 5108 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); |
5109 | list_for_each_entry(ch_tsg, &tsg->ch_list, ch_entry) { | 5109 | nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, |
5110 | channel_gk20a, ch_entry) { | ||
5110 | if (gk20a_channel_get(ch_tsg)) { | 5111 | if (gk20a_channel_get(ch_tsg)) { |
5111 | nvgpu_set_error_notifier(ch_tsg, | 5112 | nvgpu_set_error_notifier(ch_tsg, |
5112 | error_notifier); | 5113 | error_notifier); |
@@ -8384,7 +8385,8 @@ int gr_gk20a_suspend_contexts(struct gk20a *g, | |||
8384 | 8385 | ||
8385 | nvgpu_mutex_acquire(&dbg_s->ch_list_lock); | 8386 | nvgpu_mutex_acquire(&dbg_s->ch_list_lock); |
8386 | 8387 | ||
8387 | list_for_each_entry(ch_data, &dbg_s->ch_list, ch_entry) { | 8388 | nvgpu_list_for_each_entry(ch_data, &dbg_s->ch_list, |
8389 | dbg_session_channel_data, ch_entry) { | ||
8388 | ch = g->fifo.channel + ch_data->chid; | 8390 | ch = g->fifo.channel + ch_data->chid; |
8389 | 8391 | ||
8390 | ctx_resident = gr_gk20a_suspend_context(ch); | 8392 | ctx_resident = gr_gk20a_suspend_context(ch); |
@@ -8424,7 +8426,8 @@ int gr_gk20a_resume_contexts(struct gk20a *g, | |||
8424 | goto clean_up; | 8426 | goto clean_up; |
8425 | } | 8427 | } |
8426 | 8428 | ||
8427 | list_for_each_entry(ch_data, &dbg_s->ch_list, ch_entry) { | 8429 | nvgpu_list_for_each_entry(ch_data, &dbg_s->ch_list, |
8430 | dbg_session_channel_data, ch_entry) { | ||
8428 | ch = g->fifo.channel + ch_data->chid; | 8431 | ch = g->fifo.channel + ch_data->chid; |
8429 | 8432 | ||
8430 | ctx_resident = gr_gk20a_resume_context(ch); | 8433 | ctx_resident = gr_gk20a_resume_context(ch); |