summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2015-03-23 19:26:14 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:05 -0500
commit74bdb403274e897731d1a03c4f3a6cfaff8448d5 (patch)
tree1a028ae508a8afaa3ce91361f38f50dfb2c241ad /drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
parent588d8975bda1f740d54af516b7a04521810c3735 (diff)
gpu: nvgpu: gp10b part of new VA allocator
The comptag allocator is made in the chip-specific init code for the comptags. Thus, a t18x change needs to be made to make sure the new allocator code compiles and works on t18x. Change-Id: I57a34f3c61ebd31f875caa577378e829812f2d4c Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/721171 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
index 3c809eaf..68f4eafa 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
@@ -16,6 +16,7 @@
16#include <linux/types.h> 16#include <linux/types.h>
17 17
18#include "gk20a/gk20a.h" 18#include "gk20a/gk20a.h"
19#include "gk20a/gk20a_allocator.h"
19#include "gm20b/ltc_gm20b.h" 20#include "gm20b/ltc_gm20b.h"
20#include "hw_proj_gp10b.h" 21#include "hw_proj_gp10b.h"
21#include "hw_mc_gp10b.h" 22#include "hw_mc_gp10b.h"
@@ -111,9 +112,8 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
111 if (err) 112 if (err)
112 return err; 113 return err;
113 114
114 gk20a_allocator_init(&gr->comp_tags, "comptag", 115 __gk20a_allocator_init(&gr->comp_tags, NULL, "comptag",
115 1, /* start */ 116 1, max_comptag_lines - 1, 1, 10, 0);
116 max_comptag_lines - 1); /* length*/
117 117
118 gr->comptags_per_cacheline = comptags_per_cacheline; 118 gr->comptags_per_cacheline = comptags_per_cacheline;
119 gr->slices_per_ltc = slices_per_ltc; 119 gr->slices_per_ltc = slices_per_ltc;