diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-03-08 20:08:32 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-29 14:50:21 -0400 |
commit | bc92e2fb972e039ee33c1f1477204a4d145a8b96 (patch) | |
tree | a43df80fe921f3e4b50c70bf67aef30a0b5dd5bb /drivers/gpu/nvgpu/gk20a/debug_gk20a.c | |
parent | 4022b989aa2e91fe77ed52df49d45838f6d8b9bb (diff) |
gpu: nvgpu: Use new kmem API functions (gk20a core)
Use the new kmem API functions in core gk20a code. Also add a struct
gk20a pointer to several functions to ensure that the kmem APIs can be
used.
Bug 1799159
Bug 1823380
Change-Id: I41276509c4f0b68e80b989aa55cf94d8dbbdf156
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1318322
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/debug_gk20a.c | 8 |
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 | ||
105 | void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) | 105 | void gk20a_debug_show_dump(struct gk20a *g, struct gk20a_debug_output *o) |