mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: bitmap allocator for comptags
Restore comptags to be bitmap-allocated, like they were before we had the buddy allocator. Bug 200145635 Change-Id: I681493871096f437014b7eca1182fefbaf7f6a74 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/839240 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Deepak Nibade
parent
5dcbe39a71
commit
1ec6d2b6d6
@@ -18,7 +18,6 @@
|
||||
#include <dt-bindings/memory/tegra-swgroup.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"
|
||||
@@ -110,8 +109,9 @@ static int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
__gk20a_allocator_init(&gr->comp_tags, NULL, "comptag",
|
||||
1, max_comptag_lines - 1, 1, 10, 0);
|
||||
err = gk20a_comptag_allocator_init(&gr->comp_tags, max_comptag_lines);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
gr->comptags_per_cacheline = comptags_per_cacheline;
|
||||
gr->slices_per_ltc = slices_per_ltc;
|
||||
|
||||
Reference in New Issue
Block a user