diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c index 7a2a02e9..e06b41da 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c | |||
@@ -692,7 +692,8 @@ int vgpu_fifo_force_reset_ch(struct channel_gk20a *ch, | |||
692 | 692 | ||
693 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); | 693 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); |
694 | 694 | ||
695 | list_for_each_entry(ch_tsg, &tsg->ch_list, ch_entry) { | 695 | nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, |
696 | channel_gk20a, ch_entry) { | ||
696 | if (gk20a_channel_get(ch_tsg)) { | 697 | if (gk20a_channel_get(ch_tsg)) { |
697 | nvgpu_set_error_notifier(ch_tsg, err_code); | 698 | nvgpu_set_error_notifier(ch_tsg, err_code); |
698 | ch_tsg->has_timedout = true; | 699 | ch_tsg->has_timedout = true; |
@@ -747,7 +748,8 @@ static void vgpu_fifo_set_ctx_mmu_error_ch_tsg(struct gk20a *g, | |||
747 | 748 | ||
748 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); | 749 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); |
749 | 750 | ||
750 | list_for_each_entry(ch_tsg, &tsg->ch_list, ch_entry) { | 751 | nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, |
752 | channel_gk20a, ch_entry) { | ||
751 | if (gk20a_channel_get(ch_tsg)) { | 753 | if (gk20a_channel_get(ch_tsg)) { |
752 | vgpu_fifo_set_ctx_mmu_error_ch(g, ch_tsg); | 754 | vgpu_fifo_set_ctx_mmu_error_ch(g, ch_tsg); |
753 | gk20a_channel_put(ch_tsg); | 755 | gk20a_channel_put(ch_tsg); |