summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/debug_gk20a.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
index a64bccf0..b666bb16 100644
--- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
@@ -71,8 +71,8 @@ static void gk20a_debug_dump_all_channel_status_ramfc(struct gk20a *g,
71 struct channel_gk20a *ch = &f->channel[chid]; 71 struct channel_gk20a *ch = &f->channel[chid];
72 if (gk20a_channel_get(ch)) { 72 if (gk20a_channel_get(ch)) {
73 ch_state[chid] = 73 ch_state[chid] =
74 kmalloc(sizeof(struct ch_state) + 74 nvgpu_kmalloc(g, sizeof(struct ch_state) +
75 ram_in_alloc_size_v(), GFP_KERNEL); 75 ram_in_alloc_size_v());
76 /* ref taken stays to below loop with 76 /* ref taken stays to below loop with
77 * successful allocs */ 77 * successful allocs */
78 if (!ch_state[chid]) 78 if (!ch_state[chid])
@@ -96,10 +96,10 @@ static void gk20a_debug_dump_all_channel_status_ramfc(struct gk20a *g,
96 if (ch_state[chid]) { 96 if (ch_state[chid]) {
97 g->ops.fifo.dump_channel_status_ramfc(g, o, chid, 97 g->ops.fifo.dump_channel_status_ramfc(g, o, chid,
98 ch_state[chid]); 98 ch_state[chid]);
99 kfree(ch_state[chid]); 99 nvgpu_kfree(g, ch_state[chid]);
100 } 100 }
101 } 101 }
102 kfree(ch_state); 102 nvgpu_kfree(g, ch_state);
103} 103}
104 104
105void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) 105void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o)