diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index b4d9c785..78e52c62 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -933,21 +933,6 @@ static void channel_gk20a_free_priv_cmdbuf(struct channel_gk20a *c) | |||
933 | memset(q, 0, sizeof(struct priv_cmd_queue)); | 933 | memset(q, 0, sizeof(struct priv_cmd_queue)); |
934 | } | 934 | } |
935 | 935 | ||
936 | int gk20a_find_from_priv_cmdbuf(struct channel_gk20a *c, | ||
937 | u64 gpu_va, u32 **cpu_va) | ||
938 | { | ||
939 | struct priv_cmd_queue *q = &c->priv_cmd_q; | ||
940 | int ret; | ||
941 | |||
942 | if (gpu_va >= q->base_gpuva && gpu_va < (q->base_gpuva + q->size)) { | ||
943 | *cpu_va = gpu_va - q->base_gpuva + q->mem.base_cpuva; | ||
944 | ret = 0; | ||
945 | } else | ||
946 | ret = -EINVAL; | ||
947 | |||
948 | return ret; | ||
949 | } | ||
950 | |||
951 | /* allocate a cmd buffer with given size. size is number of u32 entries */ | 936 | /* allocate a cmd buffer with given size. size is number of u32 entries */ |
952 | int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 orig_size, | 937 | int gk20a_channel_alloc_priv_cmdbuf(struct channel_gk20a *c, u32 orig_size, |
953 | struct priv_cmd_entry **entry) | 938 | struct priv_cmd_entry **entry) |