From 6ec7da5eba5481e5ff106d7c616d84ac1c847d21 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 6 Dec 2017 04:39:59 -0800 Subject: gpu: nvgpu: use nvgpu list APIs instead of linux APIs Use nvgpu specific list APIs nvgpu_list_for_each_entry() instead of calling Linux specific list APIs list_for_each_entry() Jira NVGPU-444 Change-Id: I3c1fd495ed9e8bebab1f23b6769944373b46059b Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1612442 Reviewed-by: Konsta Holtta Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/fifo_vgpu.c') 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, nvgpu_rwsem_down_read(&tsg->ch_list_lock); - list_for_each_entry(ch_tsg, &tsg->ch_list, ch_entry) { + nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, + channel_gk20a, ch_entry) { if (gk20a_channel_get(ch_tsg)) { nvgpu_set_error_notifier(ch_tsg, err_code); ch_tsg->has_timedout = true; @@ -747,7 +748,8 @@ static void vgpu_fifo_set_ctx_mmu_error_ch_tsg(struct gk20a *g, nvgpu_rwsem_down_read(&tsg->ch_list_lock); - list_for_each_entry(ch_tsg, &tsg->ch_list, ch_entry) { + nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, + channel_gk20a, ch_entry) { if (gk20a_channel_get(ch_tsg)) { vgpu_fifo_set_ctx_mmu_error_ch(g, ch_tsg); gk20a_channel_put(ch_tsg); -- cgit v1.2.2