summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 39562ec1..2ee2dd43 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -3400,7 +3400,7 @@ static void gk20a_remove_gr_support(struct gr_gk20a *gr)
3400 gr->ctx_vars.local_golden_image = NULL; 3400 gr->ctx_vars.local_golden_image = NULL;
3401 3401
3402 if (gr->ctx_vars.hwpm_ctxsw_buffer_offset_map) 3402 if (gr->ctx_vars.hwpm_ctxsw_buffer_offset_map)
3403 nvgpu_free(gr->ctx_vars.hwpm_ctxsw_buffer_offset_map); 3403 nvgpu_kfree(gr->ctx_vars.hwpm_ctxsw_buffer_offset_map);
3404 gr->ctx_vars.hwpm_ctxsw_buffer_offset_map = NULL; 3404 gr->ctx_vars.hwpm_ctxsw_buffer_offset_map = NULL;
3405 3405
3406 gk20a_comptag_allocator_destroy(&gr->comp_tags); 3406 gk20a_comptag_allocator_destroy(&gr->comp_tags);
@@ -7998,7 +7998,7 @@ static int gr_gk20a_create_hwpm_ctxsw_buffer_offset_map(struct gk20a *g)
7998 hwpm_ctxsw_reg_count_max = hwpm_ctxsw_buffer_size >> 2; 7998 hwpm_ctxsw_reg_count_max = hwpm_ctxsw_buffer_size >> 2;
7999 map_size = hwpm_ctxsw_reg_count_max * sizeof(*map); 7999 map_size = hwpm_ctxsw_reg_count_max * sizeof(*map);
8000 8000
8001 map = nvgpu_alloc(map_size, true); 8001 map = nvgpu_kalloc(map_size, true);
8002 if (!map) 8002 if (!map)
8003 return -ENOMEM; 8003 return -ENOMEM;
8004 8004
@@ -8088,7 +8088,7 @@ static int gr_gk20a_create_hwpm_ctxsw_buffer_offset_map(struct gk20a *g)
8088 return 0; 8088 return 0;
8089cleanup: 8089cleanup:
8090 gk20a_err(dev_from_gk20a(g), "Failed to create HWPM buffer offset map"); 8090 gk20a_err(dev_from_gk20a(g), "Failed to create HWPM buffer offset map");
8091 nvgpu_free(map); 8091 nvgpu_kfree(map);
8092 return -EINVAL; 8092 return -EINVAL;
8093} 8093}
8094 8094