diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index e3fc61c0..590506d6 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -43,6 +43,13 @@ | |||
43 | #include <nvgpu/ltc.h> | 43 | #include <nvgpu/ltc.h> |
44 | #include <nvgpu/barrier.h> | 44 | #include <nvgpu/barrier.h> |
45 | 45 | ||
46 | /* | ||
47 | * This is required for nvgpu_vm_find_buf() which is used in the tracing | ||
48 | * code. Once we can get and access userspace buffers without requiring | ||
49 | * direct dma_buf usage this can be removed. | ||
50 | */ | ||
51 | #include <nvgpu/linux/vm.h> | ||
52 | |||
46 | #include "gk20a.h" | 53 | #include "gk20a.h" |
47 | #include "ctxsw_trace_gk20a.h" | 54 | #include "ctxsw_trace_gk20a.h" |
48 | #include "dbg_gpu_gk20a.h" | 55 | #include "dbg_gpu_gk20a.h" |
@@ -58,13 +65,6 @@ | |||
58 | #include <linux/uaccess.h> | 65 | #include <linux/uaccess.h> |
59 | 66 | ||
60 | /* | 67 | /* |
61 | * This is required for nvgpu_vm_find_buffer() which is used in the tracing | ||
62 | * code. Once we can get and access userspace buffers without requiring | ||
63 | * direct dma_buf usage this can be removed. | ||
64 | */ | ||
65 | #include "common/linux/vm_priv.h" | ||
66 | |||
67 | /* | ||
68 | * Although channels do have pointers back to the gk20a struct that they were | 68 | * Although channels do have pointers back to the gk20a struct that they were |
69 | * created under in cases where the driver is killed that pointer can be bad. | 69 | * created under in cases where the driver is killed that pointer can be bad. |
70 | * The channel memory can be freed before the release() function for a given | 70 | * The channel memory can be freed before the release() function for a given |