summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index 713c4215..e3fc61c0 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -51,6 +51,13 @@
51#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h> 51#include <nvgpu/hw/gk20a/hw_pbdma_gk20a.h>
52 52
53/* 53/*
54 * Note
55 * This is added for all the copy_from_user methods in this file which needs to
56 * be moved lated to reduce depenedency on Linux
57 */
58#include <linux/uaccess.h>
59
60/*
54 * This is required for nvgpu_vm_find_buffer() which is used in the tracing 61 * This is required for nvgpu_vm_find_buffer() which is used in the tracing
55 * code. Once we can get and access userspace buffers without requiring 62 * code. Once we can get and access userspace buffers without requiring
56 * direct dma_buf usage this can be removed. 63 * direct dma_buf usage this can be removed.
@@ -623,7 +630,7 @@ unbind:
623 list_for_each_entry_safe(ch_data, tmp, 630 list_for_each_entry_safe(ch_data, tmp,
624 &dbg_s->ch_list, ch_entry) { 631 &dbg_s->ch_list, ch_entry) {
625 if (ch_data->chid == ch->chid) 632 if (ch_data->chid == ch->chid)
626 dbg_unbind_single_channel_gk20a(dbg_s, ch_data); 633 ch_data->unbind_single_channel(dbg_s, ch_data);
627 } 634 }
628 nvgpu_mutex_release(&dbg_s->ch_list_lock); 635 nvgpu_mutex_release(&dbg_s->ch_list_lock);
629 } 636 }