Revert "Revert "gpu: nvgpu: gp10b part of new VA allocator""

This reverts commit 30e5947fa1f26ed6bb4f137fd76c8869e91b9829.

The original commit was actually fine.

Signed-off-by: Alex Waterman <alexw@nvidia.com>
Change-Id: I0454415981d29ed0b877f7a21db6f54bc4c30470
Reviewed-on: http://git-master/r/743302
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Alex Waterman
2015-05-15 09:16:58 -07:00
committed by Deepak Nibade
parent 5e18ae63db
commit 2907e24e8b

View File

@@ -16,6 +16,7 @@
#include <linux/types.h>
#include "gk20a/gk20a.h"
#include "gk20a/gk20a_allocator.h"
#include "gm20b/ltc_gm20b.h"
#include "hw_proj_gp10b.h"
#include "hw_mc_gp10b.h"
@@ -111,9 +112,8 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
if (err)
return err;
gk20a_allocator_init(&gr->comp_tags, "comptag",
1, /* start */
max_comptag_lines - 1); /* length*/
__gk20a_allocator_init(&gr->comp_tags, NULL, "comptag",
1, max_comptag_lines - 1, 1, 10, 0);
gr->comptags_per_cacheline = comptags_per_cacheline;
gr->slices_per_ltc = slices_per_ltc;