diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gr_vgpu.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c index 4a22441c..2b98dc50 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c | |||
@@ -795,7 +795,7 @@ static void vgpu_remove_gr_support(struct gr_gk20a *gr) | |||
795 | { | 795 | { |
796 | gk20a_dbg_fn(""); | 796 | gk20a_dbg_fn(""); |
797 | 797 | ||
798 | gk20a_allocator_destroy(&gr->comp_tags); | 798 | gk20a_comptag_allocator_destroy(&gr->comp_tags); |
799 | 799 | ||
800 | kfree(gr->gpc_tpc_mask); | 800 | kfree(gr->gpc_tpc_mask); |
801 | gr->gpc_tpc_mask = NULL; | 801 | gr->gpc_tpc_mask = NULL; |
diff --git a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c index 199e880b..76ee5ec9 100644 --- a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | |||
@@ -56,8 +56,10 @@ static int vgpu_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
56 | if (max_comptag_lines < 2) | 56 | if (max_comptag_lines < 2) |
57 | return -ENXIO; | 57 | return -ENXIO; |
58 | 58 | ||
59 | __gk20a_allocator_init(&gr->comp_tags, NULL, "comptag", | 59 | err = gk20a_comptag_allocator_init(&gr->comp_tags, max_comptag_lines); |
60 | 1, max_comptag_lines - 1, 1, 10, 0); /* length*/ | 60 | if (err) |
61 | return err; | ||
62 | |||
61 | return 0; | 63 | return 0; |
62 | } | 64 | } |
63 | 65 | ||