diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 136c28d0..be01e0e9 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -976,7 +976,7 @@ static void gk20a_free_channel(struct channel_gk20a *ch, bool force) | |||
976 | memset(&ch->ramfc, 0, sizeof(struct mem_desc_sub)); | 976 | memset(&ch->ramfc, 0, sizeof(struct mem_desc_sub)); |
977 | 977 | ||
978 | gk20a_gmmu_unmap_free(ch_vm, &ch->gpfifo.mem); | 978 | gk20a_gmmu_unmap_free(ch_vm, &ch->gpfifo.mem); |
979 | nvgpu_free(ch->gpfifo.pipe); | 979 | nvgpu_kfree(ch->gpfifo.pipe); |
980 | memset(&ch->gpfifo, 0, sizeof(struct gpfifo_desc)); | 980 | memset(&ch->gpfifo, 0, sizeof(struct gpfifo_desc)); |
981 | 981 | ||
982 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 982 | #if defined(CONFIG_GK20A_CYCLE_STATS) |
@@ -1778,7 +1778,7 @@ int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c, | |||
1778 | } | 1778 | } |
1779 | 1779 | ||
1780 | if (c->gpfifo.mem.aperture == APERTURE_VIDMEM || g->mm.force_pramin) { | 1780 | if (c->gpfifo.mem.aperture == APERTURE_VIDMEM || g->mm.force_pramin) { |
1781 | c->gpfifo.pipe = nvgpu_alloc( | 1781 | c->gpfifo.pipe = nvgpu_kalloc( |
1782 | gpfifo_size * sizeof(struct nvgpu_gpfifo), | 1782 | gpfifo_size * sizeof(struct nvgpu_gpfifo), |
1783 | false); | 1783 | false); |
1784 | if (!c->gpfifo.pipe) { | 1784 | if (!c->gpfifo.pipe) { |
@@ -1850,7 +1850,7 @@ clean_up_sync: | |||
1850 | c->sync = NULL; | 1850 | c->sync = NULL; |
1851 | } | 1851 | } |
1852 | clean_up_unmap: | 1852 | clean_up_unmap: |
1853 | nvgpu_free(c->gpfifo.pipe); | 1853 | nvgpu_kfree(c->gpfifo.pipe); |
1854 | gk20a_gmmu_unmap_free(ch_vm, &c->gpfifo.mem); | 1854 | gk20a_gmmu_unmap_free(ch_vm, &c->gpfifo.mem); |
1855 | clean_up: | 1855 | clean_up: |
1856 | memset(&c->gpfifo, 0, sizeof(struct gpfifo_desc)); | 1856 | memset(&c->gpfifo, 0, sizeof(struct gpfifo_desc)); |
@@ -1980,12 +1980,12 @@ static void trace_write_pushbuffer_range(struct channel_gk20a *c, | |||
1980 | if (!g) { | 1980 | if (!g) { |
1981 | size = count * sizeof(struct nvgpu_gpfifo); | 1981 | size = count * sizeof(struct nvgpu_gpfifo); |
1982 | if (size) { | 1982 | if (size) { |
1983 | g = nvgpu_alloc(size, false); | 1983 | g = nvgpu_kalloc(size, false); |
1984 | if (!g) | 1984 | if (!g) |
1985 | return; | 1985 | return; |
1986 | 1986 | ||
1987 | if (copy_from_user(g, user_gpfifo, size)) { | 1987 | if (copy_from_user(g, user_gpfifo, size)) { |
1988 | nvgpu_free(g); | 1988 | nvgpu_kfree(g); |
1989 | return; | 1989 | return; |
1990 | } | 1990 | } |
1991 | } | 1991 | } |
@@ -1997,7 +1997,7 @@ static void trace_write_pushbuffer_range(struct channel_gk20a *c, | |||
1997 | trace_write_pushbuffer(c, gp); | 1997 | trace_write_pushbuffer(c, gp); |
1998 | 1998 | ||
1999 | if (gpfifo_allocated) | 1999 | if (gpfifo_allocated) |
2000 | nvgpu_free(g); | 2000 | nvgpu_kfree(g); |
2001 | } | 2001 | } |
2002 | 2002 | ||
2003 | static void gk20a_channel_timeout_start(struct channel_gk20a *ch, | 2003 | static void gk20a_channel_timeout_start(struct channel_gk20a *ch, |